/* Duly Promet — dizajn sustav (plavo-žuta paleta, mobile-first)
   Plava = glavna boja, žuta (--cta) = gumbi i pozivi na akciju. Jedna datoteka.
   Interne varijable nose ime --brand-* (drže plave tonove). */

:root {
    /* Plava — glavna paleta */
    --brand-900: #0b2545;   /* najtamnija (topbar, footer, hero) */
    --brand-800: #0f3560;
    --brand-700: #14508c;   /* linkovi, naslovi */
    --brand-600: #1b6fc0;   /* primarna plava (nav, akcenti) */
    --brand-500: #3a8ae0;
    --brand-100: #dbeafe;   /* svijetla podloga (ikone, čipovi) */
    --brand-50:  #eef5ff;

    /* Žuta — CTA / gumbi */
    --cta:       #f5b301;
    --cta-hover: #dd9e00;
    --cta-ink:   #0b2545;   /* tamni tekst na žutoj (kontrast) */

    --ink:      #17202b;
    --ink-soft: #566577;
    --line:     #e3e8ee;
    --bg:       #f5f7fa;
    --white:    #ffffff;

    --sale:     #dc2626;
    --sale-bg:  #fdecec;
    --gold:     #b8860b;

    --radius:   14px;
    --radius-sm:10px;
    --shadow:   0 1px 2px rgba(11,37,69,.06), 0 6px 20px rgba(11,37,69,.07);
    --shadow-hover: 0 8px 30px rgba(11,37,69,.15);

    --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--brand-900);
    color: #c3d6ee;
    font-size: 13px;
}
.topbar .wrap {
    display: flex; justify-content: space-between; align-items: center;
    height: 38px; gap: 16px;
}
.topbar a { color: #c3d6ee; }
.topbar .top-usp { display: flex; gap: 20px; }
.topbar .top-usp span::before { content: "✓"; color: var(--brand-500); margin-right: 6px; font-weight: 700; }
@media (max-width: 760px) { .topbar .top-usp span:nth-child(n+2) { display: none; } }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.header .wrap {
    display: flex; align-items: center; gap: 22px;
    height: 74px;
}
/* Logo na tamnoplavoj pločici (bijela verzija logotipa na bijelom zaglavlju) */
.logo { display: inline-flex; align-items: center; background: var(--brand-900); border-radius: 12px; padding: 9px 16px; }
.logo-img { height: 36px; width: auto; display: block; }

/* Search — u središtu zaglavlja */
.search { flex: 1; position: relative; max-width: 620px; }
.search input {
    width: 100%; height: 48px; border: 2px solid var(--line); border-radius: 999px;
    padding: 0 54px 0 20px; font-size: 15px; font-family: inherit; background: var(--brand-50);
    transition: border-color .15s, background .15s;
}
.search input:focus { outline: none; border-color: var(--brand-500); background: #fff; }
.search button {
    position: absolute; right: 5px; top: 5px; height: 38px; width: 44px;
    border: 0; border-radius: 999px; background: var(--brand-600); color: #fff;
    cursor: pointer; display: grid; place-items: center; font-size: 17px;
}

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
    display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 10px; border-radius: 10px; color: var(--ink-soft); font-size: 11px; font-weight: 600;
    position: relative; background: none; border: 0; cursor: pointer;
}
.icon-btn:hover { background: var(--brand-50); color: var(--brand-700); }
.icon-btn .ico { font-size: 20px; }
.badge {
    position: absolute; top: 2px; right: 6px; background: var(--sale); color: #fff;
    font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 999px;
    display: grid; place-items: center; padding: 0 4px;
}
.burger { display: none; }

/* ---------- Nav (mega-izbornik) ---------- */
.nav { background: var(--brand-800); }
.nav .wrap { display: flex; gap: 2px; height: 48px; align-items: center; position: relative; }
.nav > .wrap > a.all,
.nav .nav-item > a {
    color: #cfe0f5; font-weight: 600; font-size: 14.5px; padding: 8px 14px; border-radius: 8px;
    white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
}
.nav .nav-item > a:hover, .nav .nav-item:hover > a { background: rgba(255,255,255,.12); color: #fff; }
.nav a.all { background: var(--brand-600); color: #fff; }
.nav .caret { font-size: 9px; opacity: .7; }
.nav-item { position: relative; }
.nav-sub {
    position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff;
    border-radius: 0 0 12px 12px; box-shadow: var(--shadow-hover); padding: 8px; z-index: 60;
    display: none;
}
.nav-item:hover .nav-sub { display: block; }
.nav-sub a {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    color: var(--ink); padding: 9px 12px; border-radius: 7px; font-weight: 600; font-size: 14px;
}
.nav-sub a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav-sub .sub-count { color: #b3bcc6; font-size: 12px; font-weight: 600; }

/* "Svi proizvodi" — padajući izbornik (kategorije jedna ispod druge, skrolabilno) na hover */
.nav-all { position: relative; }
.nav-mega {
    position: absolute; top: 100%; left: 0; z-index: 60;
    display: none; width: 320px; max-height: 76vh; overflow-y: auto;
    background: #fff; border-radius: 0 0 14px 14px; box-shadow: var(--shadow-hover); padding: 8px;
}
.nav-all:hover .nav-mega { display: block; }
.nav-mega-col { margin-bottom: 4px; }
.nav-mega-head { display: block; font-weight: 800; font-size: 14px; color: var(--brand-800);
    padding: 9px 12px 8px; border-bottom: 1px solid var(--line); }
.nav-mega-head:hover { color: var(--brand-600); }
.nav-mega-sub { display: flex; justify-content: space-between; gap: 8px; align-items: center;
    padding: 7px 12px 7px 22px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--ink); }
.nav-mega-sub:hover { background: var(--brand-50); color: var(--brand-700); }
.nav-mega-sub .sub-count { color: #b3bcc6; font-size: 11.5px; font-weight: 700; }

/* ---------- Hero (3 stupca: kategorije · slider · poveznice) ---------- */
.hero { padding: 22px 0 8px; }
.hero3 { display: grid; grid-template-columns: 210px 1fr 210px; gap: 16px; align-items: start; }

/* Lijevo — kategorije */
.hero-cats { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero-cats-all { display: block; background: var(--brand-600); color: #fff; font-weight: 800; padding: 13px 18px; font-size: 15px; }
.hero-cats ul { list-style: none; margin: 0; padding: 6px; }
.hero-cats li a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.hero-cats li a:hover { background: var(--brand-50); color: var(--brand-700); }

/* Sredina — slider */
.hero-slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 360px; background: var(--brand-900); }
.hero-slider .slides { position: relative; height: 100%; min-height: 360px; }
.slide {
    position: absolute; inset: 0; display: flex; align-items: center; padding: 44px;
    background: linear-gradient(120deg, var(--brand-800), var(--brand-600));
    background-size: cover; background-position: center; color: #fff;
    opacity: 0; transition: opacity .5s; pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,37,69,.72), rgba(11,37,69,.15)); }
.slide-inner { position: relative; max-width: 460px; }
.slide-inner h2 { font-size: 36px; line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em; }
.slide-inner p { font-size: 16px; color: #eaf2fb; margin: 0 0 22px; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 999px; border: 0; background: rgba(255,255,255,.9); color: var(--brand-800); font-size: 24px; cursor: pointer; display: grid; place-items: center; z-index: 3; }
.slider-nav.prev { left: 14px; } .slider-nav.next { right: 14px; }
.slider-nav:hover { background: #fff; }
.slider-dots { position: absolute; bottom: 14px; left: 44px; display: flex; gap: 7px; z-index: 3; }
.slider-dots .dot { width: 9px; height: 9px; border-radius: 999px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.slider-dots .dot.active { background: var(--cta); width: 24px; border-radius: 999px; }

/* Poveznice oko bannera — pločice; veličina ikone/teksta se prilagođava broju (JS: --hl-ico/--hl-txt) */
.hero-links { display: flex; flex-direction: column; gap: 10px; min-height: 360px; }
.hero-links a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 10px 12px; height: 100%; flex: 1; font-weight: 700; color: var(--ink); line-height: 1.15;
    font-size: var(--hl-txt, 16px); transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.hero-links a:hover { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); transform: translateY(-1px); box-shadow: var(--shadow); }
.hero-links .ql-ico { font-size: var(--hl-ico, 30px); line-height: 1; }
.hero-links .ql-label { display: block; }

.btn {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
    padding: 13px 24px; border-radius: 999px; cursor: pointer; border: 0; font-family: inherit;
    transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--brand-800); }
.btn-ghost { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn-green { background: var(--cta); color: var(--cta-ink); box-shadow: var(--shadow); font-weight: 800; }
.btn-green:hover { background: var(--cta-hover); box-shadow: var(--shadow-hover); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Section ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 6px 16px; flex-wrap: wrap; }
.section-head h2 { flex: 1 1 auto; min-width: 0; }
.section-head .link { flex: 0 0 auto; white-space: nowrap; }
.section-head h2 { font-size: 26px; letter-spacing: -.02em; margin: 0; }
.section-head .link { color: var(--brand-700); font-weight: 700; font-size: 14px; }

/* ---------- Kategorije (pločaste) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    display: flex; flex-direction: column; overflow: hidden;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-card:hover { border-color: var(--brand-500); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
/* slika/ikona preko cijele gornje površine kartice */
.cat-img { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-50); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.cat-card:hover .cat-img img { transform: scale(1.05); }
.cat-ico {
    width: 100%; aspect-ratio: 4 / 3; background: var(--brand-100);
    display: grid; place-items: center; font-size: 52px;
}
.cat-card b { font-size: 15.5px; font-weight: 700; line-height: 1.25; padding: 14px 16px 0; }
.cat-card small { color: var(--ink-soft); font-size: 13px; padding: 3px 16px 16px; }

/* ---------- Kartice proizvoda ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s, border-color .15s;
    position: relative;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: #d7ded9; }
.card-media { position: relative; aspect-ratio: 1/1; background: #fff; padding: 14px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.flags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.flag {
    font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    padding: 5px 9px; border-radius: 7px; color: #fff;
}
.flag.sale { background: var(--sale); }
.flag.new  { background: var(--brand-600); }
.flag.pct  { background: #111; }
.wish {
    position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); display: grid; place-items: center;
    color: var(--ink-soft); cursor: pointer; z-index: 2; font-size: 15px;
}
.wish:hover { color: var(--sale); border-color: var(--sale); }
.wish.active { color: var(--sale); border-color: var(--sale); background: var(--sale-bg); }
.wish-btn.active { color: var(--sale); border-color: var(--sale); background: var(--sale-bg); }
.wish-btn .wh { font-size: 17px; line-height: 1; }

.card-body { padding: 4px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-600); }
.card-title {
    font-size: 14.5px; font-weight: 600; line-height: 1.3; margin: 5px 0 10px; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px;
}
.card:hover .card-title { color: var(--brand-700); }

.price-row { display: flex; align-items: baseline; gap: 9px; margin-top: auto; }
.price-now { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.price-now.sale { color: var(--sale); }
.price-old { font-size: 14px; color: var(--ink-soft); text-decoration: line-through; }
.price-ask { font-size: 15px; font-weight: 700; color: var(--brand-700); }

.lowest30 { font-size: 11.5px; color: var(--ink-soft); margin: 4px 0 0; }
.p-price-box .lowest30 { font-size: 13px; margin: 8px 0 2px; }
.delivery { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--brand-700); margin: 9px 0 13px; font-weight: 600; }
.delivery .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }

.card .btn-green { padding: 10px 14px; font-size: 14px; }

/* ---------- Trust ---------- */
.trust { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 20px; }
.trust-item { display: flex; gap: 14px; align-items: center; }
.trust-item .t-ico { font-size: 26px; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-100); display: grid; place-items: center; }
.trust-item b { display: block; font-size: 15px; }
.trust-item span { font-size: 13px; color: var(--ink-soft); }

/* ---------- Brands ---------- */
.brand-row { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-chip {
    background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px;
    font-weight: 700; color: var(--ink-soft); font-size: 14px;
}
.brand-chip:hover { border-color: var(--brand-500); color: var(--brand-700); }

/* ---------- Brand chip (link) ---------- */
.brand-chip { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; }
.brand-chip .brand-ico { width: 26px; height: 26px; object-fit: contain; display: block; flex-shrink: 0; }
.brand-chip span { line-height: 1; }

/* ---------- Brand page ---------- */
.brand-head { display: flex; align-items: center; gap: 20px; padding: 14px 20px 6px; }
.brand-logo { max-height: 52px; max-width: 140px; object-fit: contain; }
.brand-head h1 { font-size: 30px; margin: 0; letter-spacing: -.02em; }
.brand-desc { padding: 8px 20px 0; max-width: 900px; }
.brand-empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.brand-empty h3 { margin: 14px 0 8px; }
.brand-empty .btn { margin: 16px 8px 0; }

/* ---------- Footer ---------- */
.footer { background: var(--brand-900); color: #b3c6de; margin-top: 50px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding: 48px 20px 30px; }
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 16px; }
.footer a { color: #b3c6de; display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 44px; width: auto; display: block; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 38px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; }
.footer-social a:hover { background: var(--cta); color: var(--cta-ink); }
.footer p { font-size: 14px; margin: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .wrap { display: flex; justify-content: space-between; padding: 18px 20px; font-size: 13px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 18px 20px 0; font-size: 13px; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--brand-700); font-weight: 600; }
.breadcrumbs span { color: #c3ccc6; }

/* ---------- Shop ---------- */
.shop-head { padding: 12px 20px 4px; }
.shop-head h1 { font-size: 28px; margin: 8px 0 4px; letter-spacing: -.02em; }
.shop-head p { color: var(--ink-soft); margin: 0; font-size: 14px; }
.subcat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.subcat-chips a { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--brand-700); }
.subcat-chips a:hover { border-color: var(--brand-500); background: var(--brand-50); }
.subcat-chips a span { color: #b3bcc6; font-size: 12px; }

.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding-top: 22px; padding-bottom: 50px; align-items: start; }

.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
.filter-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-block:first-child { padding-top: 0; }
.filter-block h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { width: 100%; height: 40px; border: 1.5px solid var(--line); border-radius: 9px; padding: 0 10px; font-family: inherit; font-size: 14px; }
.price-inputs input:focus { outline: none; border-color: var(--brand-500); }
.check { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand-600); }
.filters .btn { margin-top: 16px; }
.clear-link { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.filter-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.filter-list li a { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; color: var(--ink-soft); }
.filter-list li a:hover, .filter-list li a.active { color: var(--brand-700); font-weight: 700; }
.filter-list li a span { color: #b3bcb6; font-size: 12.5px; }
/* stablo kategorija u filtru — klik na glavnu kategoriju vodi na tu kategoriju (prikaže artikle),
   aktivna kategorija je proširena i istaknuta, s podkategorijama */
.filter-tree { list-style: none; margin: 0; padding: 0; max-height: 70vh; overflow-y: auto; }
.filter-tree > li { border-bottom: 1px solid var(--line); }
.filter-tree .ft-root { display: flex; align-items: center; gap: 8px; padding: 9px 4px; font-size: 14px;
    font-weight: 700; color: var(--ink); text-decoration: none; }
.filter-tree .ft-root:hover { color: var(--brand-700); }
.filter-tree .ft-root.active { color: var(--brand-700); }
.filter-tree .ft-name { flex: 1; min-width: 0; }
.filter-tree .ft-count { color: var(--ink-soft); font-size: 12.5px; font-weight: 600; }
.filter-tree .ft-caret { font-size: 10px; color: var(--ink-soft); }
.filter-tree .ft-sub { list-style: none; margin: 0 0 6px; padding: 0 0 0 10px; border-left: 2px solid var(--brand-100); margin-left: 6px; }
.filter-tree .ft-sub li a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 6px; font-size: 13px; color: var(--ink-soft); border-radius: 6px; }
.filter-tree .ft-sub li a:hover { background: var(--brand-50); color: var(--brand-700); }
.filter-tree .ft-sub li a.active { color: var(--brand-700); font-weight: 700; background: var(--brand-50); }
.filter-tree .ft-sub li a span { color: #b3bcc6; font-size: 12px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.toolbar > span { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.sort-form label { font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.sort-form select { height: 38px; border: 1.5px solid var(--line); border-radius: 9px; padding: 0 10px; font-family: inherit; font-size: 14px; background: #fff; cursor: pointer; }
.shop-grid { grid-template-columns: repeat(3, 1fr); }

.empty { text-align: center; padding: 70px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.empty h3 { margin: 10px 0 20px; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pager a, .pager .dots { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; font-size: 14px; color: var(--ink); padding: 0 8px; }
.pager a:hover { border-color: var(--brand-500); color: var(--brand-700); }
.pager a.active { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.pager .dots { border: 0; background: none; }

/* ---------- Product page ---------- */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 22px; padding-bottom: 20px; align-items: start; }
.gallery-main { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1/1; display: grid; place-items: center; padding: 24px; }
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-main .noimg { color: var(--ink-soft); }
.flag.pct.big { position: absolute; top: 16px; left: 16px; font-size: 15px; padding: 8px 12px; border-radius: 9px; z-index: 2; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 5px; cursor: pointer; }
.thumb.active { border-color: var(--brand-500); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
/* strelice + brojač na glavnoj slici */
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px;
    border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: var(--shadow);
    color: var(--brand-800); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center;
    z-index: 3; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.gallery-main:hover .gal-nav { opacity: 1; }
.gal-nav:hover { background: #fff; color: var(--brand-600); }
.gal-prev { left: 12px; } .gal-next { right: 12px; }
.gal-count { position: absolute; bottom: 12px; right: 14px; z-index: 3; background: rgba(11,37,69,.72);
    color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
@media (hover: none) { .gal-nav { opacity: .9; } }

.p-brand { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-600); }
.product-info h1 { font-size: 28px; line-height: 1.2; margin: 8px 0 12px; letter-spacing: -.02em; }
.p-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 20px; }
.p-meta a { color: var(--brand-700); font-weight: 600; }

.p-price-box { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.p-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.p-price .price-now { font-size: 32px; }
.p-price .price-old { font-size: 18px; }
.p-vat { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.p-ask { font-size: 26px; font-weight: 800; color: var(--brand-700); }
.p-ask-note { font-size: 14px; color: var(--ink-soft); margin: 6px 0 0; }
.p-avail { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.p-avail .dot { width: 9px; height: 9px; border-radius: 999px; }
.p-avail.in { color: var(--brand-700); } .p-avail.in .dot { background: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
.p-avail.out { color: var(--sale); } .p-avail.out .dot { background: var(--sale); }

.p-variants { margin: 0 0 18px; }
.p-var-label { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.var-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.var-pill { position: relative; }
.var-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.var-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; background: #fff; }
.var-pill input:checked + span { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); }
.var-pill input:focus-visible + span { outline: 2px solid var(--brand-500); }
.p-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }
.btn-outline { background: #fff; color: var(--brand-700); box-shadow: inset 0 0 0 1.5px var(--brand-500); }
.btn-outline:hover { background: var(--brand-50); }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 48px; border: 0; background: #fff; font-size: 20px; cursor: pointer; color: var(--ink-soft); }
.qty button:hover { background: var(--brand-50); color: var(--brand-700); }
.qty input { width: 48px; height: 48px; border: 0; text-align: center; font-size: 16px; font-weight: 700; font-family: inherit; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.p-usp { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }

.product-specs { padding-bottom: 8px; }
.product-specs h2 { font-size: 22px; margin-bottom: 12px; }
.specs-table { width: 100%; max-width: 640px; border-collapse: collapse; }
.specs-table th, .specs-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.specs-table th { width: 40%; color: var(--ink-soft); font-weight: 600; background: var(--brand-50); }
.specs-table td { font-weight: 600; }
.attr-select { width: 100%; height: 40px; border: 1.5px solid var(--line); border-radius: 9px; padding: 0 10px; font-family: inherit; font-size: 14px; background: #fff; cursor: pointer; }
.attr-select:focus { outline: none; border-color: var(--brand-500); }

.product-desc { padding-bottom: 20px; }
.product-desc h2 { font-size: 22px; margin-bottom: 14px; }
.product-desc .lead { font-size: 16px; font-weight: 600; color: var(--ink); }
.product-desc p { max-width: 820px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- Flash ---------- */
.flash-wrap { padding-top: 16px; }
.flash { padding: 13px 18px; border-radius: 10px; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.flash-ok { background: var(--brand-100); color: var(--brand-800); border: 1px solid var(--brand-500); }
.flash-err { background: var(--sale-bg); color: #a01818; border: 1px solid var(--sale); }

/* ---------- Cart ---------- */
.cart-page { padding-top: 14px; padding-bottom: 50px; }
.cart-page h1 { font-size: 28px; margin: 8px 0 20px; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
.cart-items { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px; }
.cart-row { display: grid; grid-template-columns: 80px 1fr 96px 100px 30px; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-of-type { border-bottom: 0; }
.cart-img img { width: 80px; height: 80px; object-fit: contain; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.cart-info b { font-size: 14.5px; line-height: 1.3; display: block; }
.cart-info b:hover { color: var(--brand-700); }
.cart-unit { font-size: 13px; color: var(--ink-soft); }
.cart-qty input { width: 100%; height: 42px; border: 1.5px solid var(--line); border-radius: 9px; text-align: center; font-weight: 700; font-family: inherit; font-size: 15px; }
.cart-line { text-align: right; font-weight: 800; font-size: 16px; }
.cart-del { background: none; border: 0; color: #bbb; font-size: 16px; cursor: pointer; padding: 6px; }
.cart-del:hover { color: var(--sale); }
.cart-actions { display: flex; justify-content: space-between; padding: 18px 0 8px; gap: 12px; }

.cart-summary, .checkout-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 90px; }
.cart-summary h3, .checkout-summary h3 { margin: 0 0 16px; font-size: 18px; }
.coupon-form { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.coupon-input { display: flex; gap: 8px; }
.coupon-input input { flex: 1; height: 42px; border: 1.5px solid var(--line); border-radius: 9px; padding: 0 12px; font-family: inherit; font-size: 14px; }
.coupon-input .btn { padding: 10px 16px; }
.coupon-hint { display: block; margin-top: 8px; font-size: 12.5px; color: var(--ink-soft); }
.coupon-active { display: flex; justify-content: space-between; align-items: center; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 9px; padding: 10px 14px; font-size: 14px; }
.link-btn { background: none; border: 0; color: var(--sale); cursor: pointer; text-decoration: underline; font-size: 13px; }

.summary-lines { margin: 0 0 14px; }
.summary-lines > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; }
.summary-lines dt { color: var(--ink-soft); margin: 0; } .summary-lines dd { margin: 0; font-weight: 600; }
.summary-lines .disc dd { color: var(--sale); }
.free { color: var(--brand-600); }
.free-ship-note { background: var(--brand-50); border-radius: 9px; padding: 10px 14px; font-size: 13px; color: var(--brand-800); margin-bottom: 14px; text-align: center; }
.oversize-note { background: #fff7ed; border: 1px solid #fdba74; border-radius: 9px; padding: 10px 14px; font-size: 12.5px; line-height: 1.5; color: #9a3412; margin-bottom: 14px; }
.deliv-note { border-radius: 9px; padding: 9px 13px; font-size: 13px; line-height: 1.5; margin-top: 12px; }
.deliv-note.free { background: var(--brand-50); color: var(--brand-800); font-weight: 700; }
.deliv-note.oversize { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; }
.summary-total { display: flex; justify-content: space-between; align-items: center; font-size: 20px; font-weight: 800; padding: 14px 0 4px; border-top: 2px solid var(--ink); }
.vat-note { display: block; color: var(--ink-soft); font-size: 12px; margin-bottom: 16px; }
.summary-usp { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; }

/* ---------- Checkout ---------- */
.checkout-page { padding-top: 8px; padding-bottom: 50px; }
.checkout-page h1 { font-size: 28px; margin: 8px 0 20px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
.co-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 18px; }
.co-block legend { font-weight: 800; font-size: 16px; padding: 0 8px; color: var(--brand-800); }
.co-toggle { display: flex; gap: 20px; margin-bottom: 16px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.co-field.wide { grid-column: 1 / -1; }
.co-field input, .co-field textarea { height: 46px; border: 1.5px solid var(--line); border-radius: 9px; padding: 0 13px; font-family: inherit; font-size: 15px; color: var(--ink); }
.co-field textarea { height: auto; padding: 12px 13px; }
.co-field input:focus, .co-field textarea:focus { outline: none; border-color: var(--brand-500); }
.field-err { color: var(--sale); font-size: 12.5px; font-weight: 600; }
.co-methods { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.method { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 11px; padding: 14px 16px; cursor: pointer; }
.method:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); }
.method input { width: 18px; height: 18px; accent-color: var(--brand-600); }
.method span { display: flex; flex-direction: column; }
.method b { font-size: 14.5px; } .method small { color: var(--ink-soft); font-size: 12.5px; }

.co-items { max-height: 260px; overflow-y: auto; margin-bottom: 14px; }
.co-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; font-size: 13.5px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.co-qty { color: var(--brand-700); font-weight: 700; }
.co-price { font-weight: 700; }
.co-terms { font-size: 12px; color: var(--ink-soft); text-align: center; margin: 12px 0 0; }
.co-terms a { color: var(--brand-700); }

/* ---------- Order success ---------- */
.order-success { text-align: center; padding: 50px 20px 60px; max-width: 640px; }
.success-icon { width: 76px; height: 76px; border-radius: 999px; background: var(--brand-600); color: #fff; font-size: 40px; display: grid; place-items: center; margin: 0 auto 20px; box-shadow: 0 8px 24px rgba(33,122,65,.35); }
.order-success h1 { font-size: 30px; margin: 0 0 10px; }
.order-success .lead { color: var(--ink-soft); font-size: 16px; margin-bottom: 26px; }
.order-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: left; margin-bottom: 20px; }
.order-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.order-meta span { display: block; font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.order-meta b { font-size: 15px; }
.order-item { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.order-total { display: flex; justify-content: space-between; font-size: 19px; font-weight: 800; border-top: 2px solid var(--ink); margin-top: 12px; padding-top: 14px; }
.pay-note { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 11px; padding: 16px 18px; font-size: 14px; text-align: left; margin-bottom: 22px; color: var(--brand-900); }

/* ---------- Info page ---------- */
.info-page { max-width: 820px; padding: 10px 20px 60px; }
.info-page h1 { font-size: 30px; margin: 10px 0 20px; letter-spacing: -.02em; }
.prose { color: var(--ink); line-height: 1.75; font-size: 16px; }
.prose h2 { font-size: 20px; margin: 28px 0 10px; color: var(--brand-800); }
.prose h3 { font-size: 17px; margin: 20px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--brand-700); text-decoration: underline; }
.prose strong { font-weight: 700; }

/* ---------- Contact ---------- */
.contact-page { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; padding: 14px 20px 60px; align-items: start; }
.contact-info h1 { font-size: 30px; margin: 8px 0 10px; }
.contact-info .lead { color: var(--ink-soft); font-size: 16px; margin-bottom: 24px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list li span { font-size: 22px; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-100); display: grid; place-items: center; flex-shrink: 0; }
.contact-list a { color: var(--brand-700); font-weight: 600; }
.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea { height: 48px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 14px; font-family: inherit; font-size: 15px; }
.contact-form textarea { height: auto; padding: 12px 14px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand-500); }

/* ---------- Blog ---------- */
.blog-list-head { padding: 12px 20px 0; }
.blog-list-head h1 { font-size: 30px; margin: 8px 0 4px; letter-spacing: -.02em; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.blog-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); background-size: cover; background-position: center; display: grid; place-items: center; }
.blog-thumb-ph { font-size: 40px; opacity: .5; }
.blog-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.blog-date { font-size: 12px; font-weight: 700; color: var(--brand-600); text-transform: uppercase; letter-spacing: .04em; }
.blog-card-body h3 { font-size: 17px; line-height: 1.3; margin: 6px 0 8px; color: var(--ink); }
.blog-card:hover h3 { color: var(--brand-700); }
.blog-card-body p { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.55; }
.blog-more { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--brand-700); }
.blog-post { max-width: 800px; padding: 12px 20px 50px; }
.blog-post h1 { font-size: 32px; line-height: 1.15; margin: 6px 0 16px; letter-spacing: -.02em; }
.blog-hero { width: 100%; border-radius: var(--radius); margin-bottom: 22px; }

/* ---------- Payment ---------- */
.pay-page { display: grid; place-items: center; padding: 50px 20px 70px; }
.pay-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; max-width: 460px; width: 100%; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pay-card h1 { font-size: 22px; margin: 8px 0 12px; }
.pay-spinner { font-size: 44px; margin-bottom: 8px; }
.pay-amount { font-size: 30px; font-weight: 800; color: var(--brand-700); margin: 6px 0; }
.pay-card.mock { border-color: var(--gold); }
.mock-ribbon { background: var(--gold); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 8px; margin: -36px -32px 20px; }
.mock-card-fields { text-align: left; margin: 18px 0; }
.mock-card-fields input { background: var(--brand-50); }
.mock-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.pay-badge { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.pay-badge.paid { background: var(--brand-100); color: var(--brand-800); }
.pay-badge.unpaid { background: var(--sale-bg); color: #a01818; }
.pay-badge a { color: inherit; text-decoration: underline; }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
    .cat-grid, .prod-grid, .trust .wrap { grid-template-columns: repeat(2, 1fr); }
    .footer .wrap { grid-template-columns: 1fr 1fr; }
    .hero3 { grid-template-columns: 1fr; }
    .hero-cats { display: none; }
    .hero-links { flex-direction: row; flex-wrap: wrap; min-height: 0; }
    .hero-links a { flex: 1 1 30%; justify-content: center; padding: 12px 8px; }
    .hero-slider { order: -1; }
    .hero-slider, .hero-slider .slides { min-height: 300px; }
    .slide { padding: 30px; }
    .slide-inner h2 { font-size: 26px; }
    .shop-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .product-page { grid-template-columns: 1fr; gap: 24px; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary, .checkout-summary { position: static; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    /* Header: red 1 = burger + logo (lijevo) | akcije (desno) ; red 2 = pretraga */
    .header .wrap { height: auto; min-height: 56px; padding: 9px 0; gap: 6px; flex-wrap: wrap; align-items: center; }
    .burger { display: inline-flex; order: 1; padding: 6px 6px; }
    .logo { order: 2; margin: 0; padding: 6px 12px; }
    .logo-img { height: 28px; }
    .header-actions { order: 3; margin-left: auto; gap: 0; }
    .header-actions .icon-btn { padding: 6px; }
    .header-actions .label { display: none; }
    .search { order: 4; flex-basis: 100%; max-width: none; }
    .search input { height: 44px; }
    /* Naslovi sekcija: naslov gore, "sve →" ispod (bez preklapanja) */
    .section-head { flex-direction: column; align-items: flex-start; gap: 2px; }
    /* Hero brze poveznice: čist grid 2 stupca s fiksnom visinom (bez height:100%) */
    .hero-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
    .hero-links a { height: auto; min-height: 48px; flex: none; padding: 12px 10px; }
    .hero-main { min-height: 260px; padding: 28px; }
    .hero-main h1 { font-size: 30px; }
    .hero-side { grid-template-columns: 1fr; }
    .section-head h2 { font-size: 22px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .trust .wrap { grid-template-columns: 1fr 1fr; }
    .footer .wrap { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom .wrap { flex-direction: column; gap: 8px; text-align: center; }
    .price-now { font-size: 17px; }
    .card-title { font-size: 13.5px; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .p-usp { grid-template-columns: 1fr; }
    .p-price .price-now { font-size: 26px; }
    .product-info h1 { font-size: 22px; }
    .cart-row { grid-template-columns: 60px 1fr 30px; grid-template-areas: "img info del" "img qty line"; row-gap: 8px; }
    .cart-img { grid-area: img; } .cart-info { grid-area: info; } .cart-qty { grid-area: qty; width: 90px; }
    .cart-line { grid-area: line; } .cart-del { grid-area: del; }
    .co-grid { grid-template-columns: 1fr; }
    .co-toggle { flex-direction: column; gap: 8px; }
    .order-meta { grid-template-columns: 1fr; }

    /* Hamburger padajući izbornik kategorija (stablo) */
    .nav .wrap {
        display: none; flex-direction: column; align-items: stretch;
        height: auto; gap: 0; padding: 6px 16px 12px; max-height: 80vh; overflow-y: auto;
    }
    .nav.open .wrap { display: flex; }
    .nav-mega { display: none !important; } /* na mobitelu vrijedi hamburger-akordeon */
    .nav-item { position: static; }
    .nav > .wrap > a.all, .nav-item > a {
        padding: 13px 6px; border-radius: 0; white-space: normal;
        border-bottom: 1px solid rgba(255,255,255,.1); justify-content: space-between;
    }
    .nav a.all { border-radius: 8px; margin: 6px 0 2px; justify-content: center; }
    /* podkategorije skrivene dok se glavna kategorija ne otvori (tap) */
    .nav-sub {
        position: static; display: none; box-shadow: none; background: rgba(0,0,0,.12);
        border-radius: 0; padding: 2px 0 6px 14px; min-width: 0;
    }
    /* na dodir `:hover` zna "zapeti" — na mobitelu podizbornik kontrolira ISKLJUČIVO .open (tap) */
    .nav-item:hover > .nav-sub { display: none; }
    .nav-item.open > .nav-sub { display: block; }
    .nav-item.open > a .caret { transform: rotate(180deg); }
    .nav .caret { transition: transform .15s; }
    .nav-sub a { color: #cfe0f5; padding: 9px 6px; font-weight: 500; }
    .nav-sub a:hover { background: rgba(255,255,255,.08); color: #fff; }
    .nav-sub .sub-count { color: #8fa8c8; }
    .nav-sub .nav-sub-all { font-weight: 700; color: #fff; }
}

/* ---- Newsletter ---- */
.footer-news p { font-size: 13px; color: rgba(255,255,255,.72); margin: 4px 0 10px; }
.news-form { display: flex; gap: 8px; flex-wrap: wrap; }
.news-form input[type=email] { flex: 1 1 150px; min-width: 0; padding: 10px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; background: rgba(255,255,255,.06); color: #fff; font-size: 14px; }
.news-form input[type=email]::placeholder { color: rgba(255,255,255,.55); }
.news-form .btn { white-space: nowrap; }

.nl-popup { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10,20,35,.55); animation: nlFade .25s ease; }
.nl-popup.show { display: flex; }
@keyframes nlFade { from { opacity: 0; } to { opacity: 1; } }
.nl-box { position: relative; background: #fff; border-radius: 18px; max-width: 420px; width: 100%; padding: 34px 30px 26px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.28); animation: nlUp .3s ease; }
@keyframes nlUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.nl-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 20px; line-height: 1; color: var(--ink-soft, #667); cursor: pointer; }
.nl-ico { font-size: 42px; }
.nl-box h3 { margin: 8px 0 6px; font-size: 23px; }
.nl-box p { color: var(--ink-soft, #556); font-size: 14px; line-height: 1.55; margin: 0 0 16px; }
.nl-form { display: flex; flex-direction: column; gap: 10px; }
.nl-form input[type=email] { padding: 12px 14px; border: 1px solid var(--line, #dde3ea); border-radius: 10px; font-size: 15px; }
.nl-later { margin-top: 12px; background: none; border: 0; color: var(--ink-soft, #7a8797); font-size: 13px; cursor: pointer; text-decoration: underline; }
body.nl-open { overflow: hidden; }
@media (max-width: 520px) { .nl-box { padding: 30px 20px 22px; } }

/* ---- Legal / obrazac raskida ---- */
.legal-page { max-width: 820px; padding-top: 8px; padding-bottom: 48px; }
.legal-page h1 { margin: 6px 0 18px; }
.legal-page h2 { margin: 30px 0 8px; font-size: 20px; }
.legal-intro { background: var(--brand-50); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 8px; }
.legal-intro p { margin: 0 0 10px; }
.legal-intro ul { margin: 10px 0; padding-left: 18px; }
.legal-intro li { margin: 4px 0; }
.legal-form { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.legal-form .co-field.wide { grid-column: 1 / -1; }
.sale-until { display:inline-block; margin-top:8px; background: var(--sale-bg); color: var(--sale); border-radius: 8px; padding: 5px 11px; font-size: 13px; font-weight: 700; }

/* ---- Kartice koje prihvaćamo (B7) ---- */
.footer-cards { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; margin-top: 8px; }
.cards-accept { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cards-title { font-size: 13px; color: rgba(255,255,255,.72); font-weight: 600; }
.cards-row { display: flex; gap: 8px; flex-wrap: wrap; }
.card-badge { display: inline-flex; width: 48px; height: 30px; border-radius: 5px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.18); background: #fff; transition: transform .12s; }
.card-badge:hover { transform: translateY(-2px); }
.card-badge svg { width: 100%; height: 100%; display: block; }
/* na svijetloj podlozi (blagajna) */
.checkout-summary .cards-accept { margin-top: 14px; flex-direction: column; align-items: flex-start; gap: 8px; }
.checkout-summary .cards-title { color: var(--ink-soft); }
.co-coupon { margin: 4px 0 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.co-coupon .coupon-input { display: flex; gap: 8px; }
.co-coupon .coupon-input input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.co-coupon .coupon-hint { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 12px; }
.co-coupon .coupon-active { display: flex; justify-content: space-between; align-items: center; background: var(--brand-50); border-radius: 8px; padding: 8px 12px; font-size: 13px; }

/* ---- Privola za kolačiće ---- */
.cookie-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; display: none; padding: 16px; }
.cookie-consent.show { display: block; }
.cc-inner { max-width: 1080px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(11,37,69,.22); padding: 18px 20px; }
.cc-text b { font-size: 15px; }
.cc-text p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.cc-text a { color: var(--brand-700); text-decoration: underline; }
.cc-options { margin: 12px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.cc-opt { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink); }
.cc-opt input { margin-top: 2px; }
.cc-opt b { color: var(--ink); }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 14px; }
.cc-actions .btn { padding: 9px 16px; font-size: 14px; }
#ccReopen { color: inherit; text-decoration: underline; }
@media (max-width: 640px) {
    .cookie-consent { padding: 10px; }
    .cc-actions { justify-content: stretch; }
    .cc-actions .btn { flex: 1; text-align: center; }
}

/* Oznake proizvoda (Novo/Bestseler/Preporuka) */
.flag.oznaka { color: #fff; }
.flag.oz-novo { background: #16a34a; }
.flag.oz-bestseler { background: #ea580c; }
.flag.oz-preporuka { background: var(--brand-600); }

/* ---- Ocjene / recenzije ---- */
.stars { display:inline-block; position:relative; font-size:16px; line-height:1; color:#d3d8e0; white-space:nowrap; }
.stars::before { content:"★★★★★"; position:absolute; left:0; top:0; width:calc(var(--r,0)/5*100%); overflow:hidden; color:#f5b301; }
.stars.sm { font-size:14px; }
.p-rating { display:inline-flex; align-items:center; gap:8px; margin:6px 0 2px; font-size:14px; }
.p-rating b { color:var(--ink); }
.reviews { max-width:820px; padding-top:8px; padding-bottom:40px; }
.reviews h2 { margin:24px 0 12px; }
.rev-list { display:flex; flex-direction:column; gap:12px; margin-bottom:26px; }
.rev-item { border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:#fff; }
.rev-top { display:flex; align-items:center; gap:10px; margin-bottom:4px; }
.rev-item p { margin:4px 0 0; font-size:14px; line-height:1.5; }
.rev-form-wrap { background:var(--brand-50); border-radius:14px; padding:18px 20px; }
.rev-form-wrap h3 { margin:0 0 10px; }
.rev-form { display:flex; flex-direction:column; gap:10px; }
.rev-stars-input { display:inline-flex; flex-direction:row-reverse; justify-content:flex-end; font-size:30px; line-height:1; }
.rev-stars-input input { display:none; }
.rev-stars-input label { color:#d3d8e0; cursor:pointer; padding:0 3px; transition:color .1s; }
.rev-stars-input label:hover, .rev-stars-input label:hover ~ label, .rev-stars-input input:checked ~ label { color:#f5b301; }

/* Potvrda narudžbe — plaćanje nije dovršeno */
.success-icon.warn { background: #fff7ed; color: #ea580c; border: 3px solid #fdba74; }
.pay-badge.unpaid { background: #fff7ed; color: #9a3412; }

/* Lijeve kategorije — harmonika (klik širi podkategorije) */
.hero-cats details summary { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.hero-cats details summary::-webkit-details-marker { display: none; }
.hero-cats details summary:hover { background: var(--brand-50); color: var(--brand-700); }
.hero-cats .hc-caret { font-size: 11px; color: var(--ink-soft); transition: transform .15s; }
.hero-cats details[open] > summary .hc-caret { transform: rotate(180deg); }
.hero-cats details[open] > summary { color: var(--brand-700); }
.hero-cats .hc-sub { list-style: none; margin: 0 0 4px; padding: 0 0 4px 8px; border-left: 2px solid var(--brand-100); margin-left: 12px; }
.hero-cats .hc-sub li a { padding: 7px 12px; font-size: 13.5px; font-weight: 500; }
.hero-cats .hc-sub .hc-all { color: var(--brand-700); font-weight: 700; }

/* Slike i YouTube unutar sadržaja (.prose) */
.prose img { max-width: 100%; height: auto; border-radius: 10px; margin: 12px 0; }
.yt-embed { position: relative; width: 100%; max-width: 720px; aspect-ratio: 16/9; margin: 14px 0; border-radius: 12px; overflow: hidden; background: #000; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* i u editoru */
.editor-area img { max-width: 100%; height: auto; border-radius: 8px; }
.editor-area .yt-embed { max-width: 480px; }

/* ---- Računi kupaca: prijava / registracija / moj račun ---- */
.auth-page { display: grid; grid-template-columns: 1fr .8fr; gap: 30px; padding: 20px 20px 60px; align-items: start; }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.auth-card h1 { margin: 0 0 6px; font-size: 26px; color: var(--brand-900); }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.auth-form .co-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--ink); font-size: 14px; }
.auth-form input { padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-weight: 500; }
.auth-form input:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.auth-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-alt { margin: 18px 0 0; color: var(--ink-soft); }
.auth-alt a { color: var(--brand-700); font-weight: 700; }
.auth-aside { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 26px; }
.auth-aside h2 { margin: 0 0 14px; font-size: 18px; color: var(--brand-900); }
.auth-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-benefits li { color: var(--ink); font-weight: 500; line-height: 1.4; }

.account-page { padding: 20px 20px 60px; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.account-head h1 { margin: 0 0 4px; font-size: 26px; color: var(--brand-900); }
.account-grid { display: grid; grid-template-columns: 1fr .42fr; gap: 26px; align-items: start; }
.account-main h2 { margin: 0 0 16px; font-size: 20px; color: var(--brand-900); }
.account-empty { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; }
.account-empty p { margin: 0 0 16px; color: var(--ink-soft); }
.account-orders { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.account-orders th, .account-orders td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.account-orders thead th { background: var(--brand-50); color: var(--brand-900); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.account-orders tbody tr:last-child td { border-bottom: 0; }
.account-orders .ta-r { text-align: right; }
.table-scroll { overflow-x: auto; }
.account-side { display: flex; flex-direction: column; gap: 16px; }
.account-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.account-box h3 { margin: 0 0 10px; font-size: 15px; color: var(--brand-900); }
.account-box p { margin: 4px 0; }
.account-box .link { color: var(--brand-700); font-weight: 600; }

/* badge statusi narudžbi (storefront) */
.badge-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.s-ceka_placanje { background: #fff4d6; color: #8a6100; }
.s-zaprimljeno { background: var(--brand-100); color: var(--brand-800); }
.s-u_obradi { background: #e0e7ff; color: #3730a3; }
.s-poslano { background: #cffafe; color: #155e75; }
.s-dovrseno { background: #dcfce7; color: #166534; }
.s-otkazano { background: #fee2e2; color: #991b1b; }

@media (max-width: 820px) {
  .auth-page, .account-grid { grid-template-columns: 1fr; }
  .auth-aside { order: -1; }
}

/* ---- Modal "Zatraži ponudu" ---- */
.quote-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(11,37,69,.55); backdrop-filter: blur(2px); }
.quote-modal[hidden] { display: none; }
.quote-box { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-hover); width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; padding: 26px 26px 24px; }
.quote-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; background: var(--brand-50); color: var(--brand-800); border-radius: 8px; font-size: 16px; cursor: pointer; }
.quote-close:hover { background: var(--brand-100); }
.quote-box h3 { margin: 0 4px 4px 0; font-size: 22px; color: var(--brand-900); }
.quote-for { margin: 0 0 12px; color: var(--ink-soft); font-size: 14px; }
.quote-for b { color: var(--ink); }
.quote-form { display: flex; flex-direction: column; gap: 12px; }
.quote-form .co-field { display: flex; flex-direction: column; gap: 5px; font-weight: 600; color: var(--ink); font-size: 14px; }
.quote-form input, .quote-form textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-weight: 500; }
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.quote-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; font-weight: 500; }
.quote-consent input { margin-top: 3px; flex: 0 0 auto; width: 16px; height: 16px; }
.quote-consent a { color: var(--brand-700); font-weight: 700; }
@media (max-width: 520px) { .quote-two { grid-template-columns: 1fr; } }

/* ---- Autocomplete tražilice ---- */
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1100; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); overflow: hidden; max-height: 70vh; overflow-y: auto; }
.search-suggest[hidden] { display: none; }
.ss-group { padding: 8px 14px 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); background: var(--brand-50); }
.ss-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: var(--ink); font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.ss-item:last-of-type { border-bottom: 0; }
.ss-item:hover, .ss-item:focus { background: var(--brand-50); color: var(--brand-700); }
.ss-sub { padding-left: 22px; font-weight: 500; }
.ss-ico { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; font-size: 15px; border-radius: 6px; overflow: hidden; background: var(--brand-50); }
.ss-ico img { width: 100%; height: 100%; object-fit: cover; }
.ss-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-count { flex: 0 0 auto; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.ss-all { display: block; padding: 11px 14px; text-align: center; font-weight: 800; font-size: 13px; color: var(--brand-700); background: var(--brand-50); border-top: 1px solid var(--line); }
.ss-all:hover { background: var(--brand-100); }

/* Zaglavlje brenda iznad proizvoda (filtar po brendu) */
.brand-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.brand-head-logo { flex: 0 0 auto; width: 130px; height: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 10px; }
.brand-head-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-head-txt { flex: 1; min-width: 240px; }
.brand-head-txt h1 { margin: 0 0 4px; }
.brand-head-txt .prose { color: var(--ink-soft); font-size: 14.5px; margin: 4px 0; }
.brand-head-count { color: var(--ink-soft); font-weight: 600; margin: 6px 0 0; }

/* Opcije proizvoda (biralice: veličina, boja…) — više grupa */
.p-options { display: flex; flex-direction: column; gap: 14px; margin: 4px 0 18px; }
.p-opt-label { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.opt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-pill { position: relative; }
.opt-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; background: #fff; }
.opt-pill input:checked + span { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); }
.opt-pill input:focus-visible + span { outline: 2px solid var(--brand-500); }
/* odabrane opcije u košarici */
.cart-opcije { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

/* --- kategorije: 3. razina i dublje --- */
.filter-tree .ft-sub li a .ft-name { flex: 1; min-width: 0; color: inherit; font-size: 13px; }
.filter-tree .ft-sub li a .ft-count { color: #b3bcc6; font-size: 12px; font-weight: 600; }
.filter-tree .ft-sub li a .ft-caret { color: #b3bcc6; font-size: 10px; }
.filter-tree .ft-sub .ft-sub { margin-left: 6px; padding-left: 10px; border-left-color: var(--line); }
.nav-mega-sub2 { padding-left: 22px !important; font-size: 12.5px; }
.nav-mega-sub2::before { content: "\21B3"; color: #b3bcc6; margin-right: 5px; }

/* --- Varijacije proizvoda (ovisne biralice) --- */
.p-variations { display: flex; flex-direction: column; gap: 14px; margin: 4px 0 18px; }
button.opt-pill { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.vpill.active span { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); }
.vpill.disabled { cursor: not-allowed; }
.vpill.disabled span { opacity: .45; text-decoration: line-through; background: #f5f7fa; }
.v-chosen { color: var(--brand-700); }
.v-info { font-size: 13px; color: var(--ink-soft); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* --- Povećani pregled slike (lightbox) --- */
body.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 2000; background: rgba(8,15,25,.94); display: none; }
.lb.open { display: grid; grid-template-rows: 1fr auto auto; }
.lb-stage { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 0; padding: 56px 16px 8px; touch-action: none; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center center; transition: transform .12s ease-out; will-change: transform; user-select: none; -webkit-user-drag: none; }
.lb.zoomed .lb-img { transition: none; }
.lb-close { position: absolute; top: 14px; right: 16px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 19px; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.3); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb.single .lb-nav, .lb.single .lb-thumbs { display: none; }
.lb-bar { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; padding: 6px 12px; color: rgba(255,255,255,.7); font-size: 13px; }
.lb-count { font-weight: 700; color: #fff; }
.lb-thumbs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 8px 12px 16px; max-height: 110px; overflow-y: auto; }
.lb-thumb { width: 62px; height: 62px; padding: 3px; border: 2px solid transparent; border-radius: 9px; background: rgba(255,255,255,.1); cursor: pointer; }
.lb-thumb.active { border-color: #fff; }
.lb-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 640px) {
  .lb-nav { width: 42px; height: 42px; font-size: 24px; }
  .lb-hint { display: none; }
  .lb-thumb { width: 50px; height: 50px; }
}
