/*
 * Farmakoteka — dizajn sistem.
 *
 * Boje su tokeni na :root. Svetla tema je podrazumevana; tamna se uključuje
 * po sistemu (prefers-color-scheme) ili ručno (data-theme na <html>, dugme u
 * zaglavlju, pamti se u localStorage). Komponente koriste SAMO tokene.
 */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-400-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-400-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e8eef5;
  --border: #e2e8f0;
  --border-strong: #94a3b8;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #526072;
  --brand: #0e7490;
  --brand-strong: #155e75;
  --brand-soft: #ecfeff;
  --brand-ring: rgba(14, 116, 144, 0.28);
  --on-brand: #ffffff;
  --accent-grad: linear-gradient(120deg, #0891b2 0%, #2563eb 100%);
  --success: #047857;
  --success-soft: #ecfdf5;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --danger-on-success: #b91c1c;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --violet: #7c3aed;
  --hero-bg: radial-gradient(1200px 400px at 10% -10%, #cffafe 0%, transparent 60%), radial-gradient(900px 380px at 100% 0%, #dbeafe 0%, transparent 55%), var(--bg);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.16);
  --img-bg: #ffffff;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --header-h: 64px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0a101d;
    --surface: #111a2c;
    --surface-2: #162238;
    --surface-3: #1d2b45;
    --border: #223150;
    --border-strong: #30436a;
    --text: #e7eef8;
    --text-2: #c2cee0;
    --muted: #9aa8be;
    --brand: #22d3ee;
    --brand-strong: #67e8f9;
    --brand-soft: rgba(34, 211, 238, 0.12);
    --brand-ring: rgba(34, 211, 238, 0.35);
    --on-brand: #04252d;
    --accent-grad: linear-gradient(120deg, #22d3ee 0%, #60a5fa 100%);
    --success: #34d399;
    --success-soft: rgba(52, 211, 153, 0.12);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.12);
    --danger-on-success: #fc9a9a;
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.12);
    --violet: #a78bfa;
    --hero-bg: radial-gradient(1100px 420px at 5% -15%, rgba(34, 211, 238, 0.16) 0%, transparent 60%), radial-gradient(900px 400px at 100% -5%, rgba(96, 165, 250, 0.14) 0%, transparent 55%), var(--bg);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    --img-bg: #ffffff; /* slike i logoi apoteka imaju belu pozadinu — bez sivog ruba */
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #0a101d;
  --surface: #111a2c;
  --surface-2: #162238;
  --surface-3: #1d2b45;
  --border: #223150;
  --border-strong: #30436a;
  --text: #e7eef8;
  --text-2: #c2cee0;
  --muted: #9aa8be;
  --brand: #22d3ee;
  --brand-strong: #67e8f9;
  --brand-soft: rgba(34, 211, 238, 0.12);
  --brand-ring: rgba(34, 211, 238, 0.35);
  --on-brand: #04252d;
  --accent-grad: linear-gradient(120deg, #22d3ee 0%, #60a5fa 100%);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --danger-on-success: #fc9a9a;
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.12);
  --violet: #a78bfa;
  --hero-bg: radial-gradient(1100px 420px at 5% -15%, rgba(34, 211, 238, 0.16) 0%, transparent 60%), radial-gradient(900px 400px at 100% -5%, rgba(96, 165, 250, 0.14) 0%, transparent 55%), var(--bg);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --img-bg: #ffffff;
  color-scheme: dark;
}

/* ─── Osnova ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
main { flex: 1; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); font-weight: 750; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-ring); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.page { padding-top: 20px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.page--narrow { max-width: 760px; }
.section { display: flex; flex-direction: column; gap: 16px; padding-top: 12px; }
.container.section { padding-top: 40px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
@media (max-width: 559px) { .hide-sm { display: none; } }
.good { color: var(--success); font-weight: 600; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.stack-sm > * + * { margin-top: 8px; }
.icon { flex: none; }
.link { color: var(--brand-strong); font-weight: 550; text-decoration: underline; text-decoration-color: var(--brand-ring); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--brand-strong); background: var(--brand-soft); border: 1px solid var(--brand-ring); padding: 4px 10px; border-radius: 999px; width: fit-content; }
.accent { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-2); font-size: 1.05rem; max-width: 62ch; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--success); } .dot--brand { background: var(--brand); } .dot--violet { background: var(--violet); }

/* tema: ikonica sunca u tamnoj, meseca u svetloj */
.only-dark { display: none; }
:root[data-theme='dark'] .only-dark { display: block; }
:root[data-theme='dark'] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .only-dark { display: block; }
  :root:not([data-theme='light']) .only-light { display: none; }
}

/* ─── Dugmad ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 34px; padding: 0 12px; font-size: 0.85rem; }
.btn--md { height: 42px; padding: 0 16px; font-size: 0.92rem; }
.btn--lg { height: 50px; padding: 0 22px; font-size: 1rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 4px 14px var(--brand-ring); }
.btn--primary:hover { background: var(--brand-strong); }
.btn--secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn--secondary:hover { background: var(--surface-3); }
.btn--outline { background: transparent; color: var(--brand-strong); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand-soft); }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--danger { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover, .icon-btn.is-active { background: var(--surface-2); color: var(--text); }

/* ─── Polja ──────────────────────────────────────────────────────────────── */

.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__aside { display: flex; justify-content: flex-end; margin-top: -6px; font-size: 0.88rem; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field__label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); padding: 0; }
.field__hint { font-size: 0.8rem; color: var(--muted); }
.field__error { font-size: 0.82rem; color: var(--danger); font-weight: 550; }
.input {
  width: 100%; height: 44px; padding: 0 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 0.95rem;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--muted); opacity: .8; }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.field--error .input { border-color: var(--danger); }
.textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 120px; line-height: 1.5; }
.input-wrap { position: relative; }
.input-wrap--icon .input { padding-left: 40px; }
.input-wrap__icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.select-wrap { position: relative; }
.select { appearance: none; padding-right: 38px; cursor: pointer; }
.select-wrap__chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%) rotate(90deg); color: var(--muted); pointer-events: none; }

.rating__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating__stars input { position: absolute; opacity: 0; pointer-events: none; }
.rating__stars label { color: var(--border-strong); cursor: pointer; transition: color .1s, transform .1s; }
.rating__stars label:hover, .rating__stars label:hover ~ label, .rating__stars input:checked ~ label { color: #f59e0b; }
.rating__stars label .icon { fill: currentColor; }
.rating__stars input:focus-visible + label { outline: 3px solid var(--brand-ring); border-radius: 6px; }

/* ─── Kartice, bedževi, obaveštenja ──────────────────────────────────────── */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card--pad { padding: 20px; }
@media (min-width: 768px) { .card--pad { padding: 24px; } }
.card__head { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-title p { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.page-header { display: flex; flex-direction: column; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--brand { background: var(--brand-soft); color: var(--brand-strong); border-color: transparent; }
.badge--success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge--danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge--warning { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.85rem; color: var(--text-2); transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand-strong); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); font-size: 0.92rem; border: 1px solid transparent; }
.alert .icon { margin-top: 2px; }
.alert > div { flex: 1; min-width: 0; }
.alert__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.alert--info { background: var(--brand-soft); color: var(--text); border-color: var(--brand-ring); }
.alert--info .icon { color: var(--brand-strong); }
.alert--success { background: var(--success-soft); color: var(--text); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.alert--success .icon { color: var(--success); }
.alert--danger { background: var(--danger-soft); color: var(--text); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.alert--danger .icon { color: var(--danger); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 48px 16px; color: var(--text-2); }
.empty__icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); }
.empty__body { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 520px; color: var(--muted); }
.empty__search { width: 100%; max-width: 560px; }
.note { margin-top: 18px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); font-size: 0.88rem; color: var(--text-2); }
.disclaimer { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.82rem; }
.dev-error { text-align: left; max-width: 100%; overflow: auto; font-size: 12px; background: var(--surface-2); padding: 12px; border-radius: 8px; }

/* ─── Zaglavlje ──────────────────────────────────────────────────────────── */

.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.site-header__row { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.12rem; letter-spacing: -0.02em; color: var(--text); flex: none; }
.logo img { width: 32px; height: 32px; }
.site-header__search { flex: 1; max-width: 520px; display: none; }
@media (min-width: 900px) { .site-header__search { display: block; } }
.site-header__search .search__submit { display: none; }
.site-nav { display: none; gap: 2px; margin-left: auto; }
@media (min-width: 900px) { .site-nav { display: flex; } }
.site-nav__link { padding: 8px 12px; border-radius: 8px; font-weight: 550; font-size: 0.92rem; color: var(--text-2); }
.site-nav__link:hover { background: var(--surface-2); color: var(--text); }
.site-nav__link.is-active { color: var(--brand-strong); background: var(--brand-soft); }
.site-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
@media (min-width: 900px) { .site-header__actions { margin-left: 0; } .site-header__menu { display: none; } }
.site-header__login { display: none; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); font-weight: 600; font-size: 0.9rem; color: var(--text-2); margin-left: 4px; }
.site-header__login:hover { border-color: var(--brand); color: var(--brand-strong); }
@media (min-width: 560px) { .site-header__login { display: inline-flex; } }

.site-header__search-btn { display: inline-grid; }
@media (min-width: 900px) { .site-header__search-btn { display: none; } }
.mobile-search { border-top: 1px solid var(--border); padding: 10px 0 12px; }
.mobile-search[hidden] { display: none; }
@media (min-width: 900px) { .mobile-search { display: none; } }

dialog.drawer { margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--border); width: min(340px, 88vw); height: 100dvh; max-height: none; max-width: none; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog.drawer[open] { animation: slide .2s ease-out; }
dialog.drawer::backdrop { background: rgba(2, 6, 23, 0.5); }
.drawer__panel { display: flex; flex-direction: column; height: 100%; }
.drawer__search { padding: 12px 12px 0; }
.drawer__search .search__submit { display: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 16px; height: var(--header-h); border-bottom: 1px solid var(--border); }
.drawer__nav { display: flex; flex-direction: column; gap: 2px; padding: 12px; }
.drawer__nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; font-weight: 550; color: var(--text-2); }
.drawer__nav a:hover { background: var(--surface-2); }
.drawer__nav a.is-active { background: var(--brand-soft); color: var(--brand-strong); }
.drawer__foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--border); }
.drawer__email { font-weight: 600; margin-bottom: 12px; word-break: break-all; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }

/* ─── Pretraga ───────────────────────────────────────────────────────────── */

.search { position: relative; display: flex; gap: 8px; width: 100%; }
.search__field { position: relative; flex: 1; min-width: 0; }
.search__field input {
  width: 100%; height: 44px; padding: 0 40px 0 42px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 0.95rem;
  transition: border-color .15s, box-shadow .15s;
}
.search__field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search--lg .search__field input { height: 58px; font-size: 1.05rem; padding-left: 50px; border-radius: 14px; box-shadow: var(--shadow); }
.search--lg .search__icon { left: 17px; }
.search--lg .search__submit { height: 58px; border-radius: 14px; padding: 0 26px; }
@media (max-width: 559px) { .search--lg { flex-direction: column; } .search--lg .search__submit { height: 50px; } }
.search__spinner { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2px solid var(--border-strong); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
.search__spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.search__list { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: min(70vh, 460px); overflow: auto; text-align: left; }
.search__list[hidden] { display: none; }
.search__list li a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; }
.search__list li.is-active a, .search__list li a:hover { background: var(--brand-soft); }
.search__name { font-weight: 550; color: var(--text); }
.search__name mark { background: none; color: var(--brand-strong); font-weight: 750; }
.search__meta { font-size: 0.8rem; color: var(--muted); }
.search__meta strong { color: var(--text-2); }
.search__hint--empty { border-top: 0 !important; margin-top: 0 !important; padding: 12px !important; }
.search__hint { padding: 8px 12px 4px; font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--border); margin-top: 4px; }

/* ─── Početna ────────────────────────────────────────────────────────────── */

.hero { background: var(--hero-bg); border-bottom: 1px solid var(--border); }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-top: 56px; padding-bottom: 56px; max-width: 860px; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; }
.hero .search { max-width: 720px; margin-top: 8px; }
.hero--compact .hero__inner { padding-top: 48px; padding-bottom: 48px; }
.hero__popular { text-wrap: balance; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 0.88rem; }
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: -28px; position: relative; z-index: 1; }
.stats-strip > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.stats-strip strong { font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; color: var(--brand-strong); }
.stats-strip span { font-size: 0.8rem; color: var(--muted); }
.features { display: grid; gap: 16px; }
@media (min-width: 768px) { .features { grid-template-columns: repeat(3, 1fr); } .features--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features--4 { grid-template-columns: repeat(4, 1fr); } }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature p { color: var(--muted); font-size: 0.92rem; }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); }
.feature--link { transition: border-color .15s, transform .15s, box-shadow .15s; }
.feature--link:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.feature__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 600; font-size: 0.88rem; color: var(--brand-strong); }
.logo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.logo-strip__item { display: grid; place-items: center; height: 84px; background: var(--img-bg); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s, transform .15s; }
.logo-strip__item:hover { border-color: var(--brand); transform: translateY(-2px); }
.logo-strip .ph-logo { background: transparent; border: 0; }
.promo { display: grid; gap: 24px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--brand-ring); background: radial-gradient(600px 240px at 0% 0%, var(--brand-soft), transparent 70%), radial-gradient(600px 240px at 100% 100%, color-mix(in srgb, var(--violet) 12%, transparent), transparent 70%), var(--surface); }
.promo h2 { font-size: 1.5rem; margin: 12px 0 8px; }
.promo p { color: var(--text-2); max-width: 60ch; }
.promo__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.promo__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; font-size: 0.92rem; color: var(--text-2); }
.promo__list li { display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) { .promo { grid-template-columns: 1.6fr 1fr; padding: 40px; } }
.promo--center { text-align: center; display: block; }
.promo--center p { margin: 8px auto 20px; }

/* ─── Proizvodi: kartice, mreža, traka ───────────────────────────────────── */

.ggrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .ggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .ggrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.gcard:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.gcard__body { display: flex; flex-direction: column; gap: 6px; padding: 12px; flex: 1; }
.gcard__name { font-size: 0.9rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.gcard__price { margin-top: auto; font-size: 0.85rem; }
.gcard__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 6px; font-size: 0.78rem; color: var(--muted); }
.gcard__meta > span:first-child { white-space: nowrap; }
.gcard__meta > span { display: inline-flex; align-items: center; gap: 4px; }
.pimg { position: relative; aspect-ratio: 1; background: var(--img-bg); overflow: hidden; }
.gcard .pimg { aspect-ratio: 5 / 4; }
.pimg img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 10px; background: var(--img-bg); }
.pimg__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #94a3b8; background: var(--img-bg); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 200px); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.price { font-weight: 750; letter-spacing: -0.01em; white-space: nowrap; color: var(--text); }
.price small { font-size: 0.7em; font-weight: 600; color: var(--muted); }
.price--sm { font-size: 0.9rem; } .price--md { font-size: 1.05rem; } .price--lg { font-size: 1.35rem; } .price--xl { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); }
.price--brand { color: var(--brand-strong); }
.price--success { color: var(--success); }
.ph-logo { display: inline-grid; grid-template: 100% / 100%; place-items: center; flex: none; background: var(--img-bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; color: var(--muted); }
.ph-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ph-logo--dark { background: #0f3b2c; border-color: #0f3b2c; }
.logo-strip .ph-logo--dark { background: #0f3b2c; border-radius: 8px; }
.ph-logo--sm { width: 44px; height: 28px; } .ph-logo--md { width: 76px; height: 44px; } .ph-logo--lg { width: 116px; height: 64px; }

/* ─── Listing ────────────────────────────────────────────────────────────── */

.toolbar { display: flex; flex-direction: column; gap: 12px; }
.toolbar__filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.toolbar__filters .field { flex: 1 1 140px; max-width: 200px; }
@media (min-width: 900px) { .toolbar__filters { flex: 0 0 auto; flex-wrap: nowrap; } .toolbar__filters .field { width: 180px; flex: none; } }
@media (min-width: 900px) { .toolbar { flex-direction: row; align-items: flex-end; } .toolbar .search { flex: 1; } }
.results-count { margin-bottom: -6px; }

/* ─── Proizvod / compare ─────────────────────────────────────────────────── */

.page-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 0.85rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.crumbs li + li::before { content: '/'; opacity: .5; }
.crumbs a { display: inline-block; padding-block: 8px; }
.crumbs a:hover { color: var(--brand-strong); }
.crumbs [aria-current] { color: var(--text-2); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 639px) { .crumbs li:last-child { display: none; } }
.hero-product { display: grid; gap: 20px; padding: 16px; overflow: hidden; }
.hero-product .pimg { border-radius: var(--radius); border: 1px solid var(--border); max-width: 320px; width: 100%; justify-self: center; }
.hero-product__info { display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0; }
.hero-product__info h1 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); overflow-wrap: anywhere; }
.hero-product__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.hero-product__pharmacy { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-2); width: fit-content; }
.hero-product__pharmacy:hover { color: var(--brand-strong); }
.hero-product__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-product__cta form { display: contents; }
.hero-product__deal { align-self: flex-start; }
.hero-product--empty { grid-template-columns: 1fr !important; }
@media (max-width: 639px) {
  .hero-product--compare { grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
  .hero-product--compare .pimg { width: 96px; max-width: 96px; }
  .hero-product--compare .hero-product__info { display: contents; }
  .hero-product--compare h1 { grid-column: 2; grid-row: 1; font-size: 1.2rem; }
  .hero-product--compare .hero-product__prices, .hero-product--compare .chips, .hero-product--compare .hero-product__cta { grid-column: 1 / -1; }
}
@media (max-width: 559px) { .hero-product__cta .btn { width: 100%; white-space: normal; } }
@media (min-width: 768px) { .hero-product { grid-template-columns: 280px 1fr; padding: 24px; gap: 28px; } .hero-product .pimg { max-width: none; } }
.seo-text { color: var(--muted); font-size: 0.9rem; }
.seo-text strong { color: var(--text-2); }
.offers { display: flex; flex-direction: column; }
.offer { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'logo who price' 'logo stock buy'; align-items: center; gap: 6px 12px; padding: 14px 16px; border-top: 1px solid var(--border); transition: background-color .15s; }
.offer:first-child { border-top: 0; }
.offer:hover { background: var(--surface-2); }
.offer--best { background: var(--success-soft); }
.offer--best:hover { background: color-mix(in srgb, var(--success) 16%, transparent); }
/* Nije na stanju: prigušeno bojom (ne providnošću — providnost obara kontrast ispod AA). */
.offer--out .offer__price .price, .offer--out .offer__who strong, .offer--archived .offer__price .price { color: var(--muted); }
.offer--out .ph-logo img { filter: grayscale(1); opacity: .7; }
.offer__rank { display: none; }
.offer .ph-logo { grid-area: logo; }
.offer__who { grid-area: who; display: flex; flex-direction: column; min-width: 0; }
.offer__who strong { font-size: 0.98rem; }
.offer__who:hover strong { color: var(--brand-strong); text-decoration: underline; }
.offer__best { color: var(--success); font-size: 0.78rem; font-weight: 650; }
.offer__pname { font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer__stock { grid-area: stock; }
.offer__price { grid-area: price; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.offer__was { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); }
.offer__was .badge { height: 20px; padding: 0 6px; }
/* Crvena oznaka na zelenoj podlozi najbolje ponude: u tamnoj temi treba svetlija crvena (AA). */
.offer--best .badge--danger { color: var(--danger-on-success); }
.offer__buy { grid-area: buy; justify-self: end; min-width: 84px; }
@media (min-width: 768px) {
  .offer { grid-template-columns: 32px auto 1fr 130px 150px 100px; grid-template-areas: 'rank logo who stock price buy'; padding: 14px 20px; }
  .offer__rank { display: grid; grid-area: rank; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); font-size: 0.8rem; font-weight: 650; color: var(--muted); }
  .offer__stock { justify-self: center; }
}
.compare-banner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 16px 18px; border-radius: var(--radius-lg); border: 1px solid var(--brand-ring); background: var(--brand-soft); color: var(--brand-strong); transition: border-color .15s; }
.compare-banner > span:nth-child(2) { display: flex; flex-direction: column; color: var(--text); }
.compare-banner__cta { grid-column: 2; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.compare-banner:hover { border-color: var(--brand); }
@media (min-width: 640px) { .compare-banner { grid-template-columns: auto 1fr auto; } .compare-banner__cta { grid-column: auto; } }

.history { display: flex; flex-direction: column; gap: 16px; }
.history__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .history__grid { grid-template-columns: 1fr 220px; } }
.chart { position: relative; margin: 0; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__grid { stroke: var(--border); stroke-dasharray: 3 4; }
.chart__label { fill: var(--muted); font-size: 12px; font-family: var(--font); }
@media (max-width: 639px) { .chart__label { font-size: 22px; } }
.chart__line { fill: none; stroke: var(--brand); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart__area { fill: var(--brand); opacity: .08; }
.chart__dot { fill: var(--surface); stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; }
.chart__hit { fill: transparent; cursor: pointer; }
.chart__point.is-active .chart__dot, .chart__point:hover .chart__dot { fill: var(--brand); }
.chart svg:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.chart__tip { position: absolute; transform: translate(-50%, calc(-100% - 10px)); background: var(--text); color: var(--bg); padding: 6px 10px; border-radius: 8px; font-size: 0.78rem; display: flex; flex-direction: column; align-items: center; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); }
.chart__tip[hidden] { display: none; }
.stat-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
@media (min-width: 900px) { .stat-list { grid-template-columns: 1fr; } }
.stat-list > div { background: var(--surface-2); border-radius: var(--radius); padding: 12px 14px; }
.stat-list dt { font-size: 0.78rem; color: var(--muted); }
.stat-list dd { margin: 2px 0 0; font-weight: 750; font-size: 1.15rem; }
.stat-list dd small { font-size: 0.7em; color: var(--muted); font-weight: 600; }
.stat-list .is-good { color: var(--success); } .stat-list .is-bad { color: var(--danger); }

.modal { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0; width: min(480px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(2, 6, 23, 0.55); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--border); }
.modal__head h2 { font-size: 1.1rem; }
.modal__body { padding: 20px; display: flex; flex-direction: column; gap: 16px; color: var(--text-2); }
.modal__actions { display: flex; justify-content: flex-end; gap: 8px; }
.follow-preview { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 12px; background: var(--surface-2); border-radius: var(--radius); }
.follow-preview .pimg { border-radius: 8px; }

/* ─── Paginacija ─────────────────────────────────────────────────────────── */

.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.pager__num, .pager__btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 0.9rem; color: var(--text-2); }
.pager__num:hover, .pager__btn:hover { border-color: var(--brand); color: var(--brand-strong); }
.pager__num.is-current { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pager__btn.is-disabled { opacity: .4; pointer-events: none; }
.pager__gap { color: var(--muted); padding: 0 4px; }

/* ─── Apoteke, lokacije ──────────────────────────────────────────────────── */

.pharmacy-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .pharmacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pharmacy-grid { grid-template-columns: repeat(3, 1fr); } }
.pharmacy-card { display: flex; align-items: center; gap: 16px; transition: border-color .15s, transform .15s; }
.pharmacy-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.pharmacy-card h2 { font-size: 1.05rem; }
.pharmacy-card__chev { margin-left: auto; color: var(--muted); }
.pharmacy-hero { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.pharmacy-hero > div { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 640px) { .pharmacy-hero { flex-direction: row; align-items: center; } }
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .stat-cards { grid-template-columns: repeat(4, 1fr); } }
.stat-cards .card { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat-cards strong { font-size: 1.35rem; font-weight: 800; color: var(--brand-strong); }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.faq { display: flex; flex-direction: column; margin: 12px 0; }
.faq details { border-top: 1px solid var(--border); padding: 14px 0; }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--brand-strong); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: 8px; color: var(--text-2); }
.filters { display: grid; gap: 16px; }
.filters__city { display: flex; align-items: flex-end; gap: 8px; }
.filters__city .field { flex: 1; }
.filters__city .btn { height: 44px; }
@media (min-width: 640px) { .filters { grid-template-columns: 1fr 1fr; } }
.location-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .location-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .location-grid { grid-template-columns: repeat(3, 1fr); } }
.location { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.location__head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.location h3 { font-size: 1.05rem; }
.location__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; color: var(--text-2); }
.location__rows li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.location__rows .icon { margin-top: 2px; color: var(--muted); }
.location__rows a:hover { color: var(--brand-strong); text-decoration: underline; }

/* ─── Nalog ──────────────────────────────────────────────────────────────── */

.auth { align-items: center; padding-top: 40px; }
.auth__card { width: 100%; max-width: 440px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.auth__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.auth__head h1 { font-size: 1.5rem; }
.auth__switch { text-align: center; font-size: 0.92rem; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.8rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn--google { color: var(--text); border-color: var(--border-strong); }
.btn--google:hover { background: var(--surface-2); }
.benefits { list-style: none; margin: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--brand-soft); border-radius: var(--radius); font-size: 0.88rem; color: var(--text-2); }
.benefits li { display: flex; align-items: center; gap: 8px; }
.benefits .icon { color: var(--brand-strong); }
.followed { display: flex; flex-direction: column; gap: 12px; }
.followed__item { display: grid; grid-template-columns: 72px 1fr; gap: 12px 16px; align-items: center; padding: 12px; }
.followed__item .pimg { border-radius: 10px; border: 1px solid var(--border); }
.followed__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.followed__name { font-weight: 650; }
a.followed__name:hover { color: var(--brand-strong); }
.followed__ph { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-2); }
.followed__price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; grid-column: 1 / -1; }
.followed__item form { grid-column: 1 / -1; justify-self: end; }
@media (min-width: 768px) {
  .followed__item { grid-template-columns: 88px 1fr auto auto; padding: 14px 18px; }
  .followed__price { grid-column: auto; flex-direction: column; align-items: flex-end; }
  .followed__item form { grid-column: auto; }
}

/* ─── Za apoteke ─────────────────────────────────────────────────────────── */

.packages { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 900px) { .packages { grid-template-columns: repeat(3, 1fr); } }
.package { position: relative; display: flex; flex-direction: column; gap: 18px; }
.package__head { display: flex; align-items: center; gap: 12px; }
.package__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.package--green .package__icon { background: linear-gradient(135deg, #10b981, #059669); }
.package--brand .package__icon { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.package--violet .package__icon { background: linear-gradient(135deg, #8b5cf6, #db2777); }
.package--featured { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring), var(--shadow); }
.package__ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: var(--on-brand); font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.package__price { font-size: 1.5rem; font-weight: 800; display: flex; flex-direction: column; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; color: var(--text-2); flex: 1; }
.checklist li { display: flex; gap: 10px; }
.checklist .icon { color: var(--success); margin-top: 2px; }
.prose h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 20px; margin: 8px 0; display: flex; flex-direction: column; gap: 4px; }

/* ─── Podnožje ───────────────────────────────────────────────────────────── */

.site-footer { margin-top: 48px; border-top: 1px solid var(--border); background: var(--surface); }
.site-footer__grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer__brand p { margin-top: 12px; color: var(--muted); font-size: 0.9rem; max-width: 44ch; }
.site-footer h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-size: 0.92rem; }
.site-footer ul a { display: inline-block; padding-block: 8px; }
.site-footer ul a { color: var(--text-2); }
.site-footer ul a:hover { color: var(--brand-strong); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--muted); }

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

/* ─── Baneri (Sponzorisano) ──────────────────────────────────────────────── */

.ad { display: flex; flex-direction: column; gap: 6px; margin: 4px 0; }
.ad__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ad__link { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.ad__link img { width: 100%; height: auto; display: block; }
.ad__disclaimer { font-size: 0.72rem; color: var(--muted); line-height: 1.4; }

/* ─── Interni izveštaj ───────────────────────────────────────────────────── */

.report-filters { display: grid; gap: 12px; align-items: end; }
@media (min-width: 768px) { .report-filters { grid-template-columns: 2fr 1fr 1fr auto auto; } }
.report-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) { .report-grid { grid-template-columns: 1fr 1fr; } }
.bars { width: 100%; height: 160px; margin-top: 12px; }
.bars rect { fill: var(--brand); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-list__row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border); }
.admin-list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
@media (max-width: 480px) {
  .admin-list__row { flex-wrap: wrap; padding: 12px 16px; }
  .admin-list__row .ph-logo { display: none; }
}
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 10px 20px; border-top: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; border-top: 0; }
.table td:not(:first-child), .table th:not(:first-child) { text-align: right; white-space: nowrap; }

/* ─── Akcije, kategorije, brendovi (routes/catalog.tsx) ───────────────────── */

.gcard__was { color: var(--muted); font-size: 0.8rem; margin-left: 4px; }
.letter-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.letter-nav a { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); font-weight: 600; color: var(--text-2); }
.letter-nav a:hover { border-color: var(--brand); color: var(--brand-strong); }
.brand-letter { scroll-margin-top: calc(var(--header-h) + 12px); }
.brand-letter h2 { font-size: 1.2rem; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.brand-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (min-width: 640px) { .brand-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .brand-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.brand-list a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; color: var(--text-2); border-bottom: 1px solid var(--border); }
.brand-list a:hover { color: var(--brand-strong); }
