/* ==========================================================================
   IVAS — components
   ========================================================================== */

/* --------------------------------------------------------------- pills/CTA */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: var(--pill-h); padding-inline: var(--pill-px);
  border-radius: var(--r-pill);
  border: 1px solid rgba(var(--white-rgb), .34);
  color: var(--on-dark);
  font-size: var(--pill-fs); font-weight: 500; letter-spacing: .005em;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.pill__chev { width: 13px; height: 13px; margin-right: -4px; opacity: .75; transition: transform var(--dur-fast) var(--ease-out); }
.pill[aria-expanded='true'] .pill__chev { transform: rotate(180deg); }
/* rev4 §3: hover and the pill whose panel is open share one fill, so the open
   one reads as pressed while the pointer is in the panel */
.pill:hover, .pill[aria-expanded='true'] { background: rgba(var(--white-rgb), .14); border-color: rgba(var(--white-rgb), .5); }
.pill[aria-current='page'],
.pill.is-active {
  background: var(--chrome-pill); color: var(--chrome-pill-fg);
  border-color: var(--chrome-pill); font-weight: 600;
}

.circle-btn {
  display: inline-grid; place-items: center;
  width: var(--circle); height: var(--circle);
  border-radius: 50%;
  border: 1px solid rgba(var(--white-rgb), .34);
  color: var(--on-dark);
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.circle-btn:hover { background: rgba(var(--white-rgb), .16); }
.circle-btn svg { width: 17px; height: 17px; }
/* theme toggle (rev3 §5): sun and moon cross-fade with a quarter turn */
.theme-toggle { position: relative; }
.theme-toggle svg { position: absolute; inset: 0; margin: auto; transition: opacity 220ms var(--ease-panel), transform 260ms var(--ease-panel); }
.theme-toggle .tt-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme='dark'] .theme-toggle .tt-sun { opacity: 1; transform: none; }
:root[data-theme='dark'] .theme-toggle .tt-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .tt-sun { opacity: 1; transform: none; }
  :root:not([data-theme='light']) .theme-toggle .tt-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
}
@media (prefers-reduced-motion: reduce) { .theme-toggle svg { transition: none; } }
@media (max-width: 1279px) { .hero__actions .theme-toggle { display: none; } }

/* the hero top bar carries search + menu buttons below the pill-nav breakpoint */
[data-mobile-only] { display: inline-grid; }
@media (min-width: 1280px) { [data-mobile-only] { display: none; } }

/* Rev1 §1.3 — the pointer target of every pill and circle control is lifted to
   44x44 without inflating the visual chrome. Pills are already wider than 44,
   so their band only grows vertically; circles grow 2px per side, which still
   leaves clearance inside the 6px gap, so neighbours never steal each other's
   hits. */
.pill, .circle-btn { position: relative; }
.pill::before {
  content: ''; position: absolute; left: 0; right: 0;
  top: 50%; height: 44px; transform: translateY(-50%);
}
.circle-btn::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
}

/* On desktop the dock is hidden, so the header carries the inquiry opener. */
.circle-btn.has-badge { position: relative; }
.circle-btn.has-badge .dock__badge {
  top: -4px; right: -4px; translate: none;
}

/* the reference CTA: white pill + dark circle holding a ↗ */
.cta {
  display: inline-flex; align-items: center; gap: 12px;
  height: 44px; padding: 4px 4px 4px 18px;
  border-radius: var(--r-pill);
  background: var(--chrome-pill); color: var(--chrome-pill-fg);
  font-size: .88rem; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out);
}
.cta__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--chrome); color: var(--chrome-fg);
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.cta__icon svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-back); }
.cta:hover .cta__icon { background: var(--accent); color: var(--accent-fg); }
.cta:hover .cta__icon svg { transform: rotate(45deg); }
.cta--lg { height: 52px; padding-left: 24px; font-size: .95rem; }
.cta--lg .cta__icon { width: 44px; height: 44px; }
.cta--block { display: flex; width: 100%; justify-content: space-between; }

/* on light surfaces the pill inverts */
.cta--dark { background: var(--inv-bg); color: var(--inv-fg); }
.cta--dark .cta__icon { background: var(--inv-fg); color: var(--inv-bg); }
.cta--dark:hover .cta__icon { background: var(--accent); }

/* Rev3 §6: one height, one icon size, three roles.
     primary   .btn--solid            filled navy (light) / filled light (dark)
     secondary .btn, .btn--ghost      outline
     quiet     .btn--quiet            no border until hovered
   .btn--sm is for inside panels and the mobile menu only. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding-inline: 22px;
  border-radius: var(--r-pill);
  font-size: .92rem; font-weight: 600; line-height: 1.2;
  border: 1px solid var(--line-strong); color: var(--fg);
  background: transparent;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
@media (max-width: 767px) { .btn { min-height: 44px; padding-inline: 18px; } }
.btn:hover { background: var(--bg-sunken); border-color: var(--fg); }
.btn--solid { background: var(--btn-primary); border-color: var(--btn-primary); color: var(--btn-primary-fg); }
.btn--solid:hover { background: var(--btn-primary-hover); border-color: var(--btn-primary-hover); color: var(--btn-primary-fg); }
.btn--quiet { border-color: transparent; }
.btn--quiet:hover { border-color: transparent; }
.btn--sm { min-height: 36px; padding-inline: 14px; font-size: .82rem; }
@media (max-width: 767px), (pointer: coarse) { .btn--sm { min-height: 44px; } }
/* outline button on navy chrome (CTA band) */
.btn--on-dark { border-color: rgba(var(--white-rgb), .4); color: var(--on-dark); }
.btn--on-dark:hover { background: var(--chrome-pill); border-color: var(--chrome-pill); color: var(--chrome-pill-fg); }
.btn svg { width: 17px; height: 17px; }

/* ------------------------------------------------------------------- glass
   Navy-tinted, not white-tinted. A white wash over a bright photograph raises
   the backdrop luminance, which is the wrong direction for the white text the
   card carries — the stat labels measured 3.2:1 on the old .14 white fill. A
   navy tint keeps the frosted read and pushes the backdrop down instead. */
.glass {
  background: rgba(var(--navy-rgb), .38);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
          backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(var(--white-rgb), .22);
  border-radius: var(--r-glass);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(var(--navy-rgb), .68); }
}

.stat-card {
  padding: 14px 16px;
  min-width: 0;
}
@media (min-width: 1024px) { .stat-card { width: 210px; padding: 16px 18px; } }
.stat-card__num {
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  font-weight: 500; line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark);
}
.stat-card__label {
  margin: .5rem 0 0;
  font-size: .7rem; line-height: 1.35;
  color: var(--on-dark-muted);
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: var(--z-header);
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}
.site-header.is-visible { opacity: 1; visibility: visible; }
.site-header.is-hidden { opacity: 0; visibility: hidden; }

/* desktop: floating glass bar, same three tracks as the hero header (§1.3).
   It is given a real width rather than `max-content` for the same reason the
   hero header uses minmax(0,1fr): a shrink-to-fit box centres the nav only
   when the two side clusters happen to be equally wide, which they are not. */
.header-pill {
  display: none;
  pointer-events: auto;
  margin: 14px auto 0;
  width: min(1520px, calc(100% - 2 * var(--gutter)));
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 12px;
  /* symmetric: asymmetric padding moves the grid content box off the pill's
     own axis, which showed up as a constant 3.5px nav offset */
  padding: 7px;
  border-radius: var(--r-pill);
  background: rgba(var(--navy-rgb), .72);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
}
@media (min-width: 1280px) { .header-pill { display: grid; } }
.header-pill__logo {
  justify-self: start; display: flex; align-items: center;
  padding-inline-start: 7px;   /* optical inset, kept out of the grid padding */
}
.header-pill__logo img { height: clamp(36px, 2.6vw, 44px); width: auto; }
.header-pill__nav { justify-self: center; display: flex; gap: var(--pill-gap); }
.header-pill__actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
/* the floating bar runs the same controls at about 90% */
.header-pill {
  --pill-fs: .9rem; --pill-h: 38px; --pill-px: 15px; --pill-gap: 4px;
  --circle: 38px; --cta-h: 43px; --cta-fs: .9rem; --cta-i: 35px; --cta-pl: 17px;
}
.hero__actions .cta, .header-pill .cta {
  height: var(--cta-h); padding-left: var(--cta-pl); font-size: var(--cta-fs);
}
.hero__actions .cta__icon, .header-pill .cta__icon { width: var(--cta-i); height: var(--cta-i); }

/* mobile: 56px bar that hides on scroll down */
.header-bar {
  display: flex; pointer-events: auto;
  align-items: center; gap: 10px;
  height: 60px; padding-inline: var(--gutter);
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(var(--navy-rgb), .9);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
}
@media (min-width: 1280px) { .header-bar { display: none; } }
.header-bar__logo { display: flex; align-items: center; }
.header-bar__logo img { height: 40px; width: auto; }
.header-bar .spacer { margin-inline-start: auto; }

/* ------------------------------------------------------------- mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: var(--chrome);
  color: var(--on-dark);
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--gutter)
           calc(env(safe-area-inset-bottom, 0px) + 24px);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-in-out), visibility var(--dur-slow);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__top img { height: 48px; width: auto; }
.mobile-menu__top-right { display: flex; align-items: center; gap: 10px; }
.mobile-menu nav > .mm-acc { opacity: 0; transform: translateY(14px); }
.mobile-menu.is-open nav > .mm-acc { opacity: 1; transform: none;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  transition-delay: calc(60ms * var(--i, 0) + 120ms); }
.mm-acc > button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding-block: .42em; text-align: left;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 550; letter-spacing: -.03em; line-height: 1.1;
}
.mm-acc > button svg { width: 26px; height: 26px; flex: 0 0 auto; transition: transform var(--dur) var(--ease-out); }
.mm-acc > button[aria-expanded='true'] svg { transform: rotate(180deg); }
.mm-acc > button[aria-expanded='true'] { color: var(--accent); }
.mm-acc__panel { padding-block: 4px 16px; }
.mm-subs li + li { border-top: 1px solid var(--line-dark); }
.mobile-menu nav .mm-subs a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 46px; padding-block: 8px; opacity: 1; transform: none;
  font-size: .98rem; font-weight: 500; letter-spacing: 0; line-height: 1.3;
}
.mm-subs .mono { color: var(--on-dark-faint); font-size: .74rem; }
.mm-ico { display: flex; align-items: center; gap: 10px; }
.mm-ico svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }
.mm-subs__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mobile-menu nav .mm-btn {
  display: inline-flex; opacity: 1; transform: none; padding-block: 0;
  min-height: 44px; font-size: .85rem; font-weight: 600; letter-spacing: 0;
  border-color: rgba(var(--white-rgb), .4); color: var(--on-dark);
}
.mobile-menu nav .mm-btn:hover { background: var(--chrome-pill); color: var(--chrome-pill-fg); }

/* -------------------------------------------------------- language switcher
   Rev2 §3.4: EN is announced, not built. It is focusable so the tooltip is
   reachable by keyboard, and it does nothing. */
.lang {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .86rem; font-weight: 600; letter-spacing: .02em; color: var(--on-dark);
}
.lang__sep { width: 1px; height: 14px; background: rgba(var(--white-rgb), .4); }
.lang__item { position: relative; padding-block: 12px; }
.lang__item[aria-disabled='true'] {
  opacity: .66; cursor: not-allowed; pointer-events: auto;
}
.lang__item[data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: 50%; top: 100%; translate: -50% -4px;
  padding: 5px 9px; border-radius: 8px;
  background: var(--chrome-pill); color: var(--chrome-pill-fg);
  font-size: .72rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; z-index: 5;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.lang__item[data-tip]:hover::after, .lang__item[data-tip]:focus-visible::after { opacity: 1; }
/* 8px gap + 8px = 16px between SR | EN and the first circle (rev4 §3) */
.hero__actions .lang, .header-pill__actions .lang { margin-right: 8px; }
@media (max-width: 767px) { .hero__actions .lang { display: none; } }

/* -------------------------------------------------------- dropdown panels
   Rev3 §2. One light surface, a caret pointing at its pill, and each panel
   doing one job. Only the column that overflows scrolls. */
.mega {
  position: fixed; z-index: calc(var(--z-header) + 2);
  display: flex; flex-direction: column;
  background: var(--bg-elev); color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--r-glass);
  box-shadow: var(--shadow-2);
  max-height: calc(100vh - 120px);
  opacity: 0; transform: translateY(-4px);
  clip-path: inset(-16px -96px calc(100% + 16px) -96px round var(--r-glass));
  transition: opacity 200ms var(--ease-panel), transform var(--dur-panel) var(--ease-panel),
              clip-path var(--dur-panel) var(--ease-panel);
}
.mega.is-open { opacity: 1; transform: none; clip-path: inset(-16px -96px -120px -96px round var(--r-glass)); }
/* caret pointing at the pill that opened the panel */
.mega::before {
  content: ''; position: absolute; top: -7px; left: var(--caret, 50%);
  width: 14px; height: 14px; margin-left: -7px; rotate: 45deg;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-right: 0; border-bottom: 0; border-top-left-radius: 3px;
}
.mega :focus-visible { outline-color: var(--focus); outline-offset: -2px; }
.mega__ico {
  flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 9px; color: var(--fg-muted);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.mega__ico svg { width: 22px; height: 22px; }
.mega__n { font-family: var(--font-mono); font-size: 12px; color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.mega__row {
  display: flex; align-items: center; gap: 12px;
  min-height: 38px; padding: 3px 12px 3px 4px; border-radius: 10px;
  font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--fg);
  transition: background var(--dur-fast) var(--ease-out);
}
.mega__name { flex: 1 1 auto; min-width: 0; }
.mega__row:hover, .mega__row:focus-visible, .mega__row.is-current { background: var(--bg-sunken); }
.mega__row.is-current { font-weight: 600; }
.mega__row:hover .mega__ico, .mega__row:focus-visible .mega__ico, .mega__row.is-current .mega__ico {
  background: var(--navy-chrome); color: var(--accent);
}

/* Asortiman: categories left, one detail column right */
.mega__grid--catalog {
  display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  min-height: 0; flex: 1 1 auto;
}
.mega__cats, .mega__detail { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
/* Rev4 §2.1: the whole list fits from 700px of window height up. Below that it
   scrolls without a visible scrollbar and fades out at the bottom edge. */
.mega__cats {
  display: flex; flex-direction: column; gap: 4px;
  padding: 6px 10px; border-right: 1px solid var(--line);
  scrollbar-width: none;
}
.mega__cats::-webkit-scrollbar { display: none; }
.mega__cats.has-more {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent);
}
.mega__sep { flex: 0 0 1px; margin: 0 8px; background: var(--line); }
/* the detail column is never shorter than the list: the picture strip sits on
   its bottom edge and any spare height opens up above it */
.mega__detail { display: flex; flex-direction: column; padding: 18px 24px 20px; }
.mega__body { flex: 0 0 auto; }
.mega__visual {
  flex: 0 0 auto; height: calc(var(--vis-h, 180px) + 20px); margin-top: auto; padding-top: 20px;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.mega__vis-media, .mega__vis-cap { transition: opacity 90ms linear; }
.mega__vis-media {
  position: relative; overflow: hidden; background: var(--bg-sunken);
  border-radius: var(--r-tile) 0 0 var(--r-tile);
  border: 1px solid var(--line); border-right: 0;
}
.mega__vis-media img, .mega__vis-media .tex { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega__vis-media .tex, .mega__visual.is-tex img { display: none; }
.mega__visual.is-tex .tex { display: block; }
.mega__vis-cap {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0;
  padding: 16px 18px; background: var(--bg-sunken);
  border-radius: 0 var(--r-tile) var(--r-tile) 0; border: 1px solid var(--line); border-left: 0;
}
.mega__vis-cap strong { font-size: 15px; font-weight: 600; line-height: 1.25; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the line is always two lines tall and the count + link sit on the bottom
   edge, so a shorter or longer line never moves anything (CLS 0) */
.mega__vis-cap p {
  margin: 0; font-size: 13px; line-height: 1.4; color: var(--fg-muted); min-height: 2.8em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.mega__vis-cap .mega__n { margin-top: auto; }
.mega__vis-cap .mega__all { font-size: 13px; }
.mega__visual.is-out .mega__vis-media, .mega__visual.is-out .mega__vis-cap { opacity: 0; }
:root[data-theme='dark'] .mega__vis-cap { background: var(--bg-elev); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .mega__vis-cap { background: var(--bg-elev); } }
@media (prefers-reduced-motion: reduce) { .mega__vis-media, .mega__vis-cap { transition: none; } }
.mega__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.mega__head h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.mega__all {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--link);
}
.mega__all svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.mega__all:hover { text-decoration: underline; text-underline-offset: .2em; }
.mega__all:hover svg { transform: translateX(3px); }
.mega__subs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.mega__subs a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 38px; padding: 6px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--fg); text-decoration: none;
}
.mega__subs a:hover span:first-child { text-decoration: underline; text-underline-offset: .2em; }
.mega__subs .mega__more { color: var(--link); font-weight: 600; border-bottom-color: transparent; }
.mega__empty { color: var(--fg-muted); font-size: 15px; margin: 8px 0 0; }
.mega__brands { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.mega__label { font-size: 13px; font-weight: 600; color: var(--fg-muted); margin-right: 4px; }
.mega__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.mega__act {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: var(--fg);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.mega__act svg { width: 18px; height: 18px; color: var(--fg-muted); }
.mega__act:hover { background: var(--bg-sunken); border-color: var(--line-strong); }
.chip--sm { min-height: 32px; padding-inline: 12px; font-size: 13px; }

/* Kalkulatori: 3-column grid, name + one line */
.mega__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 10px; overflow-y: auto; min-height: 0; }
.mega__tile {
  display: flex; gap: 12px; align-items: center; height: 100%;
  padding: 10px 12px 10px 8px; border-radius: 12px; color: var(--fg);
  transition: background var(--dur-fast) var(--ease-out);
}
.mega__tile .mega__ico { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-sunken); color: var(--fg); }
.mega__tile:hover, .mega__tile:focus-visible { background: var(--bg-sunken); }
.mega__tile:hover .mega__ico, .mega__tile:focus-visible .mega__ico, .mega__tile--all .mega__ico {
  background: var(--navy-chrome); color: var(--accent);
}
.mega__tile strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.mega__tile strong + span { display: block; font-size: 13px; line-height: 1.35; color: var(--fg-muted); margin-top: 2px; }

/* Usluge: a short list and one button */
.mega__list { padding: 10px; overflow-y: auto; min-height: 0; }
.mega__list .mega__row { min-height: 44px; }
.mega__foot { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.mega__foot .btn { width: 100%; justify-content: center; }

@media (max-width: 1239px) {
  .mega__grid--catalog { grid-template-columns: 270px minmax(0, 1fr); }
  .mega__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* mobile: categories as collapsed accordions inside the Asortiman accordion */
.mm-cats > li + li { border-top: 1px solid var(--line-dark); }
.mobile-menu .mm-cat > button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 6px 0;
  text-align: left; font-size: 1.02rem; font-weight: 500; line-height: 1.25; letter-spacing: 0;
}
.mm-cat__ico svg { width: 22px; height: 22px; color: var(--accent); display: block; }
.mm-cat__name { flex: 1 1 auto; min-width: 0; }
.mm-cat > button .mono { font-size: .75rem; color: var(--on-dark-faint); }
.mm-cat__chev { width: 18px; height: 18px; flex: 0 0 auto; transition: transform var(--dur) var(--ease-out); }
.mm-cat > button[aria-expanded='true'] { color: var(--accent); }
.mm-cat > button[aria-expanded='true'] .mm-cat__chev { transform: rotate(180deg); }
.mm-cat__panel { padding: 0 0 16px 34px; }

.mobile-menu nav { margin-block: clamp(24px, 6vh, 48px); }
.mobile-menu nav a {
  display: block; padding-block: .42em;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 550; letter-spacing: -.03em; line-height: 1.1;
  opacity: 0; transform: translateY(14px);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  transition-delay: calc(60ms * var(--i, 0) + 120ms); }
.mobile-menu nav a[aria-current='page'] { color: var(--accent); }
.mobile-menu__secondary { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem;
  font-size: .9rem; color: var(--on-dark-muted); }
.mobile-menu__quick { display: grid; gap: 8px; margin-block: 20px; }
@media (min-width: 480px) { .mobile-menu__quick { grid-template-columns: repeat(3, 1fr); } }
.mobile-menu__quick a {
  display: flex; align-items: center; gap: .5rem;
  min-height: 48px; padding-inline: 14px;
  border: 1px solid var(--line-dark); border-radius: var(--r-input);
  font-size: .85rem; font-weight: 500;
}
.mobile-menu__quick a:hover { background: rgba(var(--white-rgb), .08); }
.mobile-menu__quick svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------- bottom row */
.bottom-row {
  position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-dock);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;  /* back-to-top slot is
      reserved even when hidden, so the dock never shifts */
  align-items: center;
  gap: 10px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.bottom-row > * { pointer-events: auto; }

@media (min-width: 1024px) {
  .bottom-row {
    display: block;
    padding: 0;
    inset: auto 0 0 0;
  }
  .bottom-row .dock { display: none; }
  .fab-ai   { position: fixed; left: var(--fab-inset);  bottom: var(--fab-inset); }
  .to-top   { position: fixed; right: var(--fab-inset); bottom: var(--fab-inset); }
  /* Rev1 §3.1 reverses the rev0 compromise: instead of hiding the assistant
     over the hero, the hero's bottom row now clears it (--bottom-ui-h), so the
     FAB is reachable in the first viewport again. */
}

.fab-ai, .to-top {
  display: grid; place-items: center;
  width: var(--fab-size); height: var(--fab-size); border-radius: 50%;
  background: var(--chrome); color: var(--on-dark);
  border: 1px solid var(--line-dark);
  box-shadow: 0 6px 24px rgba(var(--navy-rgb), .22);
}
.fab-ai svg, .to-top svg { width: 20px; height: 20px; }
.fab-ai:hover, .to-top:hover { background: var(--chrome-hover); }

.fab-ai__mark { width: 24px; height: 24px; }
.fab-ai.is-pulsing::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--accent);
  animation: fabpulse 1200ms var(--ease-out);
}
@keyframes fabpulse {
  from { opacity: .8; transform: scale(.9); }
  to   { opacity: 0;  transform: scale(1.25); }
}
.fab-ai { position: relative; }

.to-top {
  opacity: 0; visibility: hidden; transform: scale(.85);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
              visibility var(--dur);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke-width: 2; }
.to-top__ring .track { stroke: rgba(var(--white-rgb), .18); }
.to-top__ring .bar {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: var(--circ, 157);
  stroke-dashoffset: var(--dash, 157);
}

/* dock */
.dock {
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative;
  max-width: 340px; margin-inline: auto; width: 100%;
  height: 56px; padding: 5px;
  border-radius: var(--r-pill);
  background: rgba(var(--navy-rgb), .9);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
}
.dock__indicator {
  position: absolute; top: 5px; bottom: 5px; left: 5px;
  width: calc((100% - 10px) / 4);
  border-radius: var(--r-pill);
  background: rgba(var(--white-rgb), .12);
  border: 1px solid rgba(var(--white-rgb), .1);
  transform: translateX(calc(var(--dock-i, 0) * 100%));
  transition: transform var(--dur) var(--ease-out);
}
.dock a {
  position: relative; z-index: 1;
  display: grid; place-items: center; gap: 1px;
  min-width: 44px;
  font-size: .58rem; font-weight: 600; letter-spacing: .01em;
  color: var(--on-dark-muted);
}
.dock a[aria-current='page'], .dock a.is-active { color: var(--on-dark); }
.dock a[aria-current='page'] svg { color: var(--accent); }
.dock svg { width: 19px; height: 19px; }
.dock__badge {
  position: absolute; top: 2px; right: 50%; translate: 18px 0;
  min-width: 17px; height: 17px; padding-inline: 4px;
  display: none; place-items: center;
  border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-fg);
  font-size: .62rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.dock__badge.is-shown { display: grid; }
.dock__badge.is-bump { animation: badge-bump 380ms var(--ease-back); }
@keyframes badge-bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* ------------------------------------------------------------------ footer
   Rev2 §8. Rows: tiles, 4 columns, hours + map, brand marquee, outline wordmark,
   legal. Columns are designed at 360 first: 1 → 2 → 4. */
.site-footer {
  background: var(--chrome); color: var(--on-dark);
  border-top: 1px solid var(--chrome-edge);
  padding-block: 0; overflow: hidden;
}
.site-footer h2, .site-footer h3 { color: var(--on-dark); }
.footer__tiles { margin-block: clamp(24px, 3vw, 36px) clamp(20px, 2.6vw, 32px); }
.footer__tiles svg { width: 64px; }
.footer__grid { display: grid; gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 44px); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .footer__grid { grid-template-columns: 1.15fr .85fr 1.25fr 1.35fr; } }
.footer__logo { height: clamp(56px, 4.4vw, 72px); width: auto; margin-bottom: 1rem; }
.site-footer p { color: var(--on-dark-muted); font-size: var(--fs-small); }
.footer__status {
  display: inline-flex; margin-top: .4rem; padding: 7px 13px;
  border: 1px solid var(--line-dark); border-radius: var(--r-pill);
  font-size: .76rem; color: var(--on-dark);
}
.footer__col h3 {
  font-size: .85rem; font-weight: 600; letter-spacing: .01em;
  color: var(--on-dark-faint); margin-bottom: .9rem;
}
.footer__col h3 a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: .2em; }
.footer__col li { margin-bottom: .1rem; }
.footer__col li > a, .footer__plain {
  display: flex; align-items: center; gap: .55rem; min-height: 32px;
  font-size: var(--fs-small); color: var(--on-dark-muted); line-height: 1.3;
}
.footer__col li > a:hover { color: var(--accent); }
.footer__contact svg { width: 16px; height: 16px; color: var(--chrome-icon); flex: 0 0 auto; }
.footer__btn { margin-top: .8rem; border-color: rgba(var(--white-rgb), .4); color: var(--on-dark); }
.footer__btn:hover { background: var(--chrome-pill); border-color: var(--chrome-pill); color: var(--chrome-pill-fg); }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.footer__cats ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(14px, 2vw, 24px); }
@media (max-width: 379px) { .footer__cats ul, .footer__links { grid-template-columns: 1fr; } }

/* minmax(0,1fr): a bare track would grow to the seven-day rail's full width on
   phones, and the rail would never scroll */
.footer__hours {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(24px, 3.4vw, 40px); padding-top: clamp(20px, 2.6vw, 28px);
  border-top: 1px solid var(--line-dark);
}
@media (min-width: 900px) { .footer__hours { grid-template-columns: minmax(0, 1fr) 320px; align-items: stretch; } }
.footer__hours-title { font-size: .85rem; font-weight: 600; color: var(--on-dark-faint); margin-bottom: .7rem; letter-spacing: .01em; }
.hours-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.hours-strip li {
  display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px;
  background: rgba(var(--white-rgb), .05); border: 1px solid var(--line-dark);
}
.hours-strip span { font-size: .8rem; font-weight: 600; }
.hours-strip b { font-family: var(--font-mono); font-size: .76rem; font-weight: 400; color: var(--on-dark-muted); white-space: nowrap; }
.hours-strip li.is-today { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.hours-strip li.is-today b { color: var(--accent-fg); font-weight: 500; }
.footer__hours-note { margin: .7rem 0 0; font-size: .8rem !important; }
@media (max-width: 767px) {
  .hours-strip {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 92px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  }
  .hours-strip::-webkit-scrollbar { display: none; }
  .hours-strip li { scroll-snap-align: start; }
}
.footer__map {
  position: relative; display: block; min-height: 132px; overflow: hidden;
  border-radius: var(--r-tile); border: 1px solid var(--line-dark);
}
.footer__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer__map span {
  position: absolute; left: 12px; bottom: 10px; right: 12px;
  display: flex; justify-content: space-between; gap: 8px; align-items: baseline;
  font-size: .84rem; font-weight: 600; color: var(--on-dark);
}
.footer__map i { font-style: normal; font-weight: 500; font-size: .76rem; color: var(--accent); }
.footer__map:hover i { text-decoration: underline; text-underline-offset: .2em; }

.footer__brands { margin-top: clamp(20px, 3vw, 32px); padding-block: 14px; border-block: 1px solid var(--line-dark); }
.footer__brands .marquee__track { animation-duration: 70s; }
.site-footer .footer__brands a { font-size: clamp(1rem, 1.5vw, 1.35rem); color: var(--on-dark-faint); }
.site-footer .footer__brands a:hover { color: var(--on-dark); }
@media (prefers-reduced-motion: reduce) {
  .footer__brands .marquee__track { width: auto; flex-wrap: wrap; gap: 6px 18px; }
  .footer__brands a[aria-hidden] { display: none; }
}

.footer__word {
  margin-top: clamp(12px, 2vw, 24px);
  height: 19vw; overflow: hidden; text-align: center; line-height: .8; white-space: nowrap;
  pointer-events: none; user-select: none;
}
.footer__word span {
  display: inline-block;
  font-size: 48vw; font-weight: 700; letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--white-rgb), .18);
  will-change: transform;
}
@media (max-width: 767px) { .footer__word { height: 24vw; } }

/* Rev1 §3.4 — the last footer row is the one place on every page that can end up
   permanently under the fixed bottom UI, because there is nothing left to scroll.
   It reserves the same height the hero does. */
.footer__legal {
  padding-block: 16px calc(var(--bottom-ui-h) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; justify-content: space-between;
  font-size: .78rem; color: var(--on-dark-faint);
}
.footer__legal a { text-decoration: underline; text-underline-offset: .2em; }
.footer__legal a:hover { color: var(--on-dark); }
.footer__company { flex-basis: 100%; font-size: .72rem; }

/* -------------------------------------------------------------- CTA band */
.cta-band {
  background: var(--chrome-2); color: var(--on-dark);
  border-top: 1px solid var(--chrome-edge);
  padding-block: calc(var(--section-y) * .5);
}
.cta-band__inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .cta-band__inner { grid-template-columns: 1.5fr auto; }
}
.cta-band h2 { max-width: 16ch; }
.cta-band p { color: var(--on-dark-muted); margin-top: .9rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------ status chip */
.status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 500;
}
.status::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--fg-faint); flex: 0 0 auto;
}
.status.is-open::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-ring); }
.status.is-closed::before { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-ring); }

/* -------------------------------------------------------- section divider */
.tile-divider { display: flex; justify-content: center; margin: clamp(24px, 4vw, 40px) auto; }
.tile-divider svg { width: 76px; height: auto; opacity: .9; }
.tile-divider .ivas-tile { opacity: 0; transform: translateY(-10px) scale(.7); }
.no-js .tile-divider .ivas-tile,
.tile-divider.is-in .ivas-tile { opacity: 1; transform: none; }
.tile-divider.is-in .ivas-tile {
  transition: opacity 340ms var(--ease-out), transform 420ms var(--ease-back);
  transition-delay: calc(52ms * var(--t, 0));
}

/* ----------------------------------------------------------- product tile */
.product-grid {
  display: grid; gap: clamp(12px, 1.6vw, 20px);
  grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 42vw, 260px), 1fr));
}
.product-tile {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.product-tile:hover { border-color: var(--line-strong); }
@media (hover: none) { .product-tile:active { transform: scale(.985); } }
.product-tile__media {
  aspect-ratio: 4 / 3; background: var(--bg-sunken);
  position: relative; overflow: hidden;
}
.product-tile__media { display: block; }
.product-tile__media img { width: 100%; height: 100%; object-fit: cover; }

/* The tile title is a stretched link, so the quick view needs its own control
   that sits above it. Always visible on touch, on hover/focus with a mouse. */
.qv-btn {
  position: absolute; z-index: 3; top: 8px; right: 8px;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(var(--white-rgb), .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  color: var(--ink-strong);
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.qv-btn svg { width: 17px; height: 17px; }
.qv-btn:hover { background: var(--btn-primary); color: var(--btn-primary-fg); border-color: var(--btn-primary); }
@media (hover: hover) and (pointer: fine) {
  .qv-btn { opacity: 0; }
  .product-tile:hover .qv-btn,
  .product-tile:focus-within .qv-btn,
  .qv-btn:focus-visible { opacity: 1; }
}
.product-tile__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-tile__meta {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em;
  color: var(--ink-faint);
}
.product-tile__name {
  font-size: .92rem; font-weight: 600; line-height: 1.28; letter-spacing: -.005em;
  margin: 0;
}
.product-tile__name a::after { content: ''; position: absolute; inset: 0; }
.product-tile__foot {
  margin-top: auto; padding-top: .7rem;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.product-tile__price { font-size: .8rem; font-weight: 600; color: var(--ink-strong); }
.add-btn {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--ink-strong);
  flex: 0 0 auto;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.add-btn:hover { background: var(--btn-primary); color: var(--btn-primary-fg); border-color: var(--btn-primary); }
.add-btn.is-added { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.add-btn svg { width: 17px; height: 17px; }

/* ------------------------------------------------------------- filter bar */
.filter-bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .filter-bar { background: var(--bg); }
}
.filter-bar__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chips {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 36px; padding-inline: 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: .82rem; font-weight: 500; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.chip:hover { background: var(--bg-sunken); }
/* rev3 §6: 44px targets on phones */
@media (max-width: 767px) { .chip { min-height: 44px; } }
.chip.is-active { background: var(--btn-primary); color: var(--btn-primary-fg); border-color: var(--btn-primary); }
.chip__n { font-family: var(--font-mono); font-size: .68rem; opacity: .7; }

/* ---------------------------------------------------------------- inputs */
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-strong); }
.field .hint { font-size: .76rem; color: var(--ink-faint); }

/* On navy sections the default label colour measured 1.29:1 (Lighthouse). */
.section--dark .field label,
.section--dark .checkbox { color: var(--on-dark); }
.section--dark .field .hint { color: var(--on-dark-muted); }
.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;               /* keeps iOS from zooming on focus */
  background: var(--bg-raised);
  /* Set explicitly: the field sits on a white background even inside a navy
     section, where inheriting would make the text white-on-white. */
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.textarea { min-height: 128px; resize: vertical; }
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--danger); }
.field__error { font-size: .78rem; color: var(--danger); display: none; }
.field.has-error .field__error { display: block; }

.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--btn-primary); }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------------------------------------------------------------- sheets */
.sheet {
  position: fixed; inset: 0; z-index: var(--z-sheet);
  visibility: hidden;
}
.sheet.is-open { visibility: visible; }
.sheet__scrim {
  position: absolute; inset: 0;
  background: rgba(var(--navy-rgb), .5);
  opacity: 0; transition: opacity var(--dur) var(--ease-out);
}
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__panel {
  position: absolute; inset-inline: 0; bottom: 0;
  max-height: 88svh;
  display: flex; flex-direction: column;
  background: var(--bg-raised);
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform var(--dur-panel) var(--ease-panel);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overscroll-behavior: contain;
}
.sheet.is-open .sheet__panel { transform: translateY(0); }
.sheet__handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--skel);
  margin: 10px auto 4px; flex: 0 0 auto;
  touch-action: none;
}
.sheet__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 10px 18px; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.sheet__body { padding: 18px; overflow-y: auto; overscroll-behavior: contain; }
.sheet__foot { padding: 14px 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }

/* desktop: side drawer instead of a bottom sheet */
@media (min-width: 1024px) {
  .sheet--drawer .sheet__panel {
    inset: 0 0 0 auto; width: min(440px, 94vw); max-height: none;
    border-radius: 0; transform: translateX(100%);
  }
  .sheet--drawer.is-open .sheet__panel { transform: translateX(0); }
  .sheet--drawer .sheet__handle { display: none; }
}

/* ------------------------------------------------------------- assistant */
.assistant {
  position: fixed; inset: 0; z-index: var(--z-sheet);
  visibility: hidden;
}
.assistant.is-open { visibility: visible; }
@media (min-width: 1024px) {
  .assistant { inset: auto auto 92px 24px; width: 380px; height: 560px; }
  .assistant .sheet__scrim { display: none; }
  .assistant .sheet__panel {
    position: relative; inset: auto; width: 100%; height: 100%;
    max-height: none; border-radius: var(--r-glass);
    border: 1px solid var(--line-strong);
    box-shadow: 0 24px 60px rgba(var(--navy-rgb), .24);
    transform: translateY(16px) scale(.98); opacity: 0;
    transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
  }
  .assistant.is-open .sheet__panel { transform: none; opacity: 1; }
  .assistant .sheet__handle { display: none; }
}
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat__msg {
  max-width: 86%; padding: 10px 13px; border-radius: 14px;
  font-size: .88rem; line-height: 1.5;
}
.chat__msg--bot { background: var(--bg-sunken); border-bottom-left-radius: 5px; align-self: flex-start; }
.chat__msg--user { background: var(--btn-primary); color: var(--btn-primary-fg); border-bottom-right-radius: 5px; align-self: flex-end; }
.chat__msg p { margin: 0 0 .5em; max-width: none; }
.chat__msg p:last-child { margin: 0; }
.chat__msg a { color: inherit; text-decoration: underline; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chat__chip {
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 7px 12px; font-size: .78rem; font-weight: 500; min-height: 36px;
}
.chat__chip:hover { background: var(--btn-primary); color: var(--btn-primary-fg); border-color: var(--btn-primary); }
.chat__typing { display: flex; gap: 4px; padding: 12px 14px; }
.chat__typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--fg-faint);
  animation: typing 1.1s infinite;
}
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat__mini {
  display: flex; gap: 10px; align-items: center;
  padding: 8px; border: 1px solid var(--line); border-radius: var(--r-tile);
  background: var(--bg-raised); margin-top: 6px;
}
.chat__mini img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.chat__mini strong { display: block; font-size: .8rem; line-height: 1.3; }
.chat__mini span { font-size: .72rem; color: var(--ink-faint); }

.assistant__form { display: flex; gap: 8px; }
.assistant__form .input { min-height: 44px; }
.assistant__note {
  font-size: .7rem; color: var(--ink-faint); text-align: center;
  padding: 8px 18px calc(10px + env(safe-area-inset-bottom, 0px));
}

/* --------------------------------------------------------------- overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(var(--navy-rgb), .62);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  visibility: hidden; opacity: 0;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
  padding: clamp(16px, 8vh, 96px) var(--gutter);
  overflow-y: auto;
}
.search-overlay.is-open { visibility: visible; opacity: 1; }
.search-panel {
  max-width: 680px; margin-inline: auto;
  background: var(--bg-raised); border-radius: var(--r-glass);
  overflow: hidden;
}
.search-panel__head { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.search-panel__head .input { border: 0; box-shadow: none; }
.search-results { max-height: 58vh; overflow-y: auto; }
.search-results a {
  display: flex; gap: .8rem; align-items: center;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
}
.search-results a:hover, .search-results a.is-cursor { background: var(--bg-sunken); }
.search-results strong { font-size: .88rem; font-weight: 600; }
.search-results span { font-size: .74rem; color: var(--ink-faint); }
.search-empty { padding: 28px 18px; text-align: center; color: var(--ink-muted); font-size: .9rem; }

/* ------------------------------------------------------------- preloader
   Rev2 §2. Hidden unless the inline boot script says this is the first visit of
   the session, so no-JS and repeat visits never paint it. The 3s animation is a
   last-resort failsafe in case preloader.js itself never runs. */
.preloader { display: none; }
.pl-on .preloader, .preloader.is-exit, .preloader.is-reduced {
  display: block; position: fixed; inset: 0; z-index: var(--z-preloader);
  color: var(--on-dark); overflow: hidden;
}
.pl-on .preloader { animation: pl-failsafe 1ms linear 3s forwards; }
.preloader.is-exit { pointer-events: none; }
@keyframes pl-failsafe { to { visibility: hidden; } }
.preloader.is-done { display: none !important; }

.preloader__panel {
  position: absolute; left: 0; right: 0; height: calc(50% + 1px);
  background-color: var(--chrome);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='68' viewBox='0 0 120 68'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.045' stroke-width='2'%3E%3Cpath d='M60 2 118 34 60 66 2 34Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 68px;
  transition: transform 490ms var(--ease-in-out);
}
.preloader__panel--top { top: 0; background-position: 50% 100%; }
.preloader__panel--bot { bottom: 0; background-position: 50% 0; }
.preloader.is-exit .preloader__panel--top { transform: translateY(-101%); }
.preloader.is-exit .preloader__panel--bot { transform: translateY(101%); }

.preloader__stage {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  padding-bottom: 5vh;
}
.preloader__logo {
  display: block; position: relative;
  width: min(420px, 66vw); aspect-ratio: 2144 / 682;
  will-change: transform;
}
.preloader__logo svg { display: block; width: 100%; height: 100%; overflow: visible; }
[data-pl-tiles] polygon {
  fill: var(--chrome-fg);
  transform-box: fill-box; transform-origin: center;
  transform: scale(0);
  transition: transform 260ms var(--ease-out);
}
.preloader.is-run [data-pl-tiles] polygon { transform: scale(1.05); }
/* the light: one pass, inside the logo's own rounded box */
.preloader__sweep { mix-blend-mode: overlay; transform: translateX(-1100px); }
.preloader.is-run .preloader__sweep {
  transform: translateX(2300px);
  transition: transform 760ms cubic-bezier(.45,.05,.55,.95) 60ms;
}
.preloader__progress {
  width: min(240px, 50vw); height: 2px; overflow: hidden;
  background: rgba(var(--white-rgb), .14); border-radius: 1px;
  transition: opacity 160ms linear;
}
.preloader__progress i {
  display: block; height: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}
.preloader__count {
  margin: -10px 0 0; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em;
  color: var(--on-dark-faint); font-variant-numeric: tabular-nums;
  transition: opacity 160ms linear;
}
.preloader.is-exit .preloader__progress,
.preloader.is-exit .preloader__count { opacity: 0; }
.preloader.is-reduced [data-pl-tiles] polygon { transform: scale(1.05); transition: none; }
.preloader.is-reduced .preloader__progress,
.preloader.is-reduced .preloader__count { display: none; }

/* the real logo waits under the curtain, so preloader and navbar never show
   two logos at once */
.pl-on .hero__logo img { opacity: 0; }

/* arriving through a page wipe: the tiles are already up at first paint */
.is-transit .transition-layer { visibility: visible; }
.is-transit .transition-layer i { transform: scaleY(1); }

/* ------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(var(--navy-rgb), .93);
  display: grid; grid-template-rows: auto 1fr auto;
  visibility: hidden; opacity: 0;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox__head { display: flex; justify-content: flex-end; padding: 14px; }
.lightbox__stage { display: grid; place-items: center; padding: 0 clamp(8px, 4vw, 48px); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 74vh; object-fit: contain; border-radius: 8px; }
.lightbox__foot {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 14px calc(14px + env(safe-area-inset-bottom, 0px));
  color: var(--on-dark-muted); font-size: .82rem;
}

/* ---------------------------------------------------------- accordion */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 20px 0; text-align: left;
  font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em; line-height: 1.3;
}
.accordion__btn svg { width: 22px; height: 22px; flex: 0 0 auto; transition: transform var(--dur) var(--ease-out); }
.accordion__btn[aria-expanded='true'] svg { transform: rotate(180deg); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease-out); }
.accordion__panel > div { overflow: hidden; }
.accordion__btn[aria-expanded='true'] + .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel p { padding-bottom: 20px; color: var(--ink-muted); }

/* ------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; translate: -50% 0;
  bottom: calc(var(--bottom-row-h) + 16px + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-overlay);
  background: var(--chrome); color: var(--chrome-fg);
  padding: 11px 18px; border-radius: var(--r-pill);
  font-size: .84rem; font-weight: 500;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
  box-shadow: 0 10px 30px rgba(var(--navy-rgb), .3);
}
.toast { display: flex; align-items: center; gap: 12px; white-space: nowrap; max-width: calc(100vw - 24px); }
.toast__action {
  color: var(--accent); font-weight: 600; font-size: inherit; min-height: 28px;
  text-decoration: underline; text-underline-offset: .2em;
}
.toast :focus-visible { outline-color: var(--accent); }
.toast.is-shown { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1024px) { .toast { bottom: 24px; } }

/* -------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__slide.is-active img { animation: none !important; }
}

/* Unclassed links fall through to the global blue underline in base.css. On these
   surfaces the text colour already says "link", and blue on navy is unreadable. */
/* .btn inside a panel keeps its own colours (rev3: "Pogledaj sve" was navy on navy) */
:where(.mega a:not(.btn)), .mobile-menu a, .site-footer a { color: inherit; text-decoration: none; }

/* -------------------------------------------------------------------- korpa
   Rev2 §11. Mobile bottom sheet with a drag handle, desktop 420px drawer. */
.cart-fly {
  position: fixed; z-index: 120; pointer-events: none;
  border-radius: 12px; background: var(--btn-primary) center / cover no-repeat;
  box-shadow: 0 12px 30px rgba(var(--navy-rgb), .35);
}
.sheet--cart .sheet__panel {
  max-height: 90svh; height: 90svh;
  transition: transform var(--dur-panel) var(--ease-panel);
}
.sheet--cart .sheet__handle { width: 56px; height: 5px; margin-block: 10px 6px; cursor: grab; position: relative; }
.sheet--cart .sheet__handle::before { content: ''; position: absolute; inset: -12px -30px; }
@media (min-width: 1024px) {
  .sheet--cart .sheet__panel { width: 420px; height: auto; max-height: none; }
}
.sheet--cart .sheet__body { flex: 1; }
.cart-head { display: flex; align-items: baseline; gap: 10px; }
.cart-head strong { font-size: 1.1rem; }
.cart-head .mono { color: var(--ink-faint); font-size: .76rem; }
.cart-list { display: grid; }
.cart-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; gap: 12px;
  padding-block: 14px; border-bottom: 1px solid var(--line);
}
.cart-row:first-child { padding-top: 0; }
.cart-row__thumb {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  background: var(--bg-sunken); display: grid; place-items: center; color: var(--ink-faint);
}
.cart-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row__thumb svg { width: 24px; height: 24px; }
.cart-row__main { display: grid; gap: 8px; min-width: 0; }
.cart-row__main strong { font-size: .9rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.cart-row__variant select, .cart-row__note input {
  width: 100%; min-height: 44px; padding: 8px 10px; font-size: 16px; background: var(--bg-raised); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px;
}
.cart-row__note input::placeholder { color: var(--ink-faint); }
.cart-row__qty { display: flex; align-items: center; gap: 10px; }
.cart-row__unit { font-size: .84rem; color: var(--ink-muted); }
.stepper {
  display: inline-grid; grid-template-columns: 44px 56px 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden;
}
.stepper button { display: grid; place-items: center; }
.stepper button:hover { background: var(--bg-sunken); }
.stepper svg { width: 16px; height: 16px; }
.stepper input {
  width: 100%; border: 0; border-inline: 1px solid var(--line); text-align: center;
  font-size: 16px; font-variant-numeric: tabular-nums; background: transparent; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-row__rm { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-faint); }
.cart-row__rm:hover { background: var(--bg-sunken); color: var(--danger); }
.cart-row__rm svg { width: 18px; height: 18px; }
.cart-empty { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 40px 12px; color: var(--ink-muted); }
.cart-empty svg { width: 34px; height: 34px; margin-bottom: 8px; color: var(--ink-faint); }
.cart-empty p { margin: 0; }
.cart-empty strong { color: var(--ink); font-size: 1.05rem; }
.cart-empty__links { display: flex; gap: 8px; margin-top: 14px; }
.cart-sum { margin: 0; font-size: .92rem; }
.cart-note { margin: 0; font-size: .8rem; line-height: 1.4; color: var(--ink-faint); }
.cart-primary { width: 100%; min-height: 48px; }
.cart-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cart-actions .btn { min-height: 44px; padding-inline: 6px; font-size: .78rem; gap: .35rem; }
.cart-actions svg { width: 15px; height: 15px; }
.cart-form { display: grid; gap: 14px; }
.cart-form h3 { font-size: 1.15rem; }
.cart-form .field { position: static; }
.cart-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; justify-self: start; font-size: .84rem; font-weight: 600; color: var(--ink-strong); }
.cart-back svg { width: 16px; height: 16px; }
.cart-how { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.cart-how legend { padding: 0; margin-bottom: 6px; font-size: .82rem; font-weight: 600; color: var(--ink-strong); }
.cart-radio {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding-inline: 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-input); cursor: pointer; font-size: .92rem;
}
.cart-radio input { width: 20px; height: 20px; accent-color: var(--btn-primary); }
.cart-radio:has(input:checked) { border-color: var(--focus); background: var(--sel-bg); }
.cart-done { display: grid; gap: 12px; }
.cart-done.is-success { justify-items: center; text-align: center; padding-top: 16px; }
.cart-done h3 { font-size: 1.25rem; }
.cart-done p { margin: 0; color: var(--ink-muted); font-size: .92rem; }
.cart-done__ok { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-fg); }
.cart-done__ok svg { width: 26px; height: 26px; }
.cart-done__btns { display: grid; gap: 8px; }
.cart-done__list { width: 100%; text-align: left; border-top: 1px solid var(--line); }
.cart-done__list li { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-bottom: 1px solid var(--line); font-size: .86rem; }
.cart-done__list b { font-family: var(--font-mono); font-weight: 500; font-size: .8rem; white-space: nowrap; }
