/* ============================================================================
   damskyzupan.cz — jediný stylopis webu
   Mobile first: základní pravidla platí pro telefon, @media je rozšiřují.
   ========================================================================= */

/* ------------------------------------------------------------- proměnné */

:root {
  --ink: #241f1d;
  --ink-soft: #6b615b;
  --ink-faint: #9a8f88;
  --paper: #fdfbf9;
  --paper-2: #f5efe9;
  --line: #e7ded6;
  --accent: #a2604c;
  --accent-dark: #824b3a;
  --accent-soft: #f6ece7;
  --ok: #3f7d55;
  --wait: #a07b2a;
  --out: #9a8f88;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(36, 31, 29, 0.04), 0 8px 24px rgba(36, 31, 29, 0.06);
  --shadow-lift: 0 2px 4px rgba(36, 31, 29, 0.06), 0 16px 40px rgba(36, 31, 29, 0.1);

  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua',
    Georgia, serif;

  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

/* ---------------------------------------------------------------- reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.9rem, 6vw, 3rem);
}
h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
}
h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 249, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.logo__mark {
  color: var(--accent);
}

/* Menu bez JS: <details> se na širokých displejích rozpadne na vodorovnou navigaci. */
.menu {
  position: relative;
}

.menu__toggle {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.9rem;
  background: #fff;
}

.menu__toggle::-webkit-details-marker {
  display: none;
}

.menu[open] .menu__toggle {
  border-color: var(--accent);
  color: var(--accent);
}

.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  min-width: min(19rem, 80vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 0.5rem;
}

.menu__link {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.menu__link:hover,
.menu__link[aria-current='page'] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.menu__link--sub {
  padding-left: 1.75rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

@media (min-width: 62rem) {
  .menu__toggle {
    display: none;
  }
  .menu__panel {
    position: static;
    display: flex;
    gap: 0.25rem;
    border: 0;
    box-shadow: none;
    background: none;
    padding: 0;
    min-width: 0;
  }
  .menu__link--sub {
    display: none;
  }
  .menu__link {
    white-space: nowrap;
    font-size: 0.92rem;
  }
}

/* ------------------------------------------------------------ drobečky */

.crumbs {
  font-size: 0.82rem;
  color: var(--ink-faint);
  padding-block: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs span[aria-hidden] {
  opacity: 0.5;
}

/* ----------------------------------------------------------------- hero */

.hero {
  padding-block: clamp(2.5rem, 8vw, 5rem) clamp(2rem, 5vw, 3rem);
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 38rem;
  margin-inline: auto;
}

.page-head {
  padding-block: clamp(1.5rem, 5vw, 2.75rem) 1.5rem;
  max-width: 46rem;
}

.page-head__lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.page-head__count {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 0.75rem;
}

/* ------------------------------------------------------- pilulky / chipy */

.chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-block: 0.25rem 1.5rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  font-size: 0.875rem;
  color: var(--ink-soft);
  transition: border-color 0.15s, color 0.15s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip--active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ------------------------------------------------------------ mřížka karet */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 3vw, 1.75rem) clamp(0.6rem, 2.5vw, 1.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mřížka na výpisu kategorie potřebuje odsazení od stránkování. */
.grid--page {
  padding-bottom: 3rem;
}

@media (min-width: 40rem) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card__media {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  margin-bottom: 0.7rem;
}

/* Produktové fotky mají bílé pozadí — `contain` je nechá celé vidět. */
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__brand {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 0.2rem;
}

.card__name {
  font-size: 0.92rem;
  line-height: 1.35;
  margin: 0 0 0.45rem;
  font-family: var(--font-body);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__price {
  margin-top: auto;
  font-weight: 600;
  font-size: 1rem;
}

/* ------------------------------------------------------------ dostupnost */

.badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-soft);
  backdrop-filter: blur(4px);
}

.badge--ok {
  color: var(--ok);
}
.badge--wait {
  color: var(--wait);
}
.badge--out {
  color: var(--out);
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.stock::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.stock--ok {
  color: var(--ok);
}
.stock--wait {
  color: var(--wait);
}
.stock--out {
  color: var(--out);
}

/* ------------------------------------------------------------ stránkování */

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-bottom: 3.5rem;
}

.pager a,
.pager span {
  min-width: 2.4rem;
  padding: 0.5rem 0.7rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: #fff;
}

.pager .is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pager .is-gap {
  border: 0;
  background: none;
  color: var(--ink-faint);
  min-width: 1rem;
  padding-inline: 0;
}

/* -------------------------------------------------------------- produkt */

.product {
  display: grid;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  padding-block: 1.5rem 3rem;
}

@media (min-width: 56rem) {
  .product {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
  }
  .product__info {
    position: sticky;
    top: 5.5rem;
  }
}

.product__media {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product__brand {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.product__title {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  margin-bottom: 0.9rem;
}

.product__price {
  font-size: 1.75rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.product__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.25rem;
  padding-block: 0.5rem 1.5rem;
}

.product__desc {
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.product__desc p:last-child {
  margin-bottom: 0;
}

.product__desc ul {
  padding-left: 1.1rem;
  margin: 0 0 1em;
}

.specs {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  display: grid;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.specs div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.specs dt {
  color: var(--ink-faint);
}

.specs dd {
  margin: 0;
  text-align: right;
}

/* ------------------------------------------------------------- tlačítka */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--accent);
  transition: background 0.15s, transform 0.15s;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn:active {
  transform: translateY(1px);
}

.btn--block {
  width: 100%;
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--paper-2);
  border-color: var(--ink-faint);
}

.btn[aria-disabled='true'] {
  background: var(--paper-2);
  border-color: var(--line);
  color: var(--ink-faint);
  pointer-events: none;
}

/* --------------------------------------------------------------- sekce */

.section {
  padding-block: clamp(2rem, 6vw, 3.5rem);
}

.section--tinted {
  background: var(--paper-2);
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.section__head p {
  color: var(--ink-soft);
  margin: 0.35rem 0 0;
  max-width: 34rem;
}

.link-more {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
}

.link-more:hover {
  text-decoration: underline;
}

/* --------------------------------------------------- dlaždice kategorií */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 2.5vw, 1.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 48rem) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Dlaždice = bílá karta s celým produktem a popiskem pod ním. Fotky z feedu
   jsou na bílém pozadí, takže ořez (cover) by z nich dělal nečitelné výřezy. */
/* Bloky „Podle rozměru" / „Podle barvy" na výpisu kategorie. */
.facets {
  padding-bottom: 2rem;
}

.facets__title {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}

/* Rozměry — obyčejná tlačítka s počtem kusů. */
.facet-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.facet-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  font-size: 0.9rem;
  transition: border-color 0.15s, color 0.15s;
}

.facet-btn span {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.facet-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.facet-btn--active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.facet-btn--active span {
  color: rgba(255, 255, 255, 0.6);
}

/* Barvy — kolečko s odstínem, pod ním název a počet. */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1rem;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 4.25rem;
  text-align: center;
}

.swatch__dot {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--swatch);
  /* Vnitřní obrys — jinak by bílé kolečko na bílém pozadí zmizelo. */
  box-shadow: inset 0 0 0 1px rgba(36, 31, 29, 0.15);
  transition: transform 0.15s, box-shadow 0.15s;
}

.swatch:hover .swatch__dot {
  transform: scale(1.08);
  box-shadow: inset 0 0 0 1px rgba(36, 31, 29, 0.15), 0 0 0 3px var(--accent-soft);
}

/* Právě zobrazená barva — prstenec kolem kolečka a tučný název. */
.swatch--active .swatch__dot {
  box-shadow: inset 0 0 0 1px rgba(36, 31, 29, 0.15), 0 0 0 2px var(--paper),
    0 0 0 4px var(--ink);
}

.swatch--active .swatch__name {
  font-weight: 600;
}

.swatch__name {
  font-size: 0.82rem;
  line-height: 1.2;
}

.swatch__count {
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tile:hover {
  border-color: var(--ink-faint);
  box-shadow: var(--shadow);
}

.tile__figure {
  display: block;
  aspect-ratio: 4 / 3;
  padding: 0.75rem;
}

.tile__figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.tile:hover .tile__figure img {
  transform: scale(1.04);
}

.tile__label {
  display: block;
  border-top: 1px solid var(--line);
  padding: 0.85rem 1rem 0.95rem;
  margin-top: auto;
}

.tile__label strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.tile__label span {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------- proza */

.prose {
  max-width: 42rem;
  color: var(--ink-soft);
}

.prose h2 {
  color: var(--ink);
  margin-top: 2rem;
}

.prose h2:first-child {
  margin-top: 0;
}

/* Text na titulce jde přes celou šířku obsahu, aby lícoval s mřížkou produktů
   nad ním. Ruší se jen užší míra `.prose`, ne šířka stránky z `.wrap`. */
.prose--wide {
  max-width: var(--wrap);
}

/* -------------------------------------------------------------- patička */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding-block: clamp(2.5rem, 6vw, 3.5rem) 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: auto;
}

.site-footer__cols {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 48rem) {
  .site-footer__cols {
    grid-template-columns: 1.4fr repeat(2, 1fr);
    gap: 3rem;
  }
}

.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer__note {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---------------------------------------------------------------- ostatní */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.empty {
  padding: 3rem 0 4rem;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
