/* Wise-inspirisan sistem: krupna tipografija, mnogo prostora, ravne sive površine,
   pill kontrole. Wise zelenu zamjenjuje Euromodel plava. */
:root {
  --primary: #0a4da2;
  --primary-hover: #083f86;
  --primary-ink: #052a5c;
  --primary-soft: #dfeaff;
  --primary-softer: #f0f5ff;

  --ink: #0e0f0c;
  --ink-2: #454745;
  --ink-3: #6a6c6a;
  --bg: #ffffff;
  --surface: #f4f5f3;          /* Wise background-neutral */
  --surface-2: #e9eae7;
  --border: rgba(14, 15, 12, 0.10);

  --up: #a8200d;
  --up-bg: #fde8e4;
  --down: #2f5711;
  --down-bg: #e3f5d6;
  --warn-bg: #fff4cc;
  --warn-ink: #4a3b00;

  --radius: 28px;
  --radius-md: 20px;
  --space-section: 104px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (max-width: 719px) { :root { --space-section: 72px; --radius: 24px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--bg); font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 10px; }
code { font-size: .9em; background: var(--surface); padding: 2px 6px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); }
.topbar-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 16px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 9px 16px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current='page'] { background: var(--surface); color: var(--ink); }
@media (max-width: 719px) {
  .topbar-inner { height: auto; flex-wrap: wrap; gap: 12px 16px; padding-block: 14px 10px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 16px; }
  .price-mode { margin-left: auto; }
}

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--surface-2); transition: background .2s; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--primary); outline-offset: 2px; }

.banner { background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; text-align: center; padding: 10px 20px; }

/* ---------- typography ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.1; font-weight: 800; }
h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.04em; }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.display { font-size: clamp(72px, 13vw, 140px); font-weight: 800; letter-spacing: -0.06em; line-height: .9; }
.lead { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; margin: 16px 0 0; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.label { font-size: 14px; font-weight: 600; color: var(--ink-3); }

main.wrap { padding-block: 40px 80px; outline: none; }
.section { margin-top: var(--space-section); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head p { margin: 8px 0 0; color: var(--ink-3); }

/* ---------- hero ---------- */
.hero { border-radius: 36px; background: var(--primary-soft); color: var(--primary-ink); padding: 48px 28px; display: grid; gap: 48px; }
@media (min-width: 900px) { .hero { padding: 72px 64px; grid-template-columns: 1.4fr 1fr; align-items: end; } }
.hero .label { color: inherit; opacity: .7; }
.hero .display { margin: 20px 0 16px; }
.hero-text { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; max-width: 22ch; margin: 0; }
.hero-side { display: grid; }
.hero-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; border-top: 1px solid color-mix(in srgb, var(--primary-ink) 18%, transparent); }
.hero-line:last-child { padding-bottom: 0; }
.hero-line span { opacity: .75; }
.hero-line b { font-size: 26px; letter-spacing: -0.03em; white-space: nowrap; }

/* ---------- KPI ---------- */
.kpis { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
.kpi { background: var(--surface); border-radius: var(--radius); padding: 32px; }
.kpi-value { font-size: 40px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin: 16px 0 14px; }
.kpi-foot { font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); line-height: 1.4; }
.chip.up { background: var(--up-bg); color: var(--up); }
.chip.down { background: var(--down-bg); color: var(--down); }
.chip.sale { background: var(--primary-soft); color: var(--primary-ink); }

/* ---------- segmented ---------- */
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed='true'] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.10); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--primary); color: #fff; }
.btn:hover { background: var(--primary-hover); }
.btn.secondary { background: var(--surface); color: var(--ink); }
.btn.secondary:hover { background: var(--surface-2); }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 8px 0; }
.back:hover { color: var(--ink); }
.center { text-align: center; margin-top: 40px; }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border-radius: var(--radius); padding: 32px; }
@media (max-width: 719px) { .panel { padding: 22px; } }

/* ---------- chart ---------- */
.chart-box { position: relative; height: 340px; }
@media (max-width: 719px) { .chart-box { height: 260px; } }

/* ---------- lists ---------- */
.list { display: grid; }
.row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 16px 0; color: inherit; text-decoration: none; border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: 0; }
.row:hover .row-title { color: var(--primary); }
.thumb { width: 52px; height: 52px; border-radius: 50%; background: #fff; object-fit: contain; padding: 6px; box-shadow: inset 0 0 0 1px var(--border); }
.row-title { font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { font-size: 14px; color: var(--ink-3); margin-top: 2px; display: flex; gap: 8px; align-items: center; }
.row-end { text-align: right; display: grid; gap: 4px; justify-items: end; }
.price { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.old { color: var(--ink-3); text-decoration: line-through; font-size: 13px; }

.movers { display: grid; gap: 16px; }
@media (min-width: 900px) { .movers { grid-template-columns: 1fr 1fr; } }
.movers .panel h3 { margin-bottom: 4px; }
.movers .panel > p { margin: 0 0 12px; }

/* ---------- catalog ---------- */
.search { position: relative; margin-top: 32px; }
.search input {
  width: 100%; height: 64px; border-radius: 999px; border: 0; background: var(--surface);
  padding: 0 28px 0 60px; font-size: 18px;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; box-shadow: 0 0 0 3px var(--primary); background: var(--bg); }
.search svg { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 20px 0 4px; margin: 0 -20px; padding-inline: 20px; }
.pill { flex: none; border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.pill:hover { border-color: var(--ink-3); color: var(--ink); }
.pill[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 24px 0 8px; }
.filters-left { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.select { height: 46px; border-radius: 999px; border: 0; background: var(--surface); padding: 0 40px 0 18px; font-weight: 600; font-size: 14px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236a6c6a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.select:focus { outline: none; box-shadow: 0 0 0 3px var(--primary); }
.count { font-size: 14px; color: var(--ink-3); margin: 24px 0 0; }

/* ---------- product ---------- */
.product-head { display: grid; gap: 28px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 760px) { .product-head { grid-template-columns: 220px 1fr; gap: 48px; align-items: center; } }
.product-img { width: 220px; height: 220px; border-radius: var(--radius); background: #fff; object-fit: contain; padding: 24px; box-shadow: inset 0 0 0 1px var(--border); }
@media (max-width: 759px) { .product-img { width: 160px; height: 160px; } }
.product-head h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 10px 0 24px; max-width: 24ch; }
.price-line { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.big-price { font-size: 56px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.changes { display: grid; grid-template-columns: repeat(3, 1fr); }
.changes > div { padding: 4px 24px; border-left: 1px solid var(--border); }
.changes > div:first-child { border-left: 0; padding-left: 0; }
.changes .chip { margin: 12px 0 8px; font-size: 15px; padding: 4px 12px; }
@media (max-width: 599px) { .changes > div { padding: 4px 12px; } }
.facts { display: flex; gap: 12px 32px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 15px; color: var(--ink-2); }
.facts b { color: var(--ink); }

/* ---------- basket summary ---------- */
.equation { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .equation { grid-template-columns: 1fr auto 1fr auto 1fr; } }
.equation .op { font-size: 28px; color: var(--ink-3); font-weight: 300; text-align: center; }
.equation .v { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; margin-top: 6px; }
.equation .total .v { color: var(--primary); }
.cover { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 17px; color: var(--ink-2); }
.cover b { color: var(--ink); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: 13px; font-weight: 600; color: var(--ink-3); }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td.num, th.num { text-align: right; }
tr.group td { padding-top: 36px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; border-bottom: 1px solid var(--ink); }
tfoot td { font-weight: 800; font-size: 17px; border-bottom: 0; padding-top: 24px; }
td.name { white-space: normal; min-width: 200px; }
td.name a { color: var(--ink); text-decoration: none; font-weight: 600; }
td.name a:hover { color: var(--primary); }

.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; }
.prose li + li { margin-top: 8px; }
.prose h2 { margin: 64px 0 16px; font-size: 26px; }
.formula { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.8; background: var(--surface); padding: 24px 28px; border-radius: var(--radius-md); overflow-x: auto; color: var(--ink); }

.empty { padding: 56px 24px; text-align: center; color: var(--ink-3); }
.skeleton { height: 18px; border-radius: 10px; background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.footer { padding-block: 40px 56px; border-top: 1px solid var(--border); font-size: 14px; color: var(--ink-3); }
.footer p { margin: 0; }

/* ---------- prikaz cijena (MP / akcijska) ---------- */
.price-mode button { padding: 8px 14px; font-size: 13px; }
@media (max-width: 719px) { .price-mode { margin-left: auto; } }

/* učitavanje bez treperenja: blago zatamnjenje tek ako odgovor kasni */
.list { transition: opacity .15s ease .2s; }
.list.is-loading { opacity: .5; }

/* ---------- trenutno stanje (osnovne namirnice) ---------- */
.staples { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .staples { grid-template-columns: repeat(2, 1fr); } }
.staples .panel { padding: 28px; }
.staples h3 { margin-bottom: 8px; }
.row.compact { grid-template-columns: 40px minmax(0, 1fr) auto 96px; gap: 12px; padding: 10px 0; }
.row.compact .thumb { width: 40px; height: 40px; padding: 4px; }
.row.compact .row-title { font-weight: 500; font-size: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row.compact .price { font-size: 15px; font-weight: 600; }
.row-chip { justify-self: end; }

td.name .item { display: inline-flex; align-items: center; gap: 14px; }
td.name .thumb { width: 40px; height: 40px; padding: 4px; flex: none; }

/* ---------- footer ---------- */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; background: var(--surface); margin-top: 40px; padding: 72px 0 32px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 64px; } }
.footer-text { color: var(--ink-2); max-width: 34ch; margin: 16px 0 0; }
.footer-nav { display: grid; gap: 10px; align-content: start; font-size: 15px; color: var(--ink-2); }
.footer-nav .label { margin-bottom: 4px; }
.footer-nav a { color: var(--ink); text-decoration: none; font-weight: 500; width: fit-content; }
.footer-nav a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--ink-3); }
.footer-bottom a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.footer-bottom a:hover { color: var(--primary); }

/* ---------- analitika ---------- */
.hero-sub { margin: 16px 0 0; max-width: 46ch; font-size: 16px; opacity: .8; }
.hero-line span small { display: block; font-size: 13px; opacity: .8; margin-top: 2px; }
.hero-line.total { border-top: 2px solid var(--primary-ink); }
.hero-line.total span { opacity: 1; font-weight: 700; }
.hero-line.total b { font-size: 30px; }
.kpi-text { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.kpi-text b { color: var(--ink); }
.kpi { display: flex; flex-direction: column; }
.kpi-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }

.facts-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .facts-grid { grid-template-columns: 1fr 1fr; } }
.fact p { color: var(--ink-2); margin: 12px 0 0; font-size: 15px; }
.fact-value { font-size: 44px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-top: 14px; }
.fact-value span { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-3); }
.meter { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-2); margin-top: 24px; }
.meter .m-food { background: var(--primary); }
.meter .m-other { background: color-mix(in srgb, var(--primary) 45%, white); }
.meter-legend { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.meter-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--surface-2); vertical-align: -1px; }
.meter-legend i.m-food { background: var(--primary); }
.meter-legend i.m-other { background: color-mix(in srgb, var(--primary) 45%, white); }

.hour-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 560px) { .hour-list { grid-template-columns: repeat(3, 1fr); } }
.hour-item { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border-radius: 16px; background: var(--bg); text-decoration: none; color: inherit; }
.hour-item:hover { box-shadow: 0 0 0 2px var(--primary-soft); }
.hour-item .thumb { width: 40px; height: 40px; padding: 4px; grid-row: span 2; }
.hour-qty { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.hour-name { font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.hour-name small { display: block; color: var(--ink-3); }

.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 210px) 1fr auto; gap: 16px; align-items: center; font-size: 15px; }
.bar-label { color: var(--ink-2); }
.bar-track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.bar-value { font-weight: 700; white-space: nowrap; min-width: 112px; text-align: right; }
.bar-value small { color: var(--ink-3); font-weight: 500; margin-left: 4px; }
@media (max-width: 599px) { .bar-row { grid-template-columns: 1fr auto; } .bar-track { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- brend: avg(korpa) ---------- */
.brand-name { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand-name .paren { color: var(--primary); }
.brand-mark { font-family: 'Inter', serif; font-style: italic; font-weight: 700; font-size: 17px; }

/* =====================================================================
   MOBILE FIRST: osnovna pravila iznad, ovdje telefon (< 720px)
   ===================================================================== */
.nav svg { display: none; }
.lbl-short, .show-sm { display: none; }
td.name small.show-sm, td.name .item small.show-sm { font-weight: 500; }

@media (max-width: 719px) {
  :root { --space-section: 56px; --radius: 22px; }
  .wrap { padding: 0 16px; }
  body { font-size: 15px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }

  /* zaglavlje: jedan red */
  .topbar { backdrop-filter: none; background: var(--bg); border-bottom: 1px solid var(--border); } /* inače fixed nav postaje relativan na header */
  .topbar-inner { flex-wrap: nowrap; height: 60px; padding-block: 0; gap: 12px; }
  .brand-mark { width: 30px; height: 30px; font-size: 15px; }
  .brand-name { font-size: 16px; }
  .price-mode { margin-left: auto; padding: 3px; }
  .price-mode button { padding: 7px 12px; font-size: 13px; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }

  /* navigacija: donja traka */
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; order: 0; margin: 0; flex-basis: auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; overflow: visible;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
  }
  .nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 14px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
  .nav a:hover { background: none; }
  .nav a[aria-current='page'] { background: none; color: var(--primary); }
  .nav svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .nav a[aria-current='page'] svg { stroke-width: 2.3; }

  .banner { font-size: 13px; padding: 8px 16px; }
  main.wrap { padding-block: 20px 40px; }

  /* tipografija */
  h1 { font-size: 32px; }
  h2 { font-size: 23px; }
  .lead { font-size: 16px; margin-top: 10px; }
  .section-head { margin-bottom: 20px; gap: 14px; }
  .section-head .segmented { width: 100%; }
  .section-head .segmented button { flex: 1; }

  /* hero */
  .hero { padding: 28px 20px 24px; border-radius: 28px; gap: 28px; }
  .hero .display { font-size: 84px; margin: 12px 0 12px; }
  .hero-text { font-size: 18px; max-width: none; }
  .hero-sub { font-size: 14px; }
  .hero-line { padding: 14px 0; align-items: center; }
  .hero-line span { font-size: 14px; }
  .hero-line span small { font-size: 12px; }
  .hero-line b { font-size: 20px; }
  .hero-line.total b { font-size: 24px; }

  /* kartice i paneli */
  .kpis { gap: 12px; margin-top: 12px; }
  .kpi { padding: 22px 20px; }
  .kpi-value { font-size: 34px; margin: 10px 0 10px; }
  .kpi-text { font-size: 14px; margin-bottom: 12px; }
  .kpi-foot { padding-top: 12px; }
  .panel, .staples .panel { padding: 20px; }
  .facts-grid, .movers, .staples { gap: 12px; }
  .fact-value { font-size: 34px; }
  .fact p { font-size: 14px; }
  .hour-list { gap: 8px; }
  .hour-item { padding: 10px; column-gap: 8px; }
  .hour-qty { font-size: 19px; }
  .bar-row { gap: 6px 12px; font-size: 14px; }
  .bar-value { min-width: 0; }
  .chart-box { height: 240px; }
  .center { margin-top: 28px; }
  .center .btn { width: 100%; }

  /* liste */
  .row { gap: 12px; padding: 12px 0; grid-template-columns: 44px minmax(0, 1fr) auto; }
  .thumb { width: 44px; height: 44px; padding: 5px; }
  .row-title { font-size: 15px; }
  .row-meta { font-size: 13px; }
  .price { font-size: 16px; }
  .row.compact { grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 10px; }
  .row.compact .thumb { width: 36px; height: 36px; }
  .row.compact .row-title { font-size: 14px; }
  .row-chip .muted { display: none; }

  /* katalog */
  .search { margin-top: 20px; }
  .search input { height: 54px; font-size: 16px; padding-left: 52px; }
  .search svg { left: 20px; }
  .pills { margin: 0 -16px; padding: 14px 16px 2px; }
  .pill { padding: 8px 14px; font-size: 13px; }
  .filters { margin: 16px 0 4px; gap: 12px; }
  .filters-left { flex-wrap: nowrap; gap: 8px; width: 100%; }
  .filters-left .select { flex: 1; min-width: 0; height: 42px; padding: 0 30px 0 14px; font-size: 13px; background-position: right 12px center; }
  .filters-left .segmented button { padding: 8px 11px; font-size: 13px; }
  .count { margin-top: 12px; }

  /* artikal */
  .product-head { grid-template-columns: 96px 1fr; gap: 16px; align-items: start; margin-top: 12px; }
  .product-img { width: 96px; height: 96px; padding: 10px; border-radius: 20px; }
  .product-head h1 { font-size: 22px; margin: 6px 0 14px; letter-spacing: -0.03em; }
  .big-price { font-size: 38px; }
  .price-line { gap: 8px; }
  .changes > div { padding: 2px 10px; }
  .changes .chip { font-size: 13px; padding: 3px 9px; margin: 8px 0 6px; }
  .facts { gap: 8px 20px; margin-top: 18px; padding-top: 16px; font-size: 14px; }

  /* korpa */
  .equation { gap: 14px; }
  .equation .v { font-size: 28px; }
  .equation .op { font-size: 22px; line-height: 1; text-align: left; }
  .cover { font-size: 15px; margin-top: 20px; padding-top: 18px; }

  /* tabele: bez horizontalnog skrola */
  table { font-size: 14px; }
  th, td { padding: 12px 6px; }
  .hide-sm { display: none; }
  .show-sm { display: block; }
  td.name small.show-sm { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
  td.num .show-sm { margin-top: 4px; }
  td.name { min-width: 0; white-space: normal; }
  td.name .item { gap: 10px; }
  td.name .thumb { width: 34px; height: 34px; }
  tr.group td { padding-top: 24px; font-size: 15px; }
  td .chip { font-size: 12px; padding: 2px 8px; }

  /* footer */
  .site-footer { padding: 44px 0 24px; margin-top: 24px; }
  .footer-grid { gap: 28px; grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 32px; }

  .prose p, .prose li { font-size: 16px; }
  .prose h2 { margin: 44px 0 12px; font-size: 22px; }
  .formula { font-size: 12px; padding: 16px; }
}
