/* font Inter na nasem serveru (bez Google Fonts - brze ucitavanje).
   inter-hr = osnovna latinica + hrvatska slova u JEDNOJ datoteci (47 KB umjesto 48 + 85 KB).
   latin-ext se skida samo ako stranica ima neko rijetko slovo (npr. ł, ő) - zadnje pravilo ima prednost. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/katalog/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/katalog/fonts/inter-hr-wght.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0106-0107,U+010C-010D,U+0110-0111,U+0131,U+0152-0153,U+0160-0161,U+017D-017E,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  /* boje su malo tamnije radi citljivosti (kontrast prema WCAG smjernicama) */
  --teal: #0b816d;
  --teal-d: #0a6b5b;
  --teal-l: #e7f6f3;
  --ink: #12323f;
  --ink-2: #4a5d66;
  --muted: #5f6e75;
  --line: #e3e8ea;
  --bg: #f6f8f8;
  --card: #ffffff;
  --red: #c0392b;
  --radius: 12px;
  /* dodatno za tamnu temu (u svijetloj iste boje kao prije) */
  --teal-t: #0a6b5b;      /* teal kao boja teksta */
  --teal-line: #cfe9e3;
  --line-2: #cfd8dc;
  --field: #fbfcfc;       /* pozadina polja za unos */
  --img: #ffffff;         /* podloga slika proizvoda */
  --err-bg: #fdf1ef;
  --err-line: #f3cfc9;
  --ink-bg: #12323f;      /* tamna podloga s bijelim tekstom */
  --foot-bg: #12323f;
  --ph: #b9c4c8;
  --sw-off: rgba(236,240,242,.62);
}
/* tamna tema: <html data-theme="dark"> (postavlja skripta u <head> prema postavci ili sustavu) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --teal-t: #5fd4bb;
  --teal-l: #133a33;
  --teal-line: #22584e;
  --ink: #e4ecef;
  --ink-2: #b6c6cc;
  --muted: #8ea1a8;
  --line: #273a42;
  --line-2: #3a4e57;
  --bg: #0e181d;
  --card: #15232a;
  --field: #1a2a32;
  --red: #ff8a7a;
  --err-bg: #3a201d;
  --err-line: #6b3029;
  --ink-bg: #2b434d;
  --foot-bg: #0a1216;
  --ph: #5f727a;
  --sw-off: rgba(14,24,29,.62);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

.b2b { background: var(--teal); color: #fff; text-align: center; font-weight: 600; font-size: 13px; padding: 7px 16px; }

/* header */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.top-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 2px; font-weight: 700; font-size: 26px; letter-spacing: -.5px; white-space: nowrap; }
.logo img { height: 40px; width: auto; }
.logo-h { background: var(--teal); color: #fff; border-radius: 7px; padding: 0 7px; margin-right: 3px; }
.logo small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.search { flex: 1; display: flex; max-width: 560px; margin-left: auto; }
.search input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; padding: 0 14px; font: inherit; background: var(--field); }
.search input:focus { outline: 2px solid var(--teal-l); border-color: var(--teal); }
.search button { width: 48px; border: 0; background: var(--ink-bg); color: #fff; border-radius: 0 10px 10px 0; display: grid; place-items: center; }
.kontakt-top { font-weight: 600; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; white-space: nowrap; }
.kontakt-top:hover { border-color: var(--teal); color: var(--teal-t); }
.burger { display: none; border: 0; background: none; color: var(--ink); padding: 6px; }

.nav { border-top: 1px solid var(--line); background: var(--card); }
.nav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-in::-webkit-scrollbar { display: none; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 11px 12px; font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link.on { color: var(--teal-t); border-bottom-color: var(--teal); }
.mega { display: none; position: fixed; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(18,50,63,.08); padding: 18px 0 22px; }
.nav-item:hover .mega { display: block; }
.mega-in { columns: 4 200px; column-gap: 28px; }
.mega a { display: block; padding: 5px 0; color: var(--ink-2); break-inside: avoid; }
.mega a:hover { color: var(--teal-t); }
.mega a span { color: var(--muted); font-size: 12px; margin-left: 4px; }

/* drawer (mobile) */
.drawer { position: fixed; inset: 0; background: rgba(18,50,63,.45); z-index: 50; }
.drawer-panel { background: var(--card); width: min(340px, 88vw); height: 100%; overflow-y: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); }
.drawer-head button { border: 0; background: none; font-size: 28px; line-height: 1; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { padding: 14px 16px; font-weight: 600; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details a { display: block; padding: 8px 16px 8px 28px; color: var(--ink-2); }

/* home */
.hero { margin: 28px 0 8px; }
.hero h1 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 6px; letter-spacing: -.5px; }
.hero p { margin: 0; color: var(--ink-2); }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 24px 0 40px; }
.group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.group-img { aspect-ratio: 16/9; background: var(--img); display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.group-img img { width: 100%; height: 100%; object-fit: contain; background: var(--img); padding: 8px; }
.group-b { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.group-b h2 { margin: 0 0 8px; font-size: 18px; }
.group-b h2 a:hover { color: var(--teal-t); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--teal-l); color: var(--teal-t); font-weight: 500; }
.chip:hover { background: var(--teal); color: #fff; }

/* list */
.crumbs { font-size: 13px; color: var(--muted); margin: 18px 0 6px; }
.crumbs a:hover { color: var(--teal-t); }
.list-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.list-head h1 { margin: 0; font-size: 26px; letter-spacing: -.4px; }
.list-head .muted { font-size: 14px; }
.sort { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; background: var(--card); }
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 40px; }
.side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow-y: auto; }
.side-head, .side-foot { display: none; }
.side-cats { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.cat-row { display: none; }
@media (max-width: 900px) { .side-cats { border-bottom: 0; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; } }
.side-cats summary { list-style: none; cursor: pointer; }
.side-cats summary::-webkit-details-marker { display: none; }
.side-cats summary h3::after { content: ' ▾'; }
.side-cats[open] summary h3::after { content: ' ▴'; }
.side-cats a { display: flex; }
.side h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 6px 8px; }
.side-cats a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--ink-2); font-size: 14px; }
.side-cats a:hover { background: var(--bg); }
.side-cats a.on { background: var(--teal-l); color: var(--teal-t); font-weight: 600; }
.side-cats a span { color: var(--muted); font-size: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s, transform .15s; }
.card:hover { border-color: var(--teal-line); box-shadow: 0 8px 22px rgba(18,50,63,.08); transform: translateY(-2px); }
.card-img { aspect-ratio: 1; background: var(--img); display: grid; place-items: center; padding: 12px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-b { padding: 10px 12px 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-t { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-sku { font-size: 12px; color: var(--muted); }
.card-f { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.price { font-weight: 700; color: var(--ink); }
.price small { font-weight: 500; color: var(--muted); font-size: 12px; }
.dots { display: flex; align-items: center; gap: 3px; }
.dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); background-size: cover; background-position: center; }
.dots em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 2px; }
.more { display: block; margin: 22px auto 0; padding: 11px 26px; border-radius: 10px; border: 1px solid var(--ink); background: var(--card); font-weight: 600; }
.more:hover { background: var(--ink-bg); color: #fff; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }

/* product */
.prod { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; margin: 8px 0 30px; }
.gal-main { background: var(--img); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; padding: 22px; position: relative; }
.gal-main img { width: 100%; height: 100%; object-fit: contain; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.9); font-size: 20px; display: grid; place-items: center;  color: #12323f; border-color: #e3e8ea;}
.gal-nav.l { left: 10px; } .gal-nav.r { right: 10px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 72px; height: 72px; border: 1px solid var(--line); border-radius: 10px; background: var(--img); padding: 4px; }
.thumbs button.on { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-l); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }

.info h1 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; margin: 0 0 6px; letter-spacing: -.4px; }
.sku-line { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.pbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.big-price { font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.big-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.minq { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.lbl { font-size: 13px; font-weight: 600; margin: 14px 0 8px; color: var(--ink-2); }
.lbl b { color: var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); background-size: cover; background-position: center; padding: 0; }
.sw.on { box-shadow: 0 0 0 2px var(--teal); }
.sw-txt { width: auto; height: 34px; border-radius: 99px; padding: 0 12px; font-size: 13px; background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.sw-txt.on { border-color: var(--teal); background: var(--teal-l); color: var(--teal-t); box-shadow: none; font-weight: 600; }
.vt { width: 100%; border-collapse: collapse; font-size: 14px; }
.vt th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.vt td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.vt tr:last-child td { border-bottom: 0; }
.ok { color: var(--teal-t); font-weight: 600; }
.no { color: var(--muted); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; border: 1px solid var(--ink); background: var(--card); }
.btn-p { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-p:hover { background: var(--teal-d); }
.btn:not(.btn-p):hover { background: var(--ink-bg); color: #fff; }
.tech { display: flex; flex-wrap: wrap; gap: 6px; }
.tech span { font-size: 13px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); }

.sect { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.sect h2 { font-size: 17px; margin: 0 0 10px; }
.desc p { margin: 0 0 8px; }
.desc ul { margin: 0 0 8px; padding-left: 20px; }
.desc .spec2 { font-weight: 600; }
.st { width: 100%; border-collapse: collapse; }
.st td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.st tr:last-child td { border-bottom: 0; }
.st .ic { width: 40px; }
.st .ic img { width: 28px; height: 28px; }
.st .nm { color: var(--ink-2); width: 38%; }
.st .vl { font-weight: 500; }

.loading { padding: 60px 0; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }

  .prod { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav { display: none; }
  .kontakt-top { display: none; }
  .top-in { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .logo { font-size: 22px; }
  .logo small { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-b { padding: 8px 10px 10px; }
  .card-t { font-size: 13px; }
  .dots .dot:nth-child(n+4), .dots em { display: none; }
  .card-f { flex-wrap: nowrap; }
  .list-head h1 { font-size: 22px; }
  .sect { padding: 14px; }
  .st .nm { width: auto; }
}

/* footer */
.foot { background: var(--foot-bg); color: #d6e1e5; margin-top: 30px; }
.foot-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 34px; padding-bottom: 24px; }
.foot h3 { color: #fff; font-size: 15px; margin: 6px 0 10px; }
.foot p { margin: 0 0 10px; font-size: 14px; line-height: 1.7; }
.foot a { color: #fff; }
.foot a:hover { color: #7fe0cf; }
.foot .muted { color: #9fb2b9; }
.foot-logo { box-sizing: content-box; height: 22px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; margin-bottom: 12px; }
.foot-copy { border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; padding-bottom: 18px; font-size: 13px; color: #9fb2b9; }
@media (max-width: 760px) {
  .foot-in { grid-template-columns: 1fr; gap: 10px; }
  .logo img { height: 32px; }
}

/* filteri */
.lh-r { display: flex; gap: 8px; align-items: center; }
.fbtn { display: none; height: 38px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 10px; background: var(--card); font-weight: 600; }
.fbtn b { background: var(--teal); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.filters h3 { margin-top: 2px; }
.fs { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.fs:last-child { border-bottom: 0; }
.fh { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.fchk { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; cursor: pointer; color: var(--ink-2); }
.fchk input { width: 16px; height: 16px; accent-color: var(--teal); margin: 0; }
.fchk span { margin-left: auto; color: var(--muted); font-size: 12px; }
.fprice { display: flex; align-items: center; gap: 6px; }
.fprice input { width: 100%; min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; }
.fprice input:focus { outline: 2px solid var(--teal-l); border-color: var(--teal); }
.fsw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.fdot { display: flex; align-items: center; gap: 7px; border: 1px solid transparent; background: none; border-radius: 8px; padding: 4px 6px; font-size: 13px; color: var(--ink-2); text-align: left; }
.fdot i { flex: 0 0 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.fdot:hover { background: var(--bg); }
.fdot.on { border-color: var(--teal); background: var(--teal-l); color: var(--teal-t); }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 180px; overflow-y: auto; }
.fchip { min-width: 40px; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 13px; }
.fchip:hover { border-color: var(--teal); }
.fchip.on { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.active { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.achip { border: 0; background: var(--teal-l); color: var(--teal-t); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 500; }
.achip b { margin-left: 4px; }
.aclear { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 13px; }
body.noscroll { overflow: hidden; }

/* pretraga dok se tipka */
.search { position: relative; }
.sug { position: absolute; top: 46px; left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(18,50,63,.16); overflow: hidden; z-index: 60; }
.sug-it { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.sug-it img { width: 46px; height: 46px; object-fit: contain; flex: 0 0 46px; background: var(--img); }
.sug-it:hover, .sug-it.on { background: var(--teal-l); }
.sug-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sug-t b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-t small { color: var(--muted); font-size: 12px; }
.sug-p { font-weight: 700; font-size: 14px; white-space: nowrap; }
.sug-all { display: block; padding: 10px 12px; font-weight: 600; color: var(--teal-t); background: var(--field); }
.sug-none { padding: 14px; color: var(--muted); }

/* poziv */
.btn-tel { border-color: var(--teal); color: var(--teal-t); }
.btn-tel:hover { background: var(--teal) !important; color: #fff !important; }
.btn svg { flex: 0 0 auto; }
.upit-nap { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.upit-nap a { color: var(--teal-t); font-weight: 600; white-space: nowrap; }

.ftog { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ftog input { position: absolute; opacity: 0; pointer-events: none; }
.ftog i { width: 38px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .15s; flex: 0 0 38px; }
.ftog i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ftog input:checked + i { background: var(--teal); }
.ftog input:checked + i::after { left: 19px; }
.ftog span { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 500; }
.fnote { font-size: 12px; color: var(--muted); margin: 4px 0 0 48px; }
.fchip small { color: var(--muted); font-size: 11px; margin-left: 2px; }
.fchip.on small { color: #e7f6f3; }

@media (max-width: 900px) {
  .side { position: static; max-height: none; overflow: hidden; padding: 10px 12px; margin-bottom: 4px; min-width: 0; }
  .layout > * { min-width: 0; }
  .side-cats { display: none; }
  .cat-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px; padding: 0 16px; }
  .cat-row::-webkit-scrollbar { display: none; }
  .cat-row a { flex: 0 0 auto; white-space: nowrap; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 12px; font-size: 13px; }
  .cat-row a.on { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
  .cat-row a span { display: none; }
  .filters h3 { display: none; }
  .fs { padding: 8px 0; }
  .fh { font-size: 13px; margin-bottom: 6px; }
  .fsw, .fchips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; max-height: none; scrollbar-width: none; padding-bottom: 2px; }
  .fsw::-webkit-scrollbar, .fchips::-webkit-scrollbar { display: none; }
  .fdot { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px 4px 5px; white-space: nowrap; }
  .fchip { flex: 0 0 auto; }
  .fs:has(.fchk) { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .fs:has(.fchk) .fh { width: 100%; }
  .fprice { max-width: 260px; }
}

/* v6: brisanje filtera, boje bez preklapanja, manji ekrani */
.fhead { display: flex; align-items: center; gap: 8px; margin: 2px 6px 4px; }
.fhead h3 { margin: 0 auto 0 0 !important; display: flex; align-items: center; gap: 6px; }
.fhead h3 b { background: var(--teal); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 11px; letter-spacing: 0; line-height: 18px; }
.fclr { border: 1px solid var(--line); background: var(--card); color: var(--red); border-radius: 8px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.fclr:hover { border-color: var(--red); background: var(--err-bg); }
.ftgl { display: none; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 3px 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.fh { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.fx { border: 0; background: var(--bg); color: var(--ink-2); width: 22px; height: 22px; border-radius: 50%; font-size: 15px; line-height: 1; padding: 0; display: grid; place-items: center; flex: 0 0 22px; }
.fx:hover { background: var(--err-bg); color: var(--red); }
.fs2 > .fs { border-bottom: 1px solid var(--line); }
.fs2 { border-bottom: 0; }
.fdot { padding: 4px 5px; gap: 6px; min-width: 0; }
.fdot i { flex: 0 0 16px; height: 16px; }
.fdot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vt td, .vt th { white-space: nowrap; }

@media (max-width: 900px) {
  .ftgl { display: inline-block; }
  .fhead { margin: 0 0 2px; }
  .filters h3 { display: flex; font-size: 12px; }
  .filters.zatv .fbody { display: none; }
  .fs2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .fs2 > .fs { border-bottom: 0; padding: 0; }
  .fs-p { display: flex; align-items: center; gap: 8px; }
  .fs-p .fh { margin: 0; white-space: nowrap; }
  .fprice input { height: 32px; width: 64px; }
  .fnote { margin: 2px 0 0 48px; }
  .fs { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 8px; }
  .fs.fs-sk, .fs.fs-p { display: flex; }
  .fs .fh { margin: 0; font-size: 12px; line-height: 1.2; }
  .fs .fh span { min-width: 0; }
  .fdot { padding: 3px 10px 3px 4px; }
  .fdot span { overflow: visible; }
  .fchip { height: 30px; }
}
@media (max-width: 760px) {
  .b2b { font-size: 11px; padding: 5px 12px; line-height: 1.35; }
  .crumbs { margin: 12px 0 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .list-head { margin-bottom: 10px; align-items: center; }
  .list-head h1 { font-size: 20px; }
  .sort { height: 34px; font-size: 14px; }
  .side { padding: 8px 10px; }
  .fs { grid-template-columns: 62px minmax(0, 1fr); }
  .layout { gap: 14px; }
  .card-img { padding: 8px; }
  .price { font-size: 14px; }
  .gal-main { padding: 12px; }
  .thumbs button { flex-basis: 60px; height: 60px; }
  .pbox { padding: 12px; }
  .big-price { font-size: 24px; }
  .vt { font-size: 13px; }
  .vt th, .vt td { padding: 6px 6px; }
  .btns .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 380px) {
  .grid { gap: 8px; }
  .card-b { padding: 7px 8px 9px; }
  .card-t { font-size: 12.5px; }
  .card-sku { font-size: 11px; }
}
/* boje: pune rijeci, bez rezanja i preklapanja */
.fsw { display: flex; flex-wrap: wrap; gap: 5px; }
.fdot { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px 3px 4px; white-space: nowrap; }
.fdot span { overflow: visible; }
@media (max-width: 900px) {
  .fsw { flex-wrap: nowrap; }
  .ftog { white-space: nowrap; }
  .fs-sk .fnote { display: none; }
  .fs { grid-template-columns: 86px minmax(0, 1fr); }
  .fx { width: 18px; height: 18px; flex-basis: 18px; font-size: 13px; }
  .fh { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .fs { grid-template-columns: 82px minmax(0, 1fr); }
  .gal-main { aspect-ratio: 4 / 3; }
}

/* v7: upit (kosarica) */
.upit-top { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding: 8px 14px; border-radius: 10px; background: var(--teal); color: #fff; white-space: nowrap; }
.upit-top:hover { background: var(--teal-d); }
.upit-top b { background: #fff; color: var(--teal-d); border-radius: 99px; min-width: 20px; height: 20px; padding: 0 6px; font-size: 12px; display: inline-grid; place-items: center; }
.upit-top b[hidden] { display: none; }
.vt input.kol { width: 70px; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; text-align: right; }
.vt input.kol:focus, .kol1:focus, .teh:focus { outline: 2px solid var(--teal-l); border-color: var(--teal); }
.dodaj { margin-top: 12px; padding-top: 4px; }
.dodaj .lbl { display: block; margin: 10px 0 6px; }
.kol1 { width: 140px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; }
.teh { width: 100%; max-width: 320px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; background: var(--card); }
.dodaj-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.dodaj-r .btn { font-size: 15px; padding: 12px 22px; }
.uk { font-size: 14px; color: var(--ink-2); }
.warn { color: var(--red); font-weight: 600; }
.u-vec { margin-top: 8px; font-size: 13px; color: var(--teal-t); }
.u-vec a { text-decoration: underline; font-weight: 600; }
.minq b { color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 80; background: var(--ink-bg); color: #fff; border-radius: 12px; padding: 12px 16px; display: flex; gap: 14px; align-items: center; box-shadow: 0 14px 34px rgba(18,50,63,.3); font-size: 14px; max-width: calc(100vw - 24px); }
.toast[hidden] { display: none; }
.toast.err { background: var(--red); }
.toast a { color: #7fe0cf; font-weight: 700; white-space: nowrap; }

.upit-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.upit-head h1 { margin: 0; font-size: 26px; letter-spacing: -.4px; }
.upit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 40px; }
.ust { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.ust-img { display: block; aspect-ratio: 1; background: var(--img); border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.ust-img img { width: 100%; height: 100%; object-fit: contain; }
.ust-h { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.ust-h a:hover { color: var(--teal-t); }
.ust-x { border: 0; background: var(--bg); width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; flex: 0 0 28px; color: var(--ink-2); }
.ust-x:hover { background: var(--err-bg); color: var(--red); }
.ust-m { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.ust-m b { color: var(--ink-2); font-weight: 600; }
.ust-vel { display: flex; flex-wrap: wrap; gap: 6px; }
.uv { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 13px; }
.uv span { padding: 0 8px; background: var(--bg); align-self: stretch; display: grid; place-items: center; font-weight: 600; min-width: 34px; }
.uv input { width: 58px; height: 30px; border: 0; padding: 0 6px; font: inherit; text-align: right; }
.ust-r { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 8px; font-size: 13px; }
.ut { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.ut select { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; font: inherit; background: var(--card); max-width: 210px; }
.ust-kom { font-weight: 600; }
.ust-nap { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; resize: vertical; background: var(--field); }
.ust-nap:focus, .upit-r input:focus, .upit-r textarea:focus { outline: 2px solid var(--teal-l); border-color: var(--teal); background: var(--card); }
.upit-sum { background: var(--teal-l); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; }
.upit-sum b { font-size: 17px; margin-left: 4px; }
.upit-sum small { display: block; color: var(--ink-2); margin-top: 2px; }
.dalje { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--teal-t); }
.upit-r { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; position: sticky; top: 130px; }
.upit-r h2 { font-size: 16px; margin: 4px 0 10px; }
.upit-r h2 + * { margin-top: 0; }
.drop { display: block; border: 2px dashed var(--teal-line); border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; background: var(--field); position: relative; }
.drop:hover, .drop.on { border-color: var(--teal); background: var(--teal-l); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop b { display: block; color: var(--teal-t); }
.drop span { font-size: 12px; color: var(--muted); }
.dat { list-style: none; margin: 8px 0 0; padding: 0; }
.dat li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; margin-top: 6px; font-size: 13px; }
.dat li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dat li small { color: var(--muted); }
.dat li button { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--ink-2); }
.ufs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uf { margin-top: 10px; }
.ufs .uf { margin-top: 0; }
.uf.wide { grid-column: 1 / -1; }
.uf label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.uf label i { color: var(--red); font-style: normal; }
.uf input, .uf textarea { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; font: inherit; background: var(--field); }
.uf textarea { height: auto; padding: 9px 11px; resize: vertical; }
.hp-web { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.usugl { display: flex; gap: 8px; align-items: start; font-size: 13px; color: var(--ink-2); margin: 14px 0 8px; cursor: pointer; }
.usugl input { margin-top: 2px; accent-color: var(--teal); width: 16px; height: 16px; flex: 0 0 16px; }
.u-err { background: var(--err-bg); color: var(--red); border-radius: 9px; padding: 9px 12px; font-size: 13px; font-weight: 500; margin: 8px 0; }
.u-err[hidden] { display: none; }
.u-posalji { width: 100%; justify-content: center; font-size: 16px; padding: 13px; margin-top: 6px; }
.u-posalji:disabled { opacity: .6; cursor: wait; }
.u-nap { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.u-nap a { color: var(--teal-t); font-weight: 600; }
.upit-prazno { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center; max-width: 620px; margin: 10px auto 40px; }
.upit-prazno h1 { font-size: 24px; margin: 10px 0 8px; }
.upit-prazno p { color: var(--ink-2); margin: 0 0 12px; }
.up-ik { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--teal-l); color: var(--teal-t); display: grid; place-items: center; font-size: 30px; font-weight: 700; }
.up-ik svg { width: 30px; height: 30px; }
.up-ik.ok { background: var(--teal); color: #fff; }

/* Google recenzije */
.rec { margin: 0 0 40px; }
.rec-h { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rec-h h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.3px; }
.rec-sum { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rec-sum b { font-size: 20px; }
.zv { color: var(--line-2); letter-spacing: 1px; white-space: nowrap; }
.zv .z1 { color: #f4b400; font-style: normal; }
.zv .z5 { color: #f4b400; opacity: .55; font-style: normal; }
.zv .z0 { font-style: normal; }
.rec-l { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rec-k { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.rec-a { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.rec-a img, .rec-in { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px; }
.rec-in { background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; }
.rec-a b { display: block; font-size: 14px; }
.rec-a small { color: var(--muted); font-size: 12px; }
.rec-k blockquote { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rec-g { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: right; }
.g-badge { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; background: rgba(255,255,255,.08); border-radius: 9px; padding: 6px 10px; }
.g-badge span { font-size: 13px; }
.seo-intro { color: var(--ink-2); max-width: 760px; margin: 0 0 16px; }
.seo-k { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }

@media (max-width: 900px) {
  .upit { grid-template-columns: minmax(0, 1fr); }
  .upit-r { position: static; }
}
@media (max-width: 760px) {
  .upit-top { margin-left: auto; padding: 7px 10px; }
  .upit-top span { display: none; }
  .ust { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .ust-h b { font-size: 14px; }
  .ufs { grid-template-columns: minmax(0, 1fr); }
  .upit-r { padding: 14px; }
  .upit-head h1 { font-size: 22px; }
  .dodaj-r .btn { width: 100%; justify-content: center; }
  .teh { max-width: none; }
  .vt input.kol { width: 60px; }
}
@media (max-width: 480px) { .vt .c-k { display: none; } }

/* v7.1 checkout */
.upit-r select { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; font: inherit; background: var(--field); }
.upit-r .uf[hidden] { display: none; }
.upit-r h2 { margin-top: 18px; }
.u-hint { display: block; font-size: 12px; margin-top: 3px; min-height: 0; }
.u-hint.ok { color: var(--teal-t); font-weight: 600; }
.u-hint.bad { color: var(--red); font-weight: 600; }
.uf input.bad { border-color: var(--red); background: var(--err-bg); }
.uf input.good { border-color: var(--teal); }

/* v7.2 gumb Dodaj u upit */
.dodaj { margin-top: 16px; padding-top: 0; display: flex; flex-direction: column; gap: 12px; }
.dq { display: flex; align-items: center; gap: 12px; }
.dq-l { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dq-n { font-size: 14px; color: var(--muted); }
.step { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); height: 46px; }
.step .st-b { width: 44px; border: 0; background: var(--bg); font-size: 20px; color: var(--ink); }
.step .st-b:hover { background: var(--teal-l); color: var(--teal-t); }
.step input { width: 70px; border: 0; text-align: center; font: inherit; font-size: 17px; font-weight: 700; -moz-appearance: textfield; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step input:focus { outline: none; background: var(--teal-l); }
.btn-add { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; border: 0; border-radius: 14px; padding: 12px 18px 12px 12px;
  background: linear-gradient(135deg, #12b096 0%, var(--teal) 55%, var(--teal-d) 100%); color: #fff;
  box-shadow: 0 10px 24px rgba(15,158,134,.28), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .12s, box-shadow .12s, filter .12s; }
.btn-add:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(15,158,134,.36), inset 0 1px 0 rgba(255,255,255,.18); filter: brightness(1.04); }
.btn-add:active { transform: translateY(0); box-shadow: 0 6px 14px rgba(15,158,134,.3); }
.btn-add:focus-visible { outline: 3px solid #9fe3d6; outline-offset: 2px; }
.ba-ik { flex: 0 0 44px; height: 44px; border-radius: 11px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.ba-ik svg { width: 22px; height: 22px; }
.ba-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ba-t b { font-size: 17px; letter-spacing: -.2px; }
.ba-t small { font-size: 13px; opacity: .9; margin-top: 2px; }
.ba-arr { font-size: 20px; opacity: .85; transition: transform .12s; }
.btn-add:hover .ba-arr { transform: translateX(3px); }
.btn-add.u-upitu { background: var(--card); color: var(--teal-t); box-shadow: inset 0 0 0 2px var(--teal); }
.btn-add.u-upitu .ba-ik { background: var(--teal); color: #fff; }
.btn-add.u-upitu:hover { background: var(--teal-l); }
.u-vec { margin-top: -4px; text-align: center; }
.dodaj + .btns { margin-top: 12px; }
@media (max-width: 760px) {
  .btn-add { padding: 10px 14px 10px 10px; }
  .ba-t b { font-size: 16px; }
}

.upit-sum table { width: 100%; border-collapse: collapse; font-size: 14px; }
.upit-sum td { padding: 2px 0; }
.upit-sum td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.upit-sum tr.tot td { border-top: 1px solid rgba(15,158,134,.35); padding-top: 6px; font-size: 16px; font-weight: 700; }
.upit-sum small { margin-top: 6px; }
.toast { width: max-content; }
@media (max-width: 760px) { .toast { left: 12px; right: 12px; transform: none; width: auto; max-width: none; justify-content: space-between; } }

/* v8.1 kolicine po velicinama */
.qs { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); height: 34px; }
.qs:focus-within { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-l); }
.qs-b { width: 30px; border: 0; background: var(--bg); font-size: 17px; line-height: 1; color: var(--ink-2); padding: 0; }
.qs-b:hover { background: var(--teal-l); color: var(--teal-t); }
.vt .qs input.kol { width: 46px; height: auto; border: 0; border-radius: 0; padding: 0 4px; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.vt .qs input.kol:focus { outline: none; }
.vt .qs input.kol::placeholder { color: var(--ph); font-weight: 500; }
.qs input::-webkit-outer-spin-button, .qs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vt td:last-child, .vt th:last-child { text-align: right; }
.kprog { margin-top: 10px; background: var(--bg); border-radius: 10px; padding: 9px 12px; }
.kp-t { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.kp-t b { font-size: 15px; }
.kp-min { color: var(--muted); }
.kp-ok { color: var(--teal-t); font-weight: 600; }
.kp-bar { height: 6px; background: var(--line-2); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.kp-bar i { display: block; height: 100%; background: #f0a830; border-radius: 99px; transition: width .2s; }
.kp-bar i.ok { background: var(--teal); }
.btn-add.malo { filter: saturate(.55); opacity: .85; box-shadow: none; }
.btn-add.malo:hover { transform: none; filter: saturate(.7); }
.lbl .muted { font-weight: 500; }
@media (max-width: 480px) {
  .qs-b { width: 28px; }
  .vt .qs input.kol { width: 38px; }
}
@media (max-width: 480px) { .vt th, .vt td { padding: 6px 4px; } .vt td:first-child { white-space: normal; font-size: 12px; min-width: 64px; } .vt td:nth-child(3), .vt td:nth-child(4) { font-size: 12px; } }
.dodaj > .kprog { margin-top: -2px; }
.step input::placeholder { color: var(--ph); font-weight: 500; }

/* v12: slike uvijek u kvadratu (visoke slike Blue Collection ne razvlace karticu ni galeriju) */
.card-img, .gal-main, .ust-img, .group-img img { position: relative; overflow: hidden; }
.card-img { padding: 0; }
.card-img img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.gal-main { padding: 0; max-height: min(620px, 72vh); aspect-ratio: 1; margin: 0 auto; width: 100%; }
.gal-main > img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; }
.gal { max-width: 620px; width: 100%; }
@supports (aspect-ratio: 1) { .gal-main { width: min(100%, min(620px, 72vh)); } }
.thumbs { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.thumbs::-webkit-scrollbar { height: 6px; }
.thumbs::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.thumbs button { position: relative; overflow: hidden; }
.thumbs img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.ust-img img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.sug-it img { height: 46px; }
@media (max-width: 760px) {
  .gal-main { max-height: 62vh; width: min(100%, 62vh); }
  .gal-main > img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .card-img img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
}

/* footer uvijek na dnu kad je sadrzaj kratak */
html { height: 100%; }
body { min-height: 100%; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main#app { flex: 1 0 auto; width: 100%; min-height: 70vh; } /* podnozje ostaje ispod prvog ekrana dok se sadrzaj ucitava (CLS) */
body > .foot { flex-shrink: 0; }

/* krugovi boja: puna boja do ruba, bez unutarnjeg obruba */
.sw:not(.sw-txt) { border: 0; padding: 0; background-size: 165%; background-position: center; background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); margin: 3px; }
.sw:not(.sw-txt):hover { box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 0 0 2px var(--card), 0 0 0 3px var(--line-2); }
.sw:not(.sw-txt).on { box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 0 0 2px var(--card), 0 0 0 4px var(--teal); }
.dot { background-size: 165%; border: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.16); }

/* nema na zalihi */
.nema { color: var(--red); font-weight: 600; font-size: 13px; }
.qs-off { display: inline-block; font-size: 12px; color: var(--muted); padding: 0 6px; }
.vt tr:has(.qs-off) td, .vt tr:has(.qs-off) td b { color: var(--muted); }
.sw-nema { position: relative; opacity: .45; }
.sw-nema:not(.sw-txt)::after { content: ''; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; margin-left: -1px; background: #c0392b; transform: rotate(45deg); border-radius: 2px; }
.sw-txt.sw-nema { text-decoration: line-through; }
.nedost { background: var(--err-bg); border: 1px solid var(--err-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.nedost b { color: var(--red); }
.nedost span { font-size: 13px; color: var(--ink-2); }

/* boja bez zalihe: zasivljena + jasna oznaka u kutu */
.sw-nema:not(.sw-txt) { opacity: 1; filter: grayscale(.9) brightness(1.08); }
.sw-nema:not(.sw-txt)::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(255,255,255,.45); }
.sw-nema:not(.sw-txt)::after { content: '×'; left: auto; top: auto; right: -3px; bottom: -3px; width: 16px; height: 16px; margin: 0; transform: none;
  background: #c0392b; color: #fff; border: 2px solid var(--card); border-radius: 50%; font-size: 12px; line-height: 12px; font-weight: 700; text-align: center; box-sizing: content-box; filter: none; }
.sw-nema.on:not(.sw-txt) { filter: grayscale(.9) brightness(1.08); }
.sw-nema:not(.sw-txt), .sw-nema.on:not(.sw-txt) { filter: none; }
.sw-nema:not(.sw-txt)::before { background: var(--sw-off); }

/* v20 filteri: bez unutarnjih scrollova, sekcije se zatvaraju, "+ jos" */
.side { position: static; max-height: none; overflow: visible; }
.filters .fhead { position: sticky; top: 118px; background: var(--card); z-index: 2; padding: 6px 0 6px; margin-top: -6px; }
.fchips { max-height: none; overflow: visible; }
.fs .fh[data-fz] { cursor: pointer; user-select: none; }
.fs .fh[data-fz]::after { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -3px 2px 0 auto; transition: transform .15s; flex: 0 0 7px; }
.fs .fh[data-fz] .fx { margin-left: auto; }
.fs .fh[data-fz] .fx + * { margin-left: 8px; }
.fs .fh[data-fz]:has(.fx)::after { margin-left: 8px; }
.fs.zatv .fh[data-fz]::after { transform: rotate(-45deg); margin-top: 1px; }
.fs.zatv .fbod { display: none; }
.fs.zatv .fh { margin-bottom: 0; }
.fx-skr { display: none !important; }
.fvise { border: 0; background: none; color: var(--teal-t); font-weight: 600; font-size: 13px; padding: 6px 0 0; }
.fvise:hover { text-decoration: underline; }
.fsub { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 6px 0 5px; }
.fsub:first-child { margin-top: 0; }
.fbod .fchips + .fsub { margin-top: 10px; }
@media (max-width: 900px) {
  .filters .fhead { position: static; margin-top: 0; padding: 0; }
  .fx-skr { display: inline-flex !important; }
  .fvise, .fsub { display: none; }
  .fs .fh[data-fz]::after { display: none; }
  .fs.zatv .fbod { display: block; }
  .fbod { min-width: 0; }
  .fbod .fchips + .fchips { margin-top: 6px; }
}

/* plutajuci "Vas upit" */
.ubar { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; align-items: stretch; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(18,50,63,.18); max-width: 360px; animation: ubarIn .25s ease-out; }
.ubar[hidden] { display: none; }
@keyframes ubarIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.ubar-a { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 12px 14px 12px 12px; align-items: center; }
.ubar-ik { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-l); color: var(--teal-t); display: grid; place-items: center; }
.ubar-t { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ubar-t b { font-size: 14px; }
.ubar-t span { font-size: 13px; color: var(--ink-2); }
.ubar-t small { font-size: 12px; color: var(--muted); }
.ubar-btn { grid-column: 2; display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; background: var(--teal); color: #fff; font-weight: 700; font-size: 14px; border-radius: 10px; padding: 9px 14px; }
.ubar-a:hover .ubar-btn { background: var(--teal-d); }
.ubar-btn i { font-style: normal; transition: transform .12s; }
.ubar-a:hover .ubar-btn i { transform: translateX(3px); }
.ubar-x { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 8px 10px; align-self: flex-start; }
.ubar-x:hover { color: var(--ink); }
body.has-ubar .toast { bottom: 150px; }
@media (max-width: 760px) {
  .ubar { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 14px 14px 0 0; border-width: 1px 0 0; box-shadow: 0 -8px 24px rgba(18,50,63,.14); padding-bottom: env(safe-area-inset-bottom); }
  .ubar-a { flex: 1; display: flex; gap: 10px; padding: 10px 6px 10px 12px; }
  .ubar-ik { width: 38px; height: 38px; flex: 0 0 38px; }
  .ubar-t { flex: 1; }
  .ubar-t b { font-size: 13px; }
  .ubar-t small { display: none; }
  .ubar-btn { margin: 0; padding: 10px 12px; font-size: 13px; white-space: nowrap; }
  .ubar-btn { font-size: 0; }
  .ubar-btn::before { content: 'Pošalji'; font-size: 13px; }
  .ubar-btn i { font-size: 14px; }
  body.has-ubar { padding-bottom: 70px; }
  body.has-ubar .toast { bottom: 80px; }
}

/* v21: dropdown upita umjesto trake */
.ubar { display: none !important; }
body.has-ubar { padding-bottom: 0 !important; }
.udrop { position: fixed; z-index: 75; width: 380px; max-width: calc(100vw - 16px); background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 22px 50px rgba(18,50,63,.22); display: flex; flex-direction: column; max-height: min(560px, calc(100vh - 140px)); animation: udIn .16s ease-out; }
.udrop[hidden] { display: none; }
.udrop::before { content: ''; position: absolute; top: -7px; right: 34px; width: 12px; height: 12px; background: var(--card); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
@keyframes udIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ud-h { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.ud-h b { font-size: 16px; }
.ud-h span { font-size: 13px; color: var(--muted); }
.ud-x { margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); padding: 0 2px; }
.ud-x:hover { color: var(--ink); }
.ud-l { overflow-y: auto; padding: 4px 8px; flex: 1 1 auto; }
.ud-it { display: grid; grid-template-columns: 48px minmax(0, 1fr) 26px; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.ud-it + .ud-it { border-top: 1px solid var(--line); border-radius: 0; }
.ud-it.novi { background: var(--teal-l); border-radius: 10px; }
.ud-img { position: relative; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--img); overflow: hidden; }
.ud-img img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; }
.ud-t { display: flex; flex-direction: column; min-width: 0; }
.ud-t a { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ud-t a:hover { color: var(--teal-t); }
.ud-t small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ud-rm { border: 0; background: var(--bg); width: 26px; height: 26px; border-radius: 50%; color: var(--ink-2); font-size: 16px; line-height: 1; padding: 0; }
.ud-rm:hover { background: var(--err-bg); color: var(--red); }
.ud-f { border-top: 1px solid var(--line); padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.ud-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-2); }
.ud-sum b { font-size: 16px; color: var(--ink); }
.ud-go { display: block; text-align: center; background: var(--teal); color: #fff; font-weight: 700; border-radius: 10px; padding: 11px 14px; }
.ud-go:hover { background: var(--teal-d); }
.ud-dalje { display: none; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 10px; font-weight: 600; color: var(--ink-2); }
.udrop.peek { box-shadow: 0 22px 50px rgba(15,158,134,.28); border-color: var(--teal-line); }
.udrop-bg { position: fixed; inset: 0; background: rgba(18,50,63,.45); z-index: 74; }
.udrop-bg[hidden] { display: none; }
.udrop.mob { top: 0; right: 0; bottom: 0; width: min(380px, 92vw); max-width: none; max-height: none; border-radius: 0; border-width: 0 0 0 1px; animation: udMob .2s ease-out; }
.udrop.mob::before { display: none; }
.udrop.mob .ud-dalje { display: block; }
@keyframes udMob { from { transform: translateX(100%); } to { transform: none; } }

/* v22: mobitel - redovi filtera se pomicu unutar sebe, stranica nikad sira od ekrana */
html { overflow-x: clip; }
@media (max-width: 900px) {
  .fsw, .fchips { overflow-x: auto; overflow-y: hidden; }
  .fbod { min-width: 0; max-width: 100%; overflow: hidden; }
  .fs { min-width: 0; }
  .filters, .fbody, .fs2 { min-width: 0; max-width: 100%; }
}
/* potvrda dodavanja na racunalu: gumb Upit kratko "poskoci" */
@keyframes upitBump { 0% { transform: scale(1); } 30% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(15,158,134,.25); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(15,158,134,0); } }
.upit-top.bump { animation: upitBump .6s ease-out; }
.upit-top.bump b { animation: upitBump .6s ease-out .1s; }

/* mobitel: naslov kategorije u svom redu, broj proizvoda i "Poredaj" uvijek u istom redu ispod */
@media (max-width: 760px) {
  .list-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; }
  .list-head > div:first-child { display: contents; }
  .list-head h1 { grid-column: 1 / -1; }
  .list-head .muted { grid-column: 1; grid-row: 2; }
  .list-head .lh-r { grid-column: 2; grid-row: 2; }
  .sort { max-width: 58vw; }
}
/* pocetna: slike malo vece u okviru */
.group-img img { padding: 6px; }

/* v24 mobitel: svi filteri poravnati - naziv lijevo (iste sirine), odabir desno */
@media (max-width: 900px) {
  .fs2 { display: block; padding: 0; border-bottom: 0; }
  .fs2 > .fs { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .fs, .fs.fs-p { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 0; }
  .fs.fs-sk { display: flex; align-items: center; padding: 6px 0 10px; }
  .fs .fh, .fs-p .fh { margin: 0; font-size: 13px; white-space: normal; }
  .fs-p .fprice { max-width: 260px; display: flex; gap: 8px; }
  .fs-p .fprice input { flex: 1; width: auto; min-width: 0; height: 36px; }
}

/* v25: krug boje + naziv nikad se ne stisnu ispod sirine teksta (obrub uvijek oko cijelog naziva) */
.fsw { display: flex; flex-wrap: wrap; gap: 5px; }
.fdot { flex: 0 0 auto !important; width: auto !important; min-width: max-content !important; max-width: none; box-sizing: border-box; overflow: visible; }
.fdot i { flex: 0 0 16px !important; }
.fdot span { flex: 0 0 auto; min-width: max-content; overflow: visible !important; text-overflow: clip !important; white-space: nowrap; }
@media (max-width: 900px) { .fsw { flex-wrap: nowrap; } }

/* v26 Firefox: bez flex/gap unutar gumba (Firefox ne racuna gap u sirinu gumba) */
.fdot { display: inline-block !important; gap: 0 !important; white-space: nowrap; line-height: 18px; padding: 3px 10px 3px 4px !important; text-align: left; vertical-align: top; }
.fdot i { display: inline-block; width: 18px; height: 18px; vertical-align: top; margin-right: 6px; border-radius: 50%; }
.fdot span { display: inline; vertical-align: top; }

/* v27: "+ jos" / "Prikazi manje" - skrivene stavke stvarno skrivene (jace pravilo od .fdot) */
.fsw .fdot.fx-skr, .fchips .fchip.fx-skr { display: none !important; }
@media (max-width: 900px) {
  .fsw .fdot.fx-skr { display: inline-block !important; }
  .fchips .fchip.fx-skr { display: inline-flex !important; }
}

/* istaknuto polje kolicine kad nedostaje */
@keyframes kolHint { 0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0); } 25%, 75% { box-shadow: 0 0 0 4px rgba(192,57,43,.28); } }
.kol-hint { animation: kolHint 1.2s ease-in-out; border-color: #e0a59d !important; }

/* vlastiti proizvodi s ukljucenim tiskom */
.card-ti { font-size: 11.5px; font-weight: 600; color: var(--teal-t); }
.ti-b { color: var(--teal-t); font-weight: 700; }
.ti-nap { margin-top: 8px; background: var(--teal-l); color: var(--teal-t); border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 500; }
.g-nap { background: var(--teal-l); color: var(--teal-t); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 500; margin: 0 0 14px; }

/* gotov HTML sa servera (za Google) - kod posjetitelja s JS-om skriven dok katalog ne nacrta stranicu, da nista ne zatreperi.
   Iznimka: glavna slika proizvoda vidi se odmah (ista slika na istom mjestu kao kad katalog nacrta stranicu - brzi LCP, bez pomaka) */
.js .ssr > :not(.prod), .js .ssr > .prod > :not(.gal) { opacity: 0; animation: ssr-vidi .2s linear 3s forwards; }
@keyframes ssr-vidi { to { opacity: 1; } }

/* tablica velicina (Stricker tekstil) */
.vt-box { display: flex; align-items: center; gap: 22px; }
.vt-fig { flex: 0 0 auto; margin: 0; width: 124px; text-align: center; }
.vt-ik { width: 100%; height: auto; max-height: 130px; color: var(--ink); overflow: visible; }
.vt-ob { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.vt-ob circle { fill: currentColor; stroke: none; }
.vt-mj { stroke: var(--teal); stroke-width: 2; stroke-dasharray: 3 3; fill: none; }
.vt-ik text { font-size: 15px; font-weight: 700; fill: var(--teal-t); text-anchor: middle; font-family: inherit; }
.vt-fig figcaption { margin-top: 6px; font-size: 13px; font-weight: 600; background: var(--teal-l); color: var(--teal-t); border-radius: 99px; padding: 3px 10px; display: inline-block; }
.vt-wrap { overflow-x: auto; flex: 1; min-width: 0; }
.vt-tab { border-collapse: collapse; width: 100%; }
.vt-tab th, .vt-tab td { padding: 9px 12px; text-align: center; white-space: nowrap; }
.vt-tab thead th { background: var(--bg); font-weight: 600; font-size: 13px; }
.vt-tab tbody tr:nth-child(2) td { background: var(--bg); }
.vt-tab td:first-child, .vt-tab th:first-child { text-align: left; color: var(--ink-2); position: sticky; left: 0; background: var(--card); }
.vt-tab thead th:first-child, .vt-tab tbody tr:nth-child(2) td:first-child { background: var(--bg); }
.vt-tab td:first-child b { color: var(--teal-t); margin-right: 4px; }
.vt-nap { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.vt-bez { flex: 1; }
.vt-bez p { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.vt-vel { display: flex; flex-wrap: wrap; gap: 6px; }
.vt-vel span { padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 14px; }
@media (max-width: 640px) { .vt-box { flex-direction: column; align-items: stretch; } .vt-fig { align-self: center; width: 104px; } }

/* gumb i skočni prozor: tablica veličina */
.lbl-vt { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vt-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--teal); color: var(--teal-t); background: var(--card); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.vt-btn:hover { background: var(--teal-l); }
.vt-dlg { background: var(--card); border: 0; border-radius: 14px; padding: 0; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-shadow: 0 20px 60px rgba(18, 50, 63, .25); color: var(--ink); }
.vt-dlg::backdrop { background: rgba(18, 50, 63, .45); }
.vt-dlg-in { padding: 18px 20px 20px; }
.vt-dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vt-dlg-h h2 { font-size: 18px; margin: 0; }
.vt-dlg-t { color: var(--ink-2); font-size: 14px; margin: 2px 0 14px; }
.vt-x { border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--ink); }
.vt-x:hover { background: var(--line); }
@media (max-width: 640px) {
  .vt-dlg { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 88vh; }
  .vt-dlg-in { padding: 16px 16px 20px; }
  .vt-dlg .vt-box { gap: 12px; }
  .vt-dlg .vt-fig { display: flex; align-items: center; gap: 12px; width: auto; align-self: flex-start; }
  .vt-dlg .vt-ik { width: 76px; max-height: 84px; }
  .vt-dlg .vt-fig figcaption { margin-top: 0; white-space: nowrap; }
  .vt-dlg .vt-tab th, .vt-dlg .vt-tab td { padding: 8px 7px; }
}

/* prozor dok se salje upit */
.sl-dlg { position: fixed; inset: 0; z-index: 200; background: rgba(18, 50, 63, .5); display: grid; place-items: center; padding: 16px; }
.sl-dlg[hidden] { display: none; }
.sl-in { background: var(--card); border-radius: 16px; padding: 28px 24px 24px; width: min(440px, 100%); text-align: center; box-shadow: 0 20px 60px rgba(18, 50, 63, .3); }
.sl-in h2 { font-size: 20px; margin: 14px 0 6px; }
.sl-in p { color: var(--ink-2); margin: 0 0 10px; }
.sl-in .sl-mali { font-size: 13px; color: var(--muted); margin-top: 12px; }
.sl-vrt { width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; border: 4px solid var(--teal-l); border-top-color: var(--teal); animation: sl-vrt .9s linear infinite; }
@keyframes sl-vrt { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sl-vrt { animation-duration: 3s; } }
.sl-bar { height: 8px; background: var(--teal-l); border-radius: 99px; overflow: hidden; margin: 6px 0 4px; }
.sl-bar span { display: block; height: 100%; background: var(--teal); border-radius: 99px; transition: width .2s; }
.sl-ik { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.sl-ik.err { background: var(--err-bg); color: var(--red); }
.sl-gumbi { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* pravne stranice */
.info-str { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 20px; max-width: 820px; margin: 0 auto 40px; line-height: 1.6; }
.info-str h1 { font-size: 26px; margin: 0 0 6px; line-height: 1.25; }
.info-str h2 { font-size: 18px; margin: 26px 0 8px; }
.info-str p, .info-str li { color: var(--ink-2); }
.info-str ul { padding-left: 20px; }
.info-str li { margin-bottom: 4px; }
.info-str .info-dat { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
@media (max-width: 640px) { .info-str { padding: 20px 16px 12px; border-radius: 10px; } .info-str h1 { font-size: 22px; } }
.foot-pravno a { color: inherit; }
.usugl a, .u-nap a { color: var(--teal-t); }
.info-str a { color: var(--teal-t); }

/* tamna tema - dodaci */
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { color: var(--ink); }
/* slike proizvoda ostaju na bijeloj podlozi, ali malo prigusene da ne blješte */
[data-theme="dark"] .card-img, [data-theme="dark"] .gal-main, [data-theme="dark"] .group-img, [data-theme="dark"] .thumbs button, [data-theme="dark"] .sug-it img, [data-theme="dark"] .ust-img, [data-theme="dark"] .ud-img { filter: brightness(.9); }
[data-theme="dark"] .card, [data-theme="dark"] .group { border-color: var(--line); }
.logo-tm { display: none; width: 182px; height: 40px; background: url(/katalog/logo-tamni-40.png) left center / contain no-repeat;
  background-image: -webkit-image-set(url(/katalog/logo-tamni-40.png) 1x, url(/katalog/logo-tamni-80.png) 2x, url(/katalog/logo-tamni-120.png) 3x);
  background-image: image-set(url(/katalog/logo-tamni-40.png) 1x, url(/katalog/logo-tamni-80.png) 2x, url(/katalog/logo-tamni-120.png) 3x); }
[data-theme="dark"] .logo-tm ~ img { display: none; }
[data-theme="dark"] .logo-tm { display: block; }
@media (max-width: 760px) { .logo-tm { width: 146px; height: 32px; } }
/* gumb za temu */
.tema-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 40px; padding: 0; }
.tema-btn:hover { border-color: var(--teal); color: var(--teal-t); }
.tema-btn .ik-sunce { display: none; }
[data-theme="dark"] .tema-btn .ik-mjesec { display: none; }
[data-theme="dark"] .tema-btn .ik-sunce { display: block; }
@media (max-width: 760px) { .tema-btn { margin-left: auto; width: 38px; height: 38px; flex-basis: 38px; } }
@media (max-width: 760px) { .tema-btn + .upit-top { margin-left: 0; } }
/* tamna tema: polja za unos bez vlastite pozadine (inace preglednik stavi sivu) */
:where([data-theme="dark"]) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
:where([data-theme="dark"]) select, :where([data-theme="dark"]) textarea { background-color: var(--field); color: var(--ink); }
/* tamne boje (crna, tamno plava) inace se ne vide na tamnoj podlozi */
[data-theme="dark"] .dot { border-color: rgba(255,255,255,.28); }
[data-theme="dark"] .fdot i { box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
[data-theme="dark"] .sw:not(.sw-txt):not(.on):not(:hover) { box-shadow: 0 0 0 1px var(--line-2); }

/* slicni proizvodi (stranica proizvoda) */
.slicni { margin: 30px 0 10px; }
.slicni h2 { font-size: 20px; margin: 0 0 12px; }
@media (min-width: 1100px) {
  .slicni .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  /* uske kartice: cijena u jednom redu, manje tockica boja */
  .slicni .price { white-space: nowrap; }
  .slicni .dots .dot:nth-of-type(n+4), .slicni .dots em { display: none; }
}
.slicni .price { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1099px) { .slicni .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* v70 mobitel: izbornik i upit - pozadina se ne pomice; tekst u gumbima velicina uvijek centriran */
html.noscroll, html.noscroll body { overflow: hidden; }
.drawer, .drawer-panel, .udrop-bg, .udrop.mob, .ud-l { overscroll-behavior: contain; }
.fchip { display: inline-flex; align-items: center; justify-content: center; line-height: 1; white-space: nowrap; }

/* v74 filtar velicina: vrste velicina s podnaslovima koji se otvaraju, uredniji gumbici */
.fsub-b { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 4px 0; text-align: left; cursor: pointer; font-family: inherit; font-weight: 600; }
.fsub-b small { font-weight: 400; opacity: .8; }
.fsub-b::after { content: '▸'; margin-left: auto; font-size: 12px; }
.fsub-b[aria-expanded="true"]::after { content: '▾'; }
.fsub-b:hover { color: var(--teal-t); }
.fbod .fchips + .fsub-b { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 9px; }
.fchips.fx-skr-g { display: none; }
.fchip small { margin-left: 5px; }
@media (min-width: 901px) {
  .fchips { max-height: none; overflow: visible; }
  .fchip { min-width: 44px; }
}
@media (max-width: 900px) {
  .fsub-b { display: none; }
  .fchips.fx-skr-g { display: flex; }
}

