/* Od susjeda — izgled. Prvo mobitel. Boje: crveni rub kišobrana s tržnice na hladnoj, svijetloj podlozi. */
:root {
  --bg: #F2F4F0;
  --surface: #FFFFFF;
  --ink: #1C2620;
  --muted: #59645D;
  --line: #D9DFD6;
  --line-strong: #B9C2B5;
  --red: #B7212F;
  --red-ink: #9C1A27;
  --red-soft: #FBEAEC;
  --green: #2D6A3E;
  --green-soft: #E5F1E7;
  --amber: #8A5A00;
  --amber-soft: #FBF1DC;
  --blue-soft: #E8EEF5;
  --focus: #1E5BB8;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 38, 32, .06), 0 4px 14px rgba(28, 38, 32, .05);
  --tabbar-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111613; --surface: #1A211C; --ink: #E7ECE8; --muted: #A2ADA5; --line: #2B342E; --line-strong: #3E4941;
  --red: #E2505D; --red-ink: #F07580; --red-soft: #3A1E22; --green: #7CC48E; --green-soft: #1C2E21;
  --amber: #E3B35A; --amber-soft: #33291A; --blue-soft: #1D2632; --focus: #7FAEF5;
  --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-padding-bottom: calc(var(--tabbar-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--red-ink); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.012em; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 750; }
h3 { font-size: 1.06rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 650; margin: 0; }
p { margin: 0 0 1em; }
small { font-size: .86rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ---------- zaglavlje s rubom kišobrana ---------- */
.top { background: var(--surface); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px 6px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; color: var(--ink); }
.top-actions { margin-left: auto; display: flex; gap: 6px; min-width: 0; }
.scallop {
  height: 9px;
  background: radial-gradient(circle at 9px 0, var(--red) 8.5px, transparent 9px) 0 0 / 18px 9px repeat-x;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.04));
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .92rem;
  font-weight: 600; max-width: 100%; cursor: pointer; font-family: inherit;
}
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .ic { width: 18px; height: 18px; }
.chip-place { max-width: 46vw; }
.chip-shop { border-color: var(--red); color: var(--red-ink); }
.chip.is-on { background: var(--red); border-color: var(--red); color: #fff; }

.subnav {
  display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px; max-width: 760px; margin: 0 auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.subnav a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* ---------- okvir ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 18px 16px 24px; }
.narrow { max-width: 480px; margin: 0 auto; }
.lead { font-size: 1.06rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.right { text-align: right; margin: 6px 0 0; }
.block { margin: 28px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.h-small { font-size: 1.06rem; font-weight: 700; margin-bottom: .6em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 14px; box-shadow: var(--shadow); }
fieldset.card { min-width: 0; }
.box { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 12px 14px; margin: 16px 0; background: var(--surface); }
.box summary { cursor: pointer; font-weight: 650; min-height: 32px; display: flex; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: 10px; min-height: 40px; }
.back .ic { width: 20px; height: 20px; }
.link-quiet { color: var(--muted); font-size: .92rem; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: underline; padding: 6px 0; }

/* ---------- poruke ---------- */
.flash { border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 14px; font-weight: 550; border: 1px solid transparent; }
.flash-ok { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.flash-error { background: var(--red-soft); color: var(--red-ink); border-color: color-mix(in srgb, var(--red) 25%, transparent); }
.flash-warn { background: var(--amber-soft); color: var(--amber); }
.flash-info { background: var(--blue-soft); color: var(--ink); }
.flash a { color: inherit; font-weight: 700; }

/* ---------- gumbi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px;
  border-radius: 12px; border: 1.5px solid var(--red); background: var(--red); color: #fff; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center;
}
.btn:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg); border-color: var(--ink); color: var(--ink); }
.btn-ghost.is-on { border-color: var(--red); color: var(--red-ink); }
.btn-ghost.is-on .ic { fill: var(--red); stroke: var(--red); }
.btn-danger { color: var(--red-ink); border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.btn-wide { width: 100%; }
.btn-big { min-height: 56px; font-size: 1.08rem; }
.btn-small { min-height: 40px; padding: 6px 12px; font-size: .92rem; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.actions-row form { margin: 0; }
.actions-col { display: grid; gap: 10px; margin: 14px 0; }
.danger-zone { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.logout { margin: 24px 0; }

/* ---------- obrasci ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend, legend { font-weight: 650; font-size: .96rem; padding: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
.card > legend { padding: 0 4px; margin-left: -4px; }
fieldset.card > legend { float: left; width: 100%; margin-bottom: 10px; font-size: 1.06rem; font-weight: 700; }
fieldset.card > :not(legend) { clear: both; }
.field small, .field .opt { color: var(--muted); font-weight: 400; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=time], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 17px;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input:focus, select, textarea:focus { border-color: var(--ink); }
.field-error { color: var(--red-ink); font-size: .92rem; font-weight: 600; margin: 0; }
.static { margin: 0; padding: 4px 0; color: var(--muted); }
.check, .choice { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.check input, .choice input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.check span, .choice span { display: grid; gap: 2px; }
.check small, .choice small { color: var(--muted); }
.choice { border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-suffix, .input-prefix { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.input-suffix input, .input-prefix input { border: 0; min-width: 0; }
.input-suffix em, .input-prefix em { font-style: normal; color: var(--muted); padding: 0 12px; white-space: nowrap; font-size: .95rem; }
.input-prefix em { padding-right: 0; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.input-suffix:focus-within, .input-prefix:focus-within { border-color: var(--ink); outline: 3px solid var(--focus); outline-offset: 2px; }
.input-suffix input:focus-visible, .input-prefix input:focus-visible { outline: none; }
.inline-form { display: flex; gap: 8px; margin-bottom: 12px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { cursor: pointer; }
.seg input, .days input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); font-weight: 650; background: var(--surface); text-align: center; padding: 6px; }
.seg input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red-ink); }
.seg input:focus-visible + span, .days input:focus-visible + span, .slot input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days label { cursor: pointer; }
.days span { display: grid; place-items: center; min-height: 46px; border: 1.5px solid var(--line-strong); border-radius: 10px; font-weight: 650; font-size: .9rem; background: var(--surface); }
.days input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* slika s mobitela */
.photo-pick {
  position: relative; display: grid; place-items: center; min-height: 168px; border: 2px dashed var(--line-strong);
  border-radius: var(--radius); background: var(--surface); overflow: hidden; cursor: pointer;
}
.photo-pick-sm { min-height: 120px; }
.photo-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-pick-txt { position: relative; display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 10px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-pick:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- odabir mjesta ---------- */
.place-input { position: relative; }
.place-input-ic { position: absolute; left: 12px; top: 13px; color: var(--muted); pointer-events: none; }
.place-input input[type=text] { padding-left: 42px; }
.place-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 15; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(0,0,0,.14);
  max-height: 320px; overflow-y: auto;
}
.place-list li { padding: 11px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.place-list li small { color: var(--muted); }
.place-list li[aria-selected="true"], .place-list li:hover { background: var(--bg); }
.place-list li.none { color: var(--muted); cursor: default; }
.hero-form { display: grid; gap: 10px; }

/* ---------- prvi ekran ---------- */
.hero { padding: 18px 0 8px; }
.hero h1 { font-size: clamp(2rem, 9vw, 3.1rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 850; max-width: 12ch; margin-bottom: .35em; }
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 34ch; }
.how { margin: 36px 0 24px; }
.how-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 16px; display: grid; gap: 4px; }
.how-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.how-steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; }
.how-steps strong { font-size: 1.04rem; }
.how-steps span { color: var(--muted); }
.motto { font-weight: 700; font-size: 1.1rem; line-height: 1.35; max-width: 30ch; }
.sell-cta { background: var(--surface); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); margin: 24px 0; }
.sell-cta p { color: var(--muted); }

/* ---------- naslovnica mjesta ---------- */
.place-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.place-head h1 { margin: 0; }
.shops { display: grid; gap: 12px; }
.shop-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shop-card-link { display: grid; grid-template-columns: 104px 1fr; color: inherit; text-decoration: none; min-height: 124px; }
.shop-card-img { background: var(--line); }
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-body { padding: 12px 14px; min-width: 0; }
.shop-card h3 { margin: 0 0 2px; display: flex; align-items: center; gap: 6px; }
.heart-on .ic { width: 18px; height: 18px; fill: var(--red); stroke: var(--red); }
.from { color: var(--muted); font-size: .9rem; margin: 0 0 6px; display: flex; align-items: center; gap: 4px; }
.from .ic { width: 16px; height: 16px; }
.sample { margin: 0 0 8px; font-size: .95rem; }
.shop-card.is-closed { opacity: .75; }
.closed-note { color: var(--amber); font-weight: 650; font-size: .95rem; margin: 0 0 8px; }
.when { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.when li { display: flex; gap: 6px; align-items: flex-start; }
.when .ic { width: 18px; height: 18px; color: var(--red); margin-top: 1px; }
.when li.more { padding-left: 24px; }
.when-lg { font-size: 1rem; color: var(--ink); gap: 10px; margin-bottom: 10px; }
.when-lg li span { display: grid; }
.when-lg small { color: var(--muted); }

.singles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.single-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.single-card a { color: inherit; text-decoration: none; display: block; height: 100%; }
.single-img { aspect-ratio: 4 / 3; background: var(--line); }
.single-img img { width: 100%; height: 100%; object-fit: cover; }
.single-body { padding: 10px 12px 12px; }
.single-body h3 { font-size: 1rem; margin-bottom: 4px; }
.single-body p { margin: 0; font-size: .88rem; }
.single-body .price { font-size: 1rem; }
.single-body .meta { color: var(--muted); }
.left { color: var(--amber); font-weight: 600; font-size: .88rem; margin: 2px 0 0; }

.empty { text-align: center; padding: 36px 8px; }
.empty p { color: var(--muted); max-width: 38ch; margin-left: auto; margin-right: auto; }
.empty-code { font-size: 3rem; font-weight: 850; color: var(--red); margin: 0; }
.empty-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty-inline { color: var(--muted); padding: 18px 0; margin: 0; }

/* ---------- trgovina ---------- */
.shop-head { margin-bottom: 18px; }
.shop-cover { margin: -18px -16px 14px; aspect-ratio: 16 / 10; background: var(--line); overflow: hidden; }
.shop-cover img { width: 100%; height: 100%; object-fit: cover; }
.shop-title h1 { margin-bottom: 4px; font-size: 2rem; letter-spacing: -.025em; }
.story { font-size: 1.04rem; margin: 10px 0 14px; max-width: 60ch; }
.shop-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-actions form { margin: 0; }
.delivery-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 22px; }
.delivery-box h2 { font-size: 1.06rem; }
.delivery-box p:last-child { margin-bottom: 0; }
.producer { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; margin: 22px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.producer h3 { margin: 0; }
.producer .from { margin: 0; }
.story-more summary { color: var(--red-ink); cursor: pointer; font-weight: 600; font-size: .92rem; min-height: 32px; display: flex; align-items: center; }
.story-more p { margin: 4px 0 0; font-size: .95rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--line); overflow: hidden; flex: none; display: block; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 56px; height: 56px; }
.avatar-sq { border-radius: 10px; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: var(--green); background: var(--green-soft); }

.products { list-style: none; margin: 0; padding: 0; }
.product { display: grid; grid-template-columns: 64px 1fr; grid-template-areas: "img info" "img qty"; column-gap: 12px; row-gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.product-img { grid-area: img; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--line); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { grid-area: info; min-width: 0; }
.product-info p { margin: 2px 0 0; font-size: .92rem; color: var(--muted); }
.price { font-weight: 750; color: var(--ink) !important; margin: 4px 0 0 !important; font-size: 1rem !important; }
.price span { font-weight: 500; color: var(--muted); }
.product .qty { grid-area: qty; justify-self: start; }

.qty { display: inline-flex; align-items: center; border-radius: 999px; background: var(--surface); }
.qty form { margin: 0; }
.qbtn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.qbtn:hover { border-color: var(--ink); }
.qty-val { min-width: 74px; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }
.qty:not(.has-qty) .qty-dec, .qty:not(.has-qty) .qty-val { display: none; }
.qty:not(.has-qty) .qbtn-add { width: auto; padding: 0 18px 0 12px; border-radius: 999px; gap: 6px; display: inline-flex; align-items: center; background: var(--red); border-color: var(--red); color: #fff; font: inherit; font-weight: 700; }
.qty.has-qty .add-label { display: none; }
.qty.has-qty .qbtn-add { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.qty.is-busy { opacity: .6; }

.cartbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 8px 16px; z-index: 18; pointer-events: none; transition: transform .2s ease, opacity .2s ease; }
.cartbar .btn { pointer-events: auto; max-width: 728px; margin: 0 auto; display: flex; justify-content: flex-start; box-shadow: 0 8px 24px rgba(183, 33, 47, .35); min-height: 54px; }
.cartbar .btn span:first-of-type { flex: 1; text-align: left; }
.cartbar-go { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.4); }
.cartbar.is-empty { transform: translateY(20px); opacity: 0; }
.cartbar.is-empty .btn { pointer-events: none; }
body:has(.cartbar:not(.is-empty)) .foot { padding-bottom: 80px; }

/* ---------- popisi ---------- */
.list { list-style: none; padding: 0; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 0 10px 0 0; border-bottom: 1px solid var(--line); min-height: 60px; }
.list-row:last-child { border-bottom: 0; }
.list-row > .ic { margin-left: 14px; color: var(--red); }
.list-row > .grow, .list-tight .list-row > span.grow { padding: 10px 0 10px 14px; }
.list-row > .ic + .grow { padding-left: 0; }
.list-row > a.grow:not(.row-btn) { color: inherit; text-decoration: none; display: grid; }
.list-row.is-off { opacity: .55; }
.list-row.is-current { background: var(--green-soft); }
.list-row small { display: block; color: var(--muted); }
.list-sep { padding: 10px 14px 6px; font-weight: 700; font-size: .88rem; color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--line); }
.list-tight .list-row { min-height: 52px; }
.grow { flex: 1; min-width: 0; }
.row-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; background: none; border: 0; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.row-btn > span:not(.avatar):not(.status):not(.date-tile) { flex: 1; min-width: 0; display: grid; }
.row-btn > .ic:first-child { color: var(--red); }
.row-btn > .ic:last-child { color: var(--muted); width: 18px; }
.row-btn small { color: var(--muted); }
.card > .row-btn { padding: 4px 0; min-height: 48px; }
.tag { font-style: normal; font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.tag-warn { background: var(--amber-soft); color: var(--amber); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 800; font-style: normal; }
.badge-quiet { background: var(--line-strong); color: var(--ink); }
.status { font-size: .78rem; font-weight: 750; padding: 4px 10px; border-radius: 999px; white-space: nowrap; flex: none; }
.status-sent { background: var(--amber-soft); color: var(--amber); }
.status-confirmed { background: var(--blue-soft); color: var(--focus); }
.status-delivered { background: var(--green-soft); color: var(--green); }
.status-cancelled { background: var(--bg); color: var(--muted); text-decoration: line-through; }
.date-tile { width: 48px; height: 52px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; align-content: center; flex: none; line-height: 1.05; }
.date-tile b { font-size: 1.25rem; }
.date-tile small { font-size: .74rem; color: var(--muted); }
.link-list { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 16px; overflow: hidden; }
.link-list a { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 56px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 600; }
.link-list a:last-child { border-bottom: 0; }
.link-list a span { flex: 1; display: flex; gap: 8px; align-items: center; }
.link-list a .ic:first-child { color: var(--red); }
.link-list a .ic:last-child { color: var(--muted); width: 18px; }

/* ---------- košarica i narudžba ---------- */
.cart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cart-head h2 { margin: 0; }
.cart-head a { color: inherit; text-decoration: none; }
.cart-head form { margin: 0; }
.lines { list-style: none; padding: 0; margin: 10px 0; }
.line { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "info sum" "qty qty"; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 0; }
.line-info { grid-area: info; display: grid; min-width: 0; }
.line-info small { color: var(--muted); }
.line-sum { grid-area: sum; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line .qty { grid-area: qty; }
.lines-plain .line { grid-template-areas: "info sum"; }
.line .qty-edit, .line .qty-static { grid-column: 1 / -1; }
.lines-plain .line:has(.qty-edit), .lines-plain .line:has(.qty-static) { grid-template-columns: 1fr auto auto; grid-template-areas: "info q sum"; }
.lines-plain .line .qty-edit, .lines-plain .line .qty-static { grid-area: q; grid-column: auto; }
.qty-edit { display: flex; align-items: center; gap: 6px; }
.qty-edit input { width: 76px; min-height: 42px; text-align: right; padding: 8px; }
.qty-edit span, .qty-static { color: var(--muted); font-size: .92rem; white-space: nowrap; }
.cart-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.total strong { font-size: 1.15rem; }
.totals p { display: flex; justify-content: space-between; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.totals p.muted { display: block; }
.totals .grand { font-size: 1.15rem; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 8px; }
.card.totals { padding-bottom: 10px; }
.slot-group { padding: 10px 0; border-top: 1px solid var(--line); }
.slot-group:first-of-type { border-top: 0; padding-top: 0; }
.slot-title { display: flex; gap: 10px; align-items: flex-start; font-weight: 650; margin: 0 0 8px; }
.slot-title .ic { color: var(--red); margin-top: 1px; }
.slot-title span { display: grid; }
.slot-title small { color: var(--muted); font-weight: 400; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 32px; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .95rem; }
.slot input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.checkout [data-address].is-hidden { display: none; }
.new-address { display: grid; gap: 12px; margin-top: 8px; }
.order-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.order-head h1 { margin: 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--muted); font-size: .92rem; }
.facts dd { margin: 0; }
.facts .note { background: var(--amber-soft); padding: 6px 10px; border-radius: 8px; }
.call-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }

/* ---------- proizvođač ---------- */
.seller-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.seller-head h1 { margin: 0; }
.seller-head .link-quiet { word-break: break-all; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 18px; }
.stats > * { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 2px; text-decoration: none; color: inherit; min-height: 80px; align-content: center; }
.stats strong { font-size: 1.5rem; line-height: 1; }
.stats strong .ic { width: 26px; height: 26px; color: var(--red); }
.stats span { color: var(--muted); font-size: .84rem; line-height: 1.25; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 12px; overflow-x: auto; }
.tabs a { padding: 12px 14px; color: var(--muted); text-decoration: none; font-weight: 650; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.todo .howto { margin: 0; }
.howto { padding-left: 1.3em; margin: 0 0 16px; }
.howto li { margin-bottom: 6px; }
.wizard-steps { display: flex; gap: 8px; margin: 0 0 16px; }
.ws { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--line); color: var(--muted); text-decoration: none; }
.ws.on { background: var(--red); color: #fff; }
.ws.done { background: var(--green-soft); color: var(--green); }
.steps-hint { color: var(--red); margin-bottom: 8px; }
.steps-hint .ic { width: 44px; height: 44px; stroke-width: 1.5; }
[data-for-kind].is-hidden, [data-for].is-hidden, [data-for-repeat].is-hidden, [data-no-market].is-hidden { display: none; }

.switch { position: relative; min-width: 84px; height: 40px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .86rem; padding: 0 12px; }
.switch[aria-checked="true"] { background: var(--green-soft); color: var(--green); }
.switch[aria-checked="false"] { background: var(--bg); color: var(--muted); border: 1.5px dashed var(--line-strong); }
.switch[aria-checked="true"] .switch-off, .switch[aria-checked="false"] .switch-on { display: none; }
.prod-row form { margin: 0; }
.warn { color: var(--amber); }

/* popis za dostavu */
.pick-dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; align-items: center; }
.pick-dates .chip { flex: none; }
.pick-other input { min-height: 38px; padding: 6px 10px; width: auto; font-size: .92rem; }
.pick-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.pick-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.pick-table .num { text-align: right; white-space: nowrap; font-weight: 750; font-variant-numeric: tabular-nums; width: 1%; }
.pick-table .num.muted { font-weight: 400; }
.pick-table td:first-child { text-align: left; padding-right: 12px; }
.pick-producer { font-size: 1rem; margin: 12px 0 4px; color: var(--red-ink); }
.pick-order header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pick-order footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.pick-order footer form { margin: 0; }
.pick-items { list-style: none; padding: 0; margin: 6px 0; columns: 2; column-gap: 16px; }
.pick-items li { break-inside: avoid; padding: 2px 0; }
.pick-order .note { background: var(--amber-soft); padding: 6px 10px; border-radius: 8px; margin: 6px 0 0; font-size: .95rem; }
.pick-order.is-done { opacity: .6; }
.print-only { display: none; }

/* QR plakat */
.poster { background: #fff; color: #111; border-radius: var(--radius); padding: 0 24px 28px; text-align: center; border: 1px solid var(--line); max-width: 480px; margin: 18px auto; overflow: hidden; }
.poster-stripe { height: 18px; margin: 0 -24px 22px; background: radial-gradient(circle at 18px 0, #B7212F 17px, transparent 17.5px) 0 0 / 36px 18px repeat-x, #fff; }
.poster h2 { font-size: 2rem; font-weight: 850; letter-spacing: -.02em; margin-bottom: 6px; color: #111; }
.poster-lead { font-size: 1.15rem; color: #333; }
.poster-qr svg { width: 100%; max-width: 300px; height: auto; margin: 6px auto 10px; display: block; }
.poster-url { font-weight: 800; font-size: 1.2rem; word-break: break-all; margin-bottom: 4px; color: #111; }
.poster-foot { color: #555; margin: 0; }

/* upravljanje i instalacija */
.admin-shop-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.admin-shop-head h3 { margin: 0; }
.admin-shop-head p { margin: 2px 0 0; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.checks li { display: flex; gap: 8px; align-items: center; }
.checks .ok .ic { color: var(--green); }
.checks .bad { color: var(--red-ink); font-weight: 650; }
.place-approve .row2 { margin-bottom: 4px; }

.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- podnožje i donja traka ---------- */
.foot { margin-top: 32px; padding: 24px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot-in { max-width: 760px; margin: 0 auto; }
.langs { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.langs a { color: var(--ink); text-decoration: none; padding: 6px 2px; }
.langs a[aria-current="true"] { font-weight: 800; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-links a { color: var(--muted); }
.foot-tag { margin: 0; max-width: 46ch; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; height: var(--tabbar-h);
  color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 650;
}
.tabbar a .ic { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--red-ink); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); }
.tabbar .badge { position: absolute; top: 7px; left: calc(50% + 6px); }
.area-seller .tabbar { display: none; }
body.area-seller { padding-bottom: env(safe-area-inset-bottom); }

@media (min-width: 600px) {
  .shops { grid-template-columns: 1fr 1fr; }
  .shop-card-link { grid-template-columns: 1fr; grid-template-rows: 150px 1fr; }
  .singles { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { max-width: 14ch; }
  .shop-cover { margin: 0 0 16px; border-radius: var(--radius); }
  .product { grid-template-columns: 72px 1fr auto; grid-template-areas: "img info qty"; align-items: center; }
  .product-img { width: 72px; height: 72px; }
  .product .qty { justify-self: end; }
  .line { grid-template-columns: 1fr auto 96px; grid-template-areas: "info qty sum"; }
  .line .qty { justify-self: end; }
  .line-sum { text-align: right; }
  .actions-col { grid-template-columns: 1fr; max-width: 420px; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .tabbar { position: sticky; top: 65px; bottom: auto; z-index: 19; width: 100%; max-width: 760px; margin: 0 auto; border: 0; background: transparent; grid-template-columns: repeat(5, auto); justify-content: start; gap: 4px; padding: 0 16px; }
  .tabbar a { height: 44px; grid-auto-flow: column; gap: 8px; padding: 0 14px; font-size: .95rem; border-radius: 999px; }
  .tabbar a[aria-current="page"] { background: var(--surface); box-shadow: var(--shadow); }
  .tabbar a[aria-current="page"]::before { display: none; }
  .tabbar .badge { position: static; }
  body { display: flex; flex-direction: column; }
  .top { order: 0; } .tabbar { order: 1; } .subnav { order: 2; } main { order: 3; } .foot { order: 4; }
  .cartbar { bottom: 0; }
  .area-seller .tabbar { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media print {
  body { background: #fff; color: #000; padding: 0; font-size: 12pt; }
  .top, .tabbar, .subnav, .foot, .no-print, .flash, .cartbar, .back { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .card, .list { box-shadow: none; border-color: #bbb; break-inside: avoid; }
  .print-only { display: block; }
  .poster { border: 0; max-width: none; margin: 0; padding: 0 0 20px; }
  .poster h2 { font-size: 34pt; }
  .poster-qr svg { max-width: 11cm; }
  .poster-url { font-size: 18pt; }
  .pick-order { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}

/* upravljanje: korisnici */
.user-head strong { font-size: 1.05rem; }
.user-head small { display: block; margin-top: 2px; }
.user-shop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.user-shop .ic { color: var(--red); }
.user-card .actions-row { margin: 12px 0 0; }
.cutoff { color: var(--amber) !important; font-weight: 600; }

/* kartica s PIN-om */
.pin-card { text-align: left; }
.pin-card h2 { text-align: center; }
.pin-app { text-align: center; font-weight: 800; color: #B7212F; margin: 0 0 4px; }
.pin-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0; font-size: 1.1rem; color: #111; }
.pin-facts dt { color: #555; }
.pin-facts dd { margin: 0; font-weight: 700; word-break: break-all; }
.pin-code { font-size: 1.8rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.pin-slots { background: #F4F5F2; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; color: #111; }
.pin-slots p { margin: 2px 0; }
.pin-qr svg { width: 160px; height: auto; margin: 0 auto; display: block; }
.pin-help { color: #333; padding-left: 1.2em; margin: 10px 0 0; }
.pin-help li { margin-bottom: 4px; }
.impersonate-bar { background: #1C2620; color: #fff; padding: 8px 16px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: .95rem; position: sticky; top: 0; z-index: 30; }
.impersonate-bar form { margin: 0; }
.impersonate-bar button { background: #fff; color: #1C2620; border: 0; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 700; cursor: pointer; min-height: 36px; }
@media print { .impersonate-bar { display: none !important; } .pin-qr svg { width: 4cm; } }

/* ekološki certifikat */
.eco-box legend { display: flex; align-items: center; gap: 6px; }
.eco-box legend .ic { color: var(--green); }
.eco-box:not(:has(input[name=eco]:checked)) .eco-fields { display: none; }
.eco-fields { display: grid; gap: 12px; margin-top: 10px; }
.eco-status { margin: 0; font-weight: 650; font-size: .92rem; padding: 6px 10px; border-radius: 8px; }
.eco-status.is-ok { background: var(--green-soft); color: var(--green); }
.eco-status.is-wait { background: var(--amber-soft); color: var(--amber); }
.eco-warn { margin: 8px 0 0; }
.eco-badge { display: inline-flex; gap: 8px; align-items: flex-start; background: var(--green-soft); color: var(--green); border-radius: 10px; padding: 8px 12px; margin: 6px 0 4px; }
.eco-badge .ic { flex: none; }
.eco-badge span { display: grid; }
.eco-badge small { color: var(--green); opacity: .85; }
.eco-chip { display: inline-flex; align-items: center; gap: 4px; color: var(--green); background: var(--green-soft); font-weight: 700; font-size: .8rem; padding: 2px 8px; border-radius: 999px; margin: 0 0 6px; }
.eco-chip .ic { width: 15px; height: 15px; }
.producer .eco-badge { font-size: .9rem; padding: 6px 10px; }
.terms-box { border-color: var(--amber); background: var(--amber-soft); }
.row2 > * { min-width: 0; }
input[type=date], input[type=time] { min-width: 0; max-width: 100%; }

/* ---------- dolasci i pretraga */
.arrivals { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.arrivals a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: inherit; text-decoration: none; }
.arrivals a:hover { border-color: var(--green); }
.arrivals .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.arrivals small { color: var(--muted); }
.arr-date { flex: 0 0 52px; text-align: center; border-radius: 10px; background: var(--green-soft); padding: 6px 0; line-height: 1.1; }
.arr-date b { display: block; font-size: 1.35rem; color: var(--green); }
.arr-date small { text-transform: lowercase; }
.arr-cut { display: inline-flex; align-items: center; gap: 4px; }
.arr-cut .ic { width: 14px; height: 14px; }
.search-form { display: flex; gap: 8px; margin: 4px 0 18px; }
.search-form input { flex: 1; min-width: 0; }
.search-form .btn { flex: 0 0 auto; padding-left: 14px; padding-right: 14px; }
.hero-alt { margin-top: 14px; }
.hero-alt a { display: inline-flex; gap: 6px; align-items: center; }
.hit-list { display: grid; gap: 12px; }
.hit { display: flex; flex-direction: column; gap: 8px; }
.hit-head { color: inherit; text-decoration: none; font-size: 1.05rem; }
.hits { list-style: none; margin: 0; padding: 0; }
.hits li { display: flex; gap: 10px; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.hits li:last-child { border-bottom: 0; }
.hits .price { white-space: nowrap; font-weight: 600; }
.hits .price small { font-weight: 400; color: var(--muted); }
.hits .more { color: var(--muted); font-size: .9rem; }
.hit-when { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: .92rem; color: var(--muted); }
.hit .btn { align-self: flex-start; }

/* ---------- dolazak na tržnicu */
.checkin { border-left: 6px solid var(--amber); }
.checkin-here { border-left-color: var(--green); }
.checkin-gone, .checkin-off { border-left-color: var(--line-strong); }
.checkin-head { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; }
.checkin-head span { display: grid; gap: 2px; }
.checkin-head small { color: var(--muted); }
.checkin-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.checkin .btn-big { flex: 1 1 200px; }
.checkin p.small { margin: 10px 0 0; }

.checkin-late { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 8px; }
.checkin-late .muted { flex-basis: 100%; }
.checkin-offer { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.checkin-offer summary { cursor: pointer; font-weight: 600; }
.offer-rows { list-style: none; margin: 8px 0 12px; padding: 0; }
.offer-rows li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.offer-rows .grow { flex: 1 1 140px; min-width: 0; }
.qty-in { display: flex; align-items: center; gap: 4px; }
.qty-in input { width: 80px; min-height: 40px; padding: 6px 8px; }
.offer-rows .check.sold { padding: 0; gap: 6px; }
/* ---------- tržnice u upravljanju */
.market-list { display: grid; gap: 14px; margin-bottom: 22px; }
.market-card.is-off { opacity: .7; }
.market-head { display: flex; gap: 12px 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.market-info { flex: 1 1 260px; min-width: 0; }
.market-info h2 { margin-bottom: 4px; }
.market-info p { margin: 0 0 2px; }
.market-head .actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.market-head .actions-row form { margin: 0; }
.screen-url { margin: 10px 0 0; overflow-wrap: anywhere; }
.market-settings { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.market-settings > summary { cursor: pointer; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink); list-style: none; }
.market-settings > summary::-webkit-details-marker { display: none; }
.market-settings .form { margin-top: 12px; max-width: 560px; }
.market-settings .seg .ic { width: 18px; height: 18px; margin-right: 6px; }
.coords { margin: 4px 0 14px; }
.coords summary { cursor: pointer; color: var(--muted); }
.coords .row2 { margin-top: 10px; }

/* ---------- izbor izgleda */
.theme-switch { margin: 0 0 10px; }
.theme-switch a { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }
.theme-switch a:hover { border-color: var(--ink); }
[data-theme="dark"] img { filter: brightness(.92); }

.seg-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.seg-links a { display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 600; }
.seg-links a[aria-current="true"] { border-color: var(--red); background: var(--red-soft); color: var(--red-ink); }

/* ---------- kupci na veliko i rezervacije */
.wholesale { margin: 4px 0 0; font-size: .92rem; color: var(--green); font-weight: 600; }
.wholesale a { font-weight: 700; }
.wholesale-note { margin-top: -4px; }
.status-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; background: var(--blue-soft); color: var(--ink); }
.status-tag.s-requested, .status-tag.s-cancel_requested, .status-tag.s-pending { background: var(--amber-soft); color: var(--amber); }
.status-tag.s-offered { background: var(--blue-soft); }
.status-tag.s-confirmed, .status-tag.s-delivered, .status-tag.s-verified { background: var(--green-soft); color: var(--green); }
.status-tag.s-declined, .status-tag.s-withdrawn, .status-tag.s-cancelled, .status-tag.s-rejected, .status-tag.s-blocked { background: var(--red-soft); color: var(--red-ink); }
.res-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; }
.res-facts dt { color: var(--muted); }
.res-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.res-log { list-style: none; margin: 0; padding: 0; }
.res-log li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.res-log time { color: var(--muted); font-size: .86rem; margin-right: 6px; }
.res-log .note { display: block; color: var(--muted); font-size: .92rem; margin-top: 2px; }
.res-terms { border: 2px solid var(--amber); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--amber-soft); margin-bottom: 14px; }
.res-terms p { margin: 0 0 6px; }
.res-actions { display: grid; gap: 14px; }
.reliability { font-size: .9rem; color: var(--muted); }

/* Zaglavlje na uskom mobitelu: mjesto i trgovina stanu u jedan red */
.top-actions .chip { min-width: 0; flex: 0 1 auto; }
.brand { flex: none; }
@media (max-width: 420px) {
  .top-actions .chip-place + .chip-shop span { display: none; }
  .top-actions .chip-place + .chip-shop { padding: 6px 10px; }
}

/* ---------- imenik kupaca na veliko */
.dir-card.is-match { border-left: 6px solid var(--green); }
.dir-terms { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.chip-term { display: inline-flex; gap: 4px; align-items: center; padding: 2px 10px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: .9rem; }
.chip-term.hit { border-color: var(--green); background: var(--green-soft); color: var(--green); font-weight: 700; }
.dir-card .dir-terms .chip-term { display: inline-flex; flex-direction: row; }
.chip-term .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.dir-hit { color: var(--green); font-weight: 650; margin: 0 0 10px; }
.dir-filter .btn { justify-self: start; }

/* ---------------------------------------------------------------- pomoć */
.help-cards { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.help-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.help-card:hover { border-color: var(--line-strong); }
.help-card.is-mine { border-color: var(--green); box-shadow: inset 4px 0 0 var(--green), var(--shadow); }
.help-card .grow { flex: 1; min-width: 0; }
.help-card strong { font-size: 1.05rem; }
.help-card small { display: block; color: var(--muted); margin-top: 2px; }
.help-card > .ic { color: var(--muted); flex: none; }
.help-card-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red-ink); }
.help-card.is-mine .help-card-ic { background: var(--green-soft); color: var(--green); }
.help-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 6px; scrollbar-width: thin; }
.help-tabs .chip { flex: none; }
.help-tabs .chip[aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }
.help h2 { font-size: 1.05rem; margin: 1.4em 0 .5em; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.help-q { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 8px; scroll-margin-top: 80px; }
.help-q > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 650; min-height: 48px; }
.help-q > summary::-webkit-details-marker { display: none; }
.help-q > summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; line-height: 1; color: var(--red-ink); flex: none; }
.help-q[open] > summary::after { content: "−"; }
.help-q[open] > summary { border-bottom: 1px solid var(--line); }
.help-q > div { padding: 4px 14px 6px; }
.help-q > div ol, .help-q > div ul { padding-left: 1.3em; }
.help-link { margin: 22px 0 6px; }
.help-link a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; text-decoration: none; min-height: 40px; }
.help-link a:hover { color: var(--red-ink); }
.help-link .ic { width: 20px; height: 20px; }
.help-contact { margin-top: 18px; }
@media print { .help-q > div { display: block; } .help-link { display: none; } }

/* v3.7: porijeklo proizvoda, zimnica */
.origin-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .01em; padding: 1px 7px; border-radius: 999px; vertical-align: .12em; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); background: transparent; }
.origin-tag.o-own { background: var(--green-soft); color: var(--green); border-color: transparent; }
.origin-pick { display: grid; gap: 8px; }
.search-own { flex-basis: 100%; margin-top: 4px; font-size: .92rem; }
.search-form:has(.search-own) { flex-wrap: wrap; }
.zim-banner { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin: 0 0 18px; background: var(--green-soft); border-color: transparent; }
.zim-banner .ic { color: var(--green); flex: none; }
.zim-banner .grow { display: grid; gap: 2px; min-width: 0; }
.zim-banner small { color: var(--muted); }
.zim-items li { flex-wrap: wrap; row-gap: 6px; }
.zim-items .grow { display: grid; gap: 2px; min-width: 0; }
.zim-items .origin-tag, .hits .origin-tag { justify-self: start; }

/* v3.8 — listanje proizvoda strelicama, dva gumba za spremanje */
.prod-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.prod-top .back { margin-bottom: 0; }
.prod-nav { display: inline-flex; align-items: center; gap: 6px; }
.btn-icon { min-width: 44px; min-height: 44px; padding: 0; justify-content: center; }
.btn-icon .ic { width: 22px; height: 22px; margin: 0; }
.btn-icon.is-off { opacity: .35; pointer-events: none; }
.prod-pos { min-width: 4.2em; text-align: center; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.save-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.save-row .btn { width: 100%; }
