/* Parfemi Veloura: izgled stranice.
   Boje i fontovi su na vrhu (u :root). Motiv cijele stranice je mirisna piramida:
   svijetlo gore (gornje note), srednji ton u sredini, tamnoplavo na dnu (bazne note). */

/* ---------- Fontovi (na našem serveru, s č ć đ š ž) ---------- */
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/bodoni-moda-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/bodoni-moda-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/bodoni-moda-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/bodoni-moda-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/hanken-grotesk-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/hanken-grotesk-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/hanken-grotesk-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/hanken-grotesk-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/hanken-grotesk-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/hanken-grotesk-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  /* Boje */
  --white: #ffffff;
  --mist: #f3f6fb;      /* gornji sloj: najsvjetlija plava */
  --ice: #e3eaf6;       /* srednji sloj */
  --ice-2: #c9d6ee;
  --field: #b9c7e2;     /* rubovi polja forme */
  --ink: #0a1a3a;       /* tamnoplava: naslovi i bazni sloj */
  --text: #1c2843;
  --muted: #4f5c78;     /* sekundarni tekst (kontrast 6,6:1 na bijeloj) */
  --blue: #1b3fa8;      /* dugmad i akcija */
  --blue-press: #142f84;
  --blue-soft: #dfe7f8;
  --on-ink: #ffffff;
  --on-ink-muted: #b8c6e6;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #17663d;
  --ok-soft: #e5f4ea;
  --warn: #7a4b00;
  --warn-soft: #fff4dc;

  /* Tipografija */
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;

  /* Razmaci i oblici */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1360px;
  --radius: 2px;
  --header-h: 68px;

  /* Pokret */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Slojevi */
  --z-header: 40;
  --z-sheet: 90;
  --z-drawer: 100;
  --z-toast: 120;

  color-scheme: light;
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--text); font: 400 17px/1.6 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, [role="button"], label { touch-action: manipulation; }
input, select, textarea { font-size: 16px; }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.num, .price { font-variant-numeric: tabular-nums lining-nums; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }


/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--radius);
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-secondary { background: var(--blue-soft); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink); padding: 0 8px; text-decoration: underline; text-underline-offset: 4px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--blue-press); }
  .btn-ink:hover { background: #142a59; }
  .btn-secondary:hover { background: var(--ice-2); }
  .btn-quiet:hover { color: var(--blue); }
  a:hover { color: var(--blue-press); }
}
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: var(--radius); }
.icon-btn svg { width: 24px; height: 24px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--mist); } }

/* ---------- Zaglavlje ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--white); transition: background-color 200ms ease; }
.site-header.scrolled { background: rgba(255, 255, 255, 0.97); }
.site-header.scrolled::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: var(--mist); opacity: .9; pointer-events: none; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-word { font: 500 30px/1 var(--display); letter-spacing: -0.01em; }
.brand-sub { font: 500 14px/1 var(--sans); color: var(--muted); }
.nav { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a[aria-current="true"] { color: var(--blue); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--blue); } }
.header-actions { display: flex; align-items: center; gap: 4px; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--blue); color: #fff; font: 600 12px/20px var(--sans); text-align: center; }
.cart-count[data-empty="true"] { display: none; }
.cart-count.bump { animation: bump 300ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.25); } }
.menu-btn { display: none; }

@media (max-width: 1023px) {
  .menu-btn { display: inline-grid; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-header); flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; background: var(--white);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
  .nav.open { transform: none; opacity: 1; visibility: visible; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  .nav a { min-height: 52px; font-size: 20px; font-family: var(--display); padding: 0; border-bottom: 0; }
  .nav.open::after { content: ''; position: fixed; left: 0; right: 0; top: 100%; height: 100vh; background: rgba(10, 26, 58, .3); }
  .brand-sub { display: none; }
}

/* ---------- Prvi ekran: istaknuti parfemi kao režirana reklama ---------- */
/* Studio (tamni vrh, sjajni sivi pod) i red bočica u luku; pri skrolanju izabrana bočica dobije svoju scenu u jakoj boji parfema.
   --scene je boja scene izabranog parfema (scripts/izvor/istaknuti.json, polje "scena"). */
@property --scene { syntax: '<color>'; inherits: true; initial-value: #cc1f8f; }
.showcase { --scene: #cc1f8f; --H: calc(100svh - var(--header-h)); position: relative; background: #050608; color: #fff; isolation: isolate; transition: --scene 700ms var(--ease-out); }
.show-pin { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; overflow: hidden; isolation: isolate; }
.showcase :focus-visible { outline-color: #fff; }

.show-bg, .show-bg span { position: absolute; inset: 0; pointer-events: none; }
.show-bg { z-index: -2; }
/* Pozadina i okvir pokrivaju samo prvi ekran (redove mreže 1 do 4); bez zakačenja priča je peti red ispod. */
.show-bg, .show-hud { grid-area: 1 / 1 / 5 / 2; }
.bg-studio { background: linear-gradient(180deg, #030405 0%, #08090c 30%, #1f2228 56%, #3d4148 76%, #545860 100%); }
.bg-glow { background: radial-gradient(46% 30% at 50% 103%, color-mix(in oklab, var(--scene) 88%, #fff 12%) 0%, color-mix(in oklab, var(--scene) 38%, transparent) 48%, transparent 76%); }
.bg-scene { opacity: 0; background:
  linear-gradient(90deg, rgba(6, 4, 10, .5) 0%, rgba(6, 4, 10, .2) 42%, transparent 62%),
  radial-gradient(70% 22% at 62% 74%, color-mix(in oklab, var(--scene) 55%, #fff 45%) 0%, transparent 70%),
  linear-gradient(180deg, #060509 0%, color-mix(in oklab, var(--scene) 45%, #060509) 20%, var(--scene) 46%, color-mix(in oklab, var(--scene) 78%, #fff 22%) 72%, color-mix(in oklab, var(--scene) 70%, #000) 88%, color-mix(in oklab, var(--scene) 35%, #000) 100%); }

/* Tanka linija napretka i uglovi kadra, kao u videu */
.show-hud { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.hud-line { position: absolute; top: 12px; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255, 255, 255, .16); }
.hud-line span { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.hud-c { position: absolute; width: 10px; height: 10px; border: 0 solid rgba(255, 255, 255, .38); }
.hud-c.tl { top: 26px; left: var(--gutter); border-width: 1px 0 0 1px; }
.hud-c.tr { top: 26px; right: var(--gutter); border-width: 1px 1px 0 0; }
.hud-c.bl { bottom: 14px; left: var(--gutter); border-width: 0 0 1px 1px; }
.hud-c.br { bottom: 14px; right: var(--gutter); border-width: 0 1px 1px 0; }

.show-head { text-align: center; padding-top: clamp(24px, 4.2vh, 44px); position: relative; z-index: 2; }
.show-title { color: #fff; font: 500 clamp(26px, 2.6vw, 38px)/1 var(--display); letter-spacing: -0.01em; }
.show-lead { color: rgba(255, 255, 255, .66); margin: 8px auto 0; max-width: 60ch; font-size: 15px; line-height: 1.45; }

/* Red bočica. Položaje računa home.js; ovdje su samo veličine (cqh = postotak visine pozornice). */
.ring-stage { position: relative; z-index: 1; container-type: size; min-height: 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; --bh: min(60cqh, 18vw); }
.ring { position: absolute; inset: 0; }
.ring-item { position: absolute; left: 50%; bottom: 25cqh; width: calc(var(--bh) * 0.8); height: var(--bh); padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; will-change: transform; }
.ring-float { display: block; width: 100%; height: 100%; }
.ring-item img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; filter: brightness(.46) saturate(.55); transition: filter 600ms var(--ease-out), opacity 200ms linear; }
.ring-item[aria-current="true"] img { filter: none; }
.ring-item:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
@media (hover: hover) and (pointer: fine) { .ring-item:not([aria-current="true"]):hover img { filter: brightness(.72) saturate(.8); } }

/* Postolje: tamni metalni disk ispod izabrane bočice, sa svjetlom u boji parfema */
.pedestal { position: absolute; left: 50%; bottom: 0; width: calc(var(--bh) * 1.06); height: 20cqh; transform: translateX(-50%); pointer-events: none; }
.ped-shadow { position: absolute; left: -22%; right: -22%; bottom: -4%; height: 34%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.ped-body { position: absolute; left: 4%; right: 4%; top: 13%; bottom: 8%; border-radius: 0 0 50% 50% / 0 0 26% 26%;
  background: linear-gradient(90deg, #050506 0%, #24272d 22%, #3a3e45 36%, #15171b 58%, #08090b 82%, #1c1e22 100%); }
.ped-top { position: absolute; left: 0; right: 0; top: 0; height: 28%; border-radius: 50%;
  background: radial-gradient(60% 70% at 50% 35%, #5e636c 0%, #2b2e34 48%, #111216 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 6px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); }
.ped-light { position: absolute; left: 12%; right: 12%; top: 2%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--scene) 70%, #fff 30%), transparent); opacity: .55; mix-blend-mode: screen; }

.ring-arrow { position: absolute; z-index: 30; top: calc(79cqh - var(--bh) * 0.64 - 24px); display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background-color 160ms ease, transform 140ms var(--ease-out); }
.ring-arrow-prev { right: calc(50% + var(--bh) * 0.46 + 10px); }
.ring-arrow-next { left: calc(50% + var(--bh) * 0.46 + 10px); }
.ring-arrow svg { width: 26px; height: 26px; }
.ring-arrow:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .ring-arrow:hover { background: rgba(255, 255, 255, .12); } }

.ring-caption { text-align: center; position: relative; z-index: 2; padding-top: 4px; }
.ring-brand { color: rgba(255, 255, 255, .78); font: 600 12px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 8px; }
.ring-name { color: #fff; font: 600 clamp(28px, 3.4vw, 50px)/0.98 var(--display); letter-spacing: .01em; text-transform: uppercase; max-width: 22ch; margin: 0 auto; text-shadow: 0 2px 22px rgba(0, 0, 0, .45); }
.ring-price { color: rgba(255, 255, 255, .78); margin: 10px 0 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.ring-price strong { color: #fff; font-weight: 600; }

.ring-controls { display: grid; justify-items: center; gap: 6px; padding-top: clamp(12px, 2.2vh, 22px); padding-bottom: clamp(18px, 3vh, 30px); position: relative; z-index: 2; }
.ring-track { position: relative; width: min(440px, 64vw); height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, .12)); --pos: 0; }
.ring-knob { position: absolute; top: 50%; left: calc(var(--pos) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in oklab, var(--scene) 55%, transparent), 0 0 14px color-mix(in oklab, var(--scene) 80%, transparent); transition: left 700ms var(--ease-out); }
.ring-discover { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; color: rgba(255, 255, 255, .82); font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.ring-discover svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .ring-discover:hover { color: #fff; } }
@media (prefers-reduced-motion: no-preference) { .ring-discover svg { animation: nudge 1.8s var(--ease-in-out) infinite; } }
@keyframes nudge { 50% { transform: translateY(3px); } }

.btn-light { background: #fff; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-light:hover { background: var(--ice); color: var(--ink); } }

/* ---------- Mirisna piramida: scena izabranog parfema ---------- */
/* Bez zakačenja (smanjen pokret ili nizak ekran): obojeni panel ispod reda bočica, svi koraci jedan ispod drugog. */
.showcase:not(.pinned) .ring-stage { height: clamp(300px, 50svh, 520px); }
.story { position: relative; z-index: 3; color: #fff; background: linear-gradient(180deg, color-mix(in oklab, var(--scene) 50%, #07060a), color-mix(in oklab, var(--scene) 72%, #07060a)); }
.showcase:not(.pinned) .story { display: grid; gap: 28px; padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(48px, 7vw, 88px); max-width: none; }
.showcase:not(.pinned) .story > * { width: 100%; max-width: calc(var(--maxw) - 2 * var(--gutter)); margin: 0 auto; }
.story-word, .story-floor { display: none; }
.story-visual { display: grid; place-items: center; }
.story-bottle { position: relative; height: clamp(260px, 48vw, 380px); aspect-ratio: 4 / 5; }
.story-bottle img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sweep { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.story-steps { display: grid; gap: 44px; }
.story-step { max-width: 34rem; }
.story-dots { display: none; }
@media (min-width: 768px) {
  .showcase:not(.pinned) .story { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: start; }
  .showcase:not(.pinned) .story > * { max-width: none; }
  .showcase:not(.pinned) .story-visual { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 24px); }
  .showcase:not(.pinned) .story-steps { grid-column: 1; grid-row: 1; }
  .showcase:not(.pinned) .story-bottle { height: min(60svh, 520px); }
}

/* Tekst koraka */
.story-step h2, .story-step h3 { color: #fff; }
.story-label { display: inline-block; margin: 0 0 14px; padding: 7px 10px 6px; border-radius: 2px; background: #fff; color: #0b0a10; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.story-brand { color: rgba(255, 255, 255, .86); font: 600 13px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 10px; }
.story-name { font: 600 clamp(38px, 4.6vw, 70px)/0.95 var(--display); letter-spacing: .005em; text-transform: uppercase; }
.story-meta { color: rgba(255, 255, 255, .84); margin: 14px 0 0; }
.story-desc { font-size: clamp(17px, 1.4vw, 20px); margin: 16px 0 0; max-width: 40ch; }
.story-step h3 { font: 600 clamp(32px, 3.4vw, 52px)/0.98 var(--display); letter-spacing: .005em; text-transform: uppercase; }
.story-hint { color: rgba(255, 255, 255, .84); margin: 12px 0 0; max-width: 38ch; }
.note-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 2px; }
.note-list li { font: 500 clamp(22px, 2.2vw, 32px)/1.2 var(--display); }
/* Bazne note su naglašene: veći naslov i veća slova, crta sa strane */
.story-step-base .story-label { background: color-mix(in oklab, var(--scene) 30%, #fff); }
.story-step-base h3 { font-size: clamp(38px, 4.4vw, 66px); }
.story-step-base .note-list { border-left: 2px solid #fff; padding-left: 18px; }
.story-step-base .note-list li { font-size: clamp(28px, 3.2vw, 48px); line-height: 1.1; }
.story-step-base .story-hint { color: #fff; }
.story-buy .variant-group legend { color: #fff; }
.story-buy .v-row { background: rgba(255, 255, 255, .12); }
.story-buy .v-row:has(input:checked) { background: rgba(255, 255, 255, .26); }
.story-buy .v-row .v-label, .story-buy .v-row .v-price { color: #fff; }
.story-buy .v-row input { accent-color: #fff; }
.story-buy .price-big { color: #fff; }
.story-buy .btn-quiet { color: #fff; }
.story-buy .card-meta { color: rgba(255, 255, 255, .84); margin: 10px 0 0; font-size: 17px; }
.story-buy .chip span { background: rgba(255, 255, 255, .14); color: #fff; }
.story-buy .chip input:checked + span { background: #fff; color: var(--ink); }
.story-buy .chip input:focus-visible + span { outline-color: #fff; }
.story-buy .select select { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .45); }
.story-buy .select select option { color: var(--ink); }
.story-buy .select::after { border-color: #fff; }
.story-buy .chips, .story-buy .variant-group { margin-top: 14px; }
.story-buy .variant-list { margin-top: 16px; max-height: 34svh; overflow-y: auto; overscroll-behavior: contain; }
.story-buy .buy-row { margin-top: 18px; }
.story-next { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; }
.story-next button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: #fff; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.story-source { font-size: 14px; color: rgba(255, 255, 255, .78); margin: 14px 0 0; }
.story-source a { color: inherit; }
@media (hover: hover) and (pointer: fine) {
  .story-buy .v-row:hover, .story-buy .chip input:not(:checked):not(:disabled) + span:hover { background: rgba(255, 255, 255, .22); }
  .story-buy .btn-quiet:hover, .story-next button:hover { color: rgba(255, 255, 255, .8); }
}

/* Zakačeno (dozvoljen pokret): sve je jedna scena. Bočica iz reda postaje velika bočica reklame, pozadina se zalije bojom parfema,
   koraci se smjenjuju pri skrolanju, a na kraju se red bočica vrati. */
.showcase.pinned .show-pin { height: var(--H); }
.showcase.pinned .bg-scene { opacity: 1; clip-path: inset(100% 0 0 0); }
.showcase.pinned .story { position: absolute; inset: 0; background: none; pointer-events: none; display: block; padding: 0; }
.showcase.pinned .story-steps, .showcase.pinned .story-dots, .showcase.pinned .story-step { pointer-events: auto; }
.showcase.pinned .story-steps { position: absolute; left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); width: min(34rem, 38vw); top: 0; bottom: 0; display: grid; gap: 0; align-content: center; pointer-events: none; }
.showcase.pinned .story-step { grid-area: 1 / 1; visibility: hidden; }
.showcase.pinned .story-step[data-step="0"] { visibility: visible; }
.showcase.pinned .story-visual { position: absolute; display: block; --vh: calc(var(--H) * 0.68); height: var(--vh); width: calc(var(--vh) * 0.8); left: calc(61% - var(--vh) * 0.4); top: calc(var(--H) * 0.13); visibility: hidden; transform-origin: 50% 100%; }
.showcase.pinned.in-detail .story-visual { visibility: visible; }
.showcase.pinned.in-detail .ring-item[aria-current="true"] img { opacity: 0; }
.showcase.pinned.in-detail .ring-stage { pointer-events: none; }
.showcase.pinned .story-bottle { height: 100%; width: 100%; aspect-ratio: auto; }
.showcase.pinned .sweep { opacity: 1; mix-blend-mode: screen; background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%) 120% 0 / 300% 100% no-repeat;
  -webkit-mask: var(--src) center bottom / contain no-repeat; mask: var(--src) center bottom / contain no-repeat; }
.showcase.pinned .story-floor { display: block; position: absolute; left: calc(61% - var(--H) * 0.2); width: calc(var(--H) * 0.4); top: calc(var(--H) * 0.79); height: calc(var(--H) * 0.05); border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 0, 12, .5), transparent); opacity: 0; }
.showcase.pinned .story-word { display: block; position: absolute; left: 0; right: 0; top: calc(var(--H) * 0.2); margin: 0; text-align: center; white-space: nowrap; overflow: hidden; color: rgba(255, 255, 255, .2); font: 600 clamp(80px, 16vw, 280px)/1 var(--display); letter-spacing: -0.02em; text-transform: uppercase; filter: blur(1px); opacity: 0; }
.showcase.pinned .story-dots { display: grid; gap: 14px; position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); }
.showcase.pinned .story-dots::before { content: ''; position: absolute; left: 50%; top: 22px; bottom: 22px; width: 1px; background: rgba(255, 255, 255, .3); }
.story-dots button { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: color-mix(in oklab, var(--scene) 70%, #000); color: rgba(255, 255, 255, .78); cursor: pointer; padding: 0; transition: background-color 200ms ease, border-color 200ms ease, transform 200ms var(--ease-out); }
.story-dots button svg { width: 20px; height: 20px; }
.story-dots button[aria-current="step"] { border-color: #fff; color: #fff; background: color-mix(in oklab, var(--scene) 55%, #fff 20%); transform: scale(1.1); box-shadow: 0 0 0 4px rgba(255, 255, 255, .14); }
@media (hover: hover) and (pointer: fine) { .story-dots button:hover { border-color: #fff; color: #fff; } }
.showcase.pinned .story-buy .variant-list { max-height: 26svh; }

/* Mobitel i uski tablet: isti koncept, bočica gore, tekst dolje, koraci desno */
@media (max-width: 767px) {
  .ring-stage { --bh: min(54cqh, 46vw); }
  /* Na mobitelu su strelice uz postolje, da susjedne bočice mogu biti bliže */
  .ring-arrow { top: calc(86cqh - 24px); }
  .ring-arrow-prev { right: calc(50% + var(--bh) * 0.56 + 4px); }
  .ring-arrow-next { left: calc(50% + var(--bh) * 0.56 + 4px); }
  .show-lead { font-size: 14px; }
  .bg-scene { background:
    linear-gradient(0deg, rgba(6, 4, 10, .62) 0%, rgba(6, 4, 10, .34) 40%, transparent 58%),
    linear-gradient(180deg, #060509 0%, color-mix(in oklab, var(--scene) 50%, #060509) 12%, var(--scene) 34%, color-mix(in oklab, var(--scene) 78%, #fff 22%) 48%, color-mix(in oklab, var(--scene) 70%, #000) 70%, color-mix(in oklab, var(--scene) 35%, #000) 100%); }
  .showcase.pinned .story-visual { --vh: calc(var(--H) * 0.4); left: calc(56% - var(--vh) * 0.4); top: calc(var(--H) * 0.05); }
  .showcase.pinned .story-floor { left: calc(56% - var(--H) * 0.12); width: calc(var(--H) * 0.24); top: calc(var(--H) * 0.425); height: calc(var(--H) * 0.03); }
  .showcase.pinned .story-word { top: calc(var(--H) * 0.12); font-size: 26vw; }
  .showcase.pinned .story-steps { left: var(--gutter); right: 68px; width: auto; top: calc(var(--H) * 0.47); bottom: 14px; align-content: start; }
  .showcase.pinned .story-dots { right: 10px; top: calc(var(--H) * 0.47); transform: none; gap: 8px; }
  .showcase.pinned .story-dots button { width: 44px; height: 44px; }
  .showcase.pinned .story-label { margin-bottom: 10px; }
  .showcase.pinned .story-name { font-size: clamp(30px, 8.6vw, 40px); }
  .showcase.pinned .story-step h3 { font-size: clamp(26px, 7.4vw, 34px); }
  .showcase.pinned .note-list { margin-top: 12px; }
  .showcase.pinned .note-list li { font-size: clamp(19px, 5.2vw, 24px); }
  .showcase.pinned .story-step-base h3 { font-size: clamp(30px, 8.4vw, 40px); }
  .showcase.pinned .story-step-base .note-list li { font-size: clamp(23px, 6.4vw, 30px); }
  .showcase.pinned .story-desc { font-size: 16px; margin-top: 10px; }
  .showcase.pinned .story-hint { margin-top: 8px; font-size: 15px; }
  .showcase.pinned .story-buy .variant-list { max-height: 19svh; margin-top: 10px; }
  .showcase.pinned .story-buy .buy-row { margin-top: 10px; gap: 8px; }
  .showcase.pinned .story-buy .buy-row .btn-quiet, .showcase.pinned .story-source { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .showcase.pinned .story-steps { width: 44vw; }
  .showcase.pinned .story-visual { --vh: calc(var(--H) * 0.56); left: calc(66% - var(--vh) * 0.4); top: calc(var(--H) * 0.2); }
  .showcase.pinned .story-floor { left: calc(66% - var(--H) * 0.16); width: calc(var(--H) * 0.32); top: calc(var(--H) * 0.745); }
}
@media (max-height: 700px) {
  .show-lead { display: none; }
  .show-head { padding-top: 22px; }
}

/* ---------- Mirisna piramida (stranica parfema) ---------- */
.pyramid { display: grid; gap: 0; margin: 4px 0 0; }
.tier { display: grid; grid-template-columns: 112px 1fr; gap: 4px 16px; padding: 12px 16px; align-items: baseline; }
.tier dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.tier dd { margin: 0; color: var(--ink); }
.tier-top { background: var(--mist); }
.tier-heart { background: var(--ice); }
.tier-base { background: var(--ink); padding: 18px 16px 20px; }
.tier-base dt { color: var(--on-ink-muted); }
.tier-base dd { color: #fff; font: 500 clamp(20px, 2vw, 24px)/1.3 var(--display); }
.tier dd span + span::before { content: ' · '; color: inherit; opacity: .55; }
.notes-remark, .notes-source { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.notes-source a { color: var(--muted); }
@media (max-width: 479px) { .tier { grid-template-columns: 1fr; } }

/* ---------- Izbor zapremine ---------- */
.variant-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.variant-group legend { font-size: 15px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius);
  background: var(--mist); color: var(--ink); font-weight: 500; font-size: 15px; white-space: nowrap; transition: background-color 160ms ease, color 160ms ease;
  user-select: none; -webkit-user-select: none;
}
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.chip input:disabled + span { opacity: .45; text-decoration: line-through; }
@media (hover: hover) and (pointer: fine) { .chip input:not(:checked):not(:disabled) + span:hover { background: var(--ice); } }

.variant-list { display: grid; gap: 6px; }
.v-row { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; min-height: 52px; padding: 10px 16px; background: var(--mist); border-radius: var(--radius); cursor: pointer; transition: background-color 160ms ease; }
.v-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.v-row .v-label { color: var(--ink); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.v-row .v-price { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.v-row:has(input:checked) { background: var(--ice); }
.v-row:has(input:disabled) { opacity: .5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .v-row:hover { background: var(--ice); } }

.select { position: relative; }
.select select { width: 100%; min-height: 44px; padding: 8px 40px 8px 12px; appearance: none; -webkit-appearance: none; border: 1px solid var(--field); border-radius: var(--radius); background: var(--white); color: var(--ink); cursor: pointer; }
.select::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.price-big { font: 600 30px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.price-note { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Količina ---------- */
.qty { display: inline-flex; align-items: center; background: var(--mist); border-radius: var(--radius); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 20px; color: var(--ink); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty input { width: 44px; height: 44px; border: 0; background: transparent; text-align: center; font-weight: 600; -moz-appearance: textfield; color: var(--ink); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button, .qty-sm input { width: 40px; height: 40px; }

/* ---------- Katalog ---------- */
.catalog { padding: clamp(56px, 8vw, 120px) 0 clamp(56px, 8vw, 120px); }
.catalog-head { display: grid; gap: 12px 40px; margin-bottom: 24px; }
.catalog-head h2 { font: 500 clamp(40px, 5.4vw, 76px)/1 var(--display); letter-spacing: -0.03em; }
.catalog-head p { color: var(--muted); max-width: 56ch; margin: 0; }
@media (min-width: 1024px) { .catalog-head { grid-template-columns: 1fr minmax(320px, 440px); align-items: end; } }

.toolbar { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 52px; padding: 10px 44px 10px 44px; border: 1px solid var(--field); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.search input::placeholder { color: #6a7691; }
.search .clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.toolbar-row { display: flex; gap: 10px; }
.toolbar-row .select { flex: 1; }
.toolbar-row .select select { min-height: 52px; }
.filter-toggle { min-height: 52px; padding: 0 18px; background: var(--mist); color: var(--ink); }
.filter-toggle .n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--blue); color: #fff; font-size: 12px; }
@media (min-width: 768px) { .toolbar { grid-template-columns: 1fr auto; } .toolbar-row .select { min-width: 240px; } }
@media (min-width: 1024px) { .filter-toggle { display: none; } }

.catalog-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .catalog-layout { grid-template-columns: 248px 1fr; align-items: start; } }

/* Filteri: na računaru bočna kolona, na mobitelu panel odozdo */
.filters { display: grid; gap: 22px; align-content: start; }
.filters h3 { font: 600 15px/1.3 var(--sans); color: var(--ink); margin: 0 0 8px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; color: var(--text); font-size: 16px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); flex: none; }
.check .count { margin-left: auto; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.brand-search { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--field); border-radius: var(--radius); margin-bottom: 6px; }
.brand-list { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; }
.filters-foot { display: none; }
@media (min-width: 1024px) {
  .filters { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain; padding-right: 8px; }
  .filters-head { display: none; }
}
@media (max-width: 1023px) {
  .filters {
    position: fixed; z-index: var(--z-sheet); left: 0; right: 0; bottom: 0; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain;
    background: var(--white); padding: 0 var(--gutter) 0; transform: translateY(100%); visibility: hidden;
    transition: transform 420ms var(--ease-drawer), visibility 0s linear 420ms; box-shadow: 0 -12px 40px rgba(10, 26, 58, .18);
  }
  .filters.open { transform: none; visibility: visible; transition: transform 420ms var(--ease-drawer); }
  .filters-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; background: var(--white); padding: 12px 0 8px; }
  .filters-head h2 { font: 500 26px/1.2 var(--display); }
  .filters-foot { position: sticky; bottom: 0; display: flex; gap: 10px; background: var(--white); padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); }
  .filters-foot .btn { flex: 1; }
  .sheet-backdrop { position: fixed; inset: 0; z-index: calc(var(--z-sheet) - 1); background: rgba(10, 26, 58, .4); opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; }
  .sheet-backdrop.open { opacity: 1; visibility: visible; transition: opacity 300ms ease; }
}

.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 44px; margin-bottom: 16px; }
.results-count { color: var(--ink); font-weight: 500; margin: 0; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.af { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px 0 12px; border: 0; border-radius: 18px; background: var(--blue-soft); color: var(--ink); font-size: 14px; cursor: pointer; }
.af svg { width: 16px; height: 16px; }
.reset-link { border: 0; background: none; color: var(--blue); text-decoration: underline; cursor: pointer; min-height: 36px; font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 16px; } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 20px; } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--mist); overflow: hidden; text-decoration: none; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform 500ms var(--ease-out); }
/* Fotografije su izrezane bočice s prozirnom pozadinom (800 x 1000), pa stoje na istoj podlozi kao ilustracije. */
.card-media img.photo { padding: 5% 6%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(10, 24, 60, .14)); }
@media (hover: hover) and (pointer: fine) { .card:hover .card-media img { transform: scale(1.04); } }
.badges { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 12px; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.4; }
.badge-ink { background: var(--ink); color: #fff; }

/* Rezervni prikaz dok nema fotografije: etiketa s nazivom (nije slika drugog parfema) */
.ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; padding: 16px; text-align: center; color: var(--ink); }
.ph-bottle { width: 34%; max-width: 92px; color: var(--ice-2); }
.ph-brand { font: 500 clamp(17px, 1.7vw, 22px)/1.15 var(--display); max-width: 14ch; overflow-wrap: anywhere; }
.ph-note { font-size: 12px; color: var(--muted); }

.card-body { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; flex: 1; }
.card-brand { font-size: 14px; color: var(--muted); margin: 0; }
.card-name { font: 500 19px/1.2 var(--display); letter-spacing: -0.005em; overflow-wrap: anywhere; }
.card-name a { color: var(--ink); text-decoration: none; }
.card-name a::after { content: ''; }
@media (hover: hover) and (pointer: fine) { .card-name a:hover { text-decoration: underline; } }
.card-meta { font-size: 14px; color: var(--muted); margin: 0; }
.card-variants { margin-top: 4px; }
.card-variants .chips { gap: 6px; }
.card-variants .chip span { min-height: 40px; padding: 0 12px; font-size: 14px; }
.card-variants .select select { min-height: 44px; font-size: 16px; }
.card-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.card-price { font: 600 18px/1.2 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.card-buy .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
@media (max-width: 639px) { .card-buy .btn { width: 100%; } .card-name { font-size: 17px; } }

.load-more { display: grid; justify-items: center; gap: 12px; margin-top: 48px; }
.load-more p { color: var(--muted); margin: 0; }

.empty { padding: 48px 24px; background: var(--mist); text-align: center; }
.empty h3 { font: 500 28px/1.2 var(--display); margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0 auto 20px; max-width: 46ch; }

/* ---------- Kako naručiti ---------- */
.howto { background: var(--ice); padding: clamp(56px, 8vw, 120px) 0; }
.howto-grid { display: grid; gap: 40px; }
.howto h2 { font: 500 clamp(36px, 4.6vw, 64px)/1.02 var(--display); letter-spacing: -0.025em; margin-bottom: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; gap: 4px; padding: 20px 0; }
.steps li + li { border-top: 2px solid var(--white); }
.steps strong { font: 500 24px/1.25 var(--display); color: var(--ink); font-weight: 500; }
.steps span { color: var(--text); max-width: 56ch; }
.facts { display: grid; gap: 2px; align-content: start; }
.fact { background: var(--white); padding: 20px 22px; }
.fact h3 { font: 600 16px/1.3 var(--sans); margin-bottom: 4px; }
.fact p { margin: 0; color: var(--text); }
.fact .big { font: 500 30px/1.15 var(--display); color: var(--ink); margin-bottom: 4px; }
@media (min-width: 1024px) { .howto-grid { grid-template-columns: 1.1fr 0.9fr; gap: 80px; } }

.faq { margin-top: 8px; }
.faq details { background: var(--white); }
.faq details + details { margin-top: 2px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 22px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform 200ms var(--ease-out); flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 22px 18px; }
.faq details > div p:last-child { margin: 0; }

/* ---------- Podnožje (bazni sloj) ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: clamp(56px, 7vw, 96px) 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.site-footer a { color: #fff; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { text-decoration: underline; color: #fff; } }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h3 { color: #fff; font: 600 16px/1.3 var(--sans); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer li a, .site-footer li span { display: inline-flex; align-items: center; min-height: 36px; }
.socials { display: flex; gap: 8px; margin-top: 8px; }
.socials a { display: inline-grid; place-items: center; width: 44px; height: 44px; background: rgba(255, 255, 255, .08); border-radius: var(--radius); }
.socials svg { width: 22px; height: 22px; }
.footer-word { font: 500 clamp(72px, 19vw, 300px)/0.8 var(--display); letter-spacing: -0.045em; color: #fff; margin: clamp(48px, 7vw, 96px) 0 24px; white-space: nowrap; overflow: hidden; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; padding-top: 8px; }

/* ---------- Korpa (bočni panel) ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1); background: rgba(10, 26, 58, .42); opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; }
.drawer-backdrop.open { opacity: 1; visibility: visible; transition: opacity 300ms ease; }
.drawer { position: fixed; z-index: var(--z-drawer); top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--white); transform: translateX(100%); visibility: hidden;
  transition: transform 420ms var(--ease-drawer), visibility 0s linear 420ms; box-shadow: -16px 0 48px rgba(10, 26, 58, .16); }
.drawer.open { transform: none; visibility: visible; transition: transform 420ms var(--ease-drawer); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 24px; }
.drawer-head h2 { font: 500 28px/1.2 var(--display); }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px; }
.drawer-foot { padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--mist); }
.empty-cart { padding: 40px 0; text-align: center; }
.empty-cart p { color: var(--muted); }

.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; }
.cart-item + .cart-item { border-top: 2px solid var(--mist); }
.ci-media { position: relative; width: 72px; height: 90px; background: var(--mist); overflow: hidden; }
.ci-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.ci-media .ph-brand { font-size: 11px; }
.ci-media .ph { gap: 0; padding: 4px; }
.cart-item h3 { font: 500 17px/1.25 var(--display); }
.cart-item h3 a { color: var(--ink); text-decoration: none; }
.ci-meta { font-size: 14px; color: var(--muted); margin: 2px 0 8px; }
.ci-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ci-total { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.remove-btn { border: 0; background: none; padding: 8px 0; min-height: 36px; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.ci-warn { font-size: 14px; color: var(--danger); margin: 6px 0 0; }

.order-lines .line, .summary-lines .line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-variant-numeric: tabular-nums; }
.order-lines .line > span:last-child, .summary-lines .line > span:last-child { white-space: nowrap; text-align: right; }
.line-total { font-weight: 600; color: var(--ink); font-size: 19px; padding-top: 10px !important; }

/* ---------- Obavještenja ---------- */
.toast { position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-size: 15px; max-width: calc(100% - 32px); transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); box-shadow: 0 10px 30px rgba(10, 26, 58, .25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { margin-left: 12px; border: 0; background: none; color: #fff; text-decoration: underline; cursor: pointer; font-weight: 600; min-height: 32px; }

.alert { padding: 14px 16px; border-radius: var(--radius); font-size: 15px; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert a { color: inherit; }

/* ---------- Stranica parfema ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); padding: 16px 0 8px; margin: 0; list-style: none; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--muted); }
.product { display: grid; gap: 24px; padding-bottom: clamp(56px, 8vw, 112px); }
.p-media { position: relative; aspect-ratio: 4 / 5; background: var(--mist); overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.p-media img.photo { object-fit: contain; padding: 6% 8%; filter: drop-shadow(0 18px 24px rgba(10, 24, 60, .16)); }
.p-media .ph-brand { font-size: clamp(28px, 4vw, 44px); }
.p-info { display: grid; gap: 18px; align-content: start; min-width: 0; }
.p-brand { font-size: 16px; margin: 0; }
.p-brand a { color: var(--muted); }
.p-info h1 { font: 500 clamp(38px, 5vw, 64px)/1.02 var(--display); letter-spacing: -0.025em; overflow-wrap: anywhere; }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.p-meta .badge { background: var(--mist); }
.p-meta .badge-ink { background: var(--ink); }
.p-section h2 { font: 500 26px/1.2 var(--display); margin-bottom: 10px; }
.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.tester-note { font-size: 15px; background: var(--mist); padding: 12px 14px; margin: 0; }
.related { padding: clamp(48px, 6vw, 88px) 0; background: var(--mist); }
.related h2 { font: 500 clamp(30px, 3.4vw, 44px)/1.1 var(--display); margin-bottom: 24px; }
.related .card-media { background: var(--white); }
@media (min-width: 900px) {
  .product { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .p-media { position: sticky; top: calc(var(--header-h) + 20px); }
}
@media (min-width: 1280px) { .product { grid-template-columns: 1.05fr 0.95fr; gap: 80px; } }

/* ---------- Narudžba ---------- */
.page-head { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(16px, 2vw, 24px); }
.page-head h1 { font: 500 clamp(40px, 5vw, 64px)/1.05 var(--display); letter-spacing: -0.02em; }
.steps-line { color: var(--muted); margin: 8px 0 0; }
.steps-line b { color: var(--ink); font-weight: 600; }
.checkout-grid { display: grid; gap: 24px; padding-bottom: 80px; }
@media (min-width: 960px) { .checkout-grid { grid-template-columns: 1fr 420px; gap: 56px; align-items: start; } }
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { font: 500 26px/1.2 var(--display); color: var(--ink); margin-bottom: 14px; padding: 0; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 16px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--field); border-radius: var(--radius); background: var(--white); color: var(--ink); transition: border-color 160ms ease; }
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field .hint { font-size: 14px; color: var(--muted); margin-top: 4px; }
.field .err, .err-line { font-size: 14px; color: var(--danger); margin-top: 4px; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); background: #fffafa; }
.hp { position: absolute; left: -9999px; }
.pay-box { background: var(--mist); padding: 16px 18px; }
.pay-box strong { color: var(--ink); display: block; margin-bottom: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.submit-note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.summary { background: var(--mist); }
.summary-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px; border: 0; background: var(--ice); font-weight: 600; color: var(--ink); cursor: pointer; }
.summary-inner { padding: 8px 20px 20px; }
.summary h2 { font: 500 26px/1.2 var(--display); margin: 12px 0 4px; }
.summary .cart-item + .cart-item { border-top-color: var(--white); }
.summary .ci-media { background: var(--white); }
.summary-lines { border-top: 2px solid var(--white); margin-top: 8px; padding-top: 12px; }
@media (max-width: 959px) { .summary-inner { display: none; } .summary.open .summary-inner { display: block; } .summary { order: -1; } }
@media (min-width: 960px) { .summary-toggle { display: none; } .summary { position: sticky; top: calc(var(--header-h) + 20px); } }

.confirm-card { max-width: 680px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) 0 80px; }
.confirm-card h1 { font: 500 clamp(36px, 5vw, 56px)/1.05 var(--display); letter-spacing: -0.02em; margin-bottom: 12px; }
.confirm-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); margin-bottom: 20px; }
.confirm-icon svg { width: 32px; height: 32px; }
.confirm-icon.err { background: var(--danger-soft); color: var(--danger); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 24px 0; padding: 20px; background: var(--mist); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 479px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }

/* ---------- Pravne stranice ---------- */
.legal { max-width: 760px; padding: clamp(28px, 5vw, 56px) var(--gutter) 96px; margin: 0 auto; }
.legal h1 { font: 500 clamp(36px, 5vw, 56px)/1.08 var(--display); margin-bottom: 20px; }
.legal h2 { font: 500 26px/1.25 var(--display); margin: 32px 0 10px; }
.draft { background: var(--warn-soft); color: var(--warn); padding: 12px 16px; margin-bottom: 24px; font-size: 15px; }

/* ---------- Pojavljivanje pri skrolanju (samo kad JS radi i pokret je dozvoljen) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .drawer, .filters, .nav, .toast, .card-media img { transition-property: opacity, visibility !important; }
}

/* Pitanja: nastavak srednjeg sloja */
.faq-section { padding-top: 0; }
.faq-section .faq { margin-top: 0; }
@media (min-width: 1024px) { .sheet-backdrop { display: none; } }
.results { min-width: 0; }
@media (max-width: 479px) { .p-info .buy-row .btn-primary { flex: 1 1 100%; } }
