/* pozega.shop — smjer A · Zlatna dolina. Vrijednosti iz docs/dizajn/tokens.css */
:root {
  color-scheme: light;
  /* Boje — temelj */
  --c-bg:          #f7f4ec;  /* papir */
  --c-surface:     #ffffff;
  --c-surface-2:   #efe9da;  /* udubljena polja, trake */
  --c-ink:         #16231e;  /* tekst 15,4:1 */
  --c-ink-2:       #45524c;  /* sekundarni tekst 7,6:1 */
  --c-ink-3:       #5f6a64;  /* opisi, oznake 5,2:1 */
  --c-line:        #ddd5c2;
  --c-line-2:      #c9bfa8;

  /* Brend */
  --c-valley:      #123b33;  /* dolina: uvod, presuda */
  --c-on-valley:   #f7f4ec;
  --c-primary:     #123b33;  /* primarni gumb */
  --c-on-primary:  #ffffff;
  --c-gold:        #e9b23a;  /* samo pozadina / ukras */
  --c-on-gold:     #2e2104;
  --c-gold-soft:   #f7e8c2;
  --c-gold-text:   #8a5d00;  /* zlatni tekst na papiru 5,3:1 */

  /* Značenje */
  --c-good:        #1c6b4a;  /* najniža, ušteda, ▼ */
  --c-good-soft:   #e2efe6;
  --c-good-line:   #8fbea2;
  --c-up:          #a6421b;  /* ▲ poskupljenje */
  --c-up-soft:     #f7e4da;
  --c-focus:       #2b6cb0;
  --c-overlay:     rgba(13, 22, 19, .52);

  /* Trgovine — abecedno; uz boju uvijek oblik + naziv */
  --c-agronom:     #2b6cb0;  /* ● krug */
  --c-alles:       #7e4ba6;  /* ■ kvadrat */
  --c-color:       #0f7f86;  /* ▲ trokut */
  --c-pevex:       #8b5e34;  /* ◆ romb */

  /* Tipografija */
  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-text:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 12px;  --fs-sm: 13px;  --fs-md: 15px;  --fs-base: 16px;
  --fs-lg: 18px;  --fs-xl: 22px;  --fs-2xl: 28px; --fs-3xl: 36px; --fs-4xl: 48px;
  --lh-tight: 1.1; --lh-snug: 1.3; --lh-base: 1.5;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --num: tabular-nums;     /* font-variant-numeric za sve cijene */

  /* Razmaci (4 px baza) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;

  /* Radijusi */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;

  /* Sjene */
  --sh-1: 0 1px 2px rgba(22, 35, 30, .06);
  --sh-2: 0 1px 2px rgba(22, 35, 30, .06), 0 6px 18px rgba(22, 35, 30, .07);
  --sh-3: 0 20px 56px rgba(22, 35, 30, .20);

  /* Dodir i raspored */
  --tap: 44px;                /* najmanja dodirna meta */
  --container: 1200px;
  --sidebar: 248px;           /* kategorije, desktop */
  --cart-panel: 440px;        /* košarica, desktop */
}
:root[data-theme="dark"] { color-scheme: dark;
  --c-bg:          #0d1613;
  --c-surface:     #14201c;
  --c-surface-2:   #1b2a25;
  --c-ink:         #edf0ea;
  --c-ink-2:       #bcc6bf;
  --c-ink-3:       #94a09a;
  --c-line:        #283832;
  --c-line-2:      #3a4f47;

  --c-valley:      #163f36;
  --c-on-valley:   #f7f4ec;
  --c-primary:     #f0c25a;
  --c-on-primary:  #1b1405;
  --c-gold:        #f0c25a;
  --c-on-gold:     #1b1405;
  --c-gold-soft:   #3a2f14;
  --c-gold-text:   #f0c25a;

  --c-good:        #6fd3a0;
  --c-good-soft:   #143528;
  --c-good-line:   #2f7a57;
  --c-up:          #f0956b;
  --c-up-soft:     #3d2219;
  --c-focus:       #7fb2ee;
  --c-overlay:     rgba(0, 0, 0, .62);

  --c-agronom:     #7fb2ee;
  --c-alles:       #c3a0e8;
  --c-color:       #5fcbd0;
  --c-pevex:       #d6a47a;

  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --sh-3: 0 24px 64px rgba(0, 0, 0, .6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark;
  --c-bg:          #0d1613;
  --c-surface:     #14201c;
  --c-surface-2:   #1b2a25;
  --c-ink:         #edf0ea;
  --c-ink-2:       #bcc6bf;
  --c-ink-3:       #94a09a;
  --c-line:        #283832;
  --c-line-2:      #3a4f47;

  --c-valley:      #163f36;
  --c-on-valley:   #f7f4ec;
  --c-primary:     #f0c25a;
  --c-on-primary:  #1b1405;
  --c-gold:        #f0c25a;
  --c-on-gold:     #1b1405;
  --c-gold-soft:   #3a2f14;
  --c-gold-text:   #f0c25a;

  --c-good:        #6fd3a0;
  --c-good-soft:   #143528;
  --c-good-line:   #2f7a57;
  --c-up:          #f0956b;
  --c-up-soft:     #3d2219;
  --c-focus:       #7fb2ee;
  --c-overlay:     rgba(0, 0, 0, .62);

  --c-agronom:     #7fb2ee;
  --c-alles:       #c3a0e8;
  --c-color:       #5fcbd0;
  --c-pevex:       #d6a47a;

  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --sh-3: 0 24px 64px rgba(0, 0, 0, .6);
}
}

/* Oznake trgovina: oblik + boja */
.store-mark            { display: inline-block; width: 10px; height: 10px; flex: none; }
.store-mark--agronom   { background: var(--c-agronom); border-radius: 50%; }
.store-mark--alles     { background: var(--c-alles);   border-radius: 2px; }
.store-mark--color     { background: var(--c-color);   width: 11px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.store-mark--pevex     { background: var(--c-pevex);   width: 8px; height: 8px; transform: rotate(45deg); margin: 1px; }

/* Cijene */
.price { font-family: var(--f-text); font-weight: var(--fw-semibold); font-variant-numeric: var(--num); white-space: nowrap; }

/* Naziv artikla: najviše 2 reda */
.item-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
             overflow-wrap: anywhere; hyphens: auto; line-height: var(--lh-snug); }

/* Bez vodoravnog pomicanja nigdje */
html, body { overflow-x: clip; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-ink);
  font: var(--fs-md)/var(--lh-base) var(--f-text);
}
h1, h2, h3, h4, .word { font-family: var(--f-display); }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--c-ink-2); }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* gumb */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); padding: 0 18px; border: 0; border-radius: var(--r-sm);
  background: var(--c-primary); color: var(--c-on-primary);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: var(--lh-tight);
  text-decoration: none; white-space: nowrap; transition: background-color .12s, filter .12s;
}
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary:hover, .btn:not([class*="btn--"]):hover { filter: brightness(1.15); }
.btn--secondary { background: var(--c-surface); color: var(--c-ink); border: 1px solid var(--c-line-2); }
.btn--secondary:hover { background: var(--c-surface-2); }
.btn--gold { background: var(--c-gold); color: var(--c-on-gold); }
.btn--gold:hover { filter: brightness(1.06); }
.btn--ghost { background: transparent; color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-surface-2); }
.btn--icon { min-width: var(--tap); padding: 0; }
.btn--block { width: 100%; }
.btn:disabled { background: var(--c-surface-2); color: var(--c-ink-3); border: 0; cursor: not-allowed; filter: none; }

/* zaglavlje: papir na desktopu, dolina na mobitelu (spaja se s uvodom) */
.top { background: var(--c-bg); color: var(--c-ink); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); color: inherit; text-decoration: none; min-width: 0; }
.mark { width: 30px; height: 30px; flex: none; --mk: var(--c-valley); }
.mark .mk-h { fill: none; stroke: var(--mk); stroke-width: 3.2; stroke-linecap: round; }
.mark .mk-b { fill: var(--mk); }
.mark .mk-g { fill: none; stroke: var(--c-gold); stroke-width: 3.4; stroke-linecap: round; }
.word { font: var(--fw-bold) var(--fs-xl)/1 var(--f-display); letter-spacing: -.025em; white-space: nowrap; color: var(--c-valley); }
.word .dot { color: var(--c-gold-text); }
:root[data-theme="dark"] .word, :root[data-theme="dark"] .mark { color: var(--c-ink); --mk: var(--c-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .word, :root:not([data-theme="light"]) .mark { color: var(--c-ink); --mk: var(--c-ink); } }
.top-nav { display: flex; align-items: center; gap: var(--s-1); }
.nav-link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border-radius: var(--r-sm); color: var(--c-ink); font-weight: var(--fw-semibold); text-decoration: none; }
.nav-link:hover { background: var(--c-surface-2); }
.basket-btn { margin-left: var(--s-2); padding: 0 var(--s-2) 0 var(--s-4); gap: 10px; }
.basket-btn b {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--c-gold); color: var(--c-on-gold); font-size: 14px; font-weight: 800; font-variant-numeric: var(--num);
}

/* uvod u dolini */
.intro { position: relative; overflow: hidden; background: var(--c-valley); color: var(--c-on-valley); }
.intro-hill { position: absolute; left: 0; bottom: -40px; width: 100%; height: 200px; opacity: .14; pointer-events: none; }
.intro-hill path { fill: none; stroke: var(--c-gold); stroke-width: 18; stroke-linecap: round; }
.intro-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-12); align-items: center; padding-top: 44px; padding-bottom: var(--s-10); }
.intro h1 { font: 800 clamp(30px, 4.4vw, var(--fs-4xl))/1.04 var(--f-display); letter-spacing: -.03em; margin: 0 0 var(--s-5); }
.intro p { margin: 0 0 var(--s-6); font-size: var(--fs-lg); line-height: var(--lh-base); color: color-mix(in srgb, var(--c-on-valley) 86%, transparent); max-width: 540px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin: 0; padding: 0; }
.steps li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.steps b {
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--c-gold); color: var(--c-on-gold); font-size: var(--fs-md); font-weight: var(--fw-bold);
}
.steps span { font-size: var(--fs-sm); color: color-mix(in srgb, var(--c-on-valley) 78%, transparent); line-height: var(--lh-snug); }
.steps strong { display: block; font-size: var(--fs-md); color: var(--c-on-valley); }
.intro-ex h2 { font: var(--fw-semibold) var(--fs-md)/1.2 var(--f-text); margin: 0 0 var(--s-3); color: color-mix(in srgb, var(--c-on-valley) 86%, transparent); }
.presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.preset {
  text-align: left; border-radius: var(--r-md); padding: var(--s-3) var(--s-4); min-height: 64px;
  border: 1px solid color-mix(in srgb, var(--c-on-valley) 22%, transparent);
  background: color-mix(in srgb, var(--c-on-valley) 7%, transparent); color: inherit;
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.preset:hover { border-color: var(--c-gold); background: color-mix(in srgb, var(--c-gold) 16%, transparent); }
.preset b { font: var(--fw-bold) var(--fs-base)/1.2 var(--f-display); }
.preset span { font-size: var(--fs-xs); color: color-mix(in srgb, var(--c-on-valley) 76%, transparent); overflow-wrap: anywhere; }
.preset.busy { opacity: .6; pointer-events: none; }
.b-empty .preset { border-color: var(--c-line); background: var(--c-surface); color: var(--c-ink); }
.b-empty .preset span { color: var(--c-ink-3); }

/* pretraga + odabir trgovina */
.hero { padding: var(--s-8) 0 var(--s-2); }
.field-lbl { display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-ink-2); margin-bottom: var(--s-2); }
.search {
  display: flex; align-items: center; gap: var(--s-3); min-height: 60px; padding: 0 var(--s-2) 0 var(--s-4);
  background: var(--c-surface); border: 1px solid var(--c-line-2); border-radius: var(--r-md); box-shadow: var(--sh-1);
}
.search:focus-within { border-color: var(--c-focus); box-shadow: 0 0 0 1px var(--c-focus), 0 0 0 5px color-mix(in srgb, var(--c-focus) 18%, transparent); }
.search-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--c-ink-2); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: var(--s-3) 0; font-size: var(--fs-base); }
.search input::placeholder { color: var(--c-ink-3); }
.search input:focus-visible { outline: 0; }
.search-scan {
  display: grid; place-items: center; width: var(--tap); height: var(--tap); flex: none; border: 0;
  border-radius: var(--r-sm); background: var(--c-surface-2); color: var(--c-ink);
}
.search-scan svg { width: 22px; height: 22px; fill: none; stroke: currentColor; }
.stores-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-3); margin-top: var(--s-4); }
.stores-row .field-lbl { margin: 0; }
.stores { display: flex; flex-wrap: wrap; gap: var(--s-2); min-width: 0; }
.store-toggle {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-4) 0 var(--s-3);
  border: 1px solid var(--c-line-2); border-radius: var(--r-pill); background: var(--c-surface); color: var(--c-ink);
  font-size: var(--fs-md); font-weight: var(--fw-medium);
}
.store-toggle .box {
  display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: var(--r-xs);
  border: 1.5px solid var(--c-ink-3); background: transparent; color: var(--c-surface);
}
.store-toggle .box svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.store-toggle[aria-pressed="true"] .box { background: var(--c-ink); border-color: var(--c-ink); }
.store-toggle[aria-pressed="true"] .box svg { visibility: visible; }
.store-toggle[aria-pressed="false"] { color: var(--c-ink-3); background: transparent; }
.store-toggle[aria-pressed="false"] .nm { text-decoration: line-through; }
.store-toggle:hover { border-color: var(--c-ink-3); }
.scan-dlg video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); background: #000; margin-top: var(--s-3); }

/* raspored: bočni izbornik + sadržaj u flex-wrap redu (na uskom se slože) */
.layout { display: flex; flex-wrap: wrap; gap: var(--s-8); margin-top: var(--s-8); align-items: flex-start; }
.side { flex: 1 1 var(--sidebar); max-width: var(--sidebar); position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; }
.content { flex: 999 1 560px; min-width: 0; }
.side-h { font: var(--fw-bold) var(--fs-sm)/1 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-2); margin: 0 0 var(--s-3); }
.cats { display: flex; flex-direction: column; gap: 2px; }
.cat, .sub {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); width: 100%; min-height: 40px;
  text-align: left; background: none; border: 1px solid transparent; border-radius: var(--r-sm); padding: var(--s-2) 10px; color: var(--c-ink);
}
.sub { padding-left: 28px; font-size: var(--fs-md); color: var(--c-ink-2); min-height: 38px; }
.cat:hover, .sub:hover { background: var(--c-surface-2); }
.cat[aria-current="true"], .sub[aria-current="true"] { background: var(--c-surface); border-color: var(--c-line); box-shadow: var(--sh-1); font-weight: var(--fw-semibold); color: var(--c-ink); }
.cat.open { font-weight: var(--fw-semibold); }
.cat .n, .sub .n { color: var(--c-ink-3); font-weight: var(--fw-medium); font-variant-numeric: var(--num); font-size: var(--fs-sm); }
.subs { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 var(--s-2); }
.cat-pick {
  display: none; width: 100%; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 56px;
  padding: var(--s-2) var(--s-4); text-align: left; background: var(--c-surface); border: 1px solid var(--c-line-2); border-radius: var(--r-md); margin-bottom: var(--s-3);
}
.cat-pick small { display: block; font-size: var(--fs-xs); color: var(--c-ink-3); }
.cat-pick b { display: block; font-size: var(--fs-base); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-pick span { min-width: 0; }
.cat-pick svg, .chev { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* donji list (mobitel) */
.bsheet {
  border: 0; padding: 0 var(--s-4) var(--s-6); margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 85dvh;
  border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--c-bg); color: var(--c-ink); overflow-y: auto; box-shadow: var(--sh-3);
}
.bsheet::backdrop { background: var(--c-overlay); }
.bsheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--c-bg); padding: var(--s-3) 0; z-index: 1; }
.bsheet-head h2 { margin: 0; font-size: var(--fs-xl); }

/* naslov sadržaja + alatna traka */
.crumb { font-size: var(--fs-sm); color: var(--c-ink-3); margin-bottom: var(--s-1); }
.crumb button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.c-title { font: var(--fw-bold) var(--fs-2xl)/var(--lh-tight) var(--f-display); letter-spacing: -.02em; margin: 0 0 var(--s-5); overflow-wrap: anywhere; }
.toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-3); }
.segmented { display: inline-flex; background: var(--c-surface-2); border-radius: var(--r-md); padding: 4px; gap: 4px; max-width: 100%; }
.segmented button {
  min-height: 40px; border: 0; background: none; border-radius: var(--r-sm); padding: 0 var(--s-4);
  font-size: var(--fs-md); font-weight: var(--fw-medium); color: var(--c-ink-2); white-space: nowrap;
}
.segmented button[aria-checked="true"] { background: var(--c-surface); color: var(--c-ink); font-weight: var(--fw-semibold); box-shadow: var(--sh-1); }
.controls { display: flex; gap: var(--s-2); align-items: flex-end; }
.select { position: relative; display: block; min-width: 240px; }
.select small { display: block; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-ink-2); margin-bottom: 6px; }
.select select {
  appearance: none; width: 100%; min-height: var(--tap); padding: 0 40px 0 var(--s-4); background: var(--c-surface);
  border: 1px solid var(--c-line-2); border-radius: var(--r-sm); font-size: var(--fs-md); color: var(--c-ink);
}
.select .chev { position: absolute; right: 12px; bottom: 12px; pointer-events: none; }
.filt-btn { display: none; }
.filt-btn b {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--c-primary); color: var(--c-on-primary); font-size: var(--fs-xs); font-weight: var(--fw-bold);
}
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-pill);
  border: 1px solid var(--c-line-2); background: var(--c-surface); color: var(--c-ink); font-size: var(--fs-md); font-weight: var(--fw-medium);
}
.chip:hover { border-color: var(--c-ink-3); }
.chip[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); font-weight: var(--fw-semibold); }
.chip[aria-pressed="true"]::before {
  content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.count { margin: var(--s-4) 0 var(--s-3); color: var(--c-ink-2); font-size: var(--fs-md); }

/* sažetak: tko je najpovoljniji ovdje */
.summary { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--s-5); margin-bottom: var(--s-2); }
.sum-head { display: flex; justify-content: space-between; gap: var(--s-1) var(--s-3); align-items: baseline; flex-wrap: wrap; margin-bottom: var(--s-4); }
.sum-head h3 { margin: 0; font-size: var(--fs-xl); }
.sum-head span { font-size: var(--fs-sm); color: var(--c-ink-3); }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.score { background: var(--c-surface-2); border: 2px solid transparent; border-radius: var(--r-md); padding: var(--s-3) var(--s-4); min-width: 0; }
.score--best { background: var(--c-good-soft); border-color: var(--c-good); }
.score .nm { display: flex; align-items: center; gap: var(--s-2); font-weight: var(--fw-medium); }
.score .big { font: var(--fw-bold) var(--fs-2xl)/1.15 var(--f-text); font-variant-numeric: var(--num); margin: var(--s-1) 0 var(--s-2); }
.score--best .big { color: var(--c-good); }
.score .meter { height: 6px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--c-ink) 12%, transparent); overflow: hidden; }
.score .meter span { display: block; height: 100%; background: var(--c); border-radius: inherit; }
.score .sm { display: block; font-size: var(--fs-xs); color: var(--c-ink-3); margin-top: var(--s-2); font-variant-numeric: var(--num); }
.pairnote { margin: var(--s-3) 0 0; font-size: var(--fs-sm); color: var(--c-ink-3); }

/* oznake */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px var(--s-2); border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 1.4; white-space: nowrap; font-variant-numeric: var(--num);
}
.badge--akcija { background: var(--c-gold); color: var(--c-on-gold); }
.badge--najniza { background: var(--c-good-soft); color: var(--c-good); }
.badge--samo, .badge--ista { background: var(--c-surface-2); color: var(--c-ink-2); }
.badge--nema { background: var(--c-surface-2); color: var(--c-ink-3); }
.badge--up { background: var(--c-up-soft); color: var(--c-up); }
.badge--down { background: var(--c-good-soft); color: var(--c-good); }
.badge--kosarica { background: var(--c-primary); color: var(--c-on-primary); }
.up { color: var(--c-up); }
.down { color: var(--c-good); }

/* cjenovna pločica trgovine */
.price-tile {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--s-2) 10px; min-height: 64px;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-sm);
}
.pt-s { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-xs); color: var(--c-ink-2); }
.pt-s .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-s .low { margin-left: auto; font-size: 10.5px; font-weight: var(--fw-bold); letter-spacing: .04em; text-transform: uppercase; color: var(--c-good); }
.pt-s .low svg { display: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pt-v { font-size: var(--fs-xl); font-weight: var(--fw-semibold); font-variant-numeric: var(--num); white-space: nowrap; line-height: 1.15; }
.pt-v small { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--c-ink-3); }
.pt-d { font-size: var(--fs-xs); font-weight: var(--fw-medium); font-variant-numeric: var(--num); white-space: nowrap; }
.price-tile .badge { align-self: flex-start; margin-top: 2px; }
.price-tile--lowest { background: var(--c-good-soft); border: 2px solid var(--c-good); padding: 7px 9px; }
.price-tile--lowest .pt-v { color: var(--c-good); }
.price-tile--missing { background: transparent; border-style: dashed; border-color: var(--c-line-2); }
.price-tile--missing .pt-v { font-size: var(--fs-sm); font-weight: var(--fw-regular); color: var(--c-ink-3); white-space: normal; line-height: var(--lh-snug); }
.price-tile--solo { flex-direction: row; align-items: center; justify-content: space-between; min-height: var(--tap); background: var(--c-surface-2); border-color: transparent; padding: 0 var(--s-4); }
.price-tile--solo .pt-s { font-size: var(--fs-md); color: var(--c-ink); font-weight: var(--fw-medium); }
.price-tile--solo .pt-v { font-size: var(--fs-lg); }
.price-tile { container: tile / inline-size; }
@container tile (max-width: 150px) {
  .pt-s .low span { display: none; }
  .pt-s .low svg { display: block; }
}
@container tile (max-width: 110px) {
  .pt-v { font-size: var(--fs-lg); }
}

/* kartica artikla */
.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); align-items: start; }
.list > .group, .list > .empty, .list > .skel-note { grid-column: 1 / -1; }
.list.busy { opacity: .5; transition: opacity .15s; }
.group { margin: var(--s-4) 0 0; display: flex; align-items: baseline; gap: var(--s-2); }
.group h3 { margin: 0; font-size: var(--fs-lg); }
.group .n { color: var(--c-ink-3); font-size: var(--fs-sm); font-variant-numeric: var(--num); }
.group::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.item-card {
  container: card / inline-size; display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; height: 100%;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--s-4); cursor: pointer;
}
.item-card:hover { border-color: var(--c-line-2); box-shadow: var(--sh-2); }
.item-card.in { border: 2px solid var(--c-primary); padding: 15px; }
.item-card .badge { align-self: flex-start; }
.item-card .item-name { font-size: var(--fs-base); font-weight: var(--fw-semibold); margin: 0; }
.ic-meta { font-size: var(--fs-sm); color: var(--c-ink-3); overflow-wrap: anywhere; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: var(--s-1); }
.tiles--solo { grid-template-columns: minmax(0, 1fr); }
.ic-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-2); }
.ic-info { font-size: var(--fs-sm); color: var(--c-ink-2); min-width: 0; }
.ic-info b { color: var(--c-ink); font-variant-numeric: var(--num); }
.ic-foot .btn { flex: none; }

/* stepper */
.qty { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--c-line-2); border-radius: var(--r-sm); background: var(--c-surface); }
.qty button { display: grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; background: none; color: var(--c-ink); border-radius: var(--r-sm); }
.qty button:hover { background: var(--c-surface-2); }
.qty button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.qty b { min-width: 28px; text-align: center; font-variant-numeric: var(--num); font-weight: var(--fw-semibold); }

.more { text-align: center; margin: var(--s-6) 0 var(--s-8); }

/* traka košarice (mobitel, fiksno dno) */
.cart-bar { display: none; }
@media (max-width: 900px) {
  .cart-bar:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0 var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); pointer-events: none; }
  body.has-bar { padding-bottom: 96px; }
}
.cart-bar-in {
  display: flex; align-items: center; gap: var(--s-3); max-width: 560px; margin: 0 auto; padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4);
  background: var(--c-valley); color: var(--c-on-valley); border-radius: var(--r-md); box-shadow: var(--sh-3); pointer-events: auto;
}
.cb-ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cb-txt { flex: 1; min-width: 0; line-height: var(--lh-snug); }
.cb-txt b { display: block; font-size: var(--fs-md); }
.cb-txt span { display: block; font-size: var(--fs-sm); font-variant-numeric: var(--num); color: color-mix(in srgb, var(--c-on-valley) 82%, transparent); }

/* prazno: nema rezultata */
.empty { padding: var(--s-10) var(--s-4); text-align: center; color: var(--c-ink-2); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.empty .e-ic { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto var(--s-3); border-radius: 50%; background: var(--c-surface-2); color: var(--c-ink-2); }
.empty .e-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.empty h3 { margin: 0 0 var(--s-2); color: var(--c-ink); font-size: var(--fs-lg); overflow-wrap: anywhere; }
.empty p { margin: 0 auto; max-width: 380px; font-size: var(--fs-md); }
.empty .e-act { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

/* učitavanje: kostur istog rasporeda kao kartica */
.skel-note { display: flex; align-items: center; gap: var(--s-2); color: var(--c-ink-2); font-size: var(--fs-md); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--c-line-2); border-top-color: var(--c-ink-2); animation: spin .8s linear infinite; }
.skeleton { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.skeleton i { display: block; height: 12px; border-radius: var(--r-xs); background: var(--c-surface-2); animation: pulse 1.4s ease-in-out infinite; }
.skeleton .t { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: var(--s-1) 0; }
.skeleton .t i { height: 56px; border-radius: var(--r-sm); }
.skeleton .f { display: flex; justify-content: space-between; align-items: center; }
.skeleton .f i:last-child { width: 96px; height: var(--tap); border-radius: var(--r-sm); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .spin, .skeleton i { animation: none; } }

/* o podacima */
.about { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s-8); margin: var(--s-12) 0 var(--s-6); padding-top: var(--s-8); border-top: 1px solid var(--c-line); }
.about h2 { margin: 0 0 var(--s-3); font-size: var(--fs-3xl); letter-spacing: -.02em; }
.about h3 { margin: var(--s-6) 0 var(--s-3); font-size: var(--fs-lg); }
.about-src h3 { margin-top: 0; }
.about .lead { margin: 0; font-size: var(--fs-base); color: var(--c-ink-2); line-height: var(--lh-base); max-width: 620px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-5); max-width: 460px; }
.stat { background: var(--c-surface-2); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.stat b { display: block; font-size: var(--fs-xl); font-variant-numeric: var(--num); }
.stat span { font-size: var(--fs-sm); color: var(--c-ink-2); }
.how { margin: 0; padding-left: var(--s-5); color: var(--c-ink-2); line-height: var(--lh-base); }
.how li + li { margin-top: var(--s-2); }
.srcs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.src { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--s-4); }
.src-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); }
.src-top .nm { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: var(--fw-semibold); font-size: var(--fs-base); }
.src-top small { font-size: var(--fs-xs); color: var(--c-ink-3); text-transform: uppercase; }
.src p { margin: var(--s-1) 0 0; font-size: var(--fs-sm); color: var(--c-ink-2); }
.src .old { color: var(--c-up); font-weight: var(--fw-semibold); font-size: var(--fs-xs); }
.src a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); color: var(--c-ink); font-size: var(--fs-sm); font-weight: var(--fw-medium); overflow-wrap: anywhere; }
.src a svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.foot { border-top: 1px solid var(--c-line); padding: var(--s-5) 0 var(--s-8); font-size: var(--fs-sm); color: var(--c-ink-2); }
.foot-in { display: flex; justify-content: space-between; gap: var(--s-2) var(--s-5); flex-wrap: wrap; }
.foot-r { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.foot a { color: inherit; }

/* kratka obavijest */
.toast { position: fixed; left: 50%; bottom: 112px; z-index: 60; transform: translate(-50%, 20px); max-width: calc(100vw - 32px);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--c-ink); color: var(--c-bg); box-shadow: var(--sh-3);
  font-size: var(--fs-md); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* obrazac za prijedloge */
.msg-card { margin-top: var(--s-4); background: var(--c-surface-2); border-radius: var(--r-md); padding: var(--s-4); }
.msg-card h3 { margin: 0 0 var(--s-1); }
.msg-card p { margin: 0 0 var(--s-3); font-size: var(--fs-sm); color: var(--c-ink-2); }
.m-kind { border: 0; padding: 0; margin: 0; min-width: 0; }
.m-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.m-kind input { position: absolute; opacity: 0; pointer-events: none; }
.m-kind .chip:has(input:checked) { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); font-weight: var(--fw-semibold); }
.m-kind .chip:has(input:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.m-art { margin: 0 0 var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--c-surface-2); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.input {
  display: block; width: 100%; min-height: var(--tap); margin-bottom: var(--s-4); padding: var(--s-3) var(--s-4);
  background: var(--c-surface); color: var(--c-ink); border: 1px solid var(--c-line-2); border-radius: var(--r-sm); font-size: var(--fs-base);
}
textarea.input { resize: vertical; min-height: 120px; line-height: var(--lh-base); }
.input:focus { outline: 0; border-color: var(--c-focus); box-shadow: 0 0 0 1px var(--c-focus), 0 0 0 5px color-mix(in srgb, var(--c-focus) 18%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.m-ts:empty { display: none; }
.m-ts { margin-bottom: var(--s-3); min-height: 65px; }
.m-err { margin: 0 0 var(--s-2); color: var(--c-up); font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.m-done { text-align: center; padding: var(--s-6) 0 var(--s-2); }
.m-done .e-ic { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto var(--s-3); border-radius: 50%; background: var(--c-good-soft); color: var(--c-good); }
.m-done .e-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.m-done h3 { margin: 0 0 var(--s-2); }
.m-done p { margin: 0 0 var(--s-5); color: var(--c-ink-2); }
.dlg .linkbtn { background: none; border: 0; padding: 0; min-height: var(--tap); color: var(--c-ink-2); font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 2px; }
.msg-card .btn svg, #mSend svg { fill: none; }

/* detalj artikla: dijalog na desktopu, donji list na mobitelu */
.dlg {
  border: 0; border-radius: var(--r-lg); padding: var(--s-6); width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  background: var(--c-bg); color: var(--c-ink); box-shadow: var(--sh-3); overflow-y: auto;
}
.dlg::backdrop { background: var(--c-overlay); }
.x { position: absolute; top: var(--s-4); right: var(--s-4); }
.dlg h3 { margin: var(--s-2) 48px var(--s-1) 0; font-size: var(--fs-2xl); letter-spacing: -.02em; line-height: var(--lh-tight); overflow-wrap: anywhere; }
.dlg .d-meta { color: var(--c-ink-2); font-size: var(--fs-md); font-variant-numeric: var(--num); }
.d-lbl { margin: var(--s-5) 0 var(--s-2); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-2); }
.d-rows { display: flex; flex-direction: column; gap: var(--s-2); }
.d-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s-3); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.d-row--lowest { background: var(--c-good-soft); border: 2px solid var(--c-good); padding: 11px 15px; }
.d-row .nm { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: var(--fw-semibold); }
.d-row .v { text-align: right; font-size: var(--fs-lg); font-weight: var(--fw-bold); font-variant-numeric: var(--num); white-space: nowrap; }
.d-row--lowest .v { color: var(--c-good); }
.d-row .raw { font-size: var(--fs-md); overflow-wrap: anywhere; }
.d-row .tag { text-align: right; font-size: var(--fs-xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: .04em; color: var(--c-good); }
.d-row .sm { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--c-ink-3); font-variant-numeric: var(--num); }
.d-row .sm .up, .d-row .sm .down { font-weight: var(--fw-semibold); }
.dlg-act { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin: var(--s-5) calc(-1 * var(--s-6)) calc(-1 * var(--s-6)); padding: var(--s-4) var(--s-6); background: var(--c-surface); border-top: 1px solid var(--c-line); }
.dlg-act p { margin: 0; font-size: var(--fs-xs); color: var(--c-ink-3); max-width: 260px; }

/* košarica: bočni panel na desktopu, cijeli ekran na mobitelu */
.sheet {
  border: 0; padding: 0; margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: var(--cart-panel); max-width: 100vw;
  background: var(--c-bg); color: var(--c-ink); display: flex; flex-direction: column; box-shadow: var(--sh-3);
}
.sheet:not([open]) { display: none; }
.sheet::backdrop { background: var(--c-overlay); }
.sheet-head { display: flex; align-items: center; gap: var(--s-2); min-height: 68px; padding: 0 var(--s-3) 0 var(--s-5); border-bottom: 1px solid var(--c-line); }
.sheet-head h2 { flex: 1; margin: 0; font-size: var(--fs-2xl); letter-spacing: -.02em; min-width: 0; }
.sheet-head h2 span { font: var(--fw-regular) var(--fs-md) var(--f-text); color: var(--c-ink-2); letter-spacing: 0; }
.sh-back, .sh-clear { display: none; }
.sheet-body { padding: var(--s-5); overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: var(--s-2); justify-content: space-between; padding: var(--s-3) var(--s-5); border-top: 1px solid var(--c-line); background: var(--c-bg); }
.sheet-foot .btn--primary { flex: 1; }
.b-count { margin: 0 0 var(--s-4); color: var(--c-ink-2); font-size: var(--fs-md); }
@media (min-width: 561px) { .b-count { display: none; } }

/* presuda */
.verdict { position: relative; overflow: hidden; background: var(--c-valley); color: var(--c-on-valley); border-radius: var(--r-lg); padding: var(--s-5); }
.verdict .hill { position: absolute; right: -10px; bottom: -6px; width: 220px; height: 70px; opacity: .35; pointer-events: none; }
.verdict .hill path { fill: none; stroke: var(--c-gold); stroke-width: 6; stroke-linecap: round; }
.vd-l { display: block; font-size: var(--fs-md); font-weight: var(--fw-semibold); color: color-mix(in srgb, var(--c-on-valley) 88%, transparent); }
.vd-big { display: block; font: 800 var(--fs-4xl)/1.05 var(--f-display); letter-spacing: -.02em; font-variant-numeric: var(--num); margin: 2px 0; }
.vd-mid { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); font: var(--fw-bold) var(--fs-2xl)/1.1 var(--f-display); font-variant-numeric: var(--num); margin: 4px 0 var(--s-3); }
.vd-mid .who { display: inline-flex; align-items: center; gap: 6px; font: var(--fw-semibold) var(--fs-base) var(--f-text); }
.vd-s { display: block; font-size: var(--fs-sm); color: color-mix(in srgb, var(--c-on-valley) 82%, transparent); }
.vd-sep { height: 1px; background: color-mix(in srgb, var(--c-on-valley) 18%, transparent); margin: var(--s-4) 0; }
.vd-pill { position: relative; display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: var(--c-gold); color: var(--c-on-gold); font-size: var(--fs-md); font-weight: var(--fw-bold); font-variant-numeric: var(--num); }

/* usporedba po trgovinama */
.b-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); font-size: var(--fs-lg); margin: var(--s-6) 0 0; padding-bottom: var(--s-2); border-bottom: 1px solid var(--c-line); }
.b-h small { font: var(--fw-regular) var(--fs-xs) var(--f-text); color: var(--c-ink-3); }
.compare { display: flex; flex-direction: column; }
.cmp { padding: var(--s-3) 0; border-bottom: 1px solid var(--c-line); }
.cmp-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); }
.cmp-top .nm { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: var(--fw-medium); font-size: var(--fs-base); }
.cmp-top .v { font-size: var(--fs-lg); font-weight: var(--fw-bold); font-variant-numeric: var(--num); white-space: nowrap; }
.cmp-bar { display: flex; height: 10px; margin: 6px 0; border-radius: var(--r-pill); background: var(--c-surface-2); overflow: hidden; }
.cmp-bar .f { background: var(--c); border-radius: var(--r-pill); }
.cmp-bar .m { border: 1.5px dashed var(--c-line-2); border-radius: var(--r-pill); margin-left: 2px; }
.cmp-sub { font-size: var(--fs-sm); color: var(--c-ink-2); }
.cmp-sub b { color: var(--c-ink); font-variant-numeric: var(--num); }
.cmp-sub .miss { color: var(--c-up); font-weight: var(--fw-semibold); }
.cmp-tag { display: block; margin-top: 4px; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .04em; text-transform: uppercase; color: var(--c-good); }
.cmp-split { --c: var(--c-gold); }
.b-foot { font-size: var(--fs-xs); color: var(--c-ink-3); margin: var(--s-3) 0 0; }

/* gdje što kupiti */
.where { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-3); }
.wcol { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--s-4); min-width: 0; }
.wh { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--c-line); }
.wh .nm { display: flex; align-items: center; gap: var(--s-2); font-weight: var(--fw-semibold); font-size: var(--fs-lg); }
.wh small { display: block; font-size: var(--fs-xs); color: var(--c-ink-3); }
.wh .v { font-size: var(--fs-lg); font-weight: var(--fw-bold); font-variant-numeric: var(--num); white-space: nowrap; }
.blines { list-style: none; margin: 0; padding: 0; }
.blines li { padding: var(--s-3) 0; border-bottom: 1px solid var(--c-line); }
.blines li:last-child { border-bottom: 0; padding-bottom: 0; }
.bl-top { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
.bl-top b { font-size: var(--fs-md); font-weight: var(--fw-medium); overflow-wrap: anywhere; }
.bl-top span { font-weight: var(--fw-semibold); font-variant-numeric: var(--num); white-space: nowrap; }
.bl-bot { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-2); }
.bl-bot .unit { flex: 1; text-align: right; font-size: var(--fs-xs); color: var(--c-ink-3); font-variant-numeric: var(--num); }
.bl-bot .rm { color: var(--c-ink-2); }
.b-total { display: flex; justify-content: space-between; padding: var(--s-3) var(--s-1) 0; font-size: var(--fs-base); }
.b-total b { font-variant-numeric: var(--num); }
.b-note { font-size: var(--fs-xs); color: var(--c-ink-3); margin-top: var(--s-4); }

/* prazno stanje */
.b-empty { text-align: center; padding: var(--s-8) 0; }
.b-empty .ill { width: 64px; height: 64px; margin: 0 auto var(--s-3); display: block; }
.b-empty h3 { margin: 0 0 var(--s-2); font-size: var(--fs-xl); }
.b-empty p { margin: 0 auto; max-width: 300px; color: var(--c-ink-2); font-size: var(--fs-md); }
.b-empty .presets { text-align: left; margin-top: var(--s-5); }

/* tablet i mobitel */
@media (max-width: 1100px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .summary { padding: var(--s-4); } }
@media (max-width: 900px) {
  .list { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .cat-pick { display: flex; }
  .layout { margin-top: var(--s-5); }
  .about, .intro-in { grid-template-columns: minmax(0, 1fr); }
  .top-nav .nav-link { padding: 0 10px; }
}
@media (max-width: 560px) {
  .top { background: var(--c-valley); color: var(--c-on-valley); border-bottom: 0; }
  .top .word, .top .mark { color: var(--c-on-valley); --mk: var(--c-on-valley); }
  .top .word .dot { color: var(--c-gold); }
  .top-in { min-height: 56px; }
  .nav-link, .basket-btn .lbl { display: none; }
  .theme-btn { color: var(--c-on-valley); }
  .basket-btn { position: relative; margin-left: 0; padding: 0; min-width: var(--tap); background: var(--c-gold); color: var(--c-on-gold); }
  .basket-btn b { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; font-size: var(--fs-xs); background: var(--c-valley); color: var(--c-on-valley); box-shadow: 0 0 0 2px var(--c-valley); }
  .intro-in { padding-top: var(--s-4); padding-bottom: var(--s-6); gap: var(--s-6); }
  .intro p { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .hero { padding-top: var(--s-5); }
  .stores-row { flex-direction: column; align-items: stretch; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crumb, .c-title { display: none; }
  .toolbar { flex-direction: column-reverse; align-items: stretch; }
  .segmented { display: flex; }
  .segmented button { flex: 1; padding: 0 var(--s-2); }
  .controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .select { min-width: 0; }
  .filt-btn { display: inline-flex; }
  .filters:not(.open) { display: none; }
  .sheet { width: 100vw; box-shadow: none; }
  .sheet-head { padding: 0 var(--s-2); min-height: 56px; }
  .sheet-head h2 { text-align: center; font-size: var(--fs-xl); }
  .sheet-head h2 span, .sh-close, .sf-clear { display: none; }
  .sh-back, .sh-clear { display: block; }
  .sheet-body { padding: var(--s-4); }
  .sheet-foot { padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); }
  .vd-big { font-size: 40px; }
  .dlg { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: var(--s-5) var(--s-4) var(--s-4); max-height: 92dvh; }
  .dlg::before { content: ""; display: block; width: 40px; height: 4px; border-radius: var(--r-pill); background: var(--c-line-2); margin: -8px auto var(--s-2); }
  .dlg-act { flex-direction: column; align-items: stretch; margin: var(--s-4) 0 0; padding: 0; background: none; border: 0; }
  .dlg-act p { display: none; }
  .about h2 { font-size: var(--fs-2xl); }
}
