/* =========================================================
   Kozmetika SAD — zajednički stil za ceo sajt
   Boje su definisane kao promenljive (tokeni) na :root.
   ========================================================= */

:root {
  --bg: #f3f5f3;
  --surface: #ffffff;
  --ink: #131d19;
  --ink-2: #34413b;
  --muted: #5a6760;
  --line: #d8dfdb;
  --line-strong: #131d19;
  --accent: #0c6a4e;
  --accent-hover: #09573f;
  --accent-ink: #ffffff;
  --accent-soft: #dcece4;
  --tint-differin: #e3ecf1;
  --tint-p4: #e6efe9;
  --tint-p10: #efe8e7;
  --warn-bg: #fbf1e6;
  --warn-ink: #6b3d10;
  --shadow: 0 1px 2px rgba(19, 29, 25, .06), 0 10px 28px rgba(19, 29, 25, .07);

  /* KupujemProdajem boje (koriste se samo za dugme za kupovinu) */
  --kp-yellow: #ffcb05;
  --kp-yellow-hover: #f5bf00;
  --kp-navy: #1b3a66;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Onest", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-h2: clamp(1.65rem, 1.25rem + 1.5vw, 2.35rem);
  --fs-h1: clamp(2.05rem, 1.35rem + 3vw, 3.5rem);

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1412;
    --surface: #151d1a;
    --ink: #e7edea;
    --ink-2: #c6d1cc;
    --muted: #97a59e;
    --line: #27322d;
    --line-strong: #c6d1cc;
    --accent: #4cc49a;
    --accent-hover: #6fd4b0;
    --accent-ink: #06231a;
    --accent-soft: #173229;
    --tint-differin: #1b252a;
    --tint-p4: #192620;
    --tint-p10: #271f1f;
    --warn-bg: #2b2016;
    --warn-ink: #f2c894;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0e1412;
  --surface: #151d1a;
  --ink: #e7edea;
  --ink-2: #c6d1cc;
  --muted: #97a59e;
  --line: #27322d;
  --line-strong: #c6d1cc;
  --accent: #4cc49a;
  --accent-hover: #6fd4b0;
  --accent-ink: #06231a;
  --accent-soft: #173229;
  --tint-differin: #1b252a;
  --tint-p4: #192620;
  --tint-p10: #271f1f;
  --warn-bg: #2b2016;
  --warn-ink: #f2c894;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- Osnova ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--fs-h1); font-weight: 800; font-stretch: 118%; letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); font-weight: 750; }
h3 { font-size: var(--fs-lg); font-weight: 700; line-height: 1.2; }

p { margin: 0; }

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

.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Cene se prikazuju tek kad se učitaju iz js/podesavanja.js (bez treptanja stare cene) */
.js:not(.cene-spremne) [data-cena],
.js:not(.cene-spremne) [data-cena-prikaz] { visibility: hidden; }

.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;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Traka na vrhu ---------- */

.topbar {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px;
  padding-block: 8px; text-align: center;
}

/* ---------- Zaglavlje ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 28px;
  padding-block: 14px; flex-wrap: wrap;
}

.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%;
  font-size: 1.25rem; letter-spacing: -.02em; line-height: 1;
}
.brand:hover { color: var(--ink); }
.brand__tag {
  font-family: var(--font-mono); font-weight: 500; font-stretch: normal;
  font-size: .72rem; letter-spacing: .12em;
  border: 1.5px solid currentColor; border-radius: 4px; padding: 4px 6px 3px;
}

.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: -6px; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none;
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
  padding: 8px 10px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { background: var(--accent-soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }

@media (max-width: 720px) {
  .site-header .wrap { padding-block: 10px 8px; }
  .nav { width: calc(100% + 12px); }
}

/* ---------- Dugmad ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-body); font-size: var(--fs-base); font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 0;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); }

/* KupujemProdajem dugme — žuto/teget da ga posetilac odmah prepozna */
.kp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 12px 26px;
  background: var(--kp-yellow); color: var(--kp-navy);
  border-radius: 999px; text-decoration: none;
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.15;
  box-shadow: inset 0 -3px 0 rgba(27, 58, 102, .22), 0 6px 18px rgba(255, 203, 5, .28);
  transition: background-color .15s ease, transform .15s ease;
}
.kp-btn:hover { background: var(--kp-yellow-hover); color: var(--kp-navy); transform: translateY(-1px); }
.kp-btn:active { transform: translateY(0); }
.kp-btn:focus-visible { outline: 3px solid var(--kp-navy); outline-offset: 3px; }
.kp-btn__pre { font-weight: 500; }
.kp-btn__brand { font-weight: 800; letter-spacing: -.01em; }
.kp-btn svg { width: 18px; height: 18px; flex: none; }
.kp-btn--block { width: 100%; }
.kp-btn--compact { min-height: 48px; padding: 10px 18px; font-size: .95rem; gap: 8px; }
.kp-btn--compact svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .kp-btn, .btn { transition: none; }
  .kp-btn:hover { transform: none; }
}

.kp-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 10px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.45;
}
.kp-note svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--muted); }
.kp-note strong { color: var(--ink-2); font-weight: 600; }

/* ---------- Sekcije ---------- */

.section { padding-block: clamp(56px, 7vw, 96px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--line { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: var(--fs-lg); line-height: 1.5; }

/* ---------- Početna: hero ---------- */

.hero { padding-block: clamp(36px, 6vw, 80px) clamp(48px, 6vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__copy { display: grid; gap: 22px; }
.hero__copy h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 36ch; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 4px 0 0; list-style: none;
  font-size: var(--fs-sm); color: var(--muted);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__lead { max-width: none; }
}

/* Polica sa proizvodima */
.shelf { position: relative; }
.shelf__row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 18px);
  align-items: end; position: relative; z-index: 1;
}
.shelf__board {
  height: 16px; margin-top: -2px; border-radius: 3px;
  background: linear-gradient(var(--surface), color-mix(in srgb, var(--line) 70%, var(--surface)));
  box-shadow: 0 1px 0 var(--line), 0 14px 22px -12px rgba(19, 29, 25, .35);
  border: 1px solid var(--line);
}
.shelf__item { display: grid; gap: 0; text-decoration: none; color: var(--ink); }
.shelf__item:hover { color: var(--ink); }
.shelf__img {
  border-radius: 12px 12px 4px 4px; overflow: hidden; background: var(--tint-differin);
  aspect-ratio: 1 / 1.08;
}
.shelf__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.shelf__item:hover .shelf__img img { transform: scale(1.03); }
.shelf__item:nth-child(2) .shelf__img { aspect-ratio: 1 / 1.22; background: var(--tint-p4); }
.shelf__item:nth-child(3) .shelf__img { background: var(--tint-p10); }
@media (prefers-reduced-motion: reduce) { .shelf__img img { transition: none; } }

/* Cenovnik ispod police */
.shelf__tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 18px); margin-top: 10px; }
.tag {
  display: grid; gap: 2px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 9px 11px 10px; box-shadow: 0 1px 0 var(--line);
}
.tag:hover { color: var(--ink); border-color: var(--line-strong); }
.tag__name { font-size: var(--fs-xs); line-height: 1.3; color: var(--ink-2); font-weight: 500; }
.tag__price {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(1rem, .85rem + .7vw, 1.35rem); letter-spacing: -.01em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.tag__price small { font-size: .62em; font-weight: 700; margin-left: 2px; }
.tag__meta { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); letter-spacing: .02em; }

@media (max-width: 480px) {
  .tag { padding: 8px 8px 9px; }
  .tag__meta { display: none; }
}

/* ---------- Kartice "koji je za vas" ---------- */

.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pick {
  display: grid; grid-template-rows: auto 1fr; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.pick__img { background: var(--tint-differin); aspect-ratio: 16 / 10; }
.pick__img img { width: 100%; height: 100%; object-fit: contain; }
.pick--p4 .pick__img { background: var(--tint-p4); }
.pick--p10 .pick__img { background: var(--tint-p10); }
.pick__body { display: grid; gap: 12px; align-content: start; padding: 22px 22px 24px; grid-template-rows: auto auto auto 1fr auto; }
.pick__for { font-weight: 600; color: var(--ink); line-height: 1.4; }
.pick__body p { color: var(--muted); font-size: var(--fs-sm); }
.pick__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.pick__price { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.pick__link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.pick__link:hover { text-decoration: underline; }

@media (max-width: 900px) { .picks { grid-template-columns: 1fr; } .pick { grid-template-columns: 38% 1fr; grid-template-rows: none; } .pick__img { aspect-ratio: auto; height: 100%; } }
@media (max-width: 560px) { .pick { grid-template-columns: 1fr; } .pick__img { aspect-ratio: 16 / 9; height: auto; } }

/* ---------- Tabela poređenja ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: var(--fs-sm); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-stretch: 112%; font-size: 1rem; font-weight: 750; background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.compare tbody th { font-weight: 600; color: var(--ink-2); width: 22%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td { font-variant-numeric: tabular-nums; }

/* ---------- Rutina ---------- */

.routine { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.routine__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.routine__when { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.routine__when svg { width: 20px; height: 20px; color: var(--accent); }
.routine__card p { color: var(--ink-2); }
.routine-note { margin-top: 16px; color: var(--muted); font-size: var(--fs-sm); max-width: 70ch; }
@media (max-width: 720px) { .routine { grid-template-columns: 1fr; } }

/* ---------- Koraci kupovine ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: korak; }
.steps li { counter-increment: korak; display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--line-strong); }
.steps li::before { content: "Korak " counter(korak); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.steps p { color: var(--muted); font-size: var(--fs-sm); }
.steps .kp-btn { justify-self: start; margin-top: 4px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Česta pitanja ---------- */

.faq { display: grid; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 2px; font-weight: 600; font-size: var(--fs-base); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, 0); }
.faq .faq__a { padding: 0 2px 22px; color: var(--ink-2); max-width: 70ch; display: grid; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Podnožje ---------- */

.site-footer { background: var(--ink); color: color-mix(in srgb, var(--bg) 78%, var(--ink)); padding-block: 56px 40px; font-size: var(--fs-sm); }
.site-footer a { color: var(--bg); }
.site-footer .brand { color: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: var(--fs-xs); font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 60%, var(--ink)); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid ul a { text-decoration: none; }
.footer-grid ul a:hover { text-decoration: underline; }
.footer-about { display: grid; gap: 14px; align-content: start; max-width: 42ch; }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--bg) 18%, var(--ink)); display: grid; gap: 8px; font-size: var(--fs-xs); line-height: 1.55; color: color-mix(in srgb, var(--bg) 60%, var(--ink)); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* =========================================================
   Stranica proizvoda
   ========================================================= */

.crumbs { padding-block: 18px 0; font-size: var(--fs-xs); color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); opacity: .4; }
.crumbs a { color: var(--muted); }

.product { padding-block: 22px clamp(48px, 6vw, 80px); }
.product .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.product__media { position: sticky; top: 96px; border-radius: 20px; overflow: hidden; background: var(--tint-differin); aspect-ratio: 1 / 1; }
.product__media img { width: 100%; height: 100%; object-fit: contain; }
.product--p4 .product__media { background: var(--tint-p4); }
.product--p10 .product__media { background: var(--tint-p10); }

.buybox { display: grid; gap: 20px; }
.buybox h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.buybox__lead { font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.5; }

.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line); }
.specs dt, .specs dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.specs dt { color: var(--muted); padding-right: 20px; }
.specs dd { font-weight: 500; }

.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: clamp(2.2rem, 1.7rem + 2vw, 3rem); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: .45em; font-weight: 700; letter-spacing: 0; margin-left: 4px; }
.price-row__meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }

.buy { display: grid; gap: 0; }
.buy .kp-btn { width: 100%; }

/* Izbor veličine */
.variants { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.variants legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: var(--fs-sm); }
.variants__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.variant { position: relative; }
.variant input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.variant label {
  display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); transition: border-color .15s ease, box-shadow .15s ease;
}
.variant__size { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.35rem; line-height: 1.1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.variant__size::after {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line); background: var(--surface);
}
.variant__price { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 500; }
.variant__hint { font-size: var(--fs-xs); color: var(--muted); line-height: 1.35; }
.variant input:checked + label { border-color: var(--line-strong); box-shadow: inset 0 0 0 1px var(--line-strong); }
.variant input:checked + label .variant__size::after { border: 6px solid var(--ink); }
.variant input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.variant label:hover { border-color: color-mix(in srgb, var(--line-strong) 45%, var(--line)); }

.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.trust li { display: flex; gap: 10px; align-items: flex-start; }
.trust svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }

@media (max-width: 860px) {
  .product .wrap { grid-template-columns: 1fr; }
  .product__media { position: relative; top: 0; max-width: 560px; width: 100%; justify-self: center; }
}

/* Sadržaj stranice proizvoda */
.content-nav { border-block: 1px solid var(--line); background: var(--surface); }
.content-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.content-nav .wrap::-webkit-scrollbar { display: none; }
.content-nav a { flex: none; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.content-nav a:hover { background: var(--accent-soft); color: var(--ink); }

.article { padding-block: clamp(40px, 6vw, 72px); }
.article .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.article__main { display: grid; gap: clamp(48px, 6vw, 72px); min-width: 0; }
.article__side { position: sticky; top: 96px; display: grid; gap: 18px; }
@media (max-width: 980px) {
  .article .wrap { grid-template-columns: 1fr; }
  .article__side { position: static; }
}

.block { display: grid; gap: 18px; scroll-margin-top: 96px; }
.block > h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); }
.prose { display: grid; gap: 14px; max-width: 68ch; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: k; max-width: 68ch; }
.howto li { counter-increment: k; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.howto li:first-child { border-top: 1px solid var(--line); }
.howto li::before {
  content: counter(k); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--ink); font-family: var(--font-mono); font-weight: 500; font-size: .9rem;
}
.howto strong { color: var(--ink); }

.tip { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; max-width: 68ch; color: var(--ink); font-size: var(--fs-sm); }
.tip svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }
.tip--warn { background: var(--warn-bg); color: var(--warn-ink); }
.tip--warn svg { color: var(--warn-ink); }

/* Vremenska linija (šta očekivati) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 68ch; }
.timeline li { position: relative; display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 0 0 24px; }
.timeline li::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 113px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline__when { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 2px; padding-right: 26px; }
.timeline__what { display: grid; gap: 4px; color: var(--ink-2); padding-left: 10px; }
.timeline__what strong { color: var(--ink); }
@media (max-width: 520px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 26px; }
  .timeline li::before { left: 5px; }
  .timeline li::after { left: 0; }
  .timeline__what { padding-left: 0; }
}

/* Panel u stilu američke "Drug Facts" etikete */
.facts {
  background: var(--surface); color: var(--ink); border: 2px solid var(--line-strong); border-radius: 4px;
  padding: 12px 14px 14px; font-family: "Helvetica Neue", Arial, var(--font-body); font-size: .875rem; line-height: 1.4;
}
.facts__title { font-family: var(--font-display); font-stretch: 100%; font-weight: 800; font-size: 1.75rem; letter-spacing: -.01em; line-height: 1; }
.facts__sub { font-size: .75rem; color: var(--muted); margin-top: 4px; padding-bottom: 8px; border-bottom: 7px solid var(--line-strong); }
.facts__row { padding: 7px 0; border-bottom: 1px solid var(--line-strong); display: grid; gap: 4px; }
.facts__row:last-child { border-bottom: 0; padding-bottom: 0; }
.facts__head { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; font-size: .95rem; }
.facts__pair { display: flex; justify-content: space-between; gap: 12px; }
.facts ul { margin: 0; padding-left: 1.1em; display: grid; gap: 2px; }
.facts b { font-weight: 800; }

.side-buy { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-buy__top { display: flex; align-items: center; gap: 14px; }
.side-buy__img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--tint-differin); flex: none; }
.side-buy__img img { width: 100%; height: 100%; object-fit: contain; }
.side-buy__name { font-weight: 600; line-height: 1.3; font-size: var(--fs-sm); }
.side-buy__price { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.product--p4 ~ * .side-buy__img, .side-buy--p4 .side-buy__img { background: var(--tint-p4); }
.side-buy--p10 .side-buy__img { background: var(--tint-p10); }

.disclaimer { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }

/* Povezani proizvodi */
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.related a {
  display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
}
.related a:hover { border-color: var(--line-strong); color: var(--ink); }
.related__img { width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--tint-differin); }
.related__img--p4 { background: var(--tint-p4); }
.related__img--p10 { background: var(--tint-p10); }
.related__img img { width: 100%; height: 100%; object-fit: contain; }
.related__name { font-weight: 600; line-height: 1.3; }
.related__price { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
@media (max-width: 620px) { .related { grid-template-columns: 1fr; } }

/* Traka za kupovinu na telefonu */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(19, 29, 25, .08);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-buy.is-visible { transform: translateY(0); }
.sticky-buy__info { display: grid; line-height: 1.2; min-width: 0; }
.sticky-buy__name { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__price { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .sticky-buy { display: flex; } }
@media (prefers-reduced-motion: reduce) { .sticky-buy { transition: none; } }
.kp-btn { white-space: nowrap; }
@media (max-width: 440px) { .sticky-buy .kp-btn__pre { display: none; } }
@media (max-width: 860px) {
  .product__media { aspect-ratio: 4 / 3; }
  body:has(.sticky-buy) .site-footer { padding-bottom: calc(40px + 84px + env(safe-area-inset-bottom, 0px)); }
}
