/* AutoBlic B2B – osnovni izgled (bez build koraka). Boje su iz loga: plava i celicno plava, sa zutim akcentom
   (Ilija 04.11: izgled je bio skoro isti kao kod Janaki, koji koristi tamnoplavu, cijan i narandzastu).
   Svetla tema je osnovna; tamna se ukljucuje po podesavanju sistema ili rucno (data-theme na <html>). */
:root {
    --ink: #17314d;
    --muted: #5d7187;
    --line: #dbe4ee;
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-2: #fbfcfe;
    --tint: #f3f6fa;
    --blue: #0b5fa5;
    --blue-strong: #084a85;
    --blue-text: #0d4f9a;
    --blue-soft: #e8f1fc;
    --on-blue: #ffffff;
    --ok: #1a8a4a;
    --ok-soft: #e4f5ea;
    --no: #c2382f;
    --no-soft: #fbe9e7;
    --notice-bg: #fff6dd;
    --notice-ink: #6b5300;
    --notice-line: #f1e2b0;
    --cross-bg: #f1ecfb;
    --cross-ink: #5b3b9c;
    --disabled: #c7d3e0;
    --photo-bg: #ffffff;
    --shadow: 0 18px 50px rgba(16, 48, 88, .16);
    --auth-from: #0b4a92;
    --auth-to: #1f8ae8;
    --cloud-1: #8fc0f5;
    --cloud-2: #c3defb;
    --radius: 10px;
    --orange: #f26a21;
    --btn-dark: #0b5fa5;
    --brand-grad: linear-gradient(135deg, #0d68b4 0%, #0a5494 55%, #083f73 100%);
    --accent: #ffb703;
    --accent-ink: #1f2530;
    --accent-soft: #fff4d6;
    --accent-text: #8a5a00;
    --announce-bg: #fff4ea;
    --num-ink: #0a8fc2;
    --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ink: #e3ecf5; --muted: #95a8bc; --line: #26384b; --bg: #0d151f; --surface: #142130; --surface-2: #121d2a;
        --tint: #1b2b3d; --blue: #3d95f2; --blue-strong: #2a7fd8; --blue-text: #8cc4ff; --blue-soft: #16314f; --on-blue: #ffffff;
        --ok: #4fc887; --ok-soft: #12321f; --no: #ff8076; --no-soft: #3b1d1b;
        --notice-bg: #2e2712; --notice-ink: #f0d78a; --notice-line: #4a3f18;
        --cross-bg: #2a2140; --cross-ink: #c9b4f5; --disabled: #34475c; --photo-bg: #ffffff;
        --shadow: 0 18px 50px rgba(0, 0, 0, .45);
        --auth-from: #072e5c; --auth-to: #1463b8; --cloud-1: #2b5f96; --cloud-2: #1e3f63;
        --btn-dark: #2a7fd8; --announce-bg: #2b1d10; --num-ink: #5fd0f5;
        --brand-grad: linear-gradient(135deg, #0b4f8c 0%, #093f70 55%, #072f55 100%);
        --accent-soft: #33280b; --accent-text: #ffd166;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --ink: #e3ecf5; --muted: #95a8bc; --line: #26384b; --bg: #0d151f; --surface: #142130; --surface-2: #121d2a;
    --tint: #1b2b3d; --blue: #3d95f2; --blue-strong: #2a7fd8; --blue-text: #8cc4ff; --blue-soft: #16314f; --on-blue: #ffffff;
    --ok: #4fc887; --ok-soft: #12321f; --no: #ff8076; --no-soft: #3b1d1b;
    --notice-bg: #2e2712; --notice-ink: #f0d78a; --notice-line: #4a3f18;
    --cross-bg: #2a2140; --cross-ink: #c9b4f5; --disabled: #34475c; --photo-bg: #ffffff;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
    --auth-from: #072e5c; --auth-to: #1463b8; --cloud-1: #2b5f96; --cloud-2: #1e3f63;
        --btn-dark: #2a7fd8; --announce-bg: #2b1d10; --num-ink: #5fd0f5;
        --brand-grad: linear-gradient(135deg, #0b4f8c 0%, #093f70 55%, #072f55 100%);
        --accent-soft: #33280b; --accent-text: #ffd166;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); }
a { color: var(--blue-text); }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .95em; }
[hidden] { display: none !important; }

/* ---------- prekidac teme ---------- */
.theme-toggle {
    display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
    border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--blue-text); border-color: var(--blue); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ---------- pokretne trake sa porukama (poruke i brzinu menja admin): plava traka i svetla traka ispod nje,
   obe idu na istu stranu; poruke razdvaja zuti romb ---------- */
.ticker { background: var(--brand-grad); font-size: 13px; font-weight: 600; overflow: hidden; }
.ticker__row { overflow: hidden; padding: 6px 0; color: #fff; }
.ticker__row--2 { border-bottom: 1px solid var(--notice-line); background: var(--notice-bg); color: var(--notice-ink); }
.ticker__track { display: flex; width: max-content; animation: ticker-run var(--ticker-speed, 40s) linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex-shrink: 0; min-width: 100vw; justify-content: space-around; gap: 64px; padding-right: 64px; }
.ticker__item { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.ticker__item::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.ticker__row--2 .ticker__item::before { background: var(--blue); }
@keyframes ticker-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- zaglavlje: bela kartica sa logom, pretragom i nalogom + meni "pilule" ---------- */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.site-head { position: sticky; top: 0; z-index: 30; padding: 10px 0 6px; background: var(--bg); }
.head-card { position: relative; display: grid; grid-template-columns: 186px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 12px 20px; background: var(--surface); border-radius: 22px; box-shadow: 0 6px 24px rgba(16, 48, 88, .08); }
.head-card::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 70%, var(--accent) 100%); opacity: .9; }
.brand img { display: block; width: 180px; height: auto; }
.searchbar { display: flex; align-items: center; min-width: 0; padding: 4px 4px 4px 18px; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; }
.searchbar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.searchbar input { flex: 1; min-width: 0; padding: 8px 4px; border: 0; background: transparent; font-size: 16px; outline: none; }
.searchbar button { padding: 9px 24px; border: 0; border-radius: 999px; background: var(--btn-dark); color: #fff; font-weight: 600; cursor: pointer; }
.searchbar button:hover { background: var(--blue-strong); }
.account { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 14px; }
.account form { margin: 0; }
.account__hello { display: grid; line-height: 1.15; text-align: right; }
.account__hello small { color: var(--muted); font-size: 12px; }
.account__hello strong { font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.pill--blue { background: var(--blue-soft); color: var(--blue-text); }
.pill--green { background: var(--ok); color: #fff; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { color: var(--blue-text); border-color: var(--blue); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn__badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #e03131; color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }
.mainnav { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding: 6px; background: var(--surface); border-radius: 999px; box-shadow: 0 8px 24px -10px rgba(16, 48, 88, .25); overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 13.5px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.mainnav a:hover { background: var(--tint); }
.mainnav a.is-active { background: var(--blue); color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.mainnav__count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: #e03131; color: #fff; font-size: 11px; line-height: 19px; text-align: center; }
.mainnav a.mainnav__admin { margin-left: auto; background: var(--accent); color: var(--accent-ink); }
.mainnav a.mainnav__admin:hover { filter: brightness(1.08); }
.announce { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 16px; border: 1px solid var(--notice-line); border-left: 4px solid var(--accent); border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-weight: 600; font-size: 13.5px; }
.announce::before { content: "i"; flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 800 12px/1 Georgia, serif; }
@media (max-width: 1100px) { .account__hello { display: none; } }
@media (max-width: 900px) {
    .head-card { grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; }
    .brand img { width: 150px; }
    .account__discount, .account__searches { display: none; }
}
.notice { background: var(--notice-bg); color: var(--notice-ink); text-align: center; font-size: 13px; padding: 6px 16px; border-bottom: 1px solid var(--notice-line); }

.page { max-width: 1280px; margin: 0 auto; padding: 20px 16px 48px; }

/* ---------- prijava ---------- */
body.is-auth .page { max-width: none; padding: 0; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; position: relative; }
.auth__theme { position: absolute; top: 16px; right: 16px; z-index: 5; }
.auth__card {
    width: 100%; max-width: 980px; min-height: 560px; display: grid; grid-template-columns: 1fr 1fr;
    background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
}
.auth__brand {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    padding: 48px 96px 48px 40px; text-align: center; color: var(--on-blue);
    background: linear-gradient(160deg, var(--auth-from) 0%, var(--auth-to) 100%);
}
/* "oblaci" na desnoj ivici plavog panela */
.auth__brand::after {
    content: ""; position: absolute; top: 0; bottom: 0; right: -1px; width: 100px; pointer-events: none;
    background:
        radial-gradient(circle at 100% 50%, var(--surface) 0 30px, transparent 31px) right 0 top 0 / 62px 66px repeat-y,
        radial-gradient(circle at 100% 50%, var(--cloud-2) 0 40px, transparent 41px) right 0 top 18px / 80px 88px repeat-y,
        radial-gradient(circle at 100% 50%, var(--cloud-1) 0 50px, transparent 51px) right 0 top 40px / 100px 110px repeat-y;
}
.auth__welcome { margin: 0; font-size: 22px; font-weight: 300; letter-spacing: .02em; }
.auth__logo { width: min(300px, 100%); height: auto; filter: brightness(0) invert(1); margin: 6px 0 4px; }
.auth__tagline { margin: 0; font-size: 17px; font-weight: 600; }
.auth__text { margin: 0; max-width: 30ch; font-size: 14px; opacity: .85; }
.auth__foot { position: absolute; bottom: 22px; left: 40px; right: 96px; display: flex; justify-content: center; gap: 14px; font-size: 12px; opacity: .8; }
.auth__foot a { color: inherit; text-decoration: none; }
.auth__form { display: flex; flex-direction: column; justify-content: center; padding: 48px 56px; }
.auth__form h1 { margin: 0 0 28px; font-size: 26px; font-weight: 600; text-align: center; }
.field { display: grid; gap: 4px; margin-bottom: 22px; }
.field label { font-weight: 600; font-size: 15px; }
.field input {
    width: 100%; padding: 8px 2px; border: 0; border-bottom: 2px solid var(--line); border-radius: 0;
    background: transparent; font-size: 16px; transition: border-color .15s;
}
.field input::placeholder { color: var(--muted); opacity: .7; }
.field input:focus { outline: none; border-bottom-color: var(--blue); }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--blue); width: 16px; height: 16px; }
.form-error { color: var(--no); margin: 12px 0 0; font-size: 14px; }
.auth__actions { display: flex; justify-content: center; margin-top: 26px; }
.btn-pill {
    min-width: 170px; padding: 12px 28px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 16px;
    color: var(--on-blue); background: linear-gradient(180deg, var(--auth-to), var(--auth-from));
    box-shadow: 0 6px 16px rgba(18, 104, 201, .35);
}
.btn-pill:hover { filter: brightness(1.08); }
.auth__help { margin: 26px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .field input { transition: none; } }

/* ---------- pocetna / poruke ---------- */
.welcome { text-align: center; padding: 64px 16px; }
.welcome h1 { margin: 0 0 8px; font-size: 28px; }
.welcome p { color: var(--muted); margin: 0 0 12px; }
.welcome__examples a { display: inline-block; margin: 4px; padding: 4px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-family: var(--mono); }
.empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; text-align: center; color: var(--muted); }

/* ---------- rezultati ---------- */
.summary h1 { margin: 0; font-size: 24px; }
.summary p { margin: 4px 0 16px; color: var(--muted); }
.summary .ok { color: var(--ok); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.chip span { color: var(--muted); margin-left: 4px; }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.chip.is-active span { color: var(--on-blue); opacity: .8; }



.badge { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.badge--exact { background: var(--blue-soft); color: var(--blue-text); }
.badge--cross { background: var(--cross-bg); color: var(--cross-ink); }
.badge--oe { background: var(--notice-bg); color: var(--notice-ink); }
.part__qty { color: var(--muted); min-width: 2.2em; }
.part__offer { font-size: 12px; border-radius: 999px; padding: 0 8px; }

.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.stock .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock--ok { color: var(--ok); background: var(--ok-soft); }
.stock--no { color: var(--no); background: var(--no-soft); }
/* "Достапно наскоро": poruka na prelaz misem, na telefonu na dodir */
.stock--soon { position: relative; color: var(--accent-text); background: var(--accent-soft); cursor: help; }
.stock--soon:hover::after, .stock--soon:focus::after { content: attr(data-tip); position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: 280px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.4; box-shadow: 0 6px 20px rgba(4, 12, 22, .18); white-space: normal; }
.stock-qty { font-size: 12px; color: var(--muted); font-weight: 600; }

.equivalents { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.equivalents summary { cursor: pointer; padding: 12px 16px; font-weight: 600; }
.table-wrap { overflow-x: auto; }
.equivalents table { width: 100%; border-collapse: collapse; font-size: 14px; }
.equivalents th, .equivalents td { text-align: left; padding: 6px 16px; border-top: 1px solid var(--line); }
.equivalents th { color: var(--muted); font-weight: 600; font-size: 13px; }

/* ---------- detalji artikla ---------- */
.link-detail { background: none; border: 0; padding: 0; color: var(--blue-text); cursor: pointer; font: inherit; font-size: 13px; text-decoration: underline; }
td .link-detail { font-family: var(--mono); font-size: inherit; }
/* katalog po vozilu */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--blue-text); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs--small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.vehicle-pick { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.maker-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 12px 0; }
.maker-tiles a { display: block; padding: 12px 10px; border: 1px solid var(--line); border-radius: 10px; text-align: center; font-weight: 700; text-decoration: none; color: var(--ink); background: var(--bg); }
.maker-tiles a:hover, .group-tiles a:hover { border-color: var(--blue); color: var(--blue-text); }
.maker-all summary { cursor: pointer; font-weight: 600; color: var(--blue-text); margin: 6px 0; }
.maker-list, .model-list, .history-list { list-style: none; margin: 0; padding: 0; }
.maker-list { columns: 4 160px; column-gap: 16px; }
.maker-list li { padding: 3px 0; break-inside: avoid; }
.maker-list a, .model-list a, .history-list a { text-decoration: none; color: var(--ink); }
.maker-list a:hover, .model-list a:hover, .history-list a:hover { color: var(--blue-text); text-decoration: underline; }
.history-list li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.history-list li:last-child { border-bottom: 0; }
.filter-row { display: flex; gap: 8px; margin-bottom: 12px; }
.year-input { max-width: 120px; }
.vehicle-filter { margin-bottom: 10px; }
/* modeli kao odvojene kartice, da se kolone ne stapaju (Ilija 04.11) */
.model-group { margin-bottom: 18px; }
.model-group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--ink); font-size: 15px; letter-spacing: .02em; }
.model-group h2::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.model-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.model-list li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 14px; transition: border-color .12s, box-shadow .12s; }
.model-list li:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(16, 48, 88, .08); }
.model-list li a { font-weight: 600; }
.model-list li a::after { content: ""; position: absolute; inset: 0; }
.vehicle-types td { vertical-align: top; }
.vehicle-types tbody tr:hover { background: var(--tint); }
.vehicle-types tbody tr { cursor: pointer; }
.vehicle-types tbody tr:hover .row-link { text-decoration: underline; }
.row-link { font-weight: 700; color: var(--blue-text); text-decoration: none; }
.row-link:hover { text-decoration: underline; }
.engine-search { max-width: 520px; }
.vin-hint { margin: 10px 0 0; font-size: 13px; }
.vin-found { margin: 0 0 12px; }
.vehicle-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.vehicle-head h1 { margin: 0 0 4px; font-size: 22px; overflow-wrap: anywhere; }
.vehicle-head p { margin: 2px 0; }
.vehicle-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.vehicle-tree { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.stock-switch { display: flex; margin-bottom: 10px; text-decoration: none; color: var(--ink); }
.tree { list-style: none; margin: 0; padding: 0 0 0 12px; font-size: 14px; }
.vehicle-tree > .tree, .vehicle-tree__body > .tree { padding-left: 0; }
.tree li { padding: 2px 0; }
.tree summary { cursor: pointer; }
.tree a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.tree a:hover { color: var(--blue-text); text-decoration: underline; }
.tree a.is-active { color: var(--blue-text); font-weight: 700; }
.tree li > a:first-child { margin-left: 16px; }
.tree__count { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-text); font-size: 12px; font-weight: 700; text-align: center; }
.tree__count--other { border: 1px dashed var(--line); background: transparent; color: var(--muted); font-weight: 400; }
.tree a.is-other, .group-tiles a.is-other { color: var(--muted); font-weight: 400; }
.results__note { margin: 0 0 12px; color: var(--muted); }
.eq-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.kit-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; width: fit-content; margin: 2px 0; padding: 2px 10px; border-radius: 999px; font-size: 13px; text-decoration: none; }
.kit-offer .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.kit-offer--ok { color: var(--ok); background: var(--ok-soft); }
.kit-offer--no { color: var(--no); background: var(--no-soft); }
.kit-offer--soon { color: var(--accent-text); background: var(--accent-soft); }
.kit-offer:hover { text-decoration: underline; }
.pd-soon-note { margin: 6px 0 0; color: var(--accent-text); font-size: 12px; line-height: 1.4; }
.group-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.group-tiles a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.group-tiles a span:first-child { min-width: 0; overflow-wrap: anywhere; }
.subgroups { margin-bottom: 14px; }
.subgroups .chip { text-decoration: none; color: var(--ink); }
@media (max-width: 900px) {
    .vehicle-pick, .vehicle-layout { grid-template-columns: minmax(0, 1fr); }
    .vehicle-tree { position: static; max-height: 360px; }
    .vehicle-head { flex-direction: column; }
}
.alert-dialog { width: min(460px, calc(100vw - 32px)); padding: 28px 24px 20px; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); text-align: center; }
.alert-dialog::backdrop { background: rgba(8, 20, 35, .55); }
.alert-dialog__icon { width: 64px; height: 64px; margin: 0 auto 14px; border: 3px solid #e8913a; border-radius: 50%; color: #e8913a; font-size: 38px; font-weight: 700; line-height: 58px; }
.alert-dialog h2 { margin: 0 0 8px; font-size: 20px; }
.alert-dialog p { margin: 0 0 18px; color: var(--muted); }
.alert-dialog .btn { min-width: 96px; }
/* ---------- rezultati: kartice, filteri levo, mreza/lista (po uzoru na Janaki) ---------- */
.results { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.results--full { grid-template-columns: minmax(0, 1fr); }
.results__side { position: sticky; top: 150px; max-height: calc(100vh - 166px); overflow: auto; scrollbar-width: thin; }
.results__bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.results__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.results__count { font-size: 14px; color: var(--muted); }
.results__count strong { color: var(--ink); }
.results__count .ok { color: var(--ok); font-weight: 600; }
.results__controls { display: flex; align-items: center; gap: 8px; }
.results__filterrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.results__text { display: flex; flex: 1 1 260px; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.results__text:focus-within { border-color: var(--blue); }
.results__text svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.results__text input { flex: 1; min-width: 0; padding: 9px 0; border: 0; background: transparent; outline: none; }
.select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }

.filters { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.filters__stock { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-text); font-size: 14px; font-weight: 600; cursor: pointer; }
.filters__stock input, .filters__list input { width: 16px; height: 16px; accent-color: var(--blue); }
.filters__block > summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; list-style: none; cursor: pointer; }
.filters__block > summary::-webkit-details-marker { display: none; }
.filters__block > summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.filters__badge { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; line-height: 19px; text-align: center; }
.filters__search { margin-top: 8px; padding: 7px 10px; font-size: 13px; }
.filters__list { display: grid; gap: 1px; max-height: 280px; margin: 6px 0 0; padding: 0; overflow: auto; list-style: none; scrollbar-width: thin; }
.filters__list label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.filters__list label:hover { background: var(--tint); }
.filters__list label span:first-of-type { min-width: 0; overflow-wrap: anywhere; }
.filters__count { margin-left: auto; color: var(--muted); font-size: 12px; }
.filters__reset { padding: 8px; border: 1px dashed var(--line); border-radius: 10px; background: none; color: var(--no); font-weight: 600; cursor: pointer; }
.filters--inline { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; background: none; }
.filters--inline .filters__stock { padding: 7px 10px; }
.filters--inline .filters__block { position: relative; }
.filters--inline .filters__block > summary { padding: 8px 12px; }
.filters--inline .filters__block[open] { z-index: 6; }
.filters--inline .filters__panel { position: absolute; right: 0; top: calc(100% + 6px); width: 290px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.filters--inline .filters__search { margin-top: 0; margin-bottom: 4px; }

.cards { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cards--grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cards--list { grid-template-columns: minmax(0, 1fr); }
/* position: relative drzi skrivene natpise (sr-only) u kartici; bez toga su kartice u traci na pocetnoj sirile stranu na telefonu */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 16px; background: var(--surface); box-shadow: 0 4px 16px rgba(16, 48, 88, .05); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 10px 28px rgba(16, 48, 88, .12); }
.card.is-out { border-left-color: var(--no); }
.card.is-soon { overflow: visible; border-left-color: var(--accent); }
@media (max-width: 720px) {
    .stock--soon:hover::after, .stock--soon:focus::after { right: auto; left: 0; width: min(280px, 72vw); }
}
.card__top { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.card__brand { font-size: 15px; font-weight: 800; font-style: italic; letter-spacing: .02em; text-transform: uppercase; }
.card__img { display: grid; place-items: center; height: 170px; margin: 12px 12px 0; padding: 8px; overflow: hidden; border: 0; border-radius: 12px; background: var(--photo-bg); cursor: zoom-in; }
.card__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card__img.is-empty, .is-empty-mark { width: 100%; height: 100%; background: repeating-linear-gradient(45deg, var(--tint) 0 6px, var(--surface) 6px 12px); }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px; }
.card__title { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 800; line-height: 1.3; text-align: left; text-transform: uppercase; cursor: pointer; }
.card__title:hover { color: var(--blue-text); }
.card__number { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; }
.card__number .mono { color: var(--num-ink); font-size: 16px; font-weight: 700; }
.copy-mini { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.copy-mini svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.copy-mini:hover { border-color: var(--blue); color: var(--blue-text); }
.copy-mini.is-copied { border-color: var(--ok); color: var(--ok); }
.card__terms { margin: 0; padding: 6px 10px; border-left: 3px solid var(--blue); border-radius: 4px; background: var(--tint); font-size: 12.5px; list-style: none; }
.card__terms li + li { margin-top: 2px; }
.card__criteria { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; padding: 0; font-size: 13px; list-style: none; }
.card__criteria span { color: var(--muted); }
.card__criteria .is-key { padding: 0 6px; border-radius: 5px; background: var(--notice-bg); color: var(--notice-ink); font-weight: 700; }
.card__criteria .is-key span { color: inherit; font-weight: 600; }
.card__via { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; }
.card__via span { color: var(--blue-text); }
.card__oe { display: flex; flex-wrap: wrap; gap: 4px; }
.oe-chip { padding: 1px 7px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-text); font-size: 11.5px; text-decoration: none; }
a.oe-chip:hover { background: var(--blue); color: var(--on-blue); }
.oe-more { padding: 1px 7px; border: 0; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font: inherit; font-size: 11.5px; font-weight: 700; }
button.oe-more { cursor: pointer; }
button.oe-more:hover { background: var(--accent); color: var(--accent-ink); }
button.oe-more:disabled { cursor: progress; opacity: .6; }
.card__oe.is-full { max-height: 168px; padding-right: 4px; overflow-y: auto; scrollbar-width: thin; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card__tags:empty { display: none; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--tint); color: var(--ink); font: inherit; font-size: 12px; }
.tag-chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.tag-chip--link { color: var(--blue-text); cursor: pointer; }
.tag-chip--swap { border-color: var(--blue); background: var(--surface); color: var(--blue-text); font-weight: 700; text-decoration: none; }
.tag-chip--swap svg { width: 13px; height: 13px; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tag-chip--swap:hover { background: var(--blue); color: var(--on-blue); }
.card__from { color: var(--muted); font-size: 11.5px; font-style: italic; }
.card__buy { display: grid; gap: 10px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.card__price { display: grid; gap: 2px; }
/* maloprodajna i "vasa" cena jedna ispod druge, obe citljive (Ilija 04.11) */
.price-pair { display: grid; gap: 6px; }
.price-pair__row { display: grid; }
.price-pair__label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.price-pair__value { font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.price-pair__row--retail { padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.price-pair__row--retail .price-pair__value { color: var(--ink); font-size: 16px; font-weight: 700; }
.price-pair__row--net .price-pair__label { color: var(--blue-text); }
.price-pair__row--net .price-pair__value { color: var(--blue); font-size: 22px; font-weight: 800; line-height: 1.2; }
.price-pair__off { display: inline-block; padding: 0 5px; border-radius: 5px; background: var(--ok-soft); color: var(--ok); letter-spacing: 0; }
.price-pair__vat { color: var(--muted); font-size: 12px; }
/* koje cene kupac vidi (Ilija 05.11); jedna cena (kupac bez rabata) se uvek vidi */
[data-price-view="retail"] .price-pair:not(.price-pair--single) .price-pair__row--net { display: none; }
[data-price-view="retail"] .price-pair:not(.price-pair--single) .price-pair__row--retail { padding-bottom: 0; border-bottom: 0; }
[data-price-view="retail"] .price-pair:not(.price-pair--single) .price-pair__row--retail .price-pair__value { color: var(--blue); font-size: 22px; font-weight: 800; line-height: 1.2; }
[data-price-view="retail"] .price-pair--large:not(.price-pair--single) .price-pair__row--retail .price-pair__value { font-size: 32px; }
[data-price-view="net"] .price-pair:not(.price-pair--single) .price-pair__row--retail { display: none; }
.pv-retail { display: none; }
[data-price-view="retail"] .pv-retail { display: inline; }
[data-price-view="retail"] .pv-net { display: none; }
.price-pair--large .price-pair__row--retail .price-pair__value { font-size: 20px; }
.price-pair--large .price-pair__row--net .price-pair__value { font-size: 32px; }
.price-pair--large .price-pair__label { font-size: 12px; }
.check-dot--small { width: 14px; height: 14px; font-size: 9px; }
.card__price .stock { width: fit-content; margin-top: 4px; }
.card__cart { display: flex; gap: 8px; align-items: center; margin: 0; }
.qty-stepper--small { flex: 1; border-radius: 10px; }
.qty-stepper--small button { width: 32px; font-size: 18px; }
.qty-stepper--small input { padding: 8px 0; font-size: 14px; }
.cart-btn { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; box-shadow: 0 6px 14px rgba(11, 95, 165, .3); cursor: pointer; }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn:hover { filter: brightness(1.08); }
.cart-btn.is-added { background: var(--ok); }
.card__unavailable { padding: 10px; border: 0; border-radius: 10px; background: var(--tint); color: var(--muted); font-weight: 600; }
.card__details { justify-self: start; padding: 0; border: 0; background: none; color: var(--blue-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.card__details:hover { text-decoration: underline; }
/* uspravna kartica (traka na pocetnoj strani): bez karakteristika, dva OE broja */
.cards--grid .card__criteria, .cards--grid .oe-more, .cards--grid .card__from, .cards--grid .tag-chip--swap, .cards--grid .cross-add { display: none; }
.cards--grid .oe-chip:nth-child(n+3) { display: none; }
.cards--grid .card__via { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.cards--list .card { display: grid; grid-template-columns: 130px minmax(0, 1fr) 240px; grid-template-areas: "img top buy" "img body buy"; grid-template-rows: auto 1fr; }
.cards--list .card__top { grid-area: top; justify-content: flex-start; padding: 12px 14px 0; border-bottom: 0; }
.cards--list .card__img { grid-area: img; width: 110px; height: 110px; margin: 12px; }
.cards--list .card__body { grid-area: body; padding-top: 6px; }
.cards--list .card__buy { grid-area: buy; align-content: start; border-top: 0; border-left: 1px solid var(--line); }
.vehicle-parts__title { margin: 4px 0 12px; font-size: 22px; }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: #0b1b2e; color: #fff; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
    .results { grid-template-columns: 220px minmax(0, 1fr); }
}
/* filteri levo na telefonu i tabletu: panel koji izlazi odozdo (dugme "Филтри" iznad rezultata), da ne gura rezultate nadole */
.results__filters-btn, .sheet__head, .sheet__foot { display: none; }
.results__filters-btn { flex: 0 0 auto; align-self: stretch; align-items: center; min-height: 40px; gap: 8px; padding: 0 14px; border: 1px solid var(--blue); border-radius: 10px; background: var(--blue-soft); color: var(--blue-text); font: inherit; font-weight: 700; cursor: pointer; }
.results__filters-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.results__filters-btn .filters__badge { margin-left: 0; }
@media (max-width: 900px) {
    .results { grid-template-columns: minmax(0, 1fr); }
    .results__filters-btn { display: inline-flex; }
    .results__side {
        position: fixed; z-index: 90; top: auto; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
        max-height: 85dvh; overflow: hidden; padding-bottom: env(safe-area-inset-bottom); border-radius: 20px 20px 0 0; background: var(--surface);
        box-shadow: 0 -16px 40px rgba(4, 12, 22, .3); transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s;
    }
    .results__side.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
    .results__side .filters { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 0; }
    .results__side .filters__list { max-height: none; }
    .results__side .filters__block { display: block; }
    .results__side .filters__block:not([open]) .filters__list { display: none; }
    .sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); font-size: 17px; }
    .sheet__head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line); }
    .sheet__close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); cursor: pointer; }
    .sheet__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
    .sheet__foot { display: block; padding: 10px 16px 12px; border-top: 1px solid var(--line); }
    .sheet__foot .btn { width: 100%; }
    .sheet-backdrop { position: fixed; inset: 0; z-index: 89; background: rgba(4, 12, 22, .55); }
    html.is-sheet-open { overflow: hidden; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .results__side, .results__side.is-open { transition: none; } }
@media (max-width: 600px) {
    .cards--grid { grid-template-columns: minmax(0, 1fr); }
    .cards--list .card { grid-template-columns: 92px minmax(0, 1fr); grid-template-areas: "img top" "img body" "buy buy"; }
    .cards--list .card__img { width: 76px; height: 76px; margin: 10px; }
    .cards--list .card__buy { border-top: 1px solid var(--line); border-left: 0; }
    /* cene i sortiranje: jedno ispod drugog kad nema mesta, da ne izlaze van ekrana */
    .results__controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); width: 100%; }
    .results__controls .select { width: 100%; min-width: 0; }
    .results__filterrow--sheet { flex-wrap: nowrap; }
    .results__filterrow--sheet .results__text { flex-basis: 0; min-width: 0; }
    /* padajuci filteri (katalog po vozilu): preko cele sirine reda, ne van ekrana */
    .results__filterrow { position: relative; }
    .filters--inline .filters__block { position: static; }
    .filters--inline .filters__panel { left: 0; right: 0; width: auto; max-height: 60dvh; overflow-y: auto; overscroll-behavior: contain; }
    .toast { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); text-align: center; }
}

/* ---------- pocetna: baneri, birac vozila, nizovi proizvoda (po uzoru na Janaki) ---------- */
.hero-slider { position: relative; overflow: hidden; margin-bottom: 18px; border-radius: 22px; background: var(--blue-strong); aspect-ratio: 32 / 9; box-shadow: 0 10px 30px rgba(16, 48, 88, .12); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; pointer-events: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide a, .hero-slide img { display: block; width: 100%; height: 100%; }
.hero-slide img { object-fit: cover; }
.hero-slider__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(11, 27, 46, .55); color: #fff; cursor: pointer; transform: translateY(-50%); }
.hero-slider__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-slider__nav:hover { background: rgba(11, 27, 46, .8); }
.hero-slider__nav--prev { left: 14px; }
.hero-slider__nav--next { right: 14px; }
.hero-slider__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.hero-slider__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .2s; }
.hero-slider__dots button.is-active { width: 26px; background: #fff; }

.vehicle-finder { margin-bottom: 26px; padding: 22px 24px; border-radius: 22px; background: var(--brand-grad); color: #fff; box-shadow: 0 14px 34px rgba(8, 63, 115, .28); }
.vehicle-finder__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.vehicle-finder__head h2 { margin: 0; color: #e3efff; font-size: 15px; font-weight: 600; }
.vehicle-finder__or { padding: 2px 9px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.vehicle-finder__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.vehicle-finder__tabs button { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; font-weight: 700; cursor: pointer; }
.vehicle-finder__tabs button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vehicle-finder__tabs button.is-active { border-color: var(--accent); background: rgba(255, 183, 3, .16); box-shadow: 0 0 0 3px rgba(255, 183, 3, .18); }
.vehicle-finder__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.5fr) auto; gap: 12px; align-items: end; }
.vehicle-finder__fields label { display: grid; gap: 6px; min-width: 0; }
.vehicle-finder__fields label span { color: #ffd166; font-size: 13px; font-weight: 700; }
.vehicle-finder .select { width: 100%; padding: 11px 12px; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); color: #fff; }
.vehicle-finder .select:disabled { opacity: .55; }
.vehicle-finder .select option, .vehicle-finder .select optgroup { background: #fff; color: #17314d; }
.vehicle-finder__go { display: grid; place-items: center; width: 46px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.vehicle-finder__go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.vehicle-finder__go:disabled { background: rgba(255, 183, 3, .35); cursor: not-allowed; }
.vehicle-finder__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.vehicle-finder__codes { display: flex; flex-wrap: wrap; gap: 10px; }
.vehicle-finder__engine { display: flex; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; }
.vehicle-finder__engine input { width: 240px; padding: 9px 12px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; outline: none; }
.vehicle-finder__engine input::placeholder { color: #b6cde4; }
.vehicle-finder__engine input.mono { width: 300px; }
.vehicle-finder__engine input.mono::placeholder, .input.mono::placeholder { font-family: var(--font, inherit); }
.vehicle-finder__engine button { padding: 0 14px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; cursor: pointer; }
.vehicle-finder__engine button:disabled, .input-row .btn:disabled { cursor: progress; opacity: .75; }
.vehicle-finder__history { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.vehicle-finder__history span { color: #8fa6bd; }
.vehicle-finder__history a { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.vehicle-finder__history a:hover { background: rgba(255, 255, 255, .16); }

.showcase { margin-bottom: 26px; }
.showcase__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.showcase__head h2 { margin: 0; font-size: 22px; }
.showcase__head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.showcase__nav { display: flex; gap: 6px; }
.showcase__nav button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.showcase__nav button:hover { border-color: var(--blue); color: var(--blue-text); }
.showcase__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cards.showcase__track { position: relative; display: flex; gap: 14px; padding: 2px 2px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.showcase__track > .card { flex: 0 0 270px; scroll-snap-align: start; }
.home-hint { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; text-align: center; }
.home-hint a { margin: 0 4px; }
.banner-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.banner-row__img { width: 100%; aspect-ratio: 32 / 9; border-radius: 10px; object-fit: cover; background: var(--tint); }
@media (max-width: 900px) {
    .vehicle-finder__fields { grid-template-columns: minmax(0, 1fr); }
    .vehicle-finder__go { width: 100%; }
    .hero-slider { aspect-ratio: 16 / 7; border-radius: 16px; }
    .banner-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .vehicle-finder { padding: 16px; border-radius: 16px; }
    .vehicle-finder__codes, .vehicle-finder__engine, .vehicle-finder__engine input, .vehicle-finder__engine input.mono { width: 100%; }
    .combo__list { max-height: min(320px, 45vh); }
    .showcase__track > .card { flex-basis: 82%; }
}

/* ---------- prozori: detalji artikla i slike (raspored kao kod Janaki) ---------- */
html.is-modal-open { overflow: hidden; }
html.is-modal-open body { padding-right: var(--scrollbar-gap, 0px); }
html.is-modal-open .site-head { padding-right: var(--scrollbar-gap, 0px); }
dialog::backdrop { background: rgba(4, 12, 22, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.detail-dialog, .lightbox { max-width: none; padding: 0; border: 0; overflow: hidden; }
.detail-dialog { width: min(1240px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border-radius: 20px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.detail-dialog[open], .lightbox[open] { display: flex; flex-direction: column; animation: dialog-in .18s ease-out; }
.detail-dialog__body:focus, .lightbox__body:focus { outline: none; }
.detail-dialog__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 5; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .96); color: #0b1b2e; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); cursor: pointer; transition: transform .12s; }
.dialog-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.dialog-close:hover { transform: scale(1.08); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .detail-dialog[open], .lightbox[open] { animation: none; } }
.detail-loading { padding: 60px 20px; text-align: center; }
.spinner { display: inline-block; width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.lightbox { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border-radius: 18px; background: #0b121b; color: #e8eef5; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px 18px 14px; }
.lightbox .spinner { border-color: #263547; border-top-color: var(--accent); }

/* red i kolona minmax(0, 1fr): slika se smanjuje u okvir i vidi cela (Ilija 04.11: bila je odsecena) */
.gallery__main { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; aspect-ratio: 1; border-radius: 14px; background: var(--photo-bg); overflow: hidden; }
.gallery__main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery__main img[data-gallery-next] { cursor: pointer; }
.gallery__main--empty .is-empty-mark { display: block; width: 100%; height: 100%; }
.gallery__zoomable { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: 100%; height: 100%; min-height: 0; padding: 12px; border: 0; background: none; cursor: zoom-in; }
.gallery__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #0b1b2e; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); cursor: pointer; transform: translateY(-50%); transition: transform .12s; }
.gallery__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.gallery__nav:hover { transform: translateY(-50%) scale(1.08); }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__zoom { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: 0 6px 16px rgba(11, 95, 165, .35); }
.gallery__zoom svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; padding-bottom: 4px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; }
.gallery__thumb { flex: 0 0 auto; width: 62px; height: 62px; padding: 3px; border: 2px solid var(--line); border-radius: 10px; background: var(--photo-bg); cursor: pointer; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb.is-active { border-color: var(--blue); }
.gallery--large .gallery__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 56px 12px 4px; font-size: 15px; }
.gallery__counter { color: #9fb3c8; font-size: 13px; font-variant-numeric: tabular-nums; }
.gallery--large .gallery__main { aspect-ratio: auto; height: min(68dvh, 660px); }
.gallery--large .gallery__thumbs { justify-content: safe center; }
.gallery--large .gallery__thumb { border-color: #263547; }
.gallery--large .gallery__thumb.is-active { border-color: var(--accent); }

.pd { display: grid; gap: 16px; }
.pd-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 18px; align-items: center; padding: 22px 66px 22px 22px; border-radius: 16px; background: var(--brand-grad); color: #fff; }
.pd-hero__main { display: flex; gap: 14px; align-items: center; min-width: 0; }
.pd-hero__logo { flex: 0 0 auto; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: #fff; color: #c2382f; font-weight: 800; font-size: 15px; }
.pd-hero__text { min-width: 0; }
.pd-hero__title { margin: 0 0 8px; font-size: 21px; line-height: 1.25; }
.pd-hero__sub { margin: 8px 0 0; color: #cfe2f6; font-size: 13px; }
.pd-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pd-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border: 1px solid transparent; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.pd-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pd-pill--brand { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); color: #fff; }
.pd-pill--number { background: rgba(255, 183, 3, .16); border-color: rgba(255, 183, 3, .6); color: #ffd166; }
.pd-pill--ok { background: rgba(46, 204, 113, .12); border-color: rgba(46, 204, 113, .35); color: #5ee49a; }
.pd-pill--no { background: rgba(255, 99, 99, .12); border-color: rgba(255, 99, 99, .35); color: #ff8a8a; }
.pd-pill--soon { background: rgba(255, 183, 3, .14); border-color: rgba(255, 183, 3, .45); color: #ffd166; }
.pd-copy { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; background: transparent; color: #cfe0f1; cursor: pointer; }
.pd-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.pd-copy:hover { border-color: #fff; color: #fff; }
.pd-copy.is-copied { border-color: #5ee49a; color: #5ee49a; }
.pd-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; border: 1px solid rgba(255, 255, 255, .22); border-left: 3px solid var(--accent); border-radius: 14px; background: rgba(255, 255, 255, .06); }
.pd-tile { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.pd-tile > span:last-child { min-width: 0; }
.pd-tile small { display: block; color: #c3d8ee; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pd-tile strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.pd-tile__icon { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .16); color: #fff; }
.pd-tile__icon--tree, .pd-tile__icon--pin { background: rgba(255, 183, 3, .2); color: #ffd166; }
.pd-tile__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pd-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) minmax(0, .85fr); grid-template-areas: "media info buy"; gap: 16px; align-items: start; }
.pd-media { grid-area: media; }
.pd-info { grid-area: info; }
.pd-buy { grid-area: buy; display: grid; gap: 12px; }
.pd-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 4px 18px rgba(16, 48, 88, .06); }
.pd-tabs { display: flex; gap: 2px; margin: -4px 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tabs button { display: inline-flex; align-items: center; gap: 6px; margin-bottom: -1px; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; }
.pd-tabs button:hover { color: var(--ink); }
.pd-tabs button.is-active { border-bottom-color: var(--blue); color: var(--blue-text); }
.tab-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-text); font-size: 11.5px; text-align: center; }
.pd-tabs button.is-active .tab-count { background: var(--blue); color: #fff; }
.pd-scroll { max-height: 380px; overflow: auto; }
.pd-scroll--tall { max-height: 520px; }
.pd-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pd-table th { position: sticky; top: 0; z-index: 1; padding: 9px 10px; border-bottom: 2px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; text-align: left; }
.pd-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pd-table tbody tr:nth-child(even) td { background: var(--surface-2); }
.pd-table tbody tr:hover td { background: var(--tint); }
.pd-table--compact td { padding: 6px 10px; font-size: 13px; }
.pd-table .num { text-align: right; }
.num-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--tint); color: var(--ink); font-size: 12.5px; text-decoration: none; }
.num-chip:hover { border-color: var(--blue); color: var(--blue-text); }
.pd-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; }
.pd-filter { max-width: 320px; border-radius: 10px; }
.pd-empty { padding: 24px 8px; text-align: center; }
.pd-price { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.check-dot { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 10px; font-weight: 800; }
.pd-facts { display: grid; margin: 0; }
.pd-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pd-facts dt { color: var(--muted); }
.pd-facts dd { margin: 0; font-weight: 600; text-align: right; }
.pd-facts__number { color: var(--blue-text); }
.pd-stock { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 700; }
.pd-stock--ok { background: var(--ok-soft); color: var(--ok); }
.pd-stock--no { background: var(--no-soft); color: var(--no); }
.pd-stock--no .check-dot { background: var(--no); }
.pd-stock--soon { background: var(--accent-soft); color: var(--accent-text); }
.pd-stock--soon .check-dot { background: var(--accent); color: var(--accent-ink); }
.pd-cart { display: flex; gap: 8px; }
.qty-stepper { display: flex; align-items: stretch; flex: 1; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.qty-stepper button { width: 40px; border: 0; background: transparent; color: var(--ok); font-size: 20px; font-weight: 700; cursor: pointer; }
.qty-stepper button:hover { background: var(--tint); }
.qty-stepper input { flex: 1; width: 48px; min-width: 0; padding: 10px 0; border: 0; background: transparent; font-size: 16px; font-weight: 700; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.qty-stepper input::-webkit-inner-spin-button, .qty-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pd-cart__btn { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--ok); color: #fff; font-weight: 700; cursor: pointer; }
.pd-cart__btn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pd-cart__btn:hover { filter: brightness(1.08); }
.pd-cart__btn:disabled { opacity: .7; }
@media (max-width: 1100px) {
    .pd-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "media buy" "info info"; }
    .pd-hero { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .detail-dialog, .lightbox { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
    .detail-dialog__body { padding: 10px; }
    .dialog-close { top: 10px; right: 10px; }
    .pd-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "buy" "info"; }
    .pd-hero { padding: 16px 56px 16px 16px; }
    .pd-hero__title { font-size: 18px; }
    .pd-tiles { padding: 8px; gap: 6px; }
    .pd-tile { padding: 6px 8px; gap: 8px; }
    .pd-tile__icon { display: none; }
    .gallery--large .gallery__main { height: min(60dvh, 520px); }
    .gallery__nav { width: 38px; height: 38px; }
    .pd-panel__head { flex-direction: column; align-items: stretch; }
    .pd-filter { max-width: none; }
}

/* ---------- korpa i porudzbine ---------- */
.page-title { margin: 0 0 14px; font-size: 24px; }
.cart-table .qty { width: 76px; text-align: center; }
.cart-table tr.has-problem td { background: var(--no-soft); }
.line-problem { color: var(--no); font-size: 13px; font-weight: 600; display: block; }
.checkout fieldset { margin-bottom: 18px; }
.choices { display: grid; gap: 8px; }
.choices--row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.choice input { margin-top: 3px; accent-color: var(--blue); }
.choice span { display: grid; gap: 2px; }
.choice small { font-size: 12px; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.choice.is-disabled { opacity: .55; cursor: not-allowed; }
.comment { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.btn--big { padding: 12px 26px; font-size: 16px; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--tint); color: var(--muted); }
.status--new { background: var(--blue-soft); color: var(--blue-text); }
.status--accepted { background: var(--notice-bg); color: var(--notice-ink); }
.status--done { background: var(--ok-soft); color: var(--ok); }
.order-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 18px; }
.order-meta > div { display: grid; gap: 2px; align-content: start; justify-items: start; }
.order-meta__wide { grid-column: 1 / -1; }
.empty p { margin: 0 0 12px; }

/* ---------- admin ---------- */
.nav-badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--no); color: #fff; font-size: 12px; text-align: center; }
.table tr.is-new td { font-weight: 600; }
.lock { border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.lock--mine { background: var(--ok-soft); color: var(--ok); }
.lock--other { background: var(--no-soft); color: var(--no); }
.lock-tag { font-size: 12px; color: var(--no); font-weight: 600; }
.inline-form { margin: 0; }
.panel.is-off { opacity: .6; }
.customer-box p { margin: 4px 0; }
/* porudzbina u ERP-u */
.erp-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--tint); color: var(--muted); white-space: nowrap; }
.erp-tag--sent { background: var(--ok-soft); color: var(--ok); }
.erp-tag--pending, .erp-tag--sending { background: var(--notice-bg); color: var(--notice-ink); }
.erp-tag--failed { background: var(--no-soft); color: var(--no); }
.erp-tag--small { display: table; margin-top: 4px; padding: 0 8px; font-size: 11.5px; }
.erp-box__head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 10px; }
.erp-box__head h2 { margin: 0; }
.erp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; margin: 0 0 10px; }
.erp-facts div { display: grid; gap: 2px; align-content: start; }
.erp-facts dt { color: var(--muted); font-size: 12.5px; }
.erp-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.erp-error { margin: 0 0 6px; color: var(--no); font-weight: 600; }
.erp-details { margin: 0 0 8px; font-size: 13px; }
.erp-details summary { cursor: pointer; color: var(--muted); }
.erp-details p { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--tint); overflow-wrap: anywhere; word-break: break-word; }
.erp-times { margin: 0 0 10px; font-size: 13px; }
.erp-times:empty { display: none; }
.tabs a.tab--alert:not(.is-active) { border-color: var(--no); color: var(--no); background: var(--no-soft); }
.tabs a.tab--alert.is-active { background: var(--no); border-color: var(--no); color: #fff; }
.order-actions .form-actions { flex-wrap: wrap; }
.account__admin { font-weight: 600; text-decoration: none; padding: 6px 10px; border-radius: 8px; background: var(--blue-soft); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.admin-nav a { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 600; }
.admin-nav a:hover { color: var(--blue-text); }
.admin-nav a.is-active { color: var(--blue-text); border-bottom-color: var(--blue); }
.admin-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.admin-title { margin: 0 0 12px; font-size: 22px; }
.admin-head .admin-title { margin: 0; }
.muted { color: var(--muted); }
.flash { background: var(--ok-soft); color: var(--ok); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }
.form-errors { background: var(--no-soft); color: var(--no); border-radius: var(--radius); padding: 6px 14px; margin-bottom: 14px; }
.form-errors p { margin: 6px 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.panel h2 { margin: 0 0 10px; font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 2px; }
.stat__value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 600; font-size: 14px; }
.btn:hover { border-color: var(--blue); color: var(--blue-text); }
.btn--primary { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.btn--primary:hover { background: var(--blue-strong); color: var(--on-blue); }
.btn--danger { color: var(--no); }
.btn--danger:hover { border-color: var(--no); color: var(--no); }
.input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.input:focus { outline: none; border-color: var(--blue); }
textarea.input { font: inherit; resize: vertical; }
.input-row { display: flex; gap: 6px; }
.admin-filter { display: flex; gap: 8px; max-width: 560px; margin-bottom: 14px; }
.admin-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.admin-form legend { font-weight: 700; margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; }
.form-grid label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; align-content: start; }
.form-grid small { font-weight: 400; font-size: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.form-actions--start { justify-content: flex-start; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-actions--start .btn { margin-left: auto; }
.admin-more { margin: 4px 0 8px; }
.admin-more summary { cursor: pointer; color: var(--blue-text); font-weight: 600; margin-bottom: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.is-off td { color: var(--muted); }
.table form { margin: 0; }
.tag { font-size: 11px; background: var(--blue-soft); color: var(--blue-text); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.badge--vehicle-log { margin-right: 6px; background: var(--tint); color: var(--muted); }
.log-query--wide { min-width: 240px; }
.log-query--wide .badge { display: inline-block; margin-bottom: 2px; }
.log-items { display: flex; flex-wrap: wrap; gap: 4px; }
.log-item { font-size: 12px; border-radius: 6px; padding: 1px 6px; }
.log-item.is-in { background: var(--ok-soft); color: var(--ok); }
.log-item.is-out { background: var(--no-soft); color: var(--no); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tabs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); background: var(--surface); font-size: 14px; }
.tabs a.is-active { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.admin-filter--wide { max-width: 760px; }
.admin-filter select.input { width: auto; }
.row-form { display: grid; grid-template-columns: minmax(160px, 1.2fr) minmax(120px, 1fr) auto; gap: 6px; }
.how { display: block; font-size: 11px; color: var(--muted); }
.how--auto, .how--none { color: var(--notice-ink); }
.brand-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); max-width: 520px; }
.brand-toggle:last-child { border-bottom: 0; }
.pagination { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 14px 0 0; }
.pagination .page-link, .pagination li > span { display: inline-block; min-width: 34px; padding: 5px 9px; text-align: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); text-decoration: none; }
.pagination .active .page-link, .pagination .active > span { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.pagination .disabled .page-link, .pagination .disabled > span { color: var(--muted); }

/* ---------- "Зачувај за нарачка" ---------- */
.save-form { margin: 0; }
.save-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px 12px; border: 1.5px dashed var(--blue); border-radius: 10px; background: var(--blue-soft); color: var(--blue-text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.save-btn svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.save-btn__check { display: none; }
.save-btn:hover { background: var(--blue); color: #fff; }
.save-btn.is-saved { border-style: solid; border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.save-btn.is-saved svg { fill: currentColor; }
.save-btn.is-saved .save-btn__check { display: inline; stroke: var(--surface); }
.save-btn.is-saved:hover { background: var(--ok); color: #fff; }
.save-btn.is-saved:hover .save-btn__check { stroke: var(--ok); }
.save-btn:disabled { opacity: .7; cursor: progress; }
.save-form--detail .save-btn { padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.pd-save-note { margin: -4px 0 0; color: var(--muted); font-size: 12.5px; }

.icon-btn__badge--ok { background: var(--ok); }
.mainnav__count--ok { background: var(--ok); }
.arrived-notice { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 16px; border: 1px solid var(--ok); border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14px; text-decoration: none; }
.arrived-notice strong { margin-left: auto; white-space: nowrap; }
.arrived-notice:hover strong { text-decoration: underline; }
.arrived-notice__icon { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 13px; font-weight: 800; }

.saved-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.saved-head .page-title { margin-bottom: 4px; }
.saved-head p { margin: 0; max-width: 640px; }
.saved-head form { margin: 0; }
.saved-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.saved-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--no); border-radius: 14px; background: var(--surface); transition: opacity .25s, transform .25s; }
.saved-row--arrived { border-left-color: var(--ok); }
.saved-row--gone { border-left-color: var(--disabled); opacity: .75; }
.saved-row.is-new { box-shadow: 0 0 0 3px var(--ok-soft); }
.saved-row.is-removed { opacity: 0; transform: translateX(16px); }
.saved-row__article { display: grid; gap: 3px; min-width: 0; }
.saved-row__title { justify-self: start; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.saved-row__title:hover { color: var(--blue-text); text-decoration: underline; }
.cart-line__link { display: block; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.cart-line__link .muted { display: block; }
.cart-line__link:hover strong, .cart-line__link:hover .mono, .cart-line__link:focus-visible strong { color: var(--blue-text); text-decoration: underline; }
.saved-row__number { font-size: 14px; }
.saved-row__dates { font-size: 12.5px; }
.saved-row__price { display: grid; gap: 1px; text-align: right; }
.saved-row__price strong { font-size: 16px; }
.saved-row__price small { font-size: 12px; }
.saved-row__actions { display: flex; align-items: center; gap: 8px; }
.saved-row__actions form { margin: 0; }
.saved-row__actions .card__cart { width: auto; }
.saved-row__actions .qty-stepper--small { flex: 0 0 120px; }
.saved-row__move { gap: 6px; white-space: nowrap; }
.saved-row__move svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.saved-row__remove { width: 38px; height: 38px; padding: 0; }
.saved-status { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--no-soft); color: var(--no); font-size: 12px; font-weight: 700; }
.saved-status--arrived { background: var(--ok-soft); color: var(--ok); }
.saved-status--gone { background: var(--tint); color: var(--muted); }
.saved-status em { padding: 0 6px; border-radius: 999px; background: var(--ok); color: #fff; font-style: normal; font-size: 10.5px; text-transform: uppercase; }
.saved-foot { margin-top: 12px; font-size: 13px; }
.stock-num { padding: 1px 8px; }

/* ---------- poruka posle prijave ---------- */
.promo-dialog { position: relative; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 18px; overflow: auto; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.promo-dialog[open] { animation: dialog-in .18s ease-out; }
.promo-dialog__img { display: block; width: 100%; height: auto; }
.promo-dialog__body { padding: 22px 24px 20px; }
.promo-dialog__body:focus { outline: none; }
.promo-dialog__body h2 { margin: 0 0 8px; padding-right: 40px; font-size: 21px; }
.promo-dialog__img + .promo-dialog__body h2, a + .promo-dialog__body h2 { padding-right: 0; }
.promo-dialog__body p { margin: 0 0 18px; color: var(--muted); }
.promo-dialog__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.promo-dialog--preview { margin: 0; border: 1px solid var(--line); box-shadow: var(--shadow); }
.popup-admin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 20px; align-items: start; }
.popup-admin .admin-form > label:not(.check) { display: grid; gap: 4px; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.popup-admin .admin-form > .check { margin-bottom: 12px; }
.admin-subtitle { margin: 0 0 10px; font-size: 16px; }
@media (max-width: 1000px) { .popup-admin { grid-template-columns: minmax(0, 1fr); } }

/* ---------- poslednje pretrage ---------- */
.searchbar { position: relative; }
.search-recent { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.search-recent__head { padding: 4px 10px 6px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.search-recent ul { margin: 0; padding: 0; list-style: none; }
.search-recent a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.search-recent a:hover, .search-recent a:focus { background: var(--tint); outline: none; color: var(--blue-text); }
.search-recent svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }

/* ---------- telefon ---------- */
@media (max-width: 760px) {
    .saved-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
    .saved-row__actions { grid-column: 1 / -1; }
    .saved-row__actions form:first-child:not(:last-child) { flex: 1; min-width: 0; }
    .saved-row__actions .qty-stepper--small { flex: 1 1 0; min-width: 0; }
    .arrived-notice { font-size: 13px; }

    /* zaglavlje na telefonu: logo i ikonice, pa pretraga; meni se pomera prstom. Sklanja se dok se lista nadole, a vraca
       cim se krene nagore (JS: is-hidden), da pretraga bude pri ruci bez vracanja na vrh strane */
    .site-head { position: sticky; top: 0; padding-top: 8px; transition: transform .25s ease; }
    .site-head.is-hidden { transform: translateY(-100%); }
    .head-card { grid-template-columns: 1fr auto; gap: 10px; padding: 10px 12px; border-radius: 16px; }
    .brand img { width: 128px; }
    .searchbar { grid-column: 1 / -1; grid-row: 2; }
    .searchbar button { padding: 9px 18px; }
    .account { gap: 6px; }
    .account__hello, .account__discount, .account__searches { display: none; }
    .icon-btn, .theme-toggle { width: 36px; height: 36px; }
    .mainnav { margin-top: 8px; border-radius: 14px; }
    .mainnav a { padding: 8px 12px; font-size: 12.5px; }
    /* meni se pomera prstom: bleda ivica pokazuje da ima jos stavki */
    .mainnav.has-more-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
    .mainnav.has-more-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
    .mainnav.has-more-left.has-more-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }


    /* prijava: plavi panel gore, oblaci na donjoj ivici, forma ispod */
    .auth { padding: 0; place-items: stretch; }
    .auth__card { grid-template-columns: 1fr; min-height: 100vh; border-radius: 0; box-shadow: none; }
    .auth__brand { padding: 56px 24px 92px; gap: 10px; }
    .auth__brand::after {
        top: auto; left: 0; right: 0; bottom: -1px; width: auto; height: 100px;
        background:
            radial-gradient(circle at 50% 100%, var(--surface) 0 30px, transparent 31px) left 0 bottom 0 / 66px 62px repeat-x,
            radial-gradient(circle at 50% 100%, var(--cloud-2) 0 40px, transparent 41px) left 18px bottom 0 / 88px 80px repeat-x,
            radial-gradient(circle at 50% 100%, var(--cloud-1) 0 50px, transparent 51px) left 40px bottom 0 / 110px 100px repeat-x;
    }
    .auth__welcome { font-size: 18px; }
    .auth__logo { width: 220px; }
    .auth__text, .auth__foot { display: none; }
    .auth__form { padding: 28px 24px 40px; justify-content: flex-start; }
    .auth__theme { top: 12px; right: 12px; }
    .auth__theme .theme-toggle { background: transparent; color: var(--on-blue); border-color: rgba(255, 255, 255, .5); }
}

/* ---------- polja marka/model/motor u koja moze da se kuca (pocetna strana) ---------- */
.combo { position: relative; scroll-margin-top: 12px; }
.combo .combo__native { position: absolute; top: 0; left: 0; width: 1px !important; height: 1px; padding: 0; border: 0; opacity: 0 !important; pointer-events: none; }
.combo::after { content: ""; position: absolute; top: 50%; right: 14px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; opacity: .7; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.combo__input { width: 100%; padding-right: 34px; cursor: text; }
.combo__input:disabled { cursor: not-allowed; }
.vehicle-finder .combo__input::placeholder { color: #d7e6f5; opacity: 1; }
.combo__list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40; max-height: 320px; margin: 0; padding: 4px; overflow-y: auto; list-style: none; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); text-align: left; }
.combo__list li { padding: 7px 10px; border-radius: 6px; font-size: 14px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.combo__input { touch-action: manipulation; }
.combo__list li[data-value]:hover, .combo__list li.is-active { background: var(--blue-soft); color: var(--blue-text); }
.combo__list .combo__group { padding: 8px 10px 3px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; cursor: default; }
.combo__list .combo__empty { color: var(--muted); cursor: default; }

/* ---------- ekvivalenti koje ne nudimo: tabela sa karakteristikama ---------- */
.eq-note td, .eq-loading td { font-size: 13px; }
.eq-loading td { padding: 14px 16px; color: var(--muted); }
.eq-loading .spinner { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; border-width: 2px; }
.eq-crit { color: var(--muted); font-size: 12.5px; }
.eq-crit span { display: inline-block; margin-right: 12px; }
.eq-crit .is-key { padding: 0 6px; border-radius: 5px; background: var(--notice-bg); color: var(--notice-ink); font-weight: 700; }
.filters__list .filters__sep { margin: 8px 0 2px; padding: 6px 4px 0; border-top: 1px dashed var(--line); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.filters__list .is-other span:first-of-type { color: var(--muted); }

/* ---------- uporedni brojevi: dugme iz rezultata, prozor i admin ---------- */
.cross-add { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border: 1px dashed var(--muted); border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.cross-add svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.cross-add:hover { border-color: var(--blue); color: var(--blue-text); }
.cross-dialog { width: min(720px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.cross-dialog::backdrop { background: rgba(8, 20, 35, .55); }
.cross-dialog h2 { margin: 0 0 6px; font-size: 19px; }
.cross-dialog__for { margin: 0 0 4px; font-size: 15px; }
.cross-dialog .dialog-close { top: 12px; right: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: none; }
.form-grid--cross { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.cross-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.cross-tools > .admin-more { flex: 1 1 380px; margin: 0; }
.cross-dir { font-size: 18px; font-weight: 700; text-align: center; color: var(--blue-text); }
.cross-table td { vertical-align: top; }
.cross-actions { position: relative; white-space: nowrap; }
.row-edit > summary { list-style: none; }
.row-edit > summary::-webkit-details-marker { display: none; }
.row-edit__panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; width: min(820px, 90vw); padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); white-space: normal; }
.btn--small { padding: 4px 10px; font-size: 13px; }
.link-ok { color: var(--ok); font-weight: 700; }
.link-no { color: var(--no); font-weight: 700; }
.admin-filter--products { flex-wrap: wrap; max-width: none; }
.admin-filter--products .input[type="search"] { flex: 1 1 260px; width: auto; }
.stat__value--small { font-size: 16px; }
.admin-subtitle { margin: 22px 0 6px; font-size: 18px; }
.form-block { display: grid; gap: 4px; margin-top: 12px; font-weight: 600; font-size: 14px; }
.form-block small { font-weight: 400; font-size: 12px; color: var(--muted); }
.form-stack { display: grid; gap: 10px; }
.plain-list { margin: 0; padding-left: 18px; line-height: 1.9; }
@media (max-width: 900px) {
    .form-grid--cross { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- futer (menja admin) ---------- */
.site-foot { margin-top: 32px; background: var(--brand-grad); color: #e6f0fb; font-size: 14px; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 34px; padding-bottom: 28px; }
.site-foot__logo { display: block; width: 170px; height: auto; margin-bottom: 12px; padding: 8px 10px; border-radius: 10px; background: #fff; }
.site-foot__company strong { display: block; color: #fff; font-size: 15px; }
.site-foot__tagline { margin: 2px 0 12px; color: #c7dbf0; }
.site-foot__contact { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.site-foot__contact li { display: flex; gap: 9px; align-items: flex-start; }
.site-foot__contact svg, .site-foot__badges svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-foot__social { display: flex; gap: 8px; margin-top: 14px; }
.site-foot__social a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; }
.site-foot__social a:hover { border-color: var(--accent); background: rgba(255, 255, 255, .08); text-decoration: none; }
.site-foot__social svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-foot__col h2 { position: relative; margin: 4px 0 16px; padding-bottom: 8px; color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.site-foot__col h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--accent); }
.site-foot__col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-foot__col--text p { margin: 0 0 12px; color: #c7dbf0; }
.site-foot__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.site-foot__badges span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; font-size: 12.5px; font-weight: 600; }
.site-foot__badges svg { margin-top: 0; }
.site-foot__bottom { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .15); color: #b9cee6; font-size: 13px; text-align: center; }
.site-foot__bottom-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 24px; }
.site-foot__credit { margin-left: auto; color: #9fb8d3; font-size: 12.5px; white-space: nowrap; }
.site-foot__bottom-row > .site-foot__credit:only-child { margin-left: 0; }
.site-foot__credit a { color: #e6f0fb; font-weight: 600; transition: text-shadow .2s, color .2s; }
.site-foot__credit a:hover, .site-foot__credit a:focus-visible { color: #fff; text-decoration: none; text-shadow: 0 0 6px rgba(255, 255, 255, .85), 0 0 14px rgba(120, 190, 255, .9); }
@media (prefers-reduced-motion: reduce) { .site-foot__credit a { transition: none; } }
@media (max-width: 900px) {
    .site-foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .site-foot__company { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .site-foot__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .site-foot__bottom-row { flex-direction: column; }
    .site-foot__credit { margin-left: 0; }
}

/* ---------- strane sa tekstom ---------- */
.text-page { max-width: 820px; }
.text-page h1 { margin-top: 0; }
.text-page__body { line-height: 1.6; }
.text-page__body p { margin: 0 0 12px; }

/* slike proizvoda u admin tabelama i uvoz slika */
.img-cell { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px dashed var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; color: var(--muted); background: var(--surface); }
.img-cell img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.img-cell:hover, .img-cell:focus-within { border-color: var(--blue); color: var(--blue-text); }
.img-cell.is-busy { opacity: .5; cursor: progress; }
.upload-status { margin: 10px 0 0; font-weight: 600; }
.upload-log { margin: 8px 0 0; padding-left: 18px; max-height: 260px; overflow: auto; color: var(--no); font-size: 13px; }
.upload-log:empty { display: none; }
.admin-group-child td:first-child { padding-left: 30px; }
.admin-group-off { opacity: .6; }
.pick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.subgroups .chip.is-active { color: var(--on-blue); }

/* izmena natpisa sajta */
.text-row { padding: 10px 12px; margin-bottom: 8px; }
.text-row form:first-child { display: flex; gap: 8px; align-items: flex-start; }
.text-row textarea { flex: 1; min-width: 0; resize: vertical; }
.text-row__original { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; }

/* osvezavanje iz ERP-a u adminu */
.erp-refresh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.erp-refresh p { margin: 4px 0 0; font-size: 13px; }
.erp-refresh__error { color: var(--no); font-weight: 600; }

/* ---------- telefon i tablet (Marko 11.11: sve mora da radi i izgleda vrhunski i na telefonu i tabletu) ---------- */
/* polja ispod 16px iPhone uvelicava cim se dodirnu; zato su na ekranima na dodir sva polja 16px */
@media (max-width: 900px), (pointer: coarse) {
    :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea, .select, .input) { font-size: 16px; }
}
/* veci ciljevi za prst */
@media (pointer: coarse) {
    .copy-mini { width: 32px; height: 32px; border-radius: 8px; }
    .copy-mini svg { width: 14px; height: 14px; }
    .pd-copy { width: 36px; height: 36px; }
    .card__details { padding: 8px 0; }
    .link-detail { padding: 6px 0; }
    .oe-chip, .oe-more { padding: 4px 9px; }
    .tag-chip { min-height: 30px; }
    .filters__list label { padding: 10px 8px; }
    .search-recent a { padding: 12px 10px; }
    .combo__list li { padding: 11px 12px; }
    .tree summary { padding: 5px 0; }
    .tree li > a { display: inline-block; padding: 5px 0; }
    .maker-list li { padding: 7px 0; }
    .crumbs a { padding: 4px 0; }
}

/* tabele kao kartice na telefonu: svaki red je kartica, uz svaku vrednost pise sta je (data-label) */
.stack-only { display: none; }
@media (max-width: 640px) {
    .table--stack .stack-only { display: inline; }
    .table-wrap:has(> .table--stack) { overflow: visible; }
    .table.table--stack { background: none; font-size: 14px; }
    .table--stack thead { display: none; }
    .table--stack, .table--stack tbody, .table--stack tfoot { display: block; }
    .table--stack tbody tr { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
    .table--stack tbody td { display: grid; align-content: start; justify-items: start; gap: 1px; min-width: 0; padding: 0; border: 0; text-align: left; overflow-wrap: anywhere; }
    .table--stack tbody td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
    .table--stack tbody td.num { text-align: left; }
    .table--stack tbody td::before { font-family: var(--font); }
    .table--stack tbody td:not([data-label])::before { content: none; }
    .table--stack tbody td:empty { display: none; }
    .table--stack tbody td.stack-title { order: -1; grid-column: 1 / -1; display: block; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; }
    .table--stack tbody td.stack-title::before { content: none; }
    .table--stack tbody td.stack-wide { grid-column: 1 / -1; }
    .table--stack tfoot tr { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); }
    .table--stack tfoot td { padding: 0; border: 0; }
    .table--stack tfoot td:empty { display: none; }
    .table--stack tfoot strong { font-size: 18px; }
    /* ceo red je link (porudzbine, tipovi vozila) */
    .table--stack .row-link::after, .table--stack .stack-link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .stat { min-width: 0; }
    .stat__value, .stat__label { overflow-wrap: anywhere; }
    .stat { padding: 10px 12px; }
    .stat__value { font-size: 17px; }
}

/* korpa na telefonu: artikal pa cena, kolicina i iznos u jednom redu; ukupno uz dugme "Нарачај" */
.checkout__total { margin-right: auto; font-size: 15px; }
.checkout__total strong { font-size: 18px; }
@media (max-width: 640px) {
    .cart-table tbody tr { grid-template-columns: minmax(0, 1fr) auto auto; }
    .cart-table tbody td.cart-table__article { grid-column: 1 / -2; order: -2; padding-bottom: 0; border-bottom: 0; }
    .cart-table tbody td.cart-table__remove { order: -1; grid-column: -2 / -1; justify-self: end; }
    .cart-table tbody td.cart-table__remove .btn { width: 38px; height: 38px; padding: 0; }
    .cart-table tbody td.cart-table__price { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
    .cart-table tbody td.cart-table__price::before { flex: 0 0 100%; }
    .cart-table tbody td.cart-table__price br { display: none; }
    .cart-table tbody td.cart-table__qty .qty { width: 92px; }
    .cart-table tbody td.cart-table__amount { grid-column: 2 / -1; justify-items: end; text-align: right; font-weight: 700; font-size: 16px; }
    .cart-table tbody tr.has-problem { border-color: var(--no); background: var(--no-soft); }
    .cart-table tr.has-problem td { background: none; }
    .panel:has(> .table-wrap > .cart-table) { padding: 0; border: 0; background: none; }
    .panel:has(> .table-wrap > .cart-table) .form-actions .btn { width: 100%; }
    .checkout .form-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .checkout .form-actions .btn--big { width: 100%; padding: 14px; }
    .checkout__total { margin: 0; display: flex; justify-content: space-between; align-items: baseline; }
    .choices--row .choice { flex: 1 1 0; }
    .choice { padding: 12px; }
    .page-title { font-size: 22px; }
    .admin-head { align-items: flex-start; }
}

/* admin na telefonu: filteri iznad tabela prelaze u novi red umesto da izlaze van ekrana */
@media (max-width: 760px) {
    .admin-filter { flex-wrap: wrap; }
    .admin-filter > .input, .admin-filter > select { flex: 1 1 200px; width: auto; min-width: 0; }
    .admin-filter > .btn { flex: 1 1 auto; }
    .admin-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .admin-nav a { white-space: nowrap; }
}

/* katalog po vozilu na telefonu: kad je grupa izabrana, stablo grupa je skupljeno u jedno dugme, pa se delovi vide odmah */
.vehicle-tree__toggle { display: none; }
@media (max-width: 900px) {
    .vehicle-tree.is-collapsible > h2 { display: none; }
    .vehicle-tree__toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
    .vehicle-tree__toggle span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .vehicle-tree__toggle strong { color: var(--blue-text); }
    .vehicle-tree__toggle svg { flex: 0 0 auto; width: 18px; height: 18px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
    .vehicle-tree.is-open .vehicle-tree__toggle svg { transform: rotate(180deg); }
    .vehicle-tree.is-collapsible:not(.is-open) .vehicle-tree__body { display: none; }
    .vehicle-tree.is-collapsible.is-open .vehicle-tree__toggle { margin-bottom: 10px; }
    .vehicle-tree { max-height: none; }
    .vehicle-tree__body .tree { max-height: 50dvh; overflow-y: auto; overscroll-behavior: contain; }
}

/* profaktura iz korpe (admin i komercijalista) */
.proforma { border-style: dashed; }
.proforma__head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 4px; }
.proforma__head h2 { margin: 0; }
.proforma__head .tag { margin-left: 0; }
.proforma__hint { margin: 0 0 12px; font-size: 13px; }
.proforma .form-grid { margin-bottom: 4px; }
.proforma .form-grid fieldset { margin-bottom: 0; }
.proforma [data-proforma-info] { overflow-wrap: anywhere; }
@media (max-width: 640px) {
    .proforma .form-actions .btn { width: 100%; padding: 14px; }
}
.tag--proforma { background: var(--notice-bg); color: var(--notice-ink); margin-left: 0; }
.form-grid .choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }

/* ---------- fakture kupca (Сите фактури, jedna faktura) ---------- */
.test-data { margin: 0 0 12px; padding: 8px 12px; border: 1px dashed var(--notice-line); border-radius: 10px; background: var(--notice-bg); color: var(--notice-ink); font-size: 13px; }
.status--late { margin-left: 6px; background: var(--no-soft); color: var(--no); }
.invoice-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.invoice-filter .input[type="search"] { flex: 1 1 200px; width: auto; min-width: 0; }
.invoice-table__pdf { width: 1%; white-space: nowrap; }
.invoice-table td.num { white-space: nowrap; }
.table--stack tfoot tr + tr td { border-top: 0; }
@media (max-width: 640px) {
    .invoice-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .invoice-actions, .invoice-actions .btn { width: 100%; }
    .invoice-actions .btn { text-align: center; }
    .table--stack tfoot tr + tr { margin-top: 6px; }
    .invoice-table .invoice-table__pdf { grid-column: 1 / -1; width: auto; justify-items: stretch; }
    .invoice-table .invoice-table__pdf .btn { display: block; text-align: center; padding: 8px 10px; }
}

/* ---------- Podaci za program kupca (admin, korisnik) ---------- */
.feed-panel h2 { margin-bottom: 6px; }
.feed-panel > p { margin: 0 0 10px; font-size: 14px; }
.feed-link .input { flex: 1 1 auto; min-width: 0; font-size: 13px; }
.feed-link .btn { flex: none; }
.feed-seen { margin-top: 8px !important; }
.feed-label { display: block; margin: 12px 0 6px; font-weight: 600; font-size: 14px; }
.feed-link + .feed-link { margin-top: 6px; }
.feed-actions { justify-content: flex-start; flex-wrap: wrap; }
@media (max-width: 640px) {
    .feed-link { flex-direction: column; }
    .feed-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- Opcije pretrage (admin, Пребарувања) ---------- */
.search-options h2 { margin-bottom: 6px; }
.search-options > p { margin: 0 0 12px; font-size: 14px; }
.search-option { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); }
.search-option input { flex: none; margin-top: 2px; }
.search-option strong { font-size: 14px; }
.search-option small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.4; }
@media (max-width: 640px) {
    .search-options .form-actions .btn { width: 100%; }
}

/* ---------- Korisnik: fakture po firmi, brisanje (admin) ---------- */
.fieldset-note { margin: 0 0 2px; font-size: 13px; }
.delete-panel h2 { margin-bottom: 6px; }
.delete-panel > p { margin: 0 0 10px; font-size: 14px; }

/* ---------- Fakture po firmi i obavestenje o dospelim fakturama (Ilija 16.11) ---------- */
.firm-filter { margin: 0 0 14px; }
.firm-filter .chip { text-decoration: none; color: var(--ink); }
.firm-filter .chip.is-active { color: var(--on-blue); }
.firm-split { margin: -6px 0 18px; }
.debt-late { color: var(--no); }
.overdue-notice { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 8px 8px 16px; border: 1px solid var(--no); border-radius: 12px; background: var(--no-soft); color: var(--no); font-weight: 600; font-size: 14px; }
.overdue-notice__icon { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--no); color: #fff; font-size: 13px; font-weight: 800; }
.overdue-notice__link { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: inherit; text-decoration: none; min-width: 0; }
.overdue-notice__link strong { margin-left: auto; white-space: nowrap; }
.overdue-notice__link:hover strong { text-decoration: underline; }
.overdue-notice__close { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.overdue-notice__close:hover { background: rgba(194, 56, 47, .12); }
@media (max-width: 640px) {
    .overdue-notice { font-size: 13.5px; padding-left: 12px; }
    .overdue-notice__link strong { margin-left: 0; }
}

/* preskoceni redovi pri uvozu (Marko 17.11): koji red, sta je pisalo, zasto nije uvezen */
.import-skipped { margin: 10px 0 4px; border: 1px solid var(--notice-line); border-radius: 10px; background: var(--notice-bg); color: var(--notice-ink); overflow: hidden; }
.import-skipped > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 14px; cursor: pointer; }
.import-skipped__errors { color: var(--no); font-weight: 700; }
.import-skipped__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 0 14px 10px; }
.import-skipped .table-wrap { max-height: 420px; overflow: auto; background: var(--surface); color: var(--ink); }
.import-skipped__table th { position: sticky; top: 0; background: var(--surface); }
.import-skipped__table td.mono { overflow-wrap: anywhere; }
.import-skipped__table th.num, .import-skipped__table td.num { width: 1%; white-space: nowrap; text-align: right; }
.import-skipped__table tr.is-error .import-skipped__reason { color: var(--no); font-weight: 600; }
.import-added-title { margin: 14px 0 6px; font-size: 15px; }
@media (max-width: 640px) {
    .import-skipped .table-wrap { max-height: none; overflow: visible; padding: 0 10px 2px; background: none; }
    .import-skipped__table tbody tr { grid-template-columns: auto minmax(0, 1fr); }
    .import-skipped__table tbody td.import-skipped__reason { grid-column: 1 / -1; }
}

/* vozila za Makedoniju / sva vozila (Ilija 18.11) */
.region-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -4px 0 14px; }
.region-switch__label { color: var(--muted); font-size: 13px; font-weight: 600; }
.region-switch__options { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.region-switch__btn { min-height: 34px; padding: 5px 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.region-switch__btn:hover:not(.is-active) { color: var(--blue-text); }
.region-switch__btn.is-active { background: var(--blue); color: var(--on-blue); cursor: default; }
.region-switch__hint { font-size: 13px; }
@media (max-width: 640px) {
    .region-switch__options { display: flex; width: 100%; }
    .region-switch__btn { flex: 1 1 0; min-height: 40px; padding: 6px 8px; }
}
