/* ============================================================
   Romantyczne zabawki — Design System
   Premium · sensual · elegant · clean · mobile-first
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Kolory — jasne, ciepłe tła + wyrazista czerwień/róż jako tożsamość marki.
     Sklep intymny 18+: czerwono-różowy, ale wciąż premium — nasycone, głębokie
     odcienie (malina/wino/róż), NIE krzykliwy neon. */
  --c-bg:            #FDF7F8;  /* różowa kość słoniowa */
  --c-bg-2:         #FAE9EE;  /* delikatny blush */
  --c-surface:      #FFFFFF;
  --c-surface-2:    #FEF6F8;
  --c-ink:          #2B1F23;  /* ciepła czerń z czerwonym podtonem */
  --c-ink-soft:     #6B5560;
  --c-ink-mute:     #9C8189;
  --c-line:         #F2DEE4;

  --c-burgund:      #A3123F;  /* główny akcent — bogata malinowa czerwień */
  --c-burgund-600:  #860F34;
  --c-roz:          #E0708F;  /* żywy, elegancki róż */
  --c-roz-soft:     #F8D3DD;
  --c-sliwka:       #6E1F3E;  /* głębokie wino (zamiast śliwki — zostajemy w rodzinie czerwieni) */
  --c-zloto:        #C09A5E;  /* złoto tylko jako subtelny detal */
  --c-zloto-soft:   #EFDCBC;

  --c-accent:       var(--c-burgund);
  --c-accent-ink:   #FFFFFF;

  /* Typografia */
  --font-head: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Skala */
  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.15vw, 1.02rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.6rem, 2rem + 3vw, 4.2rem);

  /* Promienie / cienie / odstępy */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --sh-1: 0 2px 8px rgba(70, 40, 40, 0.06);
  --sh-2: 0 8px 24px rgba(70, 40, 40, 0.08);
  --sh-3: 0 18px 44px rgba(70, 40, 40, 0.12);

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;

  --wrap: 1180px;
  --header-h: 60px;
  --bottomnav-h: 62px;
}

/* Warianty akcentu (kafelki, karty) */
.acc-burgund { --acc: var(--c-burgund); --acc-soft: #F6CBD8; }
.acc-sliwka  { --acc: var(--c-sliwka);  --acc-soft: #E7C2D0; }
.acc-roz     { --acc: var(--c-roz);     --acc-soft: var(--c-roz-soft); }
.acc-zloto   { --acc: var(--c-zloto);   --acc-soft: var(--c-zloto-soft); }

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  /* Siatka bezpieczeństwa przeciw poziomemu przewijaniu.
     UWAGA: celowo `clip`, NIE `hidden` — `overflow:hidden` czyni z body
     kontener przewijania i ŁAMIE `position: sticky` w nagłówku. */
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0 0 0.4em; letter-spacing: 0.2px; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--c-burgund); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }
.eyebrow {
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-zloto);
  margin: 0 0 0.6rem;
}
.section-head { text-align: center; max-width: 620px; margin: 0 auto var(--space-5); }
.section-head p { color: var(--c-ink-soft); margin: 0; }
.muted { color: var(--c-ink-soft); }
.center { text-align: center; }
.divider-line { height: 1px; background: var(--c-line); border: 0; margin: 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.5rem; border: 1px solid transparent;
  border-radius: var(--r-pill); font-weight: 600; font-size: var(--step-0);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-burgund); color: #fff; box-shadow: var(--sh-2); }
.btn--primary:hover { background: var(--c-burgund-600); box-shadow: var(--sh-3); }
.btn--ghost { background: transparent; color: var(--c-burgund); border-color: var(--c-burgund); }
.btn--ghost:hover { background: var(--c-burgund); color: #fff; }
.btn--light { background: #fff; color: var(--c-ink); border-color: var(--c-line); box-shadow: var(--sh-1); }
.btn--light:hover { border-color: var(--c-burgund); color: var(--c-burgund); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: var(--step--1); }

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex; align-items: center; padding: 0.28rem 0.7rem;
  border-radius: var(--r-pill); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.badge--Nowość    { background: var(--c-roz-soft); color: var(--c-burgund); }
.badge--Bestseller{ background: var(--c-zloto-soft); color: #7a5a20; }
.badge--Premium   { background: var(--c-sliwka); color: #fff; }
.badge--Dla       { background: var(--c-burgund); color: #fff; }
.badge--Promocja  { background: #fff; color: var(--c-burgund); border: 1px solid var(--c-burgund); }

/* ============================================================
   HEADER (sticky, mobile-first)
   ============================================================ */
/* KRYTYCZNE dla sticky: #site-header to tylko punkt montażu (JS w prototypie,
   wrapper w header.php motywu). Jako zwykły <div> tworzył box o wysokości
   DOKŁADNIE równej nagłówkowi — a `position: sticky` może podróżować wyłącznie
   w obrębie boxa rodzica, więc nagłówek miał 0 px drogi i odjeżdżał ze stroną.
   `display: contents` sprawia, że wrapper nie generuje boxa → rodzicem .header
   staje się <body> i sticky działa na całej długości strony.
   NIE zamieniaj tego na zwykły blok bez przeniesienia sticky wyżej. */
#site-header { display: contents; }

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 247, 248, 0.92); /* --c-bg z przezroczystością */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.header__bar {
  height: var(--header-h);
  display: flex; align-items: center; gap: 0.4rem;
  min-width: 0; /* pozwala dzieciom faktycznie się kurczyć */
}
.header__menu-btn, .header__icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;                 /* ikony nigdy się nie zgniatają… */
  width: 44px; height: 44px;      /* …i zawsze mają 44x44 (cel dotykowy) */
  border-radius: var(--r-pill);
  background: transparent; border: 0; color: var(--c-ink);
}
.header__menu-btn:hover, .header__icon:hover { background: var(--c-bg-2); }
/* Marka: jedyny element, który wolno skracać, gdy brakuje miejsca */
.brand {
  display: flex; align-items: center; gap: 0.5rem;
  margin-inline: auto; min-width: 0; overflow: hidden;
}
.brand__mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand__name {
  font-family: var(--font-head); font-size: clamp(1rem, 4.4vw, 1.32rem); font-weight: 600;
  letter-spacing: 0.5px; color: var(--c-burgund);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.header__actions { display: flex; align-items: center; gap: 0.25rem; flex: 0 0 auto; }
/* Na mobile ikona lupy jest zbędna — pełne pole wyszukiwania jest tuż pod paskiem.
   Odzyskane 44px decydują o tym, że pasek mieści się na 390px. */
#searchIconLink { display: none; }

/* Układ paska na MOBILE (do 959px):
   [Logo tekst] [♡ ulubione] [🛒 koszyk] ............ [☰ menu w prawym rogu] */
@media (max-width: 959px) {
  .header__bar .brand { margin-inline: 0; order: 1; }
  .header__actions   { order: 2; }
  .header__menu-btn  { order: 3; margin-left: auto; } /* hamburger dociśnięty do prawej */
}
.cart-count {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: var(--r-pill); background: var(--c-burgund);
  color: #fff; font-size: 0.66rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.header__icon { position: relative; }

/* Search row (mobile) */
.header__search { padding-bottom: 0.7rem; }
.search {
  display: flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-pill);
  padding: 0 0.4rem 0 0.9rem; height: 44px;
}
.search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: var(--step-0); color: var(--c-ink); min-width: 0;
}
.search button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 0; border-radius: var(--r-pill);
  background: var(--c-burgund); color: #fff;
}

/* Desktop nav — hidden on mobile */
.nav-desktop { display: none; }

/* ---------- MOBILE DRAWER ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(44, 35, 32, 0.45);
  opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 90;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; height: 100%; width: min(86vw, 360px);
  background: var(--c-surface); z-index: 100; transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
  box-shadow: var(--sh-3);
}
.drawer.open { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--c-line);
}
.drawer__title { font-family: var(--font-head); font-size: 1.3rem; color: var(--c-burgund); }
.drawer__body { overflow-y: auto; padding: 0.5rem 0.5rem 2rem; }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.95rem 1rem; border-radius: var(--r-md); font-weight: 600;
}
.drawer__link:hover { background: var(--c-bg-2); }
.drawer__section-label {
  padding: 1.2rem 1rem 0.4rem; font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-ink-mute);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(224,112,143,0.38), transparent 60%),
    radial-gradient(120% 90% at 10% 90%, rgba(163,18,63,0.14), transparent 55%),
    linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 100%);
}
.hero__inner { padding-block: var(--space-6) var(--space-6); text-align: center; }
.hero h1 { color: var(--c-ink); margin-bottom: 0.5rem; }
.hero h1 em { font-style: italic; color: var(--c-burgund); }
.hero__lead { color: var(--c-ink-soft); max-width: 42ch; margin: 0 auto 1.6rem; font-size: var(--step-1); }
.hero__cta { display: flex; flex-direction: column; gap: 0.75rem; max-width: 320px; margin: 0 auto; }
.hero__trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem;
  margin-top: 1.75rem; color: var(--c-ink-soft); font-size: var(--step--1);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__art {
  position: relative;
  margin: 2rem auto 0; max-width: 460px; border-radius: var(--r-xl);
  box-shadow: var(--sh-3); overflow: hidden; aspect-ratio: 4/3;
}
/* Realne medium (zdjęcie/wideo z Customizera) wypełnia kadr banera */
.hero__art .hero__media,
.hero__art img, .hero__art video, .hero__art svg {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Delikatna poświata — utrzymuje czytelność tekstu na dowolnym medium */
.hero__art-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(43,31,35,0) 40%, rgba(43,31,35,0.28) 100%);
}

/* ============================================================
   CATEGORY TILES (1 kolumna mobile)
   ============================================================ */
.tiles { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.tile {
  position: relative; display: block; border-radius: var(--r-lg);
  overflow: hidden; background: var(--c-surface); box-shadow: var(--sh-1);
  border: 1px solid var(--c-line); transition: box-shadow .2s ease, transform .2s ease;
}
.tile:hover { box-shadow: var(--sh-3); transform: translateY(-2px); }
.tile__media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.tile__media img, .tile__media svg { width: 100%; height: 100%; object-fit: cover; }
.tile__body { padding: 1.1rem 1.2rem 1.3rem; }
.tile__title { font-size: var(--step-2); margin: 0 0 0.25rem; color: var(--c-ink); }
.tile__desc { margin: 0 0 0.7rem; color: var(--c-ink-soft); font-size: var(--step-0); }
.tile__cta {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700;
  color: var(--acc, var(--c-burgund)); font-size: var(--step-0);
}
.tile__cta svg { transition: transform .2s ease; }
.tile:hover .tile__cta svg { transform: translateX(4px); }
.tile__badge { position: absolute; top: 12px; left: 12px; }

/* ============================================================
   PRODUCT CARD (1 kolumna mobile, duża)
   ============================================================ */
.products-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.pcard {
  display: flex; flex-direction: column; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-1); transition: box-shadow .2s ease, transform .2s ease;
}
.pcard:hover { box-shadow: var(--sh-3); transform: translateY(-3px); }
.pcard__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--c-bg-2); }
.pcard__media img, .pcard__media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pcard__fav {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px;
  border-radius: var(--r-pill); background: rgba(255,255,255,0.92); border: 0;
  display: flex; align-items: center; justify-content: center; color: var(--c-ink-soft);
  box-shadow: var(--sh-1);
}
.pcard__fav.is-active { color: var(--c-burgund); }
.pcard__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.pcard__cat { font-size: var(--step--1); color: var(--c-zloto); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.pcard__title { font-size: var(--step-1); margin: 0.25rem 0 0.5rem; color: var(--c-ink); line-height: 1.2; }
.pcard__title a:hover { color: var(--c-burgund); }
.pcard__benefits { list-style: none; padding: 0; margin: 0 0 0.85rem; display: flex; flex-direction: column; gap: 0.28rem; }
.pcard__benefits li { display: flex; gap: 0.45rem; font-size: var(--step--1); color: var(--c-ink-soft); }
.pcard__benefits li::before { content: "✓"; color: var(--c-zloto); font-weight: 700; }
.pcard__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; }
.price { display: flex; align-items: baseline; gap: 0.5rem; }
.price__now { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--c-ink); }
.price__old { font-size: var(--step--1); color: var(--c-ink-mute); text-decoration: line-through; }
.pcard__actions { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.pcard__actions .btn { flex: 1; }

/* Rail — poziomy scroll na mobile dla wyróżnionych sekcji */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.trust__item {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: 1.1rem; text-align: center;
}
.trust__item .ic { color: var(--c-burgund); margin-bottom: 0.5rem; display: inline-flex; }
.trust__item strong { display: block; font-size: var(--step-0); }
.trust__item span { font-size: var(--step--1); color: var(--c-ink-soft); }

/* ============================================================
   BANNER / SPLIT (Dla par, Zestawy)
   ============================================================ */
.splash {
  border-radius: var(--r-xl); overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--c-sliwka), var(--c-burgund));
  color: #fff; padding: 2.2rem 1.6rem; text-align: center;
}
.splash h2 { color: #fff; }
.splash p { color: rgba(255,255,255,0.86); max-width: 44ch; margin-inline: auto; }
.splash .btn--light { margin-top: 0.6rem; }
.splash--gold { background: linear-gradient(135deg, var(--c-zloto), #8f6c34); }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-xl); padding: 2rem 1.4rem; text-align: center;
}
.newsletter__form { display: flex; flex-direction: column; gap: 0.6rem; max-width: 420px; margin: 1.1rem auto 0; }
.field {
  width: 100%; min-height: 48px; padding: 0 1rem; border: 1px solid var(--c-line);
  border-radius: var(--r-md); background: #fff; font-family: inherit; font-size: var(--step-0); color: var(--c-ink);
}
.field:focus { outline: 0; border-color: var(--c-burgund); box-shadow: 0 0 0 3px rgba(124,43,59,0.12); }

/* ============================================================
   FAQ (accordion)
   ============================================================ */
.faq { max-width: 760px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__q {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 1.1rem 0; font-size: var(--step-1); font-weight: 600; color: var(--c-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-head);
}
.faq__q .plus { flex: 0 0 auto; color: var(--c-burgund); transition: transform .2s ease; font-size: 1.4rem; line-height: 1; }
.faq__item.open .plus { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--c-ink-soft); }
.faq__a > div { padding-bottom: 1.1rem; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: var(--step--1); color: var(--c-ink-mute); padding-block: 1rem 0; }
.crumbs a:hover { color: var(--c-burgund); }
.crumbs .sep { color: var(--c-line); }

/* ============================================================
   PDP — strona produktu
   ============================================================ */
.pdp { display: grid; gap: 1.5rem; }
.gallery__main { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1/1; background: var(--c-bg-2); box-shadow: var(--sh-1); }
.gallery__main img, .gallery__main svg { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  flex: 0 0 74px; width: 74px; height: 74px; border-radius: var(--r-sm); overflow: hidden;
  border: 2px solid transparent; background: var(--c-bg-2); padding: 0;
}
.gallery__thumb.active { border-color: var(--c-burgund); }
.gallery__thumb img, .gallery__thumb svg { width: 100%; height: 100%; object-fit: cover; }
.pdp__badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.pdp h1 { font-size: var(--step-3); margin-bottom: 0.4rem; }
.pdp__price { margin: 0.6rem 0 1rem; }
.pdp__price .price__now { font-size: 2rem; }
.pdp__lead { color: var(--c-ink-soft); }
.pdp__benefits { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.5rem; }
.pdp__benefits li { display: flex; gap: 0.6rem; align-items: flex-start; }
.pdp__benefits li .ic { color: var(--c-zloto); flex: 0 0 auto; margin-top: 2px; }
.specs { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.specs th, .specs td { text-align: left; padding: 0.7rem 0; border-bottom: 1px solid var(--c-line); font-size: var(--step-0); }
.specs th { color: var(--c-ink-soft); font-weight: 600; width: 45%; }
.pdp__panel { background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 1rem 1.1rem; margin-top: 1rem; }
.pdp__panel h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.pdp__ship { display: flex; gap: 0.7rem; align-items: center; color: var(--c-ink-soft); font-size: var(--step--1); }

/* Sticky add-to-cart (mobile) */
.sticky-cart {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-line); padding: 0.7rem 20px calc(0.7rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 0.8rem; transform: translateY(120%); transition: transform .3s ease;
}
.sticky-cart.show { transform: translateY(0); }
.sticky-cart .price__now { font-size: 1.3rem; }
.sticky-cart .btn { flex: 1; }

/* ============================================================
   CART
   ============================================================ */
.cart-layout { display: grid; gap: 1.5rem; }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr; gap: 1rem; padding: 1rem 0;
  border-bottom: 1px solid var(--c-line);
}
.cart-item__media { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1; background: var(--c-bg-2); }
.cart-item__title { font-family: var(--font-head); font-size: var(--step-1); }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.4rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 36px; height: 36px; border: 0; background: #fff; font-size: 1.1rem; color: var(--c-ink); }
.qty span { min-width: 34px; text-align: center; font-weight: 600; }
.link-remove { background: none; border: 0; color: var(--c-ink-mute); font-size: var(--step--1); text-decoration: underline; padding: 0; }
.summary { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 1.3rem; box-shadow: var(--sh-1); }
.summary__row { display: flex; justify-content: space-between; margin-bottom: 0.6rem; }
.summary__row--total { font-size: var(--step-1); font-weight: 700; border-top: 1px solid var(--c-line); padding-top: 0.8rem; margin-top: 0.4rem; }
.legal-note {
  display: flex; gap: 0.6rem; background: var(--c-surface-2); border: 1px dashed var(--c-roz);
  border-radius: var(--r-md); padding: 0.9rem 1rem; font-size: var(--step--1); color: var(--c-ink-soft); margin-top: 1rem;
}
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state .ic { color: var(--c-roz); margin-bottom: 0.8rem; }

/* ============================================================
   CONTENT PAGES (O nas, FAQ, legal)
   ============================================================ */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.2rem; color: var(--c-ink-soft); }
.prose li { margin-bottom: 0.4rem; }
.callout { background: var(--c-surface-2); border-left: 3px solid var(--c-zloto); border-radius: var(--r-sm); padding: 1rem 1.2rem; margin: 1.2rem 0; }
.page-hero { text-align: center; padding-block: var(--space-6) var(--space-5); background: linear-gradient(180deg, var(--c-bg-2), var(--c-bg)); }
.page-hero p { color: var(--c-ink-soft); max-width: 52ch; margin-inline: auto; }

/* Contact / form grid */
.form-grid { display: grid; gap: 0.9rem; max-width: 560px; }
.form-grid label { font-size: var(--step--1); font-weight: 600; color: var(--c-ink-soft); display: block; margin-bottom: 0.3rem; }
textarea.field { min-height: 130px; padding: 0.8rem 1rem; resize: vertical; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--c-sliwka); color: #EEDDE7; margin-top: var(--space-6); padding-bottom: calc(var(--bottomnav-h) + 1rem); }
.footer a { color: #EEDDE7; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; gap: 1.6rem; padding-block: var(--space-6) var(--space-5); }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { color: rgba(238,221,231,0.75); font-size: var(--step--1); }
.footer__col h4 { color: #fff; font-family: var(--font-body); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer__col a { font-size: var(--step-0); opacity: 0.9; }
.footer__legal { border-top: 1px solid rgba(255,255,255,0.14); padding-block: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; font-size: var(--step--1); }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.age-chip { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.12); border-radius: var(--r-pill); padding: 0.2rem 0.7rem; font-weight: 700; }

/* ============================================================
   BOTTOM NAV (mobile)
   ============================================================ */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: var(--bottomnav-h); font-size: 0.66rem; color: var(--c-ink-soft); position: relative;
}
.bottomnav a.active { color: var(--c-burgund); }
.bottomnav a .cart-count { top: 6px; right: calc(50% - 22px); }

/* ============================================================
   AGE GATE
   ============================================================ */
.agegate {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(124,43,59,0.35), transparent 60%),
    rgba(44, 35, 32, 0.75);
  backdrop-filter: blur(10px);
}
.agegate[hidden] { display: none; }
.agegate__card {
  background: var(--c-surface); border-radius: var(--r-xl); box-shadow: var(--sh-3);
  max-width: 420px; width: 100%; padding: 2.2rem 1.8rem; text-align: center;
  border: 1px solid var(--c-line);
}
.agegate__mark { width: 54px; height: 54px; margin: 0 auto 1rem; }
.agegate h2 { font-size: var(--step-2); }
.agegate p { color: var(--c-ink-soft); font-size: var(--step-0); }
.agegate__actions { display: grid; gap: 0.6rem; margin-top: 1.4rem; }
.agegate__fine { font-size: 0.72rem; color: var(--c-ink-mute); margin-top: 1rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bottomnav-h) + 12px); transform: translate(-50%, 20px);
  background: var(--c-ink); color: #fff; padding: 0.8rem 1.2rem; border-radius: var(--r-pill);
  font-size: var(--step--1); font-weight: 600; box-shadow: var(--sh-3); z-index: 150;
  opacity: 0; visibility: hidden; transition: all .25s ease; display: flex; align-items: center; gap: 0.5rem;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Filter/sort bar */
.toolbar { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.4rem; scrollbar-width: none; margin-bottom: 1.2rem; }
.toolbar::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink-soft);
  padding: 0.5rem 1rem; border-radius: var(--r-pill); font-size: var(--step--1); font-weight: 600;
}
.chip.active { background: var(--c-burgund); color: #fff; border-color: var(--c-burgund); }
.result-count { color: var(--c-ink-soft); font-size: var(--step--1); margin-bottom: 1rem; }

/* Cookie banner */
.cookiebar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottomnav-h) + 12px); z-index: 120;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 1.1rem 1.2rem;
}
.cookiebar[hidden] { display: none; }
.cookiebar p { font-size: var(--step--1); color: var(--c-ink-soft); margin-bottom: 0.8rem; }
.cookiebar__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookiebar__actions .btn { flex: 1; min-width: 120px; }

/* Utility */
.stack-lg > * + * { margin-top: var(--space-5); }
.hide { display: none !important; }
.pill-info { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: 0.4rem 0.9rem; font-size: var(--step--1); color: var(--c-ink-soft); }

/* ============================================================
   RESPONSIVE — tablet & desktop (progresywne wzbogacenie)
   ============================================================ */
@media (min-width: 600px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .rail { grid-auto-columns: 46%; }
  .hero__cta { flex-direction: row; max-width: none; justify-content: center; }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .cart-layout { grid-template-columns: 1.6fr 1fr; align-items: start; }
}

@media (min-width: 960px) {
  :root { --header-h: 74px; }
  .header__menu-btn { display: none; }
  .header__search { display: none; }
  #searchIconLink { display: inline-flex; } /* na desktopie pole wyszukiwania znika, więc lupa wraca */
  .nav-desktop { display: flex; align-items: center; gap: 0.3rem; }
  .nav-desktop a { padding: 0.6rem 0.9rem; border-radius: var(--r-md); font-weight: 600; font-size: var(--step-0); }
  .nav-desktop a:hover { background: var(--c-bg-2); color: var(--c-burgund); }
  .brand { margin-inline: 0; }
  .header__inline-search { display: flex; flex: 1; max-width: 320px; margin-inline: auto; }
  .bottomnav { display: none; }
  .footer { padding-bottom: 0; }
  .sticky-cart { display: none; }
  .cookiebar { left: auto; right: 20px; bottom: 20px; max-width: 420px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .rail { display: grid; grid-auto-flow: initial; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .pdp { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  .pdp__sticky-col { position: sticky; top: calc(var(--header-h) + 20px); }
  .hero__inner { padding-block: var(--space-7); }
  .hero__art { max-width: 620px; }
  .section { padding-block: var(--space-7); }
}

@media (min-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

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