/* ===================================================================
   TOY d.o.o. — Brand stilovi
   Izvor istine: skill "toybrend-identitet"
   Flat dizajn: bez gradijenata, sjena, glow efekata.
   =================================================================== */

:root {
  /* Brand — Core */
  --navy: #1C3761;
  --blue: #2E6DB4;

  /* Neutral */
  --black: #0D0D0D;
  --grey: #6B7080;
  --light: #E2E4E8;
  --white: #FFFFFF;

  /* Accent */
  --amber: #F59E0B;
  --teal: #0D9488;
  --red: #E53E3E;

  /* Radius / layout */
  --radius: 6px;
  --radius-lg: 12px;
  --container: 1680px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Loader (logo spin na bijeloj pozadini) ---------- */
.toy-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: opacity .45s ease, visibility .45s ease;
}
.toy-loader__logo {
  width: 240px;
  height: auto;
  transform-origin: center center;
  animation: toy-loader-spin 1.2s linear infinite;
}
.toy-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes toy-loader-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (max-width: 600px) {
  .toy-loader__logo { width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .toy-loader__logo { animation: none; }
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* Author display:flex/grid pravila nadjacavaju UA-stylesheet `[hidden] { display: none }`.
   Ovaj globalni override garantira da [hidden] uvijek sakriva element. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }

/* Ugasi pinch + double-tap zoom (dozvoljen samo skrol). Vidi i viewport meta + gesturestart JS. */
html, body { touch-action: pan-x pan-y; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--grey);        /* body tekst uvijek siv */
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  color: var(--navy);        /* headinzi uvijek navy */
  margin: 0;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 11px 22px;
  border-radius: 999px;            /* puni zaobljeni kao navbar */
  border: 1.5px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 13, 13, 0.12);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease,
              box-shadow .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(13, 13, 13, 0.18);
}

.btn--amber {
  background: var(--amber);
  color: var(--white);
}
.btn--amber:hover { background: #d98707; color: var(--white); }

.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover { background: #16294a; }

.btn--sky {
  background: #38BDF8;
  color: var(--white);
}
.btn--sky:hover { background: #0EA5E9; color: var(--white); }

.btn--red {
  background: var(--red);
  color: var(--white);
}
.btn--red:hover { background: #C53030; color: var(--white); }

.contact__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn--outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
  padding: 10px 22px;
}
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--lg { padding: 14px 28px; font-size: 15px; }
.btn--outline.btn--lg { padding: 13px 28px; }

/* ===================================================================
   NAVBAR
   =================================================================== */
.navbar {
  position: fixed;
  /* env(safe-area-inset-top): na mobitelu (notch/dynamic island/status bar) navbar
     se inace zna sakriti u tamni gornji dio. Ovim ga uvijek spustimo ispod njega.
     Na ekranima bez notcha inset je 0 pa ostaje 16px kao prije. */
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 50;
  padding-inline: 24px;
}

.navbar__bar {
  position: relative;
  max-width: calc(var(--container) - 48px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 60px;
  background: rgba(226, 228, 232, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 9px 12px 9px 22px;
}

.navbar__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 0;
  min-width: 0;
}
.navbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-end;
}

.navbar__brand {
  display: inline-flex;
  flex: none;
}
.navbar__logo {
  height: 22px;
  width: auto;
  flex: none;
  object-fit: contain;
}

/* jednake lijeva/desna polovica drže linkove u centru */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 0 0 auto;
}

.navbar__link {
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.navbar__link:hover { color: var(--blue); }

.navbar__search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 220px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(28, 55, 97, 0.15);
  border-radius: 999px;
  padding: 10px 18px;
}
.navbar__search svg {
  width: 18px;
  height: 18px;
  color: var(--grey);
  flex: none;
}
.navbar__search input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  width: 100%;
  min-width: 0;
  padding: 0;
}
.navbar__search input::placeholder { color: var(--grey); }
.navbar__search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ✕ za brisanje pretrage — vidi se samo kad ima upisanog teksta */
.navbar__search-clear {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--grey);
  border-radius: 50%;
  cursor: pointer;
}
.navbar__search-clear svg { width: 16px; height: 16px; }
.navbar__search-clear:hover { color: var(--navy); background: rgba(28, 55, 97, 0.08); }
.navbar__search-clear[hidden] { display: none; }

/* Strength meter lozinke (registracija) */
.pw-meter { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.pw-meter__bar { flex: 1; height: 6px; border-radius: 999px; background: var(--light); overflow: hidden; }
.pw-meter__fill { display: block; height: 100%; width: 0; border-radius: 999px; background: #e5484d; transition: width .2s ease, background .2s ease; }
.pw-meter__label { font-size: 12px; font-weight: 600; color: var(--grey); min-width: 64px; text-align: right; }
.pw-meter[data-level="0"] .pw-meter__fill { background: #e5484d; }
.pw-meter[data-level="1"] .pw-meter__fill { background: #f5a524; }
.pw-meter[data-level="2"] .pw-meter__fill { background: #e8c020; }
.pw-meter[data-level="3"] .pw-meter__fill { background: #6bbf59; }
.pw-meter[data-level="4"] .pw-meter__fill { background: #2fa84f; }

/* okrugli icon gumbi (favoriti + košarica) */
.navbar__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--white);
  transition: background-color .15s ease;
}
.navbar__icon-btn svg { width: 24px; height: 24px; }

.navbar__fav { background: var(--red); }
.navbar__fav:hover { background: #c53030; color: var(--white); }

.navbar__cart { background: var(--teal); }
.navbar__cart:hover { background: #0b7a70; color: var(--white); }
.navbar__icon-btn.is-bump { animation: icon-bump .32s ease; }
@keyframes icon-bump {
  0% { transform: scale(1); }
  45% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

/* točka koja leti do ikone u navbaru */
.fly-dot {
  position: fixed;
  z-index: 200;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.6);
  pointer-events: none;
  transform: translate(-50%, -50%);
}
/* varijanta za favorite — crvena, leti do srca */
.fly-dot--fav {
  background: var(--red);
  box-shadow: 0 2px 10px rgba(229, 62, 62, 0.6);
}

/* brojač na ikoni */
.navbar__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  border: 2px solid #E8EAEE;
}
.navbar__badge[hidden] { display: none; }

/* Prijava — amber gumb s tekstom + ikonom */
.navbar__login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color .15s ease;
}
.navbar__login:hover { background: #d98707; color: var(--white); }
.navbar__login svg { width: 18px; height: 18px; }

/* Prijavljen korisnik: krug s inicijalom umjesto teksta + ikone */
.navbar__login--avatar {
  width: 42px;
  height: 42px;
  padding: 0;
  gap: 0;
  border-radius: 50%;
  justify-content: center;
}
.navbar__avatar-letter {
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.navbar__toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

/* fiksni navbar plovi preko sadržaja: odmak za skok na sekcije */
.about, .products-section, .contact { scroll-margin-top: 96px; }

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: blur(5px);
  transform: scale(1.08); /* skriva rubove koje stvori blur */
}
.hero__overlay {
  position: absolute;
  inset: 0;
  /* tamnije lijevo da se tekst bolje vidi */
  background: linear-gradient(90deg,
    rgba(13, 13, 13, 0.58) 0%,
    rgba(13, 13, 13, 0.42) 45%,
    rgba(13, 13, 13, 0.22) 100%);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 820px);
  justify-content: start;
  align-items: center;
  gap: 56px;
  text-align: left;
}

.hero__content { min-width: 0; }

.hero__title {
  font-size: clamp(42px, 6.6vw, 82px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 24px;
  color: var(--white);
}

.hero__lead {
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin: 0 0 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  justify-content: flex-start;
}

/* amber CTA preko videa: mrvica prozirnosti */
.hero .btn--amber {
  background: rgba(245, 158, 11, 0.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero .btn--amber:hover { background: var(--amber); }

/* outline gumb mora biti bijel preko tamnog videa */
.hero .btn--outline {
  border-color: var(--white);
  color: var(--white);
}
.hero .btn--outline:hover {
  background: var(--white);
  color: var(--navy);
}

.hero__note { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin: 0; }
.hero__note a { font-weight: 600; color: var(--white); }
.hero__note a:hover { color: var(--amber); }

/* ===================================================================
   PROIZVODI
   =================================================================== */
.products-section {
  background: var(--white);
  padding: 128px 0 144px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.products-section__head {
  text-align: center;
  margin-bottom: 80px;
}
.products-section__head .section-label {
  font-size: 14px;
  margin-bottom: 18px;
}
.products-section__title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 22px;
}
.products-section__lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.6;
}

.products-section .container {
  max-width: 1680px;
}

/* ---- Naslov + sortiranje iznad mreže ---- */
.products-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
/* Kad ispod toolbara dolaze sub-chipovi, smanji razmak */
.products-toolbar:has(+ .cat-subs:not([hidden])) {
  margin-bottom: 14px;
}
.products-toolbar__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
}
/* ---- Filter (padajući izbornik za sortiranje) ---- */
.products-filter {
  position: relative;
}
.products-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.products-filter__btn:hover { background: var(--navy); color: var(--white); }
.products-filter__icon { width: 16px; height: 16px; }
.products-filter__caret {
  width: 16px; height: 16px;
  transition: transform .15s ease;
}
.products-filter__btn[aria-expanded="true"] .products-filter__caret { transform: rotate(180deg); }

.products-filter__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: var(--radius);
}
.products-filter__menu[hidden] { display: none; }
.products-filter__opt {
  text-align: left;
  border: none;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.products-filter__opt:hover { background: var(--light); }
.products-filter__opt.is-active {
  background: var(--navy);
  color: var(--white);
}

.products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--light);
  transition: transform .2s ease, box-shadow .2s ease;
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}
.product[hidden] { display: none; }
.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(13, 13, 13, 0.15);
}
/* pritiskom miša na sliku — slika se diskretno poveca unutar 1:1 okvira (ostaje kropana) */
.product:active {
  z-index: 5;
}

.product__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #F6F7F9;
  overflow: hidden;
}
.product__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  box-shadow:
    inset 0 0 0 1px rgba(13, 13, 13, 0.08),
    inset 0 -10px 24px -12px rgba(13, 13, 13, 0.10);
  transition: opacity .15s ease;
}

/* Popust badge — gornji lijevi kut slike, bijeli okvir s crvenim brojem */
.product__discount {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  background: var(--white);
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(229, 62, 62, 0.18);
  box-shadow: 0 2px 8px rgba(13, 13, 13, 0.10);
  pointer-events: none;
}
.pview__media .product__discount {
  top: 14px;
  left: 14px;
  font-size: 15px;
  padding: 6px 12px;
}
.product:active .product__media::after { opacity: 0; }
.product__media,
.product__media img { -webkit-tap-highlight-color: transparent; }
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease, box-shadow .25s ease, border-radius .25s ease;
}
.product:active .product__media img {
  transform: scale(1.06);
}

/* Favorit ikona u kutu slike */
.product__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.product__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.product__action svg { width: 22px; height: 22px; }
.product__action:hover { background: var(--navy); color: var(--white); }
.product__action--fav svg { fill: none; }
.product__action--fav.is-active { background: var(--red); color: var(--white); }
.product__action--fav.is-active svg { fill: currentColor; }

/* "Ubaci u košaricu" gumb na dnu kartice (ikona + tekst) */
.product__cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 10px 14px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.product__cart-btn svg { width: 20px; height: 20px; flex: none; }
.product__cart-btn:hover { background: var(--navy); color: var(--white); }
.product__cart-btn:active { transform: scale(0.98); }
.product__cart-btn.is-added {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.product__cart-btn.is-added:hover { background: #0b7a70; border-color: #0b7a70; }

/* info blok odvojen bojom (light grey), bez linije */
.product__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--light);
  padding: 16px 18px 18px;
}
.product__name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.product__meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin: 0 0 12px;
  min-width: 0;
}
.product__code,
.product__dim {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.products__empty {
  text-align: center;
  font-size: 15px;
  color: var(--grey);
  padding: 24px 0;
}

/* ---- Straničenje ---- */
.pagination {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pagination[hidden] { display: none; }
.pagination__info {
  font-size: 13px;
  color: var(--grey);
  margin: 0;
}
.pagination__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pagination__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--light);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pagination__btn:hover:not(:disabled):not(.is-active) {
  background: var(--light);
  border-color: var(--navy);
}
.pagination__btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  cursor: default;
}
.pagination__btn:disabled {
  background: var(--light);
  border-color: var(--light);
  color: var(--grey);
  cursor: not-allowed;
}
.pagination__ellipsis {
  min-width: 24px;
  text-align: center;
  color: var(--grey);
  font-weight: 700;
}

/* ===================================================================
   KATEGORIJE (unutar proizvoda, iznad mreže)
   =================================================================== */
.products-cats {
  margin-bottom: 48px;
}
.products-cats__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.cat-menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
@media (max-width: 560px) {
  .cat-menu {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .cat-menu__group { padding: 10px 12px; min-height: 56px; }
  .cat-menu__head { font-size: 14px; }
  .cat-menu__chevron { width: 16px; height: 16px; }
}
.cat-menu__group {
  background: var(--light);
  border: none;
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  font: inherit;
  text-align: center;
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.cat-menu__group--has-subs { cursor: pointer; }
.cat-menu__group--has-subs:hover,
.cat-menu__group.is-open {
  background: #d8dbe2;
  box-shadow: 0 6px 18px rgba(13, 13, 13, 0.08);
}
.cat-menu__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.cat-menu__chevron {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--blue);
  transition: transform .25s ease;
}
.cat-menu__group--has-subs:hover .cat-menu__chevron,
.cat-menu__group.is-open .cat-menu__chevron { transform: rotate(180deg); }

/* podkategorije skrivene dok ne pređeš mišem (ili tapneš na mobitelu) */
.cat-menu__subs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .3s ease, opacity .2s ease, margin-top .25s ease;
}
.cat-menu__group--has-subs:hover .cat-menu__subs,
.cat-menu__group.is-open .cat-menu__subs {
  max-height: 320px;
  opacity: 1;
  margin-top: 12px;
}
.cat-menu__sub {
  font-size: 14px;
  color: var(--grey);
}

/* Aktivna glavna kategorija (kliknuta) */
.cat-menu__group.is-active {
  background: var(--navy);
}
.cat-menu__group.is-active .cat-menu__head,
.cat-menu__group.is-active .cat-menu__chevron {
  color: #fff;
}

/* ===================================================================
   SUB-CHIPS BAR (iznad proizvoda, pojavljuje se kad se klikne main kat.)
   =================================================================== */
.cat-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
}
.cat-subs__chip {
  appearance: none;
  border: 1.5px solid var(--light);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms, color 120ms, border-color 120ms;
  white-space: nowrap;
}
.cat-subs__chip:hover {
  background: var(--light);
}
.cat-subs__chip.is-active {
  background: var(--amber, #F59E0B);
  border-color: var(--amber, #F59E0B);
  color: #fff;
}
.cat-subs__chip__count {
  font-weight: 500;
  opacity: 0.7;
  margin-left: 4px;
}
@media (max-width: 560px) {
  .cat-subs {
    overflow-x: auto;
    flex-wrap: nowrap;
    margin: 0 -16px 20px;
    padding: 0 16px 4px;
    scrollbar-width: thin;
  }
  .cat-subs__chip {
    flex-shrink: 0;
  }
}

/* ===================================================================
   O NAMA
   =================================================================== */
.about {
  background-color: var(--light);
  background-image: linear-gradient(to bottom, #ffffff 0px, var(--light) 140px);
  background-repeat: no-repeat;
  padding: 84px 0;
}
.about__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}
.about__title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 10px 0 18px;
}
.about__lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--black);
  margin: 0 0 16px;
}
.about__text { margin: 0 0 26px; }

.about__rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
}
.about__rating-score {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.about__rating-stars {
  color: var(--amber);
  font-size: 16px;
  letter-spacing: 2px;
}
.about__rating-meta {
  font-size: 13px;
  color: var(--grey);
}

.about__units {
  display: grid;
  gap: 16px;
  align-content: start;
}
.about__units-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 2px;
}
.unit {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  box-shadow: 0 4px 16px rgba(13, 13, 13, 0.06);
}
.unit--blue { border-left-color: var(--blue); }
.unit--amber { border-left-color: var(--amber); }
.unit__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.unit--blue .unit__tag { background: rgba(46, 109, 180, 0.12); color: var(--blue); }
.unit--amber .unit__tag { background: rgba(245, 158, 11, 0.16); color: #b87708; }
.unit__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}
.unit__addr {
  font-size: 14px;
  color: var(--grey);
  margin: 0;
  line-height: 1.5;
}

/* ===================================================================
   KONTAKT
   =================================================================== */
.contact {
  background: var(--white);
  padding: 84px 0 96px;
}
.contact__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: stretch;
}
.contact__title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 10px 0 28px;
}
.contact__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 20px;
}
.contact__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}
.contact__value {
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
}
.contact__value a { color: var(--blue); font-weight: 600; }
.contact__value a:hover { color: var(--navy); }

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--light);
  min-height: 380px;
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .75);
  /* viewport-fit=cover: navy footer popuni i zonu home indicatora na dnu */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 48px;
}
@media (max-width: 980px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}
@media (max-width: 560px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer__logo {
  height: 40px;
  width: auto;
  flex: none;
  object-fit: contain;
  margin-bottom: 18px;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .7);
  max-width: 320px;
  margin: 0;
}

.footer__heading {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  padding: 4px 0;
}
.footer__link:hover { color: var(--white); }

.footer__text {
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
  margin: 0 0 6px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}
.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

/* ===================================================================
   DRAWERI — košarica + favoriti
   =================================================================== */
.cpage {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--white);
  overflow-y: auto;
  /* viewport-fit=cover: ostavi prostor za home indicator na dnu */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  opacity: 0;
  transition: opacity .2s ease;
}
.cpage.is-open { opacity: 1; }
.cpage[hidden] { display: none; }

.cpage__topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light);
  /* strelica natrag ne smije zavuci pod notch/status bar */
  padding-top: env(safe-area-inset-top, 0px);
}
.cpage__topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 14px;
}
.cpage__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  padding: 12px 20px 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .12s ease;
}
.cpage__back:hover { background: var(--navy); color: var(--white); }
.cpage__back:active { transform: scale(0.98); }
.cpage__back svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 600px) {
  .cpage__back { padding: 10px 16px 10px 14px; font-size: 13.5px; gap: 8px; }
  .cpage__back svg { width: 17px; height: 17px; }
}
.cpage__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cpage__body { padding: 32px 0 72px; }
.cpage__inner {
  max-width: 760px;
  margin-inline: auto;
}
.cpage__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer__empty {
  text-align: center;
  color: var(--grey);
  font-size: 15px;
  padding: 64px 12px;
}

.cpage__foot {
  margin-top: 28px;
  border-top: 1px solid var(--light);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cpage__foot[hidden] { display: none; }
.drawer__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}
.drawer__summary span:last-child { color: var(--grey); font-weight: 400; }
.drawer__cta { width: 100%; }

/* ---- Stavka košarice ---- */
.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light);
}
.cart-item:last-child { border-bottom: none; padding-bottom: 0; }
.cart-item__img {
  flex: none;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--light);
}
.cart-item__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.cart-item__titles { min-width: 0; }
.cart-item__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.cart-item__code {
  font-size: 12px;
  color: var(--grey);
  margin: 2px 0 0;
}
.cart-item__remove {
  flex: none;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--grey);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.cart-item__remove svg { width: 16px; height: 16px; }
.cart-item__remove:hover { background: var(--light); color: var(--red); }

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-item__ctl-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--light);
  border-radius: 999px;
  overflow: hidden;
}
.qty__btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--white);
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.qty__btn:hover { background: var(--navy); color: var(--white); }
.qty__input {
  width: 44px;
  height: 32px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--light);
  border-right: 1px solid var(--light);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; }

.cart-item__note {
  width: 100%;
  resize: vertical;
  min-height: 40px;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--black);
  background: var(--light);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 8px 10px;
}
.cart-item__note::placeholder { color: var(--grey); }
.cart-item__note:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}

/* ---- Stavka favorita ---- */
.fav-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light);
}
.fav-item:last-child { border-bottom: none; padding-bottom: 0; }
.fav-item__img {
  flex: none;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--light);
}
.fav-item__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fav-item__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.fav-item__code {
  font-size: 12px;
  color: var(--grey);
  margin: 0 0 8px;
}
.fav-item__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.btn--sm { padding: 8px 14px; font-size: 13px; }
.drawer__addcart.is-added {
  background: var(--teal);
  border-color: var(--teal);
  cursor: default;
}
.fav-item__remove {
  border: none;
  background: transparent;
  color: var(--grey);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
  transition: color .15s ease;
}
.fav-item__remove:hover { color: var(--red); }

/* ---- Globalna napomena za cijelu narudzbu (samo u kosarici) ---- */
.cart-globalnote {
  background: var(--white);
  border: 1px solid var(--light);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart-globalnote__head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.cart-globalnote__hint {
  font-size: 13px;
  color: var(--grey);
  margin: 0;
  line-height: 1.5;
}
.cart-globalnote__ta {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--black);
  background: var(--light);
  border: 1px solid var(--light);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 2px;
}
.cart-globalnote__ta::placeholder { color: var(--grey); }
.cart-globalnote__ta:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}

/* ---- Full-screen layout pojacanje (>=1100px): vise prostora, vece kartice ---- */
@media (min-width: 1100px) {
  /* Kosarica — kartice umjesto liste, vise prostora, citljiviji tipografija */
  #cartPage { background: var(--light); }
  #cartPage .cpage__inner { max-width: 1080px; }
  #cartPage .cpage__list { gap: 22px; }
  #cartPage .cart-item {
    gap: 24px;
    padding: 22px 24px;
    background: var(--white);
    border: 1px solid var(--light);
    border-radius: 16px;
    border-bottom: 1px solid var(--light);
  }
  #cartPage .cart-item:last-child { padding-bottom: 22px; border-bottom: 1px solid var(--light); }
  #cartPage .cart-item__img { width: 140px; height: 140px; }
  #cartPage .cart-item__name { font-size: 18px; color: var(--navy); }
  #cartPage .cart-item__code { font-size: 13.5px; }
  #cartPage .cart-item__note { min-height: 64px; font-size: 14px; }
  #cartPage .qty__btn { width: 38px; height: 38px; font-size: 20px; }
  #cartPage .qty__input { width: 56px; height: 38px; font-size: 15px; }
  #cartPage .cpage__foot {
    background: var(--white);
    border: 1px solid var(--light);
    border-radius: 16px;
    padding: 22px 24px;
    margin-top: 28px;
  }
  #cartPage .cart-globalnote { padding: 20px 22px; }
  #cartPage .cart-globalnote__ta { min-height: 96px; }

  /* Favoriti — sira kolona + 2-stupcani grid */
  #favPage .cpage__inner { max-width: 1180px; }
  #favPage .cpage__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
  }
  #favPage .fav-item {
    gap: 20px;
    padding: 20px 22px;
    background: var(--white);
    border: 1px solid var(--light);
    border-radius: 16px;
    border-bottom: 1px solid var(--light);
    align-items: stretch;
  }
  #favPage .fav-item:last-child { padding-bottom: 20px; border-bottom: 1px solid var(--light); }
  #favPage .fav-item__img {
    width: 128px;
    height: 128px;
    border: 1px solid var(--light);
  }
  #favPage .fav-item__name { font-size: 17px; color: var(--navy); }
  #favPage .fav-item__code { font-size: 13.5px; margin-bottom: 12px; }
  #favPage .fav-item__actions { gap: 14px; }
  #favPage .fav-item .btn--sm { padding: 11px 20px; font-size: 14px; }
  #favPage .fav-item__remove { font-size: 14px; }
  #favPage { background: var(--light); }
}

/* Manje pojacanje za srednje sirine (>=900px): fav prelazi u 2 stupca, kosarica ostaje lista */
@media (min-width: 900px) and (max-width: 1099px) {
  #favPage .cpage__inner { max-width: 920px; }
  #favPage .cpage__list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
  #favPage .fav-item__img { width: 96px; height: 96px; }
  #favPage .fav-item__name { font-size: 16px; }
}

/* ===================================================================
   DETALJ PROIZVODA (preko cijelog ekrana)
   =================================================================== */
.pview {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--white);
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  opacity: 0;
  transition: opacity .2s ease;
}
.pview.is-open { opacity: 1; }
.pview[hidden] { display: none; }

.pview__topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light);
  padding-top: env(safe-area-inset-top, 0px);
}
.pview__topbar-inner { padding-block: 14px; }
.pview__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  padding: 12px 20px 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .12s ease;
}
.pview__back:hover { background: var(--navy); color: var(--white); }
.pview__back:active { transform: scale(0.98); }
.pview__back svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 600px) {
  .pview__back { padding: 10px 16px 10px 14px; font-size: 13.5px; gap: 8px; }
  .pview__back svg { width: 17px; height: 17px; }
}

.pview__body { padding: 40px 0 64px; }
.pview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.pview__gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pview__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
}
.pview__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  transition: opacity 0.18s ease;
}
.pview__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(28, 55, 97, 0.18);
  transition: background 0.16s ease, transform 0.16s ease;
  z-index: 2;
}
.pview__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}
.pview__nav:active {
  transform: translateY(-50%) scale(0.96);
}
.pview__nav svg {
  width: 22px;
  height: 22px;
}
.pview__nav--prev { left: 14px; }
.pview__nav--next { right: 14px; }
.pview__counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(28, 55, 97, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}
.pview__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84px;
  gap: 10px;
  overflow-x: auto;
  padding: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.pview__thumbs::-webkit-scrollbar { height: 6px; }
.pview__thumbs::-webkit-scrollbar-thumb { background: #cfd5dd; border-radius: 999px; }
.pview__thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: var(--light);
  cursor: pointer;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.pview__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pview__thumb:hover { transform: translateY(-1px); }
.pview__thumb.is-active {
  border-color: var(--amber);
}
@media (max-width: 640px) {
  .pview__nav { width: 38px; height: 38px; }
  .pview__nav--prev { left: 8px; }
  .pview__nav--next { right: 8px; }
  .pview__thumbs { grid-auto-columns: 68px; gap: 8px; }
}

.pview__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.pview__code {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.pview__name {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 8px 0 18px;
}
.pview__price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.pview__price svg { width: 17px; height: 17px; color: var(--grey); }

.pview__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey);
  margin: 0 0 24px;
}

.pview__specs {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 0;
}
.pview__specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light);
  font-size: 15px;
}
.pview__specs li:first-child { border-top: 1px solid var(--light); }
.pview__specs .spec-label { color: var(--grey); }
.pview__specs .spec-value { color: var(--navy); font-weight: 600; text-align: right; }

.pview__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
}
.pview__cart { flex: 1 1 auto; }
.pview__cart.is-added { background: var(--teal); }
.pview__cart.is-added:hover { background: #0b7a70; }
.pview__fav {
  flex: none;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--light);
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 13, 13, 0.12);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.pview__fav:hover { transform: translateY(-1px); }
.pview__fav svg { width: 22px; height: 22px; fill: none; }
.pview__fav.is-active { background: var(--red); border-color: var(--red); color: var(--white); }
.pview__fav.is-active svg { fill: currentColor; }

.pview__login {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.pview__login:hover { color: var(--navy); }

body.pview-lock { overflow: hidden; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1400px) {
  .products { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1100px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .about__inner,
  .contact__inner { grid-template-columns: 1fr; gap: 36px; }
  .about { padding: 60px 0; }
  .contact { padding: 60px 0 72px; }
  .about__title,
  .contact__title { font-size: 28px; }

  .pview__grid { grid-template-columns: 1fr; gap: 28px; }
  .pview__body { padding: 28px 0 56px; }
  .pview__name { font-size: 26px; }
}

@media (max-width: 900px) {
  .hero__inner { gap: 40px; }
}

@media (max-width: 680px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .products-section { padding: 80px 0 88px; }
  .products-section__head { margin-bottom: 56px; }
  .products-section__head .section-label { font-size: 12px; margin-bottom: 14px; }
  .products-section__title { font-size: 36px; line-height: 1.15; }
  .products-section__lead { font-size: 16px; }
  .pagination__bar { gap: 6px; }
  .pagination__btn { min-width: 38px; height: 38px; padding: 0 10px; font-size: 13px; }
}

@media (max-width: 768px) {
  .navbar__toggle { display: flex; }

  .navbar__nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(237, 238, 241, 0.96);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 8px 18px 16px;
    border-radius: var(--radius-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .navbar__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .navbar__link {
    padding: 14px 2px;
    font-size: 15px;
    border-bottom: 1px solid rgba(28, 55, 97, .1);
  }

  /* Tijesni razmaci da sve stane u jedan red */
  .navbar { padding-inline: 14px; }
  .navbar__bar { gap: 10px; padding: 9px 12px 9px 14px; }
  .navbar__left { flex: 1 1 auto; gap: 10px; }
  /* desna grupa zadržava prirodnu širinu i ne stišće se */
  .navbar__right { flex: 0 0 auto; gap: 8px; }
  .navbar__brand { flex: none; }
  .navbar__icon-btn { width: 44px; height: 44px; }
  .navbar__icon-btn svg { width: 22px; height: 22px; }
  .navbar__toggle { width: 40px; height: 40px; }

  /* Pretraga skupljena na lupu; širi se na klik */
  .navbar__search {
    flex: none;
    width: 40px;
    height: 40px;
    min-width: 0;
    padding: 0;
    gap: 0;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
  }
  .navbar__search input {
    width: 0;
    flex: none;
    min-width: 0;
    padding: 0;
    pointer-events: none;
  }
  /* prošireno: overlay preko cijelog navbar reda (sidri na .navbar__bar) da se vidi cijelo "Pretraži…" */
  .navbar__search.is-expanded {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: 44px;
    z-index: 50;
    gap: 10px;
    padding: 0 16px;
    justify-content: flex-start;
    background: var(--white);
    box-shadow: 0 4px 16px rgba(28, 55, 97, 0.14);
  }
  .navbar__search.is-expanded input {
    width: 100%;
    flex: 1;
    pointer-events: auto;
    font-size: 16px;   /* >=16px = nema iOS zoom-on-focus + ugodnije za tipkanje */
  }

  /* Prijava se skuplja na ikonu */
  .navbar__login {
    padding: 0;
    width: 40px;
    height: 40px;
    justify-content: center;
  }
  .navbar__login-text { display: none; }

  .product__actions { top: 8px; right: 8px; gap: 6px; }
  .product__action { width: 36px; height: 36px; }
  .product__action svg { width: 18px; height: 18px; }
  .product__cart-btn { font-size: 13px; padding: 9px 12px; }
  .product__cart-btn svg { width: 17px; height: 17px; }

  .hero { padding: 48px 0 64px; }
  .hero__actions { flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
  .hero__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 14px;
    font-size: 14px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .products-cats { margin-bottom: 36px; }
  .products-cats__title { font-size: 18px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; text-align: left; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .about__units-title { font-size: 17px; }
}

/* ===================================================================
   AUTH STRANICE — prijava + registracija
   =================================================================== */
.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--light);
}

.auth-header {
  background: var(--white);
  border-bottom: 1px solid rgba(28, 55, 97, 0.08);
}
.auth-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  gap: 16px;
}
.auth-header__back { justify-self: start; }
.auth-header__brand { display: inline-flex; flex: none; justify-self: center; grid-column: 2; }
.auth-header__logo { height: 26px; width: auto; flex: none; object-fit: contain; }
.auth-header__back {
  font-size: 14px;
  font-weight: 600;
  color: var(--grey);
}
.auth-header__back:hover { color: var(--navy); }
.auth-header__back--btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: background-color .15s ease, color .15s ease, transform .12s ease;
}
.auth-header__back--btn svg { width: 20px; height: 20px; flex: none; }
.auth-header__back--btn:hover { background: var(--navy); color: var(--white); }
.auth-header__back--btn:active { transform: scale(0.98); }

@media (max-width: 600px) {
  .auth-header__back--btn { padding: 10px 16px 10px 14px; font-size: 13.5px; gap: 8px; }
  .auth-header__back--btn svg { width: 17px; height: 17px; }
  .auth-header__back--btn span { white-space: nowrap; }
  .auth-header__logo { height: 22px; }
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 24px 72px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid rgba(28, 55, 97, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.auth-card--wide { max-width: 860px; }

.auth-card__head { text-align: center; margin-bottom: 28px; }
.auth-card__title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 8px 0 8px;
}
.auth-card__lead {
  font-size: 15px;
  color: var(--grey);
  margin: 0;
}

/* ---------- Forme ---------- */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.fieldset {
  border: 1px solid rgba(28, 55, 97, 0.12);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  margin: 0;
}
.fieldset__legend {
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.field__req { color: var(--red); margin-left: 2px; }
.field__hint { font-size: 12px; color: var(--grey); margin: 2px 0 0; }

.field__input,
.field__select {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--light);
  border-radius: var(--radius);
  padding: 11px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__input::placeholder { color: var(--grey); }
.field__input:focus,
.field__select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 109, 180, 0.15);
}
.field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.btn--block { width: 100%; }

.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grey);
  cursor: pointer;
}
.auth-check input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }

.auth-check--terms {
  display: flex;
  align-items: flex-start;
  margin: 16px 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}
.auth-check--terms input { margin-top: 3px; flex-shrink: 0; }
.auth-check--terms a {
  color: var(--blue);
  text-decoration: underline;
  font-weight: 600;
}
.auth-check--terms a:hover { color: var(--navy); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
  color: var(--grey);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--light);
}

.auth-alt {
  text-align: center;
  font-size: 14px;
  color: var(--grey);
  margin: 20px 0 0;
}

.form-note {
  font-size: 13px;
  color: var(--red);
  text-align: right;
  margin: 4px 0 0;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

/* Pomoc pri registraciji: vizualno odvojeno ispod glavnog akcionog gumba,
   da kupcima bude jasno gdje kliknuti ako registracija ne ide. */
.form-help {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.form-help__hint {
  margin: 0;
  font-size: 14px;
  color: var(--grey);
}

/* ---------- Stepper (zaboravljena lozinka) ---------- */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 26px;
}
.auth-steps__dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--grey);
  background: var(--light);
  transition: background-color .2s ease, color .2s ease;
}
.auth-steps__dot.is-active { background: var(--navy); color: var(--white); }
.auth-steps__dot.is-done { background: var(--blue); color: var(--white); }
.auth-steps__line { width: 26px; height: 2px; background: var(--light); }

.auth-step { display: none; }
.auth-step.is-active { display: flex; flex-direction: column; gap: 16px; }

.field__input--code {
  text-align: center;
  letter-spacing: 0.4em;
  font-size: 22px;
  font-weight: 700;
  padding-right: 0;
}

.auth-resend {
  text-align: center;
  font-size: 14px;
  color: var(--grey);
  margin: 0;
}

.auth-success {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.auth-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.auth-success__icon svg { width: 28px; height: 28px; }

@media (max-width: 640px) {
  .auth-card { padding: 28px 20px; }
  .auth-card--wide { max-width: 440px; }
  .field-grid { grid-template-columns: 1fr; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { width: 100%; }
  .form-help .btn { width: 100%; }
}

/* ---------- 404 / Not Found ---------- */
.nf-body {
  min-height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.nf-back {
  position: fixed;
  top: 28px;
  left: 28px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
  z-index: 10;
}
.nf-back:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateX(-4px);
}
.nf-back svg { width: 32px; height: 32px; }

.nf-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  gap: 18px;
}
.nf-code {
  font-size: clamp(140px, 22vw, 240px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--blue);
  margin: 0;
}
.nf-text {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  max-width: 520px;
}
.nf-cta { margin-top: 12px; }

@media (max-width: 640px) {
  .nf-back {
    top: 16px;
    left: 16px;
    width: 52px;
    height: 52px;
  }
  .nf-back svg { width: 26px; height: 26px; }
}

/* ===== IMAGE LIGHTBOX (povecavanje slika) ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: lb-fade-in 0.18s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}
.lightbox__close {
  position: absolute;
  top: max(18px, env(safe-area-inset-top, 0px));
  right: max(20px, env(safe-area-inset-right, 0px));
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}
.lightbox__close:active { transform: scale(0.94); }

.cart-item__img,
.fav-item__img,
.order-item__img {
  cursor: zoom-in;
}

@keyframes lb-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox__close {
    width: 44px;
    height: 44px;
    font-size: 26px;
    top: max(14px, env(safe-area-inset-top, 0px));
    right: max(14px, env(safe-area-inset-right, 0px));
  }
}

/* ===== SUCCESS POP (animirana potvrda — narudžba, registracija, pomoć) ===== */
.success-pop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 13, 13, 0.42);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.success-pop.is-visible { opacity: 1; }
.success-pop.is-leaving { opacity: 0; }
.success-pop__card {
  background: #fff;
  border-radius: 18px;
  padding: 30px 34px 28px;
  min-width: 260px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  transform: scale(0.86) translateY(10px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(.2,.7,.4,1), opacity 0.22s ease;
}
.success-pop.is-visible .success-pop__card { transform: scale(1) translateY(0); opacity: 1; }
.success-pop.is-leaving .success-pop__card { transform: scale(0.96); opacity: 0; }
.success-pop__check {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  display: block;
}
.success-pop__circle {
  fill: none;
  stroke: #0D9488;
  stroke-width: 3;
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  animation: sp-draw-circle 0.5s 0.05s ease forwards;
}
.success-pop__tick {
  fill: none;
  stroke: #0D9488;
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: sp-draw-tick 0.32s 0.45s ease forwards;
}
.success-pop__text {
  margin: 0;
  color: #0D0D0D;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}
@keyframes sp-draw-circle { to { stroke-dashoffset: 0; } }
@keyframes sp-draw-tick { to { stroke-dashoffset: 0; } }

@media (max-width: 480px) {
  .success-pop__card { padding: 26px 22px 24px; min-width: 0; width: 100%; }
  .success-pop__check { width: 64px; height: 64px; }
  .success-pop__text { font-size: 15px; }
}

/* ============ LEGAL (politika privatnosti, uvjeti, kolacici) ============ */
.legal-main {
  padding: 56px 0 96px;
  background: #fff;
  min-height: calc(100vh - 80px);
}
.legal {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--navy, #1C3761);
}
.legal__head {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #E5E7EB;
}
.legal__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 12px 0 8px;
  color: var(--navy, #1C3761);
}
.legal__updated {
  color: #6B7280;
  font-size: 14px;
  margin: 0;
}
.legal__section { margin-bottom: 32px; }
.legal__section h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy, #1C3761);
  margin: 0 0 12px;
}
.legal__section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy, #1C3761);
  margin: 20px 0 8px;
}
.legal__section p,
.legal__section li {
  font-size: 15px;
  line-height: 1.65;
  color: #374151;
}
.legal__section ul { padding-left: 22px; margin: 8px 0 12px; }
.legal__section li { margin-bottom: 6px; }
.legal__section a { color: var(--blue, #2E6DB4); text-decoration: underline; }
.legal__section a:hover { color: var(--navy, #1C3761); }
.legal__section strong { color: var(--navy, #1C3761); }
.legal__section code {
  background: #F3F4F6;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--navy, #1C3761);
}
.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}
.legal__table th,
.legal__table td {
  border: 1px solid #E5E7EB;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal__table th {
  background: #F9FAFB;
  font-weight: 700;
  color: var(--navy, #1C3761);
}
.legal__back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
  text-align: center;
}
.legal__back a {
  color: var(--blue, #2E6DB4);
  font-weight: 600;
  text-decoration: none;
}
.legal__back a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .legal-main { padding: 32px 0 64px; }
  .legal__table { font-size: 13px; }
  .legal__table th, .legal__table td { padding: 8px 10px; }
}

/* ============ AUTH FOOTER (legal links na auth/legal stranicama) ============ */
.auth-footer {
  padding: 24px 16px 32px;
  text-align: center;
  font-size: 13px;
  color: #6B7280;
}
.auth-footer__links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 8px;
}
.auth-footer__links a {
  color: var(--navy, #1C3761);
  text-decoration: none;
  font-weight: 600;
}
.auth-footer__links a:hover { text-decoration: underline; }
.auth-footer__copy {
  margin: 0;
  color: #9CA3AF;
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid #E5E7EB;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  padding: 16px 0;
  transform: translateY(100%);
  transition: transform 280ms ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  min-width: 280px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}
.cookie-banner__text a {
  color: var(--blue, #2E6DB4);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-banner { padding: 14px 0; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__actions .btn { flex: 1; }
}
