/* ============================================================================
   Vanilla Dream — design system (bez frameworków, standardy W3C)
   Struktura: 1) tokeny  2) baza  3) komponenty  4) sekcje  5) animacje  6) RWD
   ============================================================================ */

/* ---------- 1. TOKENY — paleta „vanilla" marki + dwa motywy ---------- */
:root {
  color-scheme: light;

  --v50: #FDFBF7; --v100: #F7F2E9; --v200: #EBE0D0; --v300: #DEC9AF;
  --v400: #C8A986; --v500: #B08962; --v600: #8F6A47;
  --v800: #3D3126; --v900: #241C15; --v950: #16110D;

  /* motyw jasny (domyślny) */
  --bg: var(--v50);
  --bg-soft: var(--v100);
  --bg-card: var(--v50);
  --bg-elevated: var(--v100);
  --ink: var(--v900);
  --ink-soft: rgba(61, 49, 38, .85);
  --ink-mute: var(--v600);
  --ink-faint: var(--v500);
  --accent: var(--v600);
  --accent-strong: var(--v900);
  --accent-strong-hover: var(--v800);
  --accent-strong-ink: var(--v50);
  --line: rgba(235, 224, 208, .9);
  --line-strong: var(--v300);
  --glass: rgba(253, 251, 247, .85);
  --glow: radial-gradient(circle, rgba(222, 201, 175, .45) 0%, rgba(253, 251, 247, 0) 70%);
  --shadow-card: 0 18px 40px -18px rgba(36, 28, 21, .25);
  --shadow-pop: 0 30px 70px -25px rgba(36, 28, 21, .35);
  --ok: #047857;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;

  --radius-lg: 2rem;
  --radius-xl: 2.5rem;
  --radius-pill: 999px;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);

  --ease-candle: cubic-bezier(.4, 0, .2, 1);
}

/* motyw ciemny — systemowy oraz wymuszony przełącznikiem */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--v950);
    --bg-soft: #1D1712;
    --bg-card: var(--v900);
    --bg-elevated: #211A14;
    --ink: #F7F2E9;
    --ink-soft: rgba(247, 242, 233, .85);
    --ink-mute: var(--v400);
    --ink-faint: var(--v500);
    --accent: var(--v400);
    --accent-strong: var(--v200);
    --accent-strong-hover: var(--v100);
    --accent-strong-ink: var(--v950);
    --line: rgba(61, 49, 38, .8);
    --line-strong: var(--v800);
    --glass: rgba(22, 17, 13, .88);
    --glow: radial-gradient(circle, rgba(176, 137, 98, .22) 0%, rgba(22, 17, 13, 0) 70%);
    --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, .6);
    --shadow-pop: 0 30px 70px -25px rgba(0, 0, 0, .75);
    --ok: #34d399;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--v950);
  --bg-soft: #1D1712;
  --bg-card: var(--v900);
  --bg-elevated: #211A14;
  --ink: #F7F2E9;
  --ink-soft: rgba(247, 242, 233, .85);
  --ink-mute: var(--v400);
  --ink-faint: var(--v500);
  --accent: var(--v400);
  --accent-strong: var(--v200);
  --accent-strong-hover: var(--v100);
  --accent-strong-ink: var(--v950);
  --line: rgba(61, 49, 38, .8);
  --line-strong: var(--v800);
  --glass: rgba(22, 17, 13, .88);
  --glow: radial-gradient(circle, rgba(176, 137, 98, .22) 0%, rgba(22, 17, 13, 0) 70%);
  --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, .6);
  --shadow-pop: 0 30px 70px -25px rgba(0, 0, 0, .75);
  --ok: #34d399;
}

/* ---------- 2. BAZA ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
input {
  font: inherit;
  color: inherit;
}
strong { font-weight: 600; }
em.accent { font-style: italic; color: var(--accent); }

::selection { background: var(--v200); color: var(--v900); }
:root[data-theme="dark"] ::selection { background: var(--v800); color: var(--v50); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) ::selection { background: var(--v800); color: var(--v50); }
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1.2rem;
  background: var(--accent-strong);
  color: var(--accent-strong-ink);
  border-radius: var(--radius-pill);
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* Sticky header zasłaniał górę sekcji przy skoku z menu — zapas na jego wysokość */
section[id] { scroll-margin-top: 5.5rem; }

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

/* typowe klocki */
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-top: .5rem; }
.section-desc { color: var(--ink-soft); font-size: .9rem; max-width: 36rem; margin-top: .75rem; }

/* przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.8rem;
  border-radius: var(--radius-pill);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease-candle), transform .25s var(--ease-candle), border-color .25s ease;
}
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--accent-strong); color: var(--accent-strong-ink); }
.btn-solid:hover { background: var(--accent-strong-hover); }
.btn-ghost {
  background: var(--bg-soft);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-elevated); }
.btn .icon { width: 1rem; height: 1rem; }

.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- 3. SEKCJE: pasek górny + nawigacja ---------- */
.topbar {
  background: var(--v900);
  color: var(--v100);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: .5rem 1rem;
  line-height: 1.4;
}
:root[data-theme="dark"] .topbar { background: #000; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  height: 4.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
}
.brand-mark { width: 2.6rem; height: 2.6rem; color: var(--accent); transition: transform .5s var(--ease-candle); }
.brand:hover .brand-mark { transform: rotate(6deg); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
}
.brand-tagline {
  display: block;
  font-size: .55rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: .25rem;
  white-space: nowrap;
}
@media (max-width: 639.98px) {
  .header-row {
    flex-wrap: wrap;
    height: auto;
    row-gap: .4rem;
    padding-block: .5rem;
  }
  .header-left { flex-basis: 100%; }
  .header-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .brand-name { white-space: normal; }
  .brand-tagline { display: none; }
  section[id] { scroll-margin-top: 7rem; }
}

.main-nav { display: none; flex-wrap: wrap; gap: 1.5rem; font-size: .875rem; font-weight: 500; color: var(--ink-soft); }
.main-nav a { transition: color .2s ease; padding: .25rem 0; white-space: nowrap; }
.main-nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: .4rem; }
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .8rem;
  /* min-height wyrównuje kotwice (inny domyślny line-height niz button) do pilli jezyka/motywu */
  min-height: 2.5rem;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  transition: background-color .2s ease;
}
.action-btn:hover { background: var(--bg-elevated); }
.icon-btn { padding: .55rem; }

.cart-btn {
  background: var(--accent-strong);
  color: var(--accent-strong-ink);
  border-color: transparent;
}
.cart-btn:hover { background: var(--accent-strong-hover); }
.cart-count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 .25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--v400);
  color: var(--v900);
  font-size: .7rem;
  font-weight: 700;
}

/* języki */
.lang-wrap { position: relative; }
.lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  width: 8.5rem;
  padding: .35rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  z-index: 50;
}
.lang-dropdown[hidden] { display: none; }
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .5rem .75rem;
  font-size: .78rem;
  border-radius: .75rem;
  text-align: left;
}
.lang-option:hover { background: var(--bg-soft); }
.lang-option .lang-native { font-size: .66rem; color: var(--ink-faint); }
.lang-option[aria-checked="true"] { background: var(--bg-elevated); font-weight: 700; }

/* menu mobilne */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 1.5rem var(--gutter) 1.75rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: .55rem 0;
  font-size: 1rem;
  font-weight: 500;
}
.mobile-menu .social-row {
  display: flex;
  gap: 1.25rem;
  padding-top: 1rem;
  margin-top: .75rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink-mute);
}
.mobile-menu .social-row a { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem 0; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 3rem 0 4rem; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: 25%;
  right: -6rem;
  width: 30rem;
  height: 30rem;
  background: var(--glow);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero { padding: 4rem 0 6rem; }
  .hero-grid { grid-template-columns: repeat(12, 1fr); gap: 2rem; }
  .hero-copy { grid-column: span 6; }
  .hero-stage { grid-column: span 6; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-badge .icon { width: .85rem; height: .85rem; color: var(--accent); }

.hero-title {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  margin-top: 1.25rem;
}
.hero-desc {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: clamp(.9rem, 2vw, 1.1rem);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.75rem;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 30rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.trust-row b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600;
  line-height: 1;
}
.trust-row span {
  display: block;
  margin-top: .3rem;
  font-size: .7rem;
  color: var(--ink-mute);
  line-height: 1.35;
}

/* kompozycja produktowa (hero + karty) */
.hero-stage { position: relative; min-width: 0; }
.art-frame {
  position: relative;
  margin-inline: auto;
  max-width: 26rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-pop);
  aspect-ratio: 4 / 5;
}
@media (min-width: 640px) { .art-frame { max-width: 28rem; } }

/* scenerie kart produktów */
.scene { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(255, 252, 245, .85), transparent 60%);
  pointer-events: none;
}
.scene-morning { background: linear-gradient(135deg, #F7EFE4, #EADBC8 55%, #D9C3A8); }
.scene-hygge { background: linear-gradient(135deg, #4A382B, #6E533E 55%, #9B7859); }
.scene-spa { background: linear-gradient(135deg, #EFECE6, #DFD8CE 55%, #C8BEB0); }

/* słoik apteczny */
.art-stack { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.art-jar {
  position: relative;
  width: 11rem;
  height: 13rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: .8rem .8rem 1.4rem 1.4rem;
  background: linear-gradient(90deg, #1E1712, #34271E 50%, #1A130F);
  border-inline: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 25px 45px -12px rgba(36, 28, 21, .55);
}
.art-jar::before {
  content: "";
  position: absolute;
  top: -1.1rem;
  left: -2%;
  width: 104%;
  height: 1.4rem;
  border-radius: .45rem .45rem 0 0;
  background: linear-gradient(90deg, #181818, #2D2D2D 50%, #141414);
  border-bottom: 2px solid rgba(220, 220, 215, .8);
}
.art-jar::after {
  content: "";
  position: absolute;
  inset: 1rem auto 1rem .75rem;
  width: .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  filter: blur(2px);
}
.art-label {
  width: 8rem;
  background: #FAF7F2;
  border: 1px solid #d6cfc4;
  border-radius: 2px;
  padding: .7rem .6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .25rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.06);
}
.art-label .brand-mark { width: 2.2rem; height: 2.2rem; color: #5A4636; margin: 0 auto; }
.art-label b { font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: #2C221A; line-height: 1; }
.art-label span { font-size: .34rem; letter-spacing: .16em; text-transform: uppercase; color: #6B5645; }

.art-tray {
  width: 16rem;
  height: 1.8rem;
  margin-top: -.5rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #F5E2B8, #DFC48E);
  border: 1px solid #FFF5DC;
  box-shadow: 0 18px 30px rgba(36, 28, 21, .3);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1.2rem;
}
@media (min-width: 640px) { .art-jar { width: 13rem; height: 15.5rem; } .art-tray { width: 19rem; } }

/* stokrotka - botaniczny motyw dekoracyjny tacy */
.daisy {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #FBF8F1;
  border: 1px solid #d6cfc4;
  box-shadow: 0 8px 16px rgba(36, 28, 21, .18);
}
.daisy .heart { border-radius: 999px; background: linear-gradient(135deg, #fcd34d, #f59e0b); box-shadow: inset 0 2px 4px rgba(0,0,0,.15); }
.daisy .petal { position: absolute; border-radius: 999px; }
.petal-cornflower { background: rgba(30, 27, 75, .75); }
.petal-marigold { background: rgba(245, 158, 11, .8); }
.art-tray .daisy { width: 3.6rem; height: 3.6rem; margin-top: -1.8rem; }
.art-tray .daisy .heart { width: 1.4rem; height: 1.4rem; }

/* podpis na kadrze hero */
.art-caption {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  z-index: 2;
  isolation: isolate; /* utrzymuje ::before (gradient) nad tłem sceny */
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .5rem;
  color: var(--v50);
}
.art-caption::before {
  content: "";
  position: absolute;
  inset: -3rem -1rem -1rem;
  background: linear-gradient(0deg, rgba(22, 17, 13, .8), transparent);
  pointer-events: none;
  z-index: -1;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.art-caption small {
  display: block;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--v200);
}
.art-caption b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; line-height: 1.2; }
.art-caption .pill {
  padding: .3rem .8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(253, 251, 247, .2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: .62rem;
  white-space: nowrap;
}

/* pływająca karta */
.float-card {
  position: absolute;
  left: -1.25rem;
  top: 1.5rem;
  z-index: 3;
  max-width: 14.5rem;
  padding: 1rem;
  border-radius: 1.5rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  display: none;
}
@media (min-width: 640px) { .float-card { display: block; } }
.float-card .row { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.float-card .row-icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.float-card .row-icon .icon { width: 1.1rem; height: 1.1rem; }
.float-card small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.float-card b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.1; }
.float-card p { font-size: .75rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- KOLEKCJA / KARTY PRODUKTÓW ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 1024px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.prod-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
@media (min-width: 640px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }

.prod-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s var(--ease-candle), box-shadow .35s var(--ease-candle);
}
@media (hover: hover) and (pointer: fine) {
  .prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
}
.prod-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
}
.product-photo,
.hero-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-info { display: flex; flex-direction: column; gap: .55rem; padding: 1.4rem; flex: 1; }
.prod-toprow { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.prod-badge {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  padding: .25rem .6rem;
  border-radius: var(--radius-pill);
}
.prod-price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.prod-name { font-size: 1.35rem; font-weight: 600; }
.prod-sub { font-size: .8rem; color: var(--ink-soft); line-height: 1.5; }
.prod-char { font-size: .72rem; color: var(--ink-mute); }
.prod-char b { color: var(--ink-faint); font-weight: 600; }
.prod-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .75rem; }
.prod-actions .btn { flex: 1; padding: .7rem 1rem; font-size: .8rem; }
.prod-actions .btn-details { flex: 0 0 auto; }

/* ---------- RYTUAŁ (ciemna sekcja) ---------- */
.ritual {
  background: var(--v900);
  color: var(--v100);
  padding: 4rem 0;
}
:root[data-theme="dark"] .ritual { background: #000; }
.ritual .section-title { color: var(--v50); }
.ritual .eyebrow { color: var(--v400); }
.ritual-intro { text-align: center; max-width: 42rem; margin: 0 auto 3.5rem; }
.ritual-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ritual-grid { grid-template-columns: repeat(3, 1fr); } }
.ritual-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: rgba(61, 49, 38, .6);
  border: 1px solid rgba(222, 201, 175, .2);
}
.ritual-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1.25rem;
}
.ritual-card h3 { font-family: var(--font-display); font-size: 1.6rem; color: var(--v400); margin-bottom: .6rem; }
.ritual-card p { font-size: .82rem; color: rgba(247, 242, 233, .85); line-height: 1.6; }

/* ---------- OPINIE ---------- */
.reviews-head { text-align: center; margin-bottom: 3rem; }
.stars { display: flex; justify-content: center; gap: .25rem; color: var(--v500); margin-bottom: .75rem; }
.stars .icon { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.reviews-photo {
  display: block;
  width: 100%;
  max-width: 56rem;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-xl);
}
.review-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.reviews-intro {
  max-width: 34rem;
  margin: .75rem auto 0;
  color: var(--ink-soft);
}

.review-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: .7rem;
}

.review-card blockquote {
  margin: 0;
  font-size: .85rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.65;
  flex: 1;
}
.review-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
}
.review-card footer b { font-weight: 600; }
.review-card footer span { font-size: .72rem; color: var(--ink-faint); }

/* ---------- SOCIAL + NEWSLETTER ---------- */
.social-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .social-grid { grid-template-columns: repeat(2, 1fr); gap: 3.5rem; } }
/* Oba buttony social równej szerokości (szerokość najszerszego) */
.social-btns {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  gap: .75rem;
  margin-top: 1.5rem;
}
.newsletter-card {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.newsletter-form { display: flex; flex-wrap: wrap; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: .9rem 1.3rem;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  font-size: .85rem;
}
.newsletter-form input[type="email"]::placeholder { color: var(--ink-faint); }
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--accent); }
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .72rem;
  color: var(--ink-mute);
  line-height: 1.5;
}
.consent-row input[type="checkbox"] {
  margin-top: .15rem;
  width: 1rem; height: 1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.newsletter-feedback { margin-top: .8rem; font-size: .75rem; font-weight: 600; color: var(--ok); }
.newsletter-feedback[hidden] { display: none; }

/* ---------- STOPKA ---------- */
.site-footer {
  background: var(--v900);
  color: var(--v300);
  padding: 3.5rem 0 2.5rem;
  font-size: .85rem;
}
:root[data-theme="dark"] .site-footer { background: #000; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--v800); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .08em; color: var(--v50); }
.footer-desc { max-width: 24rem; color: var(--v400); font-weight: 300; line-height: 1.7; margin-top: 1rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--v50);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; color: var(--v400); }
.footer-col a { transition: color .2s ease; }
.footer-col a:hover { color: var(--v100); }
.footer-social-row { display: flex; gap: .75rem; }
.footer-social-row a {
  width: 2.5rem; height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--v800);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, color .2s ease;
}
.footer-social-row a:hover { border-color: var(--v300); color: var(--v50); }
.footer-social-row .icon { width: 1rem; height: 1rem; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: .72rem;
  color: var(--v500);
  text-align: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }

/* ---------- SZUFLADA KOSZYKA ---------- */
.drawer[hidden] { display: none; }
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(36, 28, 21, .5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.drawer-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 51;
  width: min(100%, 26rem);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-left: 1px solid var(--line-strong);
  box-shadow: var(--shadow-pop);
  animation: drawer-in .3s var(--ease-candle);
}
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 1.5rem; font-weight: 600; }
.shipping-box {
  margin-top: 1rem;
  padding: .9rem;
  border-radius: 1rem;
  background: var(--bg-soft);
}
.shipping-box p { font-size: .72rem; font-weight: 500; color: var(--ink-soft); margin-bottom: .5rem; }
.shipping-box p strong { color: var(--ink); }
.shipping-box p.done { color: var(--ok); }
.shipping-bar { width: 100%; height: .5rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.shipping-bar > div {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--accent);
  transition: width .5s var(--ease-candle);
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-empty { text-align: center; padding: 4rem 1rem; }
.cart-empty .icon { width: 2.5rem; height: 2.5rem; margin: 0 auto 1rem; color: var(--ink-faint); }
.cart-empty b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
.cart-empty p { font-size: .75rem; color: var(--ink-mute); margin-top: .4rem; }
.cart-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem;
  border-radius: 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.cart-item-thumb {
  flex-shrink: 0;
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  background: var(--bg-elevated);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-body h4 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-body .unit { font-size: .7rem; color: var(--ink-mute); margin-top: .1rem; }
.qty-row { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.qty-btn {
  width: 1.5rem; height: 1.5rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  font-size: .8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--line); }
.qty-row output { font-size: .75rem; font-weight: 700; min-width: 1.25rem; text-align: center; }
.cart-item-total { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.drawer-foot {
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.subtotal-row { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; }
.subtotal-row output { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.eco-note { font-size: .7rem; color: var(--ink-mute); }
#checkout-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- MODAL PRODUKTU ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(36, 28, 21, .7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 42rem;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  animation: modal-in .3s var(--ease-candle);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: sticky;
  top: .75rem;
  float: right;
  margin: .75rem;
  z-index: 2;
  width: 2.5rem; height: 2.5rem;
  border-radius: 999px;
  background: var(--accent-strong);
  color: var(--accent-strong-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}
.modal-close:hover { background: var(--accent-strong-hover); }
.modal-body { clear: both; }
.modal-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
}
.modal-content { clear: both; padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.modal-content .toprow { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.modal-content h3 { font-size: 1.7rem; font-weight: 600; }
.modal-content .subtitle { font-size: .85rem; color: var(--ink-soft); }
.scent-pyramid { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem; }
.note-row { display: flex; gap: .75rem; font-size: .8rem; }
.note-row .note-label {
  flex-shrink: 0;
  width: 6.5rem;
  font-weight: 600;
  color: var(--ink-mute);
}
.note-row .note-value { color: var(--ink-soft); }
.modal-meta { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .74rem; color: var(--ink-mute); }
.modal-meta span { background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: .3rem .8rem; }
.modal-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.vessel-note { font-size: .76rem; color: var(--ink-mute); font-style: italic; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  transform: translateY(6rem);
  opacity: 0;
  transition: transform .3s var(--ease-candle), opacity .3s ease;
  pointer-events: none;
}
.toast.show { transform: none; opacity: 1; }
.toast-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 22rem;
  padding: .9rem 1.25rem;
  border-radius: 1.25rem;
  background: var(--v900);
  border: 1px solid var(--v800);
  color: var(--v50);
  font-size: .8rem;
  font-weight: 500;
  box-shadow: var(--shadow-pop);
}
.toast-inner .icon { color: var(--v400); }

/* ---------- 5. ANIMACJE ---------- */
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-1deg); opacity: .92; }
  50% { transform: scale(1.06) rotate(1.5deg); opacity: 1; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-flicker { animation: flicker 3s ease-in-out infinite alternate; }
.animate-float { animation: floaty 6s ease-in-out infinite; }

/* ujawnianie sekcji przy scrollu (IntersectionObserver dodaje .in-view) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--ease-candle); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 6. RWD: dopięcia mobilne ---------- */
@media (max-width: 639px) {
  .hero-title { font-size: 2rem; }
  .art-frame { width: 100%; max-width: 20rem; }
  .art-caption { flex-wrap: wrap; row-gap: .25rem; }
  .art-caption b { font-size: 1rem; }
  .toast { left: 1rem; right: 1rem; }
  .toast-inner { max-width: none; }
}
@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .mobile-menu-btn { display: none !important; }
}

/* ---------- Dopięcia layoutu (klasy zamiast atrybutów style — wymagane przez CSP) ---------- */
.header-left { display: flex; align-items: center; gap: .5rem; min-width: 0; }

/* Sprite ikon: ukrywany klasą, nie atrybutem style (CSP blokuje style="").
   Wzorzec 0×0 absolut zamiast display:none — bezpieczniejszy dla <use>. */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Lista prawna w stopce (pod ikonami social) */
.footer-extra-list { margin-top: 1rem; }

.icon-accent { color: var(--accent); }
.section-desc.center { margin-inline: auto; }
.newsletter-title { font-size: 1.7rem; }
.drawer-shipping-wrap { padding: 1.5rem 1.5rem 0; }
.consent-row { flex-basis: 100%; }

/* pozycje płatków na stokrotce hero */
.art-tray .daisy .p1 { width: .35rem; height: .55rem; top: .5rem; left: .9rem; transform: rotate(45deg); }
.art-tray .daisy .p2 { width: .35rem; height: .5rem; bottom: .7rem; right: .7rem; transform: rotate(-12deg); }
.art-tray .daisy .p3 { width: .25rem; height: .5rem; bottom: .5rem; left: .9rem; transform: rotate(12deg); }

/* ikona przełącznika motywu: księżyc w jasnym, słońce w ciemnym */
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-dark { display: block; }
  :root:not([data-theme="light"]) .theme-icon-light { display: none; }
}

/* Blokada scrolla pod otwartym dialogiem */
body.no-scroll { overflow: hidden; }

/* Warianty wizualiów kart produktów */
.art-tray.two { width: 15rem; justify-content: space-around; padding: 0 1.5rem; }
.art-tray.tray-combo { height: 2.4rem; align-items: center; gap: 1.2rem; padding: 0 1.6rem; }
.art-jar.mini { width: 4.2rem; height: 5.5rem; margin-top: -2rem; }
.art-jar.mini::before { top: -.7rem; height: .9rem; }
.art-jar.mini .art-label { width: 3rem; padding: .3rem .2rem; }
.art-jar.mini .art-label b { font-size: .5rem; }
.art-tray.tray-combo .daisy { width: 2.4rem; height: 2.4rem; margin-top: -1.2rem; }
.art-tray.tray-combo .daisy .heart { width: 1rem; height: 1rem; }
.prod-visual .cube .ca { top: .7rem; left: .7rem; transform: rotate(45deg); }
.prod-visual .cube .cb { bottom: .9rem; right: .7rem; transform: rotate(-12deg); }

/* ---------- Strona polityki prywatności ---------- */
.legal { max-width: 46rem; margin-inline: auto; padding: 3rem var(--gutter) 5rem; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal p, .legal li { font-size: .9rem; color: var(--ink-soft); margin-top: .6rem; }
.legal ul { padding-left: 1.25rem; }
.legal-back { margin-top: 2.5rem; }
.legal-back a { color: var(--accent); font-weight: 600; }
.legal .todo {
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 1rem;
  padding: .9rem 1.1rem;
  margin-top: 1.5rem;
  font-size: .8rem;
  color: var(--ink-mute);
}

.story-photo {
  display: block;
  width: 100%;
  object-fit: cover;
}

.hero-photo-scene { position: absolute; inset: 0; }
.hero-photo-scene::before { content: none; }

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: center;
}

.story-copy {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.story-copy h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.story-figure { margin: 0; }
.story-figure figcaption {
  margin-top: .65rem;
  font-size: .875rem;
}

.story-photo {
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: var(--radius-xl);
}

@media (min-width: 640px) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .story-gift .story-copy { grid-row: 1; }
}
