/* ============================================================
   Domaći kiseli kupus — stil
   Paleta:
   --green-900  #24411f  tamnozelena (brend, tekst naslova, pozadine)
   --green-700  #3a6630  zelena (akcenti, ikone)
   --leaf       #c9d77f  svetlozelena list kupusa (logo, detalji)
   --cream      #f8f3e6  krem pozadina
   --paper      #fffdf7  kartice / forma
   --orange     #e5601c  CTA (prati narandžastu činiju sa fotografije)
   --ink        #1d2619  osnovni tekst
   ============================================================ */
/* Fontovi — hostovani lokalno: Plus Jakarta Sans (naslovi) + Inter (tekst), latinica + č ć š ž đ */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 200 800; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 200 800; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --green-900: #24411f;
  --green-800: #2d5127;
  --green-700: #3a6630;
  --leaf: #c9d77f;
  --leaf-soft: #e7edc6;
  --cream: #f8f3e6;
  --paper: #fffdf7;
  --orange: #e5601c;
  --orange-600: #cc4f10;
  --ink: #1d2619;
  --muted: #5d6656;
  --line: #e3dccb;
  --danger: #b3261e;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(36, 65, 31, .06), 0 12px 32px -12px rgba(36, 65, 31, .22);
  --serif: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;   /* naslovi */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #1b3218; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; margin: 0; color: var(--green-900); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.ic { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(248, 243, 230, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(227, 220, 203, .7);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); }
.brand__mark { width: 38px; height: 38px; }
.brand__text { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; }
.brand__text strong { font-weight: 800; }
.brand--light { color: var(--paper); }
.topbar__nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: .95rem; }
.topbar__nav > a:not(.btn) { text-decoration: none; color: var(--muted); transition: color .2s; }
.topbar__nav > a:not(.btn):hover { color: var(--green-900); }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1rem/1 var(--sans);
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(229, 96, 28, .8); }
.btn--primary:hover { background: var(--orange-600); }
.btn--primary:disabled { background: #b9b1a1; box-shadow: none; cursor: not-allowed; }
.btn--ghost { border-color: var(--green-900); color: var(--green-900); background: transparent; }
.btn--ghost:hover { background: var(--green-900); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--green-900); }
.btn--light:hover { background: var(--leaf-soft); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--block { width: 100%; padding: 19px 26px; font-size: 1.08rem; }
.btn.is-loading .btn__label::after { content: "…"; }
.btn.is-loading { pointer-events: none; opacity: .85; }

/* ---------- Dekor (outline kupus) ---------- */
.deco { position: absolute; color: var(--green-700); opacity: .11; pointer-events: none; z-index: 0; }
.deco--1 { width: 420px; height: 420px; left: -140px; top: 40px; transform: rotate(-12deg); }
.deco--2 { width: 180px; height: 180px; left: 41%; top: 18px; transform: rotate(20deg); }
.deco--3 { width: 300px; height: 300px; right: -90px; bottom: -70px; transform: rotate(14deg); }
.deco--4 { width: 150px; height: 150px; left: 4%; bottom: 20px; transform: rotate(-30deg) scaleX(-1); }
.deco--5 { width: 380px; height: 380px; right: -100px; top: -60px; color: var(--leaf); opacity: .12; transform: rotate(-8deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; overflow: clip; padding: 56px 0 88px;
  background: radial-gradient(900px 500px at 85% 0%, rgba(201, 215, 127, .28), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(229, 96, 28, .07), transparent 60%); }
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start;
}

.product { position: sticky; top: 96px; }
.product__media {
  position: relative; border-radius: 28px; overflow: hidden;
  background: var(--paper); border: 8px solid #fff;
  box-shadow: 0 2px 4px rgba(36, 65, 31, .05), 0 30px 60px -24px rgba(36, 65, 31, .35);
  aspect-ratio: 1 / 1;
}
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.seal {
  position: absolute; right: 18px; top: 18px;
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: var(--green-900); color: var(--paper);
  box-shadow: 0 0 0 6px rgba(255, 253, 247, .9);
  transform: rotate(-8deg);
}
.seal__big { font-family: var(--serif); font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.seal__small { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf); margin-top: 4px; }

.perks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.perks li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--green-900);
  font-size: .98rem; font-weight: 600; box-shadow: 0 1px 2px rgba(36, 65, 31, .05);
}
.perks .ic { color: #fff; background: var(--green-700); border-radius: 50%; padding: 3px; width: 1.25em; height: 1.25em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: #fdeee4; border: 1px solid #f6d3bd;
  font: 700 .98rem/1.2 var(--sans); letter-spacing: -.005em; color: var(--orange-600);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(229, 96, 28, .18); }
.eyebrow--light { color: var(--leaf); background: rgba(201, 215, 127, .1); border-color: rgba(201, 215, 127, .28); }
.eyebrow--light::before { background: var(--leaf); box-shadow: 0 0 0 4px rgba(201, 215, 127, .2); }
.buy h1 { font-size: clamp(2.4rem, 4.4vw, 3.7rem); }
.buy h1 .hl { display: inline-block; color: var(--green-700); white-space: nowrap;
  background: linear-gradient(transparent 68%, rgba(201, 215, 127, .65) 68%, rgba(201, 215, 127, .65) 92%, transparent 92%); }
.lead { font-size: 1.2rem; line-height: 1.6; color: #4b5445; margin: 20px 0 26px; max-width: 32em; }

.pricebar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding: 20px 22px; margin-bottom: 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, #fffdf7, #f3f0dc); border: 1px solid var(--line);
}
.price { display: flex; align-items: baseline; gap: 8px; color: var(--green-900); }
.price__num { font-family: var(--serif); font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.price__cur { font-family: var(--serif); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.price__unit { color: #4b5445; font-size: 1.15rem; font-weight: 600; margin-left: 2px; }
.stock {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.08rem; font-weight: 600; color: var(--green-800);
  background: #fff; border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 1px 2px rgba(36, 65, 31, .06);
}
.stock strong { font-weight: 800; font-size: 1.15rem; }
.stock__dot { width: 10px; height: 10px; border-radius: 50%; background: #3fa34d; box-shadow: 0 0 0 4px rgba(63, 163, 77, .18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(63, 163, 77, .06); } }
.stock--low .stock__dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(229, 96, 28, .18); }
.stock--out { color: var(--danger); }
.stock--out .stock__dot { background: var(--danger); box-shadow: none; animation: none; }

/* ---------- Forma ---------- */
.order, .success {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 30px; box-shadow: 0 2px 4px rgba(36, 65, 31, .04), 0 24px 48px -24px rgba(36, 65, 31, .28);
}
.order__qty {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 16px;
  padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px dashed var(--line);
}
.label, .field label { font-size: .92rem; font-weight: 700; color: var(--green-900); }
.stepper { display: inline-flex; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.stepper__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--paper); color: var(--green-900);
  font: 700 1.35rem/1 var(--sans); box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  transition: background .2s, color .2s;
}
.stepper__btn:hover:not(:disabled) { background: var(--green-900); color: var(--paper); }
.stepper__btn:disabled { opacity: .35; cursor: not-allowed; }
.stepper input {
  width: 48px; text-align: center; border: 0; background: transparent;
  font: 800 1.2rem var(--sans); color: var(--ink); -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }
.total { justify-self: end; text-align: right; font-size: .95rem; color: var(--muted); line-height: 1.2; }
.total strong { display: block; font-family: var(--serif); font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; color: var(--green-900); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field input, .note textarea {
  width: 100%; font: 500 1rem var(--sans); color: var(--ink);
  padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .note textarea::placeholder { color: #a8a596; }
.field input:focus, .note textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(58, 102, 48, .14); }
.field.has-error input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }
.field__err { font-size: .8rem; color: var(--danger); font-weight: 600; }
.note { margin: 2px 0 18px; }
.note summary { cursor: pointer; font-size: .95rem; font-weight: 700; color: var(--green-700); list-style: none; }
.note summary::-webkit-details-marker { display: none; }
.note summary::before { content: "+ "; }
.note[open] summary::before { content: "– "; }
.note textarea { margin-top: 10px; resize: vertical; }
.order__fine { margin: 14px 0 0; font-size: .92rem; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; font-size: .95rem; }
.alert--ok { background: var(--leaf-soft); color: var(--green-900); }
.alert--err { background: #fbe6e3; color: var(--danger); }
.order > .alert { margin: 0 0 16px; }

.success { text-align: center; padding: 40px 26px; }
.success:focus { outline: none; }
.success__ic { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--green-900); fill: var(--leaf); margin: 0 auto 14px; }
.success h2 { font-size: 1.7rem; margin-bottom: 8px; }
.success p { color: var(--muted); margin: 0 0 18px; }

.callline {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; justify-content: center; column-gap: 14px; row-gap: 0;
  margin-top: 16px; padding: 14px 16px; font-size: 1.05rem; border-radius: 16px;
  text-decoration: none; color: var(--muted); font-weight: 600;
  background: var(--paper); border: 1.5px solid var(--line);
  box-shadow: 0 1px 2px rgba(36, 65, 31, .05);
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s, box-shadow .2s;
}
.callline::before {
  grid-row: 1 / 3; content: ""; width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--green-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c9d77f' d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.callline span { font-size: .92rem; line-height: 1.2; }
.callline strong { line-height: 1.2; color: var(--green-900); font-family: var(--serif); font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; }
.callline:hover, .callline:active { border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(58, 102, 48, .1); }

/* ---------- O nama ---------- */
.about { position: relative; overflow: hidden; overflow: clip; background: var(--green-900); color: #dfe6cf; padding: 88px 0; }
.about h2 { color: var(--paper); font-size: clamp(2rem, 3.4vw, 2.8rem); }
.about__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px 64px; }
.about__text p { margin: 0 0 14px; font-size: 1.12rem; line-height: 1.7; }
.steps { grid-column: 1 / -1; list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px; border-radius: var(--radius);
  background: rgba(255, 253, 247, .06); border: 1px solid rgba(201, 215, 127, .22);
}
.steps li > span {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--leaf); color: var(--green-900); font: 800 1.05rem var(--serif);
}
.steps strong { display: block; color: var(--paper); font-family: var(--serif); font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: 2px; }
.steps div { font-size: 1rem; }

/* ---------- CTA ---------- */
.cta { background: var(--orange); color: #fff; padding: 34px 0; }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta p { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; letter-spacing: -.02em; }
.cta p { text-wrap: balance; }
.cta p strong { font-weight: 800; white-space: nowrap; }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn--primary { background: var(--green-900); box-shadow: none; }
.cta .btn--primary:hover { background: var(--green-800); }

/* ---------- Footer ---------- */
.footer { background: #1b3218; color: #a9b59a; padding: 26px 0; font-size: .9rem; }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer a { color: var(--leaf); text-decoration: none; }
.footer .brand__mark { width: 30px; height: 30px; }
.footer .brand__text { font-size: 1rem; }

/* ---------- Mobilna traka ---------- */
.mbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding-top: 28px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .product { position: static; display: grid; grid-template-columns: 1fr; }
  .product__media { aspect-ratio: 4 / 3; }
  .perks { gap: 6px; margin-top: 12px; }
  .perks li { padding: 7px 12px; font-size: .86rem; }
  .about__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .deco--2 { display: none; }
}
@media (max-width: 640px) {
  .container { width: min(1160px, 100% - 28px); }
  .topbar__in { height: 60px; }
  .topbar__nav > a:not(.btn) { display: none; }
  .topbar__nav .btn { padding: 9px 14px; font-size: .85rem; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__text { font-size: 1.02rem; }
  .seal { width: 76px; height: 76px; right: 12px; top: 12px; box-shadow: 0 0 0 4px rgba(255,253,247,.9); }
  .seal__small { font-size: .6rem; }
  .product__media { aspect-ratio: 16 / 11; border-radius: 22px; }
  .perks li .ic { display: none; }
  .buy h1 .hl { display: inline; white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .lead { font-size: 1.08rem; margin: 14px 0 20px; }
  .eyebrow { font-size: .9rem; }
  .pricebar { padding: 16px; }
  .stock { font-size: .98rem; padding: 8px 14px; }
  .seal__big { font-size: 1.4rem; }
  .order, .success { padding: 22px 16px; }
  .order__qty { grid-template-columns: 1fr auto; }
  .order__qty .label { grid-column: 1 / -1; margin-bottom: -6px; }
  .grid2 { gap: 10px; }
  .price__num { font-size: 2.8rem; }
  .price__unit { font-size: 1.02rem; }
  .about { padding: 64px 0; }
  .cta__btns, .cta__btns .btn { width: 100%; }
  .mbar {
    display: grid; grid-template-columns: auto 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #1b3218; border-top: 1px solid rgba(201, 215, 127, .18);
    box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, .35);
    transition: transform .25s;
  }
  .mbar.is-hidden { transform: translateY(110%); }
  .footer { padding-bottom: calc(26px + 74px + env(safe-area-inset-bottom)); }
  .mbar .btn { -webkit-tap-highlight-color: transparent; }
  .mbar .btn { padding: 14px 18px; }
}
/* Scrollbar u bojama sajta (desktop) */
@media (min-width: 961px) and (hover: hover) {
  html { scrollbar-color: var(--orange) var(--green-900); scrollbar-width: thin; }
  ::-webkit-scrollbar { width: 12px; }
  ::-webkit-scrollbar-track { background: var(--green-900); }
  ::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 999px; border: 3px solid var(--green-900); }
  ::-webkit-scrollbar-thumb:hover { background: #f07a38; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
