/* =========================================================
   GLOBAL / RESET
   ========================================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    max-width: 100%;
    overflow-x: hidden;
    background: #f5f5f5;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 400;
    line-height: 1.6;
    color: #2a2a2a;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.product-brand,
.logo-text,
.section-title {
    /* uppercase serif - klasičan luksuzni vibe */
    font-family: Georgia, serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* za male UI elemente (dugmad, badge-eve) — i dalje sans da bude čitljivo */
button, .badge, .filter-label, .breadcrumbs {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }


/* =========================================================
   STATUS PAGES (404, 500, 403, success, itd.)
   ========================================================= */
.status-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 120px 20px 60px;
    background: #f5f5f5;
}

.status-box {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    box-sizing: border-box;
}

.status-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 20px;
}

.status-box h1 {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: 0;
}

.status-box p {
    font-size: 15px;
    color: #555;
    margin: 0 0 30px;
    line-height: 1.6;
}

/* Varijanta: error code velik (404, 500) */
.status-box .status-code {
    font-size: 80px;
    font-weight: 700;
    color: #111;
    line-height: 1;
    letter-spacing: 2px;
    margin: 0 0 10px;
    display: block;
}

/* Varijante - akcenat traka po vrhu boxa */
.status-page.success .status-box { border-top: 4px solid #2ecc71; }
.status-page.error   .status-box { border-top: 4px solid #e74c3c; }

@media (max-width: 480px) {
    .status-box { padding: 40px 24px; }
    .status-box h1 { font-size: 24px; }
    .status-box .status-code { font-size: 64px; }
    .status-box p { font-size: 14px; }
    .status-icon { font-size: 48px; }
}


/* =========================================================
   HEADER (Gornja traka)
   ========================================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 45px;
    background: #000201;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.35s ease, height 0.35s ease, border-color 0.35s ease;
    z-index: 1200;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-left a {
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.3px;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease;
    position: relative;
}

.header-left a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.25s ease;
}

.header-left a:hover { color: #fff; opacity: 1; }
.header-left a:hover::after { width: 100%; }

.header.scrolled {
    background: rgba(0, 2, 1, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    height: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


/* =========================================================
   HEADER ICONS
   ========================================================= */
.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1200;
}

.header-icon-phone img,
.cart-icon img {
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-icon-phone:hover img,
.cart-icon:hover img {
    opacity: 0.8;
    transform: scale(1.05);
}

.cart-wrapper { position: relative; }
.cart-icon { cursor: pointer; position: relative; display: flex; align-items: center; }


/* =========================================================
   CART — count badge (broj iznad ikonice)
   ========================================================= */
#cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #fff;
    color: #000201;
    border-radius: 50%;

    /* Fiksne dimenzije */
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;

    /* ZAKLJUČANO CENTRIRANJE (Bez Flexboxa) */
    display: none; /* PHP/JS pali sa 'block' */
    text-align: center !important;
    line-height: 18px !important;

    /* Resetovanje */
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    box-sizing: border-box;
    pointer-events: none;
}


/* =========================================================
   CART — dropdown (sadržaj se renderuje iz cart_render.php)
   Struktura: .cart-dropdown > .cart-dropdown-list > .cart-item
                              > .cart-summary (dostava + ukupno + dugme)
   ========================================================= */
.cart-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    right: -8px;
    width: 360px;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid #e4e4e4;
    box-shadow: 0 20px 50px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.03);
    border-radius: 16px;
    padding: 20px;
    z-index: 1300;
    -webkit-overflow-scrolling: touch;
}

.cart-dropdown.show { display: block; }

.cart-dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid #e4e4e4;
    border-left: 1px solid #e4e4e4;
    transform: rotate(45deg);
}

/* Empty state — koristi se i u dropdown-u i u checkout-u */
.cart-empty,
.cart-dropdown-empty {
    text-align: center;
    color: #aaa;
    font-size: 14px;
    padding: 24px 0;
}

/* Pojedinačna stavka u dropdown-u — grid: slika | info | × dugme */
.cart-item {
    display: grid;
    grid-template-columns: 68px 1fr auto;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f2f2f2;
}
.cart-item:first-child { padding-top: 0; }
.cart-item:last-of-type { border-bottom: none; }

.cart-item-img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    padding: 4px;
}

.cart-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

/* × dugme za uklanjanje (dropdown varijanta).
   U checkout-u se uklanja preko .remove-btn (vidi CHECKOUT sekciju). */
.cart-item-remove {
    background: transparent;
    border: 0;
    color: #9ca3af;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    align-self: start;
    font-family: inherit;
    transition: background-color .15s, color .15s;
}
.cart-item-remove:hover { background: #fee2e2; color: #dc2626; }

/* Footer dropdown-a (dostava + ukupno + dugme za checkout) */
.cart-summary {
    border-top: 1px solid #ebebeb;
    margin-top: 6px;
    padding-top: 6px;
}

.cart-checkout-link {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 13px;
    background: #111;
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 10px;
    transition: background 0.2s, transform 0.15s;
}
.cart-checkout-link:hover { background: #000; transform: translateY(-1px); }
.cart-checkout-link:active { transform: translateY(0); }


/* =========================================================
   QTY CONTROLS (+/− dugmad) + SHIPPING/TOTAL REDOVI
   --- DELI SE: koristi se i u cart-dropdown-u i u checkout-u ---
   ========================================================= */

/* +/− dugmad sa input-om između */
.qty-controls {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 36px;
    width: max-content;
}

.qty-controls .qty-btn {
    width: 34px;
    background: #f9fafb;
    border: 0;
    color: #111;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    user-select: none;
    font-family: inherit;
    transition: background-color .15s, color .15s;
}
.qty-controls .qty-btn:hover { background: #111; color: #fff; }
.qty-controls .qty-btn:active { background: #1f2937; }

/* Input unutar qty-controls — borderless, samo levo/desno separatori.
   Ovo override-uje sve standalone .qty-input stilove (nema ih više nigde). */
.qty-controls .qty-input {
    width: 46px;
    text-align: center;
    border: 0;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    border-radius: 0;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    padding: 0;
    font-family: inherit;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-controls .qty-input:focus { outline: none; background: #f9fafb; }
.qty-controls .qty-input::-webkit-outer-spin-button,
.qty-controls .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Kompaktnija varijanta unutar dropdown-a */
#cart-dropdown .qty-controls { height: 30px; }
#cart-dropdown .qty-controls .qty-btn { width: 28px; font-size: 16px; }
#cart-dropdown .qty-controls .qty-input { width: 38px; font-size: 13px; }

/* Red: "Dostava — 500 RSD" */
.cart-shipping-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #6b7280;
    font-size: 14px;
}
.cart-shipping-row span:last-child {
    font-weight: 600;
    color: #111;
}

/* Red: "Ukupno — XXX RSD" */
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #ebebeb;
    color: #111;
    font-weight: 700;
    font-size: 16px;
}


/* =========================================================
   HAMBURGER BUTTON
   ========================================================= */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 10px;
    transition: background 0.15s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover { background: rgba(255, 255, 255, 0.1); }

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease, width 0.2s ease;
    transform-origin: center;
}

.mobile-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.is-open span:nth-child(2) { opacity: 0; width: 0; }
.mobile-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =========================================================
   MOBILE OVERLAY
   ========================================================= */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}


/* =========================================================
   HERO & HERO-TOP
   Crni deo: header + logo zona
   hero-nav je svetao — odvojen od crnog bloka
   ========================================================= */
.hero {
    position: relative;
    margin-top: 45px;
    background: #f5f5f5;
}

.hero-top {
    text-align: center;
    padding: 20px 20px 0;
    background: #000201;
    position: relative;
    z-index: 990;
}

#logo {
    display: inline-block;
    margin-bottom: 0;
    height: 80px;
}

#logo img {
    height: 100%;
    width: auto;
    display: block;
}


/* =========================================================
   HERO NAV (desktop) — svetla pozadina, odvojen od crnog dela
   ========================================================= */
.hero-nav {
    display: flex;
    gap: 48px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    position: relative;
    z-index: 500;
    background: #f5f5f5;
    margin: 0 -20px;
    padding: 14px 20px;
    box-shadow:
        inset 0 8px 16px -8px rgba(0, 0, 0, 0.08),
        0 4px 12px -4px rgba(0, 0, 0, 0.04);
}

.hero-dropdown {
    position: relative;
    font-size: 15px;
}

.hero-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
}

.hero-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 2px 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
    position: relative;
    color: #333;
}

.hero-dropdown > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 1.5px;
    background: #111;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.hero-dropdown:hover > a::after,
.hero-dropdown:focus-within > a::after { transform: scaleX(1); }

.hero-dropdown > a span:last-child {
    font-size: 14px;
    transition: transform 0.25s ease;
    color: #999;
}

.hero-dropdown:hover > a span:last-child { transform: rotate(180deg); }

.dropdown-title {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
    letter-spacing: 1px;
    padding: 5px 0;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-title:hover { color: #111; }


/* =========================================================
   DROPDOWN MENUS (desktop)
   ========================================================= */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 28px 34px;
    min-width: 520px;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    column-gap: 44px;
    row-gap: 24px;
    box-shadow: 0 24px 56px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    border-radius: 16px;
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

.hero-dropdown:hover .dropdown-menu,
.hero-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu-3cols {
    min-width: 780px;
    grid-template-columns: repeat(3, minmax(170px, 1fr));
}

.hero-dropdown-brands .dropdown-menu {
    min-width: 860px;
    grid-template-columns: 1fr;
}

.dropdown-heading {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-group ul { list-style: none; }

.dropdown-group ul li a {
    display: block;
    padding: 7px 0;
    font-size: 14px;
    color: #333;
    transition: color 0.15s ease, padding-left 0.2s ease;
}

.dropdown-group ul li a:hover {
    color: #111;
    padding-left: 6px;
}

.brands-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 4px 28px;
}


/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero-slider {
    position: relative;
    height: 76vh;
    min-height: 480px;
    max-height: 840px;
    overflow: hidden;
    border-radius: 18px;
    margin: 0 24px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    z-index: 1;
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.12), rgba(0,0,0,0.01));
    pointer-events: none;
}

.hero-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slider img.active { opacity: 1; }


/* =========================================================
   BRANDS STRIP
   ========================================================= */
.brands-strip {
    margin: 20px 24px 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    position: relative;
}

.brands-track {
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    padding: 14px 0;
    will-change: transform;
    animation: brandsMove 30s linear infinite;
}

.brand {
    min-width: 170px;
    height: 50px;
    padding: 0 18px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #555;
    transition: all 0.25s ease;
    flex: 0 0 auto;
}

.brand:hover {
    background: #f0f0f0;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.brands-strip:hover .brands-track { animation-play-state: paused; }

@keyframes brandsMove {
    from { transform: translateX(0); }
    to { transform: translateX(-20%); }
}

@media (prefers-reduced-motion: reduce) {
    .brands-track { animation: none; }
}


/* =========================================================
   PRODUCT CARDS (shared)
   ========================================================= */
.section-products { padding: 0 24px; }

.section-title {
    text-align: center;
    font-size: 20px;
    letter-spacing: 3px;
    margin: 80px 0 24px;
    color: #111;
}

.Proizvod {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.25s, box-shadow 0.3s, transform 0.25s;
    will-change: transform;
}

.Proizvod:hover {
    border-color: #d0d0d0;
    box-shadow: 0 14px 32px rgba(0,0,0,0.07);
    transform: translateY(-4px);
    cursor: pointer;
}

.Proizvod-img {
    height: 220px;
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
    border: 3px solid #f0f0f0;
    padding: 12px;
}

.Proizvod-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 4px 0;
}

.Proizvod-title {
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #bbb;
}

.Proizvod-name { font-size: 14px; font-weight: 600; line-height: 1.3; color: #111; }
.Proizvod-model { font-size: 12px; color: #888; }

.Proizvod-price {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-top: 6px;
    color: #111;
}


/* =========================================================
   NOVO U PONUDI — slider
   ========================================================= */
.novo-slider-wrapper { position: relative; display: flex; align-items: center; }
.novo-slider-viewport { overflow: hidden; flex: 1; min-width: 0; }

.novo-slider-track {
    display: flex;
    gap: 18px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-wrap: nowrap;
}

.novo-slider-track .Proizvod {
    flex: 0 0 calc(25% - 14px);
    min-width: 200px;
}

.novo-arrow {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #444;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.15s;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    -webkit-tap-highlight-color: transparent;
}

.novo-arrow:hover { background: #f5f5f5; box-shadow: 0 4px 14px rgba(0,0,0,0.10); transform: scale(1.04); }
.novo-arrow:active { transform: scale(0.96); }
.novo-arrow:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.novo-arrow-left { margin-right: 10px; }
.novo-arrow-right { margin-left: 10px; }


/* =========================================================
   PRODUCT GRID
   ========================================================= */
.Proizvodi {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 0 0 40px;
}

.no-products, .products-empty p {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
}


/* =========================================================
   BREADCRUMBS
   ========================================================= */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #999;
}

.breadcrumbs a { color: #666; transition: color 0.15s; }
.breadcrumbs a:hover { color: #111; }
.breadcrumb-separator { font-size: 11px; color: #ccc; }
.breadcrumb-current { color: #111; font-weight: 500; }


/* =========================================================
   PRODUCTS LISTING PAGE
   ========================================================= */
.products-page {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 22px;
    align-items: start;
}

/* ── Filters ── */
.filters-sidebar {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
    padding: 20px;
    position: sticky;
    top: 70px;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.filters-sidebar h2 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #444;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ebebeb;
}

.filter-group { border-bottom: 1px solid #f0f0f0; }
.filter-group:last-of-type { border-bottom: none; }

.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #444;
    user-select: none;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.filter-group-header:hover { color: #111; }

.filter-toggle-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    position: relative;
    margin-left: 8px;
}

.filter-toggle-icon::before,
.filter-toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 7px;
    height: 1.5px;
    background: #bbb;
    border-radius: 2px;
    transition: transform 0.2s ease, background 0.15s;
}

.filter-toggle-icon::before { left: 1px; transform: translateY(-50%) rotate(-40deg); }
.filter-toggle-icon::after { right: 1px; transform: translateY(-50%) rotate(40deg); }

.filter-group-header:hover .filter-toggle-icon::before,
.filter-group-header:hover .filter-toggle-icon::after { background: #666; }

.filter-group.is-closed .filter-toggle-icon::before { transform: translateY(-50%) rotate(40deg); }
.filter-group.is-closed .filter-toggle-icon::after { transform: translateY(-50%) rotate(-40deg); }

.filter-group-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 10px;
    overflow-y: auto;
    max-height: 280px;
    transition: max-height 0.25s ease, padding-bottom 0.25s ease;
}

.filter-group-content::-webkit-scrollbar { width: 4px; }
.filter-group-content::-webkit-scrollbar-track { background: transparent; }
.filter-group-content::-webkit-scrollbar-thumb { background: #d1d1d1; border-radius: 4px; }
.filter-group-content::-webkit-scrollbar-thumb:hover { background: #aaa; }

.filter-group.is-closed .filter-group-content {
    max-height: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s;
    font-size: 13px;
    color: #333;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
}

.filter-option:hover { background: #f5f5f5; }

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #222;
    cursor: pointer;
}

.filter-count { color: #bbb; font-size: 11px; margin-left: 2px; }

.filter-actions { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }

.filter-btn {
    width: 100%;
    padding: 10px 14px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.filter-btn:hover { background: #000; }

.filter-reset {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #aaa;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.15s;
    background: none;
    border: none;
    font-family: inherit;
}

.filter-reset:hover { color: #333; }

/* ── Products prikaz ── */
.products-content {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
    padding: 24px;
    min-width: 0;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ebebeb;
}

.products-toolbar h1 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: #111;
    letter-spacing: 0.5px;
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.sort-form label {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sort-form select {
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    border: 1px solid #e0e0e0;
    border-radius: 9px;
    background: #fafafa;
    color: #222;
    cursor: pointer;
    appearance: auto;
    transition: border-color 0.15s;
}

.sort-form select:focus { outline: none; border-color: #aaa; }

.toggle-filters-btn {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background 0.15s;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.toggle-filters-btn:hover { background: #000; }

#productsWrapper.is-loading {
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.2s;
}

.brand-hero-banner img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 220px;
    margin-bottom: 20px;
}
.product-page > .breadcrumbs {
    margin-bottom: 16px;
}

/* Cena = "Pozovite za cenu" */
.Proizvod-price-contact,
.product-price-contact {
    color: #4a5568;
    font-style: italic;
    font-weight: 500;
    font-size: 18px;
}

/* Kontakt sekcija na product stranici (umesto "Dodaj u korpu") */
.contact-for-price {
    margin-top: 12px;
    padding: 16px 18px;
    background: #f8f9fb;
    border: 1px solid #e2e5ef;
    border-radius: 10px;
}

.contact-for-price-text {
    margin: 0 0 12px;
    color: #4b5568;
    font-size: 14px;
    line-height: 1.5;
}

.contact-for-price-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-for-price .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1a2540;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.15s;
}
.contact-for-price .contact-link:hover {
    background: #eef1fb;
    color: #4a74ff;
}

@media (min-width: 480px) {
    .contact-for-price-info {
        flex-direction: row;
        gap: 16px;
        flex-wrap: wrap;
    }
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 32px 0 8px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #444;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.pagination-link:hover { background: #f0f0f0; border-color: #d0d0d0; color: #111; }
.pagination-link:active { transform: scale(0.95); }

.pagination-link.active {
    background: #111;
    border-color: #111;
    color: #fff;
    cursor: default;
    font-weight: 600;
}

.pagination-link.active:hover { background: #111; border-color: #111; color: #fff; }

.pagination-arrow { font-size: 18px; color: #666; min-width: 36px; }
.pagination-link.disabled { opacity: 0.25; cursor: default; pointer-events: none; }

.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 14px;
    color: #bbb;
    user-select: none;
}


/* =========================================================
   PRODUCT PAGE (Single)
   ========================================================= */
.product-page {
    padding: 40px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.product-container {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    padding: 36px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
}

.product-gallery { flex: 1 1 50%; min-width: 0; max-width: 540px; }

.product-image-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 3px solid #f0f0f0;
}

.slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
    cursor: zoom-in;
    pointer-events: none;
}

.slider-img.active { opacity: 1; position: relative; pointer-events: auto; }

.slider-btn:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.10); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider-thumbnails { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.slider-thumbnails .thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    cursor: pointer;
    background: #fafafa;
    transition: border-color 0.2s;
    overflow: hidden;
    padding: 0;
}

.slider-thumbnails .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.slider-thumbnails .thumb.active, .slider-thumbnails .thumb:hover { border-color: #222; }

.product-info { flex: 1 1 50%; min-width: 0; max-width: 520px; }

.product-brand {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    margin-bottom: 8px;
}

.product-title { font-size: 24px; font-weight: 700; margin: 0 0 12px; line-height: 1.3; color: #111; }

.product-price {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #111;
    padding-bottom: 20px;
    border-bottom: 1px solid #f2f2f2;
}

.product-price .currency { font-size: 16px; font-weight: 500; color: #888; margin-left: 4px; }

.specs { margin-bottom: 24px; }

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 14px;
}

.spec-row:last-child { border-bottom: none; }

.spec-label { color: #999; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; flex-shrink: 0; }
.spec-value { color: #111; font-weight: 500; text-align: right; word-break: break-word; }

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding-top: 4px;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    width: fit-content;
}

.stock-status.in-stock { background: #f0faf4; color: #2e7d32; }
.stock-status.out-of-stock { background: #fff4f4; color: #c62828; }

.add-to-cart {
    background: #111;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 11px;
    padding: 14px 28px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    width: 100%;
    max-width: 320px;
    -webkit-tap-highlight-color: transparent;
}

.add-to-cart:hover { background: #000; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.add-to-cart:active { transform: translateY(0); box-shadow: none; }
.add-to-cart:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.add-to-cart.added { background: #2e7d32; }

.benefits-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    margin-top: 4px;
}

.benefit-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #555; }

.delivery-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #f4f6f8;
    border-radius: 12px;
    border: 1px solid #e1e4e8;
}

.delivery-notice-icon { flex-shrink: 0; color: #111; }

.delivery-notice-text {
    font-size: 13px;
    line-height: 1.4;
    color: #444;
    margin: 0;
}

.delivery-notice-text strong { color: #111; font-weight: 600; }

/* ── Lightbox ── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active { display: flex; }

.lightbox-overlay #lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.lightbox-btn:hover { background: rgba(255,255,255,0.22); }
.lightbox-btn.prev { left: 20px; }
.lightbox-btn.next { right: 20px; }

.related-section { max-width: 1280px; margin: 0 auto; padding: 0 24px 60px; }
.related-section .section-title { text-align: center; }
.related-section .Proizvodi { padding-bottom: 0; }


/* =========================================================
   STRANICA BRENDOVI (ALL BRANDS)
   ========================================================= */
.brands-page-wrapper {
    padding: 60px 20px 100px;
    background-color: #fafafa;
    min-height: 60vh;
}

.brands-container { max-width: 1200px; margin: 0 auto; }

.brands-page-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #111;
    margin-bottom: 50px;
    padding-bottom: 15px;
    position: relative;
}

.brands-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #111;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 35px 20px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #d1d1d1;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    transition: color 0.2s;
}

.brand-card:hover .brand-name { color: #000; }

.no-brands-msg {
    text-align: center;
    color: #777;
    font-size: 16px;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .brands-page-wrapper { padding: 40px 15px 70px; }
    .brands-page-title { font-size: 24px; margin-bottom: 35px; }
    .brands-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
    .brand-card { padding: 25px 15px; }
    .brand-name { font-size: 14px; }
}


/* =========================================================
   SUCCESS PAGE
   ========================================================= */
.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 24px;
    background: #f5f5f5;
}

.success-box {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 48px 36px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.success-icon { font-size: 48px; margin-bottom: 20px; line-height: 1; }

.success-box-h1 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    line-height: 1.3;
}

.success-box p { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 28px; }

.index-link {
    display: inline-block;
    padding: 13px 28px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 11px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.index-link:hover { background: #000; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.index-link:active { transform: translateY(0); box-shadow: none; }

@media (max-width: 480px) {
    .success-box { padding: 36px 24px; }
    .success-box h1 { font-size: 18px; }
}


/* =========================================================
   CHECKOUT PAGE
   Renderuje se iz /Handlers/cart_render.php (renderCheckoutHtml)
   Deli sa cart-dropdown-om: .qty-controls, .qty-btn, .qty-input,
   .cart-shipping-row, .cart-total-row (vidi sekciju iznad)
   ========================================================= */
.checkout-page { max-width: 960px; margin: 100px auto 60px; padding: 0 20px; }

.checkout {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.checkout-header {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 20px;
    background: #fafafa;
    border-bottom: 1px solid #ebebeb;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #999;
}

.checkout-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.12s;
}

.checkout-item:last-child { border-bottom: none; }
.checkout-item:hover { background: #fafafa; }

.item-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    padding: 4px;
}

.item-details { min-width: 0; }

.item-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #bbb;
    margin-bottom: 2px;
}

.item-model { font-size: 15px; font-weight: 600; color: #111; margin-bottom: 4px; }
.item-price { font-size: 13px; color: #888; }
.item-price span { color: #111; font-weight: 600; }

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 120px;
}

/* qty-wrap drži label iznad qty-controls grupe */
.qty-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.qty-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    white-space: nowrap;
}

.line-total { font-size: 13px; color: #555; white-space: nowrap; }
.line-total strong { color: #111; }

/* "Ukloni" tekst varijanta (checkout) — različita od × dugmeta u dropdown-u */
.remove-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: #c62828;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 0;
    transition: opacity 0.15s;
    font-weight: 500;
}

.remove-btn:hover { opacity: 0.6; }

/* Footer sa redovima dostave i ukupnog iznosa.
   .cart-shipping-row i .cart-total-row dolaze iz shared sekcije.
   .grand-total samo dodaje veću tipografiju na ukupan red. */
.checkout-footer {
    padding: 4px 20px 12px;
    background: #fafafa;
    border-top: 1px solid #ebebeb;
}

.checkout-footer .cart-total-row.grand-total {
    font-size: 17px;
    padding: 14px 0;
}

.checkout-footer .cart-total-row.grand-total strong {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

/* ── Checkout Form ── */
.checkout-form {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.checkout-form .section-title {
    margin: 40px 0 20px;
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: #999;
    text-align: left;
    padding-bottom: 12px;
    border-bottom: 1px solid #ebebeb;
}

.form-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row .form-group.small { max-width: 160px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #888;
}

.form-group input {
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #111;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    width: 100%;
}

.form-group input:focus {
    border-color: #111;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.form-group input::placeholder { color: #ccc; }

.form-error { font-size: 12px; color: #c62828; min-height: 16px; margin-top: 2px; }

.pay-btn {
    align-self: stretch;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 16px;
    -webkit-tap-highlight-color: transparent;
}

.pay-btn:hover { background: #000; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.pay-btn:active { transform: translateY(0); box-shadow: none; }

.cart-empty-msg { text-align: center; padding: 60px 20px; color: #aaa; font-size: 15px; }


/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: #e8e8e8;
    margin-top: 80px;
    padding: 50px 24px 24px;
    color: #111;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
}

.footer-services { display: flex; flex-direction: column; gap: 20px; }

.footer-box {
    background: #f5f5f5;
    border: 1px solid #d4d4d4;
    border-radius: 14px;
    padding: 22px 20px;
}

.footer-box h3 { font-size: 15px; margin-bottom: 8px; }
.footer-box p { font-size: 13px; color: #666; line-height: 1.6; }

.store-map iframe { width: 100%; height: 320px; border-radius: 12px; border: 0; }
.store-address { margin-top: 14px; text-align: center; font-size: 14px; font-weight: 600; color: #444; }

.copy {
    text-align: center;
    margin-top: 28px;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #d4d4d4;
    padding-top: 20px;
}

/* Kontakt boks u footeru */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555;
}

.footer-contact-list .fc-icon {
    width: 18px;
    color: #888;
    font-size: 13px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact-list a {
    color: #444;
    text-decoration: none;
    transition: color .2s ease;
    word-break: break-all;
}

.footer-contact-list a:hover {
    color: #111;
    text-decoration: underline;
}

/* Brand u kontakt boksu */
.footer-brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d4d4d4;
}

.footer-brand h3 {
    margin: 0;
    font-size: 15px;
    color: #222;
    letter-spacing: 0.3px;
}

.footer-brand .brand-since {
    font-size: 12px;
    font-style: italic;
    color: #888;
}

/* =========================================================
   BUTTONS — primary (crno dugme + varijante)
   Koristi se za: add-to-cart, pay-btn (checkout), cart-checkout-link
   (dropdown), index-link (success page), filter-btn (sidebar).
   Modifiers:
     .btn-block     — širina 100%
     .btn-sm        — manji padding/font (za uže kontekste)
     .btn-uppercase — uppercase + letter-spacing (filter sidebar)
   ========================================================= */
.btn-primary {
    display: inline-block;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 11px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Modifiers ── */
.btn-primary.btn-block {
    display: block;
    width: 100%;
}

.btn-primary.btn-sm {
    padding: 13px 20px;
    font-size: 13px;
    border-radius: 10px;
    letter-spacing: 0.04em;
}

.btn-primary.btn-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Add-to-cart na product page-u ima ograničenu širinu na desktopu */
.btn-primary.btn-product {
    width: 100%;
    max-width: 320px;
}

/* "Dodato u korpu" success state */
.btn-primary.is-added {
    background: #2e7d32;
}
.btn-primary.is-added:hover {
    background: #2e7d32;
}

/* ── Contact section ── */
.contact-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 36px;
}
.contact-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2a44;
}
.contact-lead {
    font-size: 16px;
    color: #6b7280;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: #fff;
    border: 1px solid #e2e5ef;
    border-radius: 12px;
    padding: 28px 22px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border-color: #c8cdd8;
}

.contact-icon {
    font-size: 28px;
    margin-bottom: 12px;
    line-height: 1;
}

.contact-card h2 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8490aa;
    margin-bottom: 14px;
}

.contact-card address {
    font-style: normal;
    line-height: 1.6;
    color: #1f2a44;
    font-size: 15px;
}
.contact-card address a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
.contact-card address a:hover {
    color: #4a74ff;
}

.contact-card p {
    margin: 4px 0;
}

.contact-link {
    color: #1f2a44;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.contact-link:hover {
    color: #4a74ff;
    border-bottom-color: #4a74ff;
}

/* radno vreme */
.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f2f7;
    font-size: 14px;
}
.hours-list li:last-child {
    border-bottom: 0;
}
.hours-list span {
    color: #6b7280;
}
.hours-list strong {
    color: #1f2a44;
    font-weight: 600;
}
.hours-list .closed {
    color: #d93025;
}

/* CTA */
.contact-cta {
    text-align: center;
    background: #f8f9fd;
    border-radius: 12px;
    padding: 32px 24px;
    margin-top: 20px;
}
.contact-cta h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: 10px;
}
.contact-cta p {
    color: #4b5670;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* responsive */
@media (max-width: 600px) {
    .contact-header h1 {
        font-size: 26px;
    }
    .contact-card {
        padding: 22px 18px;
    }
    .contact-cta {
        padding: 24px 16px;
    }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-section { max-width: 760px; margin: 60px auto; padding: 0 20px; line-height: 1.8; }
.about-section h2 { font-size: 2rem; text-align: center; margin-bottom: 28px; }
.o-nama {
    text-align: justify;
}

/* ── Slider ── */
.slider {
    position: relative;
    max-width: 800px;
    margin: 24px auto;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    aspect-ratio: 16 / 9;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slider-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 5;
}
.slider-btn:hover { background: rgba(0, 0, 0, 0.7); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.slider-dot.active {
    background: #fff;
    transform: scale(1.3);
}

@media (max-width: 600px) {
    .slider-btn { width: 34px; height: 34px; font-size: 18px; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ── Large tablets / small desktops ── */
@media (max-width: 1200px) {
    .dropdown-menu-3cols { min-width: 680px; }
    .brands-list { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
    .Proizvodi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-container { gap: 36px; padding: 28px; }
}

/* ── Tablets ── */
@media (max-width: 1024px) {
    .hero-top h1 { font-size: 44px; letter-spacing: 4px; }
    .hero-slider { height: 58vh; min-height: 360px; }
    .products-page { grid-template-columns: 1fr; margin: 20px auto; gap: 16px; }
    .toggle-filters-btn { display: block; }
    .filters-sidebar { position: static; max-height: none; overflow: visible; display: none; }
    .filters-sidebar.is-open { display: block; }
    .novo-slider-track .Proizvod { flex: 0 0 calc(33.333% - 12px); }
    .product-container { gap: 28px; padding: 24px; }
    .product-gallery { max-width: 420px; }
    .product-info { max-width: 100%; }
}

/* ── Mobile: drawer + full mobile layout ── */
@media (max-width: 860px) {

    /* === HEADER — ostaje crn na mobilnom === */
    .header { background: #000201; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .header.scrolled { background: rgba(0, 2, 1, 0.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
    .header-inner { padding: 0 16px; }
    .header-left a { font-size: 12px; }
    .mobile-menu-btn { display: flex; }
    .header-icons { gap: 10px; }
    .mobile-menu-btn span { background: #fff; }

    /* === HERO === */
    .hero { margin-top: 45px; }
    .hero-top { padding: 14px 16px 0; z-index: auto; }
    .hero-top h1 { font-size: 22px; letter-spacing: 3px; margin-bottom: 0; }
    #logo { height: 60px; margin-bottom: 0; }

    /* === DRAWER NAV === */
    .hero-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: min(300px, 82vw) !important;
        height: 100dvh !important;
        background: #fff !important;
        z-index: 1100 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: normal !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    .hero-nav.is-open { transform: translateX(0) !important; box-shadow: 8px 0 32px rgba(0,0,0,0.18) !important; }
    .hero-nav::before {
        content: 'SATOVI SAVIĆ';
        display: block;
        flex-shrink: 0;
        padding: 20px 22px 16px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 2.5px;
        color: #bbb;
        border-bottom: 1px solid #f0f0f0;
    }

    /* === DRAWER ACCORDION === */
    .hero-dropdown { position: static !important; border-bottom: 1px solid #f0f0f0; z-index: auto !important; }
    .hero-dropdown::after { display: none; }
    .hero-dropdown > a {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 15px 22px !important;
        font-weight: 600;
        font-size: 15px;
        color: #111 !important;
        gap: 0;
    }
    .hero-dropdown > a::after { display: none !important; }
    .hero-dropdown > a span:last-child {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        font-size: 9px;
        color: #666;
        background: #f2f2f2;
        border-radius: 50%;
        transition: transform 0.25s ease, background 0.15s;
        flex-shrink: 0;
        transform: none !important;
    }
    .hero-dropdown.is-open > a span:last-child { transform: rotate(180deg) !important; background: #e5e5e5; }

    /* === DRAWER DROPDOWN CONTENT === */
    .hero-dropdown .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 6px 0 10px !important;
        background: #f9f9f9 !important;
        border-top: 1px solid #f0f0f0 !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        transition: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        display: none !important;
    }
    .hero-dropdown.is-open > .dropdown-menu { display: grid !important; }
    .hero-dropdown:hover > .dropdown-menu,
    .hero-dropdown:focus-within > .dropdown-menu { display: none !important; }
    .hero-dropdown.is-open:hover > .dropdown-menu,
    .hero-dropdown.is-open:focus-within > .dropdown-menu { display: grid !important; }

    .dropdown-group { padding: 8px 22px 4px; }
    .dropdown-heading {
        font-size: 10px;
        letter-spacing: 1.4px;
        margin-bottom: 6px;
        padding-bottom: 6px;
        color: #c0c0c0;
        border-bottom-color: #efefef;
    }
    .dropdown-group ul li a { padding: 8px 0; font-size: 14px; color: #444; }
    .dropdown-group ul li a:hover { color: #111; padding-left: 4px; }
    .brands-list { grid-template-columns: repeat(2, 1fr); gap: 2px 16px; }

    /* === CART DROPDOWN (mobile) === */
    .cart-dropdown {
        position: fixed;
        top: 54px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100dvh - 70px);
        border-radius: 14px;
    }
    .cart-dropdown::before { right: 48px; }

    /* === PRODUCT PAGE (mobile) === */
    .product-page { padding: 20px 16px; }
    .product-container { flex-direction: column; padding: 20px; gap: 24px; align-items: center; }
    .product-gallery { max-width: 100%; width: 100%; }
    .product-info { max-width: 100%; width: 100%; }
    .product-title { font-size: 22px; }
    .product-price { font-size: 24px; }
    .add-to-cart { max-width: 100%; }
    .benefits-container { width: 100%; }
    .related-section { padding: 0 16px 40px; }

    /* === LISTING PAGE (mobile) === */
    .products-page { padding: 0 14px; }

    /* === FOOTER === */
    .footer-top { grid-template-columns: 1fr; }
    .site-footer { padding: 36px 16px 20px; margin-top: 60px; }
    .store-map iframe { height: 260px; }

    /* === NOVO SLIDER (mobile) === */
    .novo-slider-track .Proizvod { flex: 0 0 calc(50% - 10px); min-width: 160px; }
}

/* ── Small tablets / large phones ── */
@media (max-width: 768px) {
    .Proizvodi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

    .checkout-header { display: none; }
    .checkout-item {
        grid-template-columns: 72px 1fr;
        gap: 12px;
        padding: 14px 16px;
    }
    .item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid #f2f2f2;
        min-width: unset;
        flex-wrap: wrap;
        gap: 12px;
    }
    .qty-wrap { flex-direction: row; align-items: center; gap: 8px; }

    .form-row { grid-template-columns: 1fr; }
    .form-row .form-group.small { max-width: 100%; }
    .sort-form { margin-left: 0; }

    .pagination-link { min-width: 34px; height: 34px; font-size: 13px; }
    .pagination-arrow { font-size: 16px; }
    .pagination { gap: 4px; }

    .slider-thumbnails { justify-content: center; }
}

/* ── Small phones ── */
@media (max-width: 480px) {
    .hero-slider { height: 42vh; min-height: 220px; margin: 0 12px; border-radius: 14px; }
    .hero-top { padding: 10px 12px 0; }
    #logo { height: 50px; }

    .brands-strip { margin: 12px 12px 0; border-radius: 12px; }
    .brands-track { padding: 10px 0; gap: 10px; }
    .brand { min-width: 110px; font-size: 10px; height: 40px; border-radius: 8px; }

    .section-products { padding: 0 12px; }
    .section-title { font-size: 16px; letter-spacing: 2px; margin: 48px 0 16px; }
    .Proizvod { padding: 10px; border-radius: 12px; }
    .Proizvod-img { height: 150px; padding: 8px; border-radius: 8px; }
    .Proizvod-title { font-size: 9px; }
    .Proizvod-name { font-size: 13px; }
    .Proizvod-price { font-size: 14px; }
    .novo-slider-wrapper {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .novo-slider-viewport {
        flex: 1;
        overflow: hidden;
        min-width: 0;
    }

    .novo-slider-track {
        display: flex;
        gap: 12px;
    }

    .novo-slider-track .Proizvod {
        flex: 0 0 calc((100% - 12px) / 2);
        min-width: 0;
        box-sizing: border-box;
    }

    .novo-arrow {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .novo-arrow-left {
        margin-right: 6px;
    }

    .novo-arrow-right {
        margin-left: 6px;
    }

    .product-page { padding: 16px 12px; }
    .product-container { padding: 16px; border-radius: 14px; gap: 20px; }
    .product-title { font-size: 20px; }
    .product-price { font-size: 22px; padding-bottom: 16px; }
    .slider-thumbnails .thumb { width: 46px; height: 46px; }
    .spec-row { font-size: 13px; padding: 8px 0; }
    .spec-label { font-size: 11px; }

    .products-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .sort-form { width: 100%; }
    .sort-form select { flex: 1; }

    .checkout-page { margin-top: 70px; padding: 0 12px; }
    .checkout-item { grid-template-columns: 60px 1fr; gap: 10px; padding: 12px; }
    .item-image img { width: 60px; height: 60px; }
    .pay-btn { width: 100%; text-align: center; }
    .form-card { padding: 20px; }

    .related-section { padding: 0 12px 40px; }

    .lightbox-btn { width: 36px; height: 36px; font-size: 14px; }
    .lightbox-btn.prev { left: 10px; }
    .lightbox-btn.next { right: 10px; }
    .lightbox-close { top: 12px; right: 16px; font-size: 28px; }
}

/* ── Very small phones ── */
@media (max-width: 360px) {
    .hero-top h1 { font-size: 19px; letter-spacing: 2px; }
    .header-left a { font-size: 11px; }
    .header-left { gap: 14px; }
    .header-inner { padding: 0 12px; }
    #logo { height: 44px; }

    .Proizvodi { gap: 10px; }
    .Proizvod-img { height: 130px; }

    .cart-dropdown { padding: 16px; }
    .cart-item-img { width: 56px; height: 56px; }

    .product-title { font-size: 18px; }
    .product-price { font-size: 20px; }
    .product-brand { font-size: 10px; letter-spacing: 1.4px; }
}