[hidden] { display: none !important; }
:root {
  --primary: #0b1b33;
  --accent: #f26b1d;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #16202e;
  --muted: #6b7686;
  --line: #e3e8ef;
  --ok: #16a34a;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
button, input, select, textarea { font: inherit; }

.topbar { background: var(--primary); color: #cfd6e3; font-size: 13px; }
.topbar .wrap { display: flex; gap: 18px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.tb-right { margin-left: auto; display: flex; gap: 14px; }

.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 42px; height: 42px; border-radius: 12px; background: #ffd200; color: #0b4da2; box-shadow: inset 0 0 0 3px #0b4da2; display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.logo b { display: block; font-size: 19px; color: #0b4da2; letter-spacing: -.3px; }
.logo small { display: block; color: var(--muted); font-size: 11.5px; }
.search { flex: 1; display: flex; max-width: 560px; margin-left: auto; }
.search input { flex: 1; padding: 11px 14px; border: 2px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; outline: none; min-width: 0; }
.search input:focus { border-color: var(--accent); }
.search button { border: 0; background: var(--accent); color: #fff; padding: 0 16px; border-radius: 0 10px 10px 0; cursor: pointer; }
.cart-btn { display: flex; align-items: center; gap: 6px; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.cart-btn b { background: var(--accent); border-radius: 99px; padding: 0 8px; font-size: 13px; }
.menu-btn { display: none; border: 0; background: none; font-size: 24px; cursor: pointer; }

.catnav { border-top: 1px solid var(--line); background: #fff; position: relative; }
.catnav #catnav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catnav #catnav-in a { padding: 10px 12px; white-space: nowrap; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
.catnav #catnav-in a:hover, .catnav #catnav-in a.hov, .catnav #catnav-in a.on { color: var(--primary); border-color: var(--accent); }

main { min-height: 60vh; padding-top: 22px; padding-bottom: 40px; }
h1, h2, h3 { letter-spacing: -.4px; color: var(--primary); }
h2 { font-size: 22px; margin: 28px 0 14px; display: flex; align-items: center; justify-content: space-between; }
h2 a { font-size: 14px; color: var(--accent); font-weight: 600; }

.hero { background: linear-gradient(120deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 70%, var(--accent)) 100%); color: #fff; border-radius: 20px; padding: 42px 36px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; overflow: hidden; }
.hero h1 { color: #fff; font-size: 38px; line-height: 1.1; margin: 0 0 12px; }
.hero p { color: #d6dcea; font-size: 17px; margin: 0 0 22px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; }
.hero-badges span { background: rgba(255,255,255,.12); padding: 6px 10px; border-radius: 99px; }
.hero-img { font-size: 140px; text-align: center; filter: drop-shadow(0 10px 30px rgba(0,0,0,.3)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 0; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; transition: filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn.dark { background: var(--primary); }
.btn.ghost { background: transparent; border: 2px solid var(--line); color: var(--primary); }
.btn.white { background: #fff; color: var(--primary); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.cat:hover { transform: translateY(-2px); border-color: var(--accent); }
.cat .ic { font-size: 30px; }
.cat b { display: block; margin-top: 6px; font-size: 14px; color: var(--primary); }
.cat small { color: var(--muted); }
.cat b, .cat small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.catnav #catnav-in { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16,24,40,.1); }
.card .ph { aspect-ratio: 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: contain; }
.card .noimg { font-size: 54px; opacity: .3; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .t { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.card .meta { font-size: 12px; color: var(--muted); }
.price { font-size: 19px; font-weight: 800; color: var(--accent); }
.price s { color: var(--muted); font-size: 13px; font-weight: 500; margin-left: 6px; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.add { border: 0; background: var(--primary); color: #fff; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 17px; }
.add:hover { background: var(--accent); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; z-index: 1; }
.badge.used { background: #64748b; }
.badge.new { background: var(--ok); }

.layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 130px; }
.side h4 { margin: 0 0 8px; font-size: 14px; color: var(--primary); }
.side a { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 8px; font-size: 14px; }
.side a:hover, .side a.on { background: var(--bg); color: var(--accent); }
.side a.sub { padding-left: 20px; font-size: 13.5px; color: var(--muted); }
.side small { color: var(--muted); }
.side .f { margin-top: 16px; display: grid; gap: 8px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); margin-right: auto; }
select, input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.toolbar select { width: auto; }
textarea { min-height: 110px; resize: vertical; }
label { font-size: 13px; font-weight: 600; color: var(--muted); display: grid; gap: 4px; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pager button { border: 1px solid var(--line); background: #fff; padding: 8px 13px; border-radius: 8px; cursor: pointer; }
.pager button.on { background: var(--primary); color: #fff; border-color: var(--primary); }

.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.gallery .main { aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 2px solid var(--line); cursor: pointer; flex: none; }
.thumbs img.on { border-color: var(--accent); }
.pd h1 { font-size: 26px; margin: 4px 0 10px; }
.pd .price { font-size: 30px; }
.pd > * { min-width: 0; }
.pd .desc { white-space: pre-line; overflow-wrap: anywhere; color: #334155; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.pd .actions { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.pd .chat .btn { flex: 1 1 150px; padding: 9px 14px; font-size: 14px; }
.btn.wa { background: #25d366; }
.btn.vb { background: #7360f2; }
.qty { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { border: 0; background: var(--bg); width: 38px; cursor: pointer; font-size: 18px; }
.qty input { width: 48px; text-align: center; border: 0; border-radius: 0; padding: 10px 0; }
.attrs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin-top: 10px; }
.attrs dt { color: var(--muted); }
.attrs dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.perks { display: grid; gap: 8px; font-size: 14px; color: #334155; background: var(--bg); border-radius: 12px; padding: 14px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 70px; height: 70px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.cart-item .x { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 18px; }
.sum { display: flex; justify-content: space-between; padding: 6px 0; }
.sum.total { font-size: 20px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.form { display: grid; gap: 12px; }
.form .r2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio { display: flex; gap: 10px; }
.radio label { flex: 1; border: 2px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; color: var(--text); display: flex; align-items: center; gap: 8px; }
.radio label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.hp { position: absolute; left: -9999px; }

.locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.loc iframe { width: 100%; height: 240px; border: 0; border-radius: 10px; margin-top: 12px; }
.loc h3 { margin: 0 0 6px; }
.loc p { margin: 4px 0; color: #334155; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big { font-size: 60px; }
.info-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.info-strip div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; }
.info-strip b { display: block; color: var(--primary); }
.info-strip span.i { font-size: 26px; }

.footer { background: var(--primary); color: #cfd6e3; margin-top: 40px; padding-top: 34px; }
.footer h4 { color: #fff; margin: 0 0 10px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 24px; }
.f-map { display: block; width: 100%; height: 180px; border: 0; border-radius: 10px; margin-bottom: 8px; }
.footer a:hover { color: var(--accent); }
.copy { border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; padding-bottom: 14px; margin-top: 20px; font-size: 13px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--primary); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .25s, opacity .25s; z-index: 50; max-width: 90vw; opacity: 0; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.success { text-align: center; padding: 40px 20px; }
.success .big { font-size: 64px; }
.err { color: #dc2626; font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; font-weight: 600; color: var(--primary); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.fab { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 30; }
.fab a { color: #fff; font-weight: 700; font-size: 13px; padding: 10px 14px; border-radius: 99px; box-shadow: 0 6px 18px rgba(0,0,0,.2); text-align: center; }
.fab .wa { background: #25d366; }
.fab .vb { background: #7360f2; }
.fab .tel { background: var(--accent); }
.fab .ic { display: none; }
.bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 16px; padding: 0 16px; height: 48px; background: var(--primary); color: #cfd6e3; font-size: 14px; box-shadow: 0 -4px 14px rgba(0,0,0,.15); }
.bottombar a, .bottombar span { white-space: nowrap; }
.bottombar .bb-loc { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.bottombar .bb-loc span { text-decoration: underline; text-underline-offset: 3px; }
.bottombar .bb-tel { background: var(--accent); color: #fff; font-weight: 700; padding: 6px 14px; border-radius: 99px; }
body.has-bottombar { padding-bottom: 48px; }
body.has-bottombar .fab { bottom: 64px; }
body.has-bottombar .fab .tel { display: none; }
@media (max-width: 900px) {
  .home-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .layout, .pd, .two, .hero, .footer-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .hero { padding: 28px 22px; } .hero h1 { font-size: 28px; } .hero-img { display: none; }
  .info-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-in { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .cart-btn { margin-left: auto; }
  .cart-btn span { display: none; }
  .logo small { display: none; }
  .tb-right { margin-left: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card .body { padding: 10px; } .price { font-size: 16px; }
  .form .r2 { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 56px 1fr auto; } .cart-item img { width: 56px; height: 56px; } .cart-item .qty { grid-column: 2; }
  .locs { grid-template-columns: 1fr; }
  #tb-hours, .tb-right { display: none; }
  .hero { padding: 22px 18px; }
  .hero-badges span:nth-child(n+3) { display: none; }
  .home-cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; scroll-padding-inline: 16px; }
  .home-cats .cat { flex: 0 0 140px; scroll-snap-align: start; }
  .bottombar .bb-hours { display: none; }
  .bottombar { gap: 10px; font-size: 13px; }
  .fab a { width: 48px; height: 48px; padding: 0; display: grid; place-items: center; border-radius: 50%; font-size: 20px; }
  .fab .lbl { display: none; }
  .fab .ic { display: block; font-size: 20px; }
  body { padding-bottom: 72px; }
}

.chiprow { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.chiprow > b { flex: 0 0 52px; padding-top: 6px; font-size: 13px; color: var(--primary); }
.fchips { gap: 6px; min-width: 0; }
.fchips .chip { padding: 5px 12px; font-size: 13px; cursor: pointer; font-family: inherit; }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.on small { color: #cfd6e3; }
.avl { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; margin-left: 4px; }
.avl.order { background: #fff1e6; color: var(--accent); }
.avl.shop { background: #e8f7ee; color: var(--ok); }
.avl.none { background: #fdecec; color: #dc2626; }
.side .fattrs { display: grid; gap: 8px; }
.side .fb { display: grid; gap: 8px; }
.side select { max-width: 100%; }
@media (max-width: 640px) { .chiprow { flex-direction: column; gap: 4px; } .chiprow > b { flex: none; padding: 0; } }

/* mega meni */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 14px 28px rgba(11, 27, 51, .12); z-index: 30; }
.mega[hidden] { display: none; }
.mega-in { max-width: 1180px; margin: 0 auto; padding: 18px 20px 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; }
.mcol { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mcol a { padding: 3px 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcol a:hover { color: var(--accent); }
.mcol a.mh { font-weight: 700; font-size: 14.5px; color: var(--primary); margin-bottom: 2px; }
.mcol a.more { color: var(--accent); font-weight: 600; }
/* sve kategorije */
.tsec { margin-bottom: 26px; }
.tsec h2 a { color: var(--primary); font-size: 21px; }
.tsec h2 small { color: var(--muted); font-weight: 400; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); min-width: 0; }
.tcard .th { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tcard .th .ic { font-size: 20px; }
.tcard .th b { flex: 1; min-width: 0; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .th small { color: var(--muted); }
.tcard .th:hover b { color: var(--accent); }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tchips .chip { padding: 3px 10px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
/* podgrupe na stranici kategorije */
.subrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.subrow .chip { white-space: nowrap; padding: 6px 14px; font-size: 13.5px; }
.side a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.side a small { margin-left: 8px; flex: none; }
.side a.d1 { padding-left: 18px; font-size: 13.5px; }
.side a.d2 { padding-left: 32px; font-size: 13px; color: var(--muted); }
.side a.d3 { padding-left: 46px; font-size: 13px; color: var(--muted); }
.side a.d0 { font-weight: 700; color: var(--primary); }
.side a.on { background: var(--bg); color: var(--accent); font-weight: 700; }
@media (max-width: 640px) {
  .subrow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .subrow .chip { flex: none; }
  .tgrid { grid-template-columns: 1fr; }
}
.layout > section { min-width: 0; }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.fbtn { display: none; }
.subrow.sibs { display: none; }
@media (max-width: 640px) {
  .layout { display: flex; flex-direction: column; gap: 0; }
  .layout > section { display: contents; }
  .subrow { order: 1; } .subrow.sibs { display: flex; }
  #f-chips { order: 2; }
  .fbtn { display: block; order: 3; width: 100%; margin-bottom: 12px; padding: 9px; font-size: 14px; }
  .layout > .side { order: 4; display: none; margin-bottom: 12px; }
  .layout > .side.open { display: block; }
  .toolbar { order: 5; } #list { order: 6; } #pager { order: 7; }
}
