/* ==========================================================================
   SPELTEX - dizajn sistem
   Boje: duboka šumska zelena + zlatna spelta + topla krem podloga
   Fontovi: Outfit (naslovi) + Manrope (tekst)
   ========================================================================== */

:root {
  --green-950: #0f2318;
  --green-900: #173a25;
  --green-800: #1f4d2e;
  --green-700: #2e6b37;
  --green-600: #3b7d3e;
  --green-500: #4f9a4a;
  --green-200: #c9e0bd;
  --green-100: #e3efdc;
  --green-50:  #f0f6ec;

  --gold-500: #d6be4c;
  --gold-600: #b89c2b;
  --gold-700: #8f7714;
  --gold-100: #f6efc9;

  --cream:   #f8f5ee;
  --cream-2: #efeadf;
  --paper:   #ffffff;

  --ink:    #15201a;
  --ink-2:  #3c4a40;
  --muted:  #66716a;
  --border: #ddd8cb;
  --danger: #b4302a;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgba(21, 32, 26, .06), 0 2px 8px rgba(21, 32, 26, .05);
  --shadow:   0 8px 24px rgba(21, 32, 26, .10), 0 2px 6px rgba(21, 32, 26, .06);
  --shadow-l: 0 24px 60px rgba(21, 32, 26, .18);

  --font-display: "Outfit", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--green-950); }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.measure { max-width: 64ch; }
.measure.center { margin-left: auto; margin-right: auto; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green-900); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.section--paper { background: var(--paper); }
.section--green { background: var(--green-900); color: #e9f0e6; }
.section--green h2, .section--green h3 { color: #fff; }
.section--green .muted { color: #b9c9b6; }
.section--green a { color: var(--gold-500); }
.section--green .btn--gold { color: var(--green-950); }
.section--green .btn--light { color: var(--green-900); }
.section--green .btn--light:hover { color: var(--green-950); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.section--green .eyebrow { color: var(--gold-500); }

/* --- Dugmad ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
  touch-action: manipulation;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 18px rgba(46, 107, 55, .28); }
.btn--primary:hover { background: var(--green-800); color: #fff; box-shadow: 0 8px 22px rgba(46, 107, 55, .34); }
.btn--gold { background: var(--gold-500); color: var(--green-950); }
.btn--gold:hover { background: #e4cd5f; color: var(--green-950); }
.btn--outline { background: transparent; color: var(--green-900); border-color: var(--green-900); }
.btn--outline:hover { background: var(--green-900); color: #fff; }
.btn--light { background: #fff; color: var(--green-900); }
.btn--light:hover { background: var(--cream-2); color: var(--green-950); }
.btn--ghost { background: transparent; color: var(--green-800); padding-inline: 14px; }
.btn--ghost:hover { background: var(--green-50); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --- Header ----------------------------------------------------------- */
.topbar {
  background: var(--green-900); color: #dbe6d6; font-size: .85rem; text-align: center; padding: 8px var(--gutter);
}
.topbar a { color: var(--gold-500); font-weight: 700; }
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 245, 238, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-s); }
.header__inner { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 44px; width: auto; }
.nav { display: none; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; font-size: .97rem;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--green-50); color: var(--green-900); }
.nav a[aria-current="page"] { color: var(--green-900); background: var(--green-100); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 46px; min-height: 46px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--green-900); text-decoration: none; font-weight: 700; font-size: .95rem;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--green-50); border-color: var(--green-200); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .label { display: none; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--gold-500); color: var(--green-950); font-size: .78rem; font-weight: 800; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--cream);
}
.cart-count[hidden] { display: none; }
.burger { display: inline-flex; }

@media (min-width: 960px) {
  .nav { display: flex; gap: 2px; margin-left: 10px; }
  .burger { display: none; }
  .icon-btn .label { display: inline; }
  .logo img { height: 50px; }
}

/* Mobilni meni */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200; background: var(--cream); padding: 24px var(--gutter);
  display: flex; flex-direction: column; gap: 6px; transform: translateX(100%); transition: transform .3s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: none; }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mobile-nav a.link { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--green-950); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mobile-nav .btn-row { margin-top: 24px; }

/* --- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(214, 190, 76, .18), transparent 70%),
    radial-gradient(50% 60% at 10% 80%, rgba(79, 154, 74, .14), transparent 70%);
}
.hero__grid { position: relative; display: grid; gap: 36px; align-items: center; }
.hero__copy { max-width: 600px; }
.hero__copy h1 { margin-bottom: 20px; }
.hero__copy h1 em { font-style: normal; color: var(--green-700); }
.hero__copy .lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); margin-bottom: 28px; max-width: 52ch; }
.rating {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 16px 10px 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px; font-size: .92rem; color: var(--ink-2); text-decoration: none;
}
.rating:hover { border-color: var(--green-200); color: var(--green-900); }
.rating strong { color: var(--ink); }
.stars { display: inline-flex; gap: 2px; color: var(--gold-600); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.hero__visual { position: relative; }
.hero__product { position: relative; z-index: 1; margin: 0 auto; width: min(100%, 520px); filter: drop-shadow(0 30px 40px rgba(21, 32, 26, .28)); }
.hero__blob {
  position: absolute; inset: 6% 4% 0; z-index: 0; border-radius: 48% 52% 40% 60% / 55% 45% 55% 45%;
  background: linear-gradient(160deg, var(--green-100), var(--green-200));
}
.floating {
  position: absolute; z-index: 2; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow);
  font-size: .86rem; font-weight: 700; color: var(--green-900); display: flex; align-items: center; gap: 10px;
}
.floating svg { width: 22px; height: 22px; color: var(--green-600); flex: none; }
.floating small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.floating--1 { left: 0; top: 14%; }
.floating--2 { right: 0; top: 42%; }
.floating--3 { left: 6%; bottom: 10%; }
@media (max-width: 599px) { .floating { display: none; } }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .hero { padding-bottom: 32px; }
}

/* Traka povjerenja */
.trust { background: var(--green-900); color: #e9f0e6; }
.trust__list { display: flex; gap: 14px 36px; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 18px 0; font-weight: 600; font-size: .92rem; }
.trust__list li { display: inline-flex; align-items: center; gap: 8px; }
.trust__list svg { width: 18px; height: 18px; color: var(--gold-500); }

/* --- Kartice ----------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-s); transition: transform .25s var(--ease), box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-top: 12px; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700);
}
.card__icon svg { width: 26px; height: 26px; }
.card--mineral { position: relative; overflow: hidden; }
.card--mineral .sym {
  position: absolute; right: 14px; top: 8px; font-family: var(--font-display); font-size: 4.6rem; font-weight: 800;
  color: var(--green-50); line-height: 1; pointer-events: none; user-select: none;
}
.card--mineral ul { padding-left: 18px; margin: 10px 0 0; color: var(--ink-2); }
.card--mineral li { margin-bottom: 6px; }

/* Slika + tekst */
.split { display: grid; gap: 32px; align-items: center; }
.split__media { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; position: relative; background: var(--green-100); }
.split__media img, .split__media video { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--rev .split__media { order: 2; }
}
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--green-600); flex: none; margin-top: 2px; }

/* Proces / koraci */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: grid; }
.step__media { aspect-ratio: 16 / 10; background: var(--green-100); position: relative; }
.step__media video, .step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__body { padding: 20px 22px 24px; }
.step__num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px;
  background: var(--gold-500); color: var(--green-950); font-weight: 700; font-family: var(--font-display); margin-bottom: 10px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Statistika */
.stats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { text-align: center; padding: 22px 12px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold-500); line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat__label { font-size: .92rem; color: #cdd9c9; }

/* --- Rivjui ----------------------------------------------------------- */
.review-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; padding: 22px 26px;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 28px;
}
.review-summary__score { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--green-950); }
.review-summary .stars svg { width: 24px; height: 24px; }
.review-summary__text { color: var(--ink-2); }
.review-summary__text strong { display: block; color: var(--ink); font-size: 1.05rem; }
.review-summary .btn { margin-left: auto; }
.reviews { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.review {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-s); break-inside: avoid;
}
.review__head { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; flex: none;
  background: var(--green-100); color: var(--green-800); font-weight: 700; font-family: var(--font-display); font-size: 1.1rem;
}
.review__who { line-height: 1.25; }
.review__who strong { display: block; font-size: .98rem; }
.review__who span { font-size: .82rem; color: var(--muted); }
.review__src { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; color: var(--muted); padding: 4px 10px; border-radius: 999px; background: var(--cream); }
.review__src svg { width: 14px; height: 14px; }
.review__text { margin: 0; color: var(--ink-2); font-size: .98rem; }
.review__text::before { content: "“"; color: var(--gold-600); font-family: Georgia, serif; font-size: 1.4em; line-height: 0; margin-right: 2px; }
.review__owner { margin: 0; padding: 10px 14px; background: var(--green-50); border-radius: 12px; font-size: .88rem; color: var(--green-800); }
.review__owner b { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.review__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-size: .76rem; font-weight: 700; color: var(--green-800); background: var(--green-100); padding: 4px 10px; border-radius: 999px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  border: 1px solid var(--border); background: #fff; color: var(--ink-2); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  transition: background .2s, color .2s, border-color .2s; min-height: 40px;
}
.chip:hover { border-color: var(--green-200); }
.chip[aria-pressed="true"] { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.review-note { font-size: .88rem; color: var(--muted); margin-top: 20px; }

/* --- Prodavnica --------------------------------------------------------- */
.packages { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.package {
  position: relative; background: var(--paper); border: 2px solid var(--border); border-radius: var(--radius-l); padding: 28px 26px 26px;
  display: flex; flex-direction: column; gap: 14px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.package:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.package--featured { border-color: var(--green-700); box-shadow: var(--shadow); }
.package__flag {
  position: absolute; top: -14px; left: 24px; background: var(--gold-500); color: var(--green-950);
  font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.package__img { height: 150px; display: grid; place-items: center; }
.package__img img { max-height: 150px; width: auto; }
.package h3 { margin: 0; font-size: 1.5rem; }
.package__sub { color: var(--muted); margin: 0; font-size: .95rem; }
.package__price { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--green-950); line-height: 1; font-variant-numeric: tabular-nums; }
.price--old { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; font-family: var(--font-body); }
.package__per { font-size: .86rem; color: var(--muted); margin: 0; }
.package ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: .95rem; color: var(--ink-2); }
.package li { display: flex; gap: 10px; align-items: flex-start; }
.package li svg { width: 18px; height: 18px; color: var(--green-600); flex: none; margin-top: 3px; }
.package .btn { margin-top: auto; }
.save { color: var(--green-700); font-weight: 700; font-size: .9rem; }

.product-hero { display: grid; gap: 36px; align-items: start; }
.product-hero__gallery { background: linear-gradient(160deg, var(--green-50), var(--green-100)); border-radius: var(--radius-l); padding: 30px; }
.product-hero__gallery img { margin: 0 auto; max-height: 540px; width: auto; filter: drop-shadow(0 24px 30px rgba(21, 32, 26, .25)); }
@media (min-width: 900px) { .product-hero { grid-template-columns: 1fr 1fr; gap: 56px; } .product-hero__gallery { position: sticky; top: 100px; } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.2rem; color: var(--green-900); }
.qty button:hover { background: var(--green-50); }
.qty output { min-width: 36px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--gold-100); color: #5d4d05; font-size: .93rem; }
.notice svg { width: 22px; height: 22px; flex: none; }
.notice--green { background: var(--green-50); color: var(--green-900); }
.notice p { margin: 0; }

/* Korpa (ladica) */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 35, 24, .45); z-index: 300; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(100%, 440px); background: var(--cream); z-index: 310;
  transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-l);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer__head h2 { margin: 0; font-size: 1.4rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer__foot { padding: 16px 20px 22px; border-top: 1px solid var(--border); background: #fff; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-line img { width: 64px; height: 64px; object-fit: contain; }
.cart-line__name { font-weight: 700; display: block; }
.cart-line__sub { font-size: .84rem; color: var(--muted); }
.cart-line__price { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cart-line .qty { margin-top: 6px; transform: scale(.88); transform-origin: left; }
.cart-line .remove { background: none; border: 0; color: var(--muted); font-size: .82rem; padding: 4px 0; text-decoration: underline; }
.cart-empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.cart-empty svg { width: 48px; height: 48px; margin: 0 auto 10px; color: var(--green-200); }
.totals { display: grid; gap: 6px; margin-bottom: 14px; }
.totals div { display: flex; justify-content: space-between; font-size: .95rem; color: var(--ink-2); }
.totals .total { font-weight: 800; font-size: 1.15rem; color: var(--ink); border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }

/* Checkout */
.checkout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .checkout { grid-template-columns: 1.2fr .8fr; gap: 44px; } .checkout__summary { position: sticky; top: 100px; } }
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .93rem; }
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; padding: 12px 14px; min-height: 50px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(79, 154, 74, .18); }
.field .hint { font-size: .84rem; color: var(--muted); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field .error { font-size: .86rem; color: var(--danger); display: none; }
.field.is-invalid .error { display: block; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--green-700); border-radius: 14px; background: var(--green-50); }
.radio-card input { margin-top: 4px; accent-color: var(--green-700); width: 20px; height: 20px; }
.radio-card strong { display: block; }
.radio-card span { font-size: .9rem; color: var(--ink-2); }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-size: .95rem; }
.form-status.is-error { display: block; background: #fbe9e7; color: #7a1f1a; }
.form-status.is-ok { display: block; background: var(--green-50); color: var(--green-900); }
.summary-box { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.summary-box h2 { font-size: 1.35rem; margin-bottom: 12px; }

/* --- FAQ --------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-s); border-color: var(--green-200); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 18px 0; font-weight: 700; font-size: 1.02rem; color: var(--green-950); min-height: 60px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--green-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e6b37' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-size: 16px; background-position: center; background-repeat: no-repeat; transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; }
.faq__body p:last-child { margin-bottom: 0; }

/* --- Blog -------------------------------------------------------------- */
.post-card { display: grid; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.post-card__img { aspect-ratio: 16 / 10; background: var(--green-100); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px 22px 24px; }
.post-card h3 { margin: 8px 0 8px; }
.post-card p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.post-card .meta { font-size: .8rem; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.article { max-width: 720px; margin-inline: auto; }
.article h2 { font-size: 1.6rem; margin-top: 2em; }
.article h3 { margin-top: 1.6em; }
.article p, .article li { color: var(--ink-2); font-size: 1.05rem; }
.article .lead { font-size: 1.2rem; }
.article figure { margin: 2em 0; }
.article figure img { border-radius: var(--radius); }
.article figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.article-head { max-width: 760px; margin-inline: auto; text-align: center; padding-bottom: 20px; }
.disclaimer { border-left: 4px solid var(--gold-500); padding: 12px 18px; background: var(--gold-100); border-radius: 0 12px 12px 0; font-size: .92rem; color: #5d4d05; }

/* --- Doc kartice ------------------------------------------------------- */
.doc { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit; }
.doc:hover { color: inherit; }
.doc__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex: none; }
.doc__icon svg { width: 28px; height: 28px; }
.doc h3 { margin: 0 0 4px; font-size: 1.1rem; }
.doc p { margin: 0; color: var(--muted); font-size: .9rem; }
.doc .link { color: var(--green-700); font-weight: 700; font-size: .9rem; margin-top: 8px; display: inline-block; }

/* --- CTA traka ----------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-l); padding: clamp(32px, 5vw, 64px);
  background: var(--green-900); color: #fff; display: grid; gap: 24px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #cdd9c9; margin: 0; max-width: 52ch; }
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 190, 76, .35), transparent 70%); pointer-events: none;
}
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; } }

/* --- Video sekcija ------------------------------------------------------- */
.video-frame { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--green-950); box-shadow: var(--shadow); }
.video-frame video { width: 100%; display: block; }
.video-frame--vertical { max-width: 380px; margin-inline: auto; }

/* --- Kontakt ------------------------------------------------------------ */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 24px; height: 24px; color: var(--green-600); flex: none; margin-top: 2px; }
.contact-list a { font-weight: 700; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 3; background: var(--green-50); }
.map iframe { width: 100%; height: 100%; border: 0; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); color: var(--green-900); }
.social a:hover { background: var(--green-50); }
.social svg { width: 20px; height: 20px; }

/* --- Footer ------------------------------------------------------------- */
.footer { background: var(--green-950); color: #b9c9b6; padding: 56px 0 28px; font-size: .95rem; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #dbe6d6; text-decoration: none; }
.footer a:hover { color: var(--gold-500); }
.footer__logo { background: #fff; border-radius: 12px; padding: 8px 12px; display: inline-block; margin-bottom: 14px; }
.footer__logo img { height: 40px; width: auto; }
.footer .social a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .84rem; color: #8ea08a; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.footer__legal { font-size: .84rem; color: #8ea08a; margin-top: 18px; max-width: 70ch; }

/* --- Toast --------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 400; opacity: 0; pointer-events: none;
  background: var(--green-950); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-l);
  transition: opacity .25s, transform .25s var(--ease); display: flex; gap: 10px; align-items: center; max-width: calc(100% - 32px);
}
.toast svg { width: 20px; height: 20px; color: var(--gold-500); flex: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* --- Mobilna "naruči" traka ------------------------------------------------ */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(248, 245, 238, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: center; transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .price-mini { font-weight: 800; line-height: 1.1; }
.sticky-cta .price-mini small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.sticky-cta .btn { margin-left: auto; }
@media (min-width: 960px) { .sticky-cta { display: none; } }
body.has-sticky { padding-bottom: 76px; }
@media (min-width: 960px) { body.has-sticky { padding-bottom: 0; } }

/* --- Animacije ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .package:hover, .post-card:hover { transform: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Stranica-naslov */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 36px); }
.page-head h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-800); }

/* Utility */
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Kartica minerala (element) ------------------------------------------ */
.mineral {
  position: relative; display: flex; flex-direction: column; min-height: 100%;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 18px;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.mineral:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mineral__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mineral__sym { font-family: var(--font-display); font-weight: 800; font-size: 4.4rem; line-height: .82; letter-spacing: -.05em; color: var(--green-700); }
.mineral__num { font-size: .8rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.mineral__name {
  font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 16px 0 0; padding-bottom: 12px; border-bottom: 2px solid var(--green-950); line-height: 1.2;
}
.mineral__claims { list-style: none; margin: 0; padding: 0; }
.mineral__claims li { padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .95rem; line-height: 1.4; color: var(--ink-2); }
.mineral__claims li:last-child { border-bottom: 0; }
.mineral__foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; font-size: .76rem; font-weight: 700; color: var(--green-700); letter-spacing: .02em; }
.mineral--lead { background: var(--green-900); border-color: transparent; color: #e9f0e6; }
.mineral--lead .mineral__sym { color: var(--gold-500); }
.mineral--lead .mineral__num, .mineral--lead .mineral__name { color: #b9c9b6; }
.mineral--lead .mineral__name { border-color: rgba(255, 255, 255, .35); }
.mineral--lead .mineral__claims li { color: #e9f0e6; border-color: rgba(255, 255, 255, .14); }
.mineral--lead .mineral__foot { color: var(--gold-500); }
.minerals { align-items: stretch; }

/* Bilješke ispod minerala - lakša težina, bez okvira */
.note { border-top: 2px solid var(--green-950); padding-top: 16px; }
.note__label { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); }
.note h3 { margin: 8px 0 8px; font-size: 1.2rem; }
.note p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* --- Proces: tri reda + velika kartica (korak 4) --------------------------- */
.proc { display: grid; gap: 22px; align-items: stretch; }
.proc__rows { display: flex; flex-direction: column; border-top: 2px solid var(--green-950); }
.proc__row { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border); align-items: center; flex: 1; }
.proc__row .m { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--green-100); }
.proc__row .m video, .proc__row .m img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proc__row .t { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin-bottom: 4px; }
.proc__row h3 { font-size: 1.15rem; margin: 0 0 4px; }
.proc__row p { margin: 0; font-size: .93rem; color: var(--ink-2); }
.proc__big { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--green-900); color: #fff; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; }
.proc__big video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.proc__big .c { position: relative; padding: 30px; background: linear-gradient(transparent, rgba(15, 35, 24, .9) 55%); }
.proc__big .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 6vw, 5.4rem); line-height: .85; letter-spacing: -.05em; color: var(--gold-500); }
.proc__big .n small { display: block; font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #cdd9c9; margin-top: 10px; }
.proc__big h3 { color: #fff; font-size: 1.5rem; margin: 18px 0 6px; }
.proc__big p { margin: 0; color: #cdd9c9; max-width: 40ch; }
@media (min-width: 900px) { .proc { grid-template-columns: 1fr 1.1fr; } .proc__big { min-height: 520px; } }
@media (max-width: 480px) { .proc__row { grid-template-columns: 76px 1fr; gap: 14px; } }
.review__text--empty { color: var(--muted); font-style: italic; }
.review__text--empty::before { content: none; }

/* Hero: jedno, dominantno dugme */
.btn--hero { min-height: 64px; padding: 0 44px; font-size: 1.15rem; box-shadow: 0 10px 28px rgba(46, 107, 55, .38); }
.btn--hero:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(46, 107, 55, .42); }
.hero__cta { margin-bottom: 6px; }
@media (max-width: 599px) { .btn--hero { width: 100%; } }

/* Ukratko: tekst + 3 recenzije lijevo, vertikalni video desno */
.intro { display: grid; gap: 28px; grid-template-areas: "text" "video" "reviews"; }
.intro__text { grid-area: text; }
.intro__video { grid-area: video; }
.intro__reviews { grid-area: reviews; }
.intro__video .video-frame--vertical { max-width: 340px; margin-inline: auto; }
.reviews--stack { grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) {
  .intro { grid-template-columns: 1.1fr .9fr; grid-template-areas: "text video" "reviews video"; column-gap: 56px; row-gap: 20px; align-items: start; }
  .intro__video { position: sticky; top: 100px; }
  .intro__video .video-frame--vertical { margin-inline: auto 0; }
}

/* --- Heder v2: linkovi lijevo, logo u sredini, korpa desno ------------------ */
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; min-height: 84px; }
.header__left { display: flex; align-items: center; justify-self: start; }
.header__inner .logo { justify-self: center; }
.header__actions { margin-left: 0; justify-self: end; }
.logo img { height: 54px; }
.burger { display: inline-flex; }
.nav { display: none; }
@media (min-width: 960px) {
  .header__inner { min-height: 96px; }
  .logo img { height: 66px; }
  .burger { display: none; }
  .nav { display: flex; gap: 4px; margin-left: 0; }
  .nav a { font-size: 1.1rem; padding: 10px 16px; }
  .icon-btn { min-height: 50px; font-size: 1.02rem; }
}
.mobile-nav a.link { font-size: 1.6rem; }

/* Hero citat: drugi red i potpis */
.hero__sub { display: block; margin-top: .7rem; font-family: inherit; font-size: .5em; font-weight: 500; line-height: 1.35; letter-spacing: 0; }
.hero__author { margin: .4rem 0 1.8rem; font-weight: 700; font-size: 1.3rem; color: var(--green-800); }
@media (max-width: 599px) {
  .hero__sub { font-size: .66em; }
  .hero__author { font-size: 1.15rem; }
}
@media (min-width: 960px) { .hero__author { font-size: 1.45rem; } }

/* Hero: broj ljudi iznad ocjene */
.hero__proof { margin: 22px 0 0; font-size: 1.05rem; color: var(--ink-2); }
.hero__proof strong { color: var(--green-900); }
.hero__proof + .rating { margin-top: 10px; }

/* Prodavnica: benefiti sa emotikonima */
.checklist--benefits { gap: 12px; }
.checklist--benefits .emoji { flex: none; width: 30px; font-size: 1.35rem; line-height: 1.25; text-align: center; }
.checklist--benefits strong { color: var(--green-900); }

/* Prodavnica: linija ispod cijene */
.product-hero__per { font-size: 1.05rem; }
.product-hero__per strong { color: var(--green-900); font-weight: 800; }

/* Prodavnica: kartice za izbor pakovanja (1 L / 2 L / 3 L) */
.opt-cards { display: grid; gap: 12px; margin: 18px 0 20px; }
.opt-card { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center; width: 100%; padding: 16px 18px; border: 2px solid var(--border); border-radius: 18px; background: #fff; cursor: pointer; font: inherit; text-align: left; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.opt-card:hover { border-color: var(--green-500); }
.opt-card.is-on { border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(46, 107, 55, .12); }
.opt-card__radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9c5b8; background: #fff; }
.is-on .opt-card__radio { border: 7px solid var(--green-700); }
.opt-card__name { display: block; font-weight: 800; font-size: 1.08rem; }
.opt-card__sub { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.opt-card__price { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--green-950); line-height: 1; white-space: nowrap; }
.opt-card__price s { font-family: var(--font-body); font-weight: 500; font-size: .9rem; color: var(--muted); margin-right: 6px; }
.opt-card__price small { display: block; font-family: var(--font-body); font-weight: 700; font-size: .78rem; color: var(--green-700); margin-top: 5px; }
.opt-card__flag { position: absolute; top: -12px; left: 16px; background: var(--gold-500); color: var(--green-950); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.opt-card__flag--green { background: var(--green-100); color: var(--green-900); }
#naruci { scroll-margin-top: 80px; }
#recept { scroll-margin-top: 90px; }
