/* ==========================================================================
   DARKWOOD KAMINI - MASTER CUSTOM CSS (FINAL FLYOUT VERSION)
   ========================================================================== */

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* --- Colors --- */
    --accent-color: #d98e50;       /* Brend narančasta */
    --accent-hover: #c07a40;       /* Tamnija nijansa */
    --text-dark: #1a1a1a;          /* Skoro crna */
    --text-gray: #666666;          /* Siva */
    --bg-light: #f8f9fa;           /* Svijetla pozadina */
    --border-color: #e5e5e5;
    
    /* --- Fonts --- */
    --font-primary: 'Poppins', sans-serif;
    
    /* --- Layout Dimensions --- */
    --hero-height: 340px;          /* FIKSNA VISINA */
    --border-radius: 6px;          
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    margin: 0; padding: 0;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
a:hover { color: var(--accent-color); text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }

/* --- Utility Classes --- */
.fw-bold { font-weight: 700 !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; color: #fff; }
.bg-dark { background-color: #1a1a1a !important; }
.bg-light { background-color: #f8f9fa !important; }
.shadow-sm { box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; }
.mtb-50px { margin-top: 50px; margin-bottom: 50px; }
.pt-60px { padding-top: 60px; }
.pb-60px { padding-bottom: 60px; }

/* --- Global Buttons --- */
.btn-darkwood {
    background: var(--text-dark); color: #fff;
    padding: 10px 25px; border: none; border-radius: var(--border-radius);
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    transition: 0.3s; cursor: pointer; font-size: 13px;
    display: inline-block;
}
.btn-darkwood:hover { background: var(--accent-color); color: #fff; }

.btn-akcija {
    background: #dc3545; color: #fff !important;
    padding: 6px 15px; border-radius: var(--border-radius);
    font-weight: 700; font-size: 12px; transition: 0.3s;
    display: inline-block;
}
.btn-akcija:hover { background: #c82333; transform: translateY(-2px); }



/* ===========================================
   2. HEADER & NAVIGATION — nova .nv klasa
   =========================================== */

/* Sakrij stari header */
.site-header { display: none !important; }
.desktop-nav { display: none !important; }
.header-icons { display: none !important; }

/* Hero wrapper: NEMA padding-top — nav je fixed i lebdi transparentno iznad herojа */
.hero-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Inner pages get nav padding — home page overridden in hero-section.php */
body:not(.home-page) { padding-top: 74px; }

/* Mega menu hover bridge */
.nv-mega::before {
    content: '';
    position: absolute;
    top: -12px; left: 0; right: 0;
    height: 12px;
    background: transparent;
}

/* =========================================
   3. HERO SECTION (FLYOUT / MEGA MENU STYLE)
   ========================================= */
/* hero-wrapper is removed in favor of new .dw-hero in hero-section.php */
.hero-wrapper { display: none; }

@media (min-width: 992px) {
    .hero-row {
        height: var(--hero-height); /* 340px */
        display: flex; align-items: stretch;
    }
    .height-fix-col { height: 100%; }
}

/* --- A) LEFT COLUMN: KATEGORIJE (FLYOUT) --- */
.hero-cat-container {
    height: 100%;
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: var(--border-radius);
    /* BITNO: Overflow visible da meni moze izaci van */
    overflow: visible !important; 
    position: relative;
    z-index: 50;
}

.hero-cat-header {
    flex-shrink: 0;
    background: var(--text-dark); color: #fff;
    padding: 10px 15px;
    font-weight: 700; font-size: 13px; text-transform: uppercase;
    display: flex; align-items: center; gap: 10px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.hero-categories {
    flex-grow: 1;
    background: #fff;
    position: relative;
    padding: 5px 0;
}

.hero-cat-list { list-style: none; margin: 0; padding: 0; }

/* Glavni Item */
.cat-item { 
    position: relative; /* Bitno za pozicioniranje podmenija */
}

.cat-link-wrap {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 15px; 
    transition: 0.2s;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
}

.cat-item:hover > .cat-link-wrap {
    background: #fafafa;
    color: var(--accent-color);
}

.cat-link {
    font-size: 13px; color: #444; font-weight: 500;
    flex-grow: 1;
}

/* SIVA KOCKICA SA STRELICOM */
.cat-arrow-box {
    width: 24px; height: 24px;
    background: #f0f0f0;
    color: #999;
    display: flex; align-items: center; justify-content: center;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 10px;
    transition: 0.3s;
}

.cat-item:hover .cat-arrow-box {
    background: var(--accent-color);
    color: #fff;
}

/* --- LEVEL 2: FLYOUT MENU (Desno) --- */
.cat-submenu.flyout-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: -5px; 
    width: 250px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 10px 0;
    min-height: 100%;
}

.cat-item:hover > .cat-submenu.flyout-menu { display: block; }

.cat-item-sub { position: relative; }

.sub-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 20px;
    font-size: 13px; color: #555;
    transition: 0.2s;
}

.sub-link:hover {
    color: var(--accent-color);
    background: #f9f9f9;
    padding-left: 25px;
}

.cat-arrow-box-sm { font-size: 9px; color: #ccc; }

/* --- LEVEL 3: SUB-SUBMENU (Jos desnije) --- */
.cat-submenu-lvl3 {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    width: 220px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    z-index: 101;
    padding: 10px 0;
}

.cat-item-sub:hover > .cat-submenu-lvl3 { display: block; }

.cat-submenu-lvl3 li a {
    display: block; padding: 6px 20px;
    font-size: 12px; color: #666;
}
.cat-submenu-lvl3 li a:hover {
    color: var(--accent-color); background: #f9f9f9;
}

.cat-view-all a {
    display: block; text-align: center; padding: 12px;
    font-size: 12px; font-weight: 700; color: var(--accent-color);
    border-top: 1px solid #eee;
}

/* --- B) MIDDLE COLUMN: SLIDER --- */
.hero-slider-wrapper {
    height: 100%; width: 100%;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden; position: relative;
}
.hero-slider-active, .slick-list, .slick-track { height: 100% !important; }

.hero-slide-item {
    height: 100% !important;
    width: 100%;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    position: relative; display: flex !important;
    align-items: center; justify-content: center;
}

.hero-overlay-gradient {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative; z-index: 2;
    text-align: center; color: #fff; padding: 20px;
    width: 100%;
}
.hero-slide-content h2 {
    font-size: 44px; font-weight: 900; margin: 15px 0 25px 0;
    color: #fff !important; 
    text-shadow: 0 5px 25px rgba(0,0,0,0.9), 0 2px 5px rgba(0,0,0,0.7); 
    line-height: 1.15;
    text-transform: uppercase; letter-spacing: 2px;
}

.btn-hero {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: #fff; color: #111;
    padding: 12px 32px; border-radius: 30px;
    font-weight: 800; font-size: 13px; text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.5px;
}
.btn-hero:hover { 
    background: var(--accent-color); color: #fff; 
    transform: translateY(-3px); box-shadow: 0 12px 25px rgba(217,142,80,0.4);
}

/* Skrivanje strelica i prikazivanje točkica */
.slick-prev, .slick-next { display: none !important; }

.slick-dots {
    position: absolute; bottom: 15px; width: 100%;
    padding: 0; margin: 0; list-style: none; text-align: center; z-index: 10;
}
.slick-dots li { display: inline-block; margin: 0 4px; }
.slick-dots li button {
    font-size: 0; line-height: 0; display: block;
    width: 8px; height: 8px; cursor: pointer;
    color: transparent; border: 0; outline: none;
    background: rgba(255,255,255,0.4); border-radius: 50%;
    transition: 0.3s;
}
.slick-dots li.slick-active button {
    background: var(--accent-color); transform: scale(1.3);
}


/* --- C) RIGHT COLUMN: BANNERS (FIXED) --- */
.hero-banners-right-column {
    height: 100%;
    display: flex; flex-direction: column; justify-content: space-between;
}

.right-banner-card {
    display: block; position: relative; width: 100%;
    /* Visina = 50% - pola gap-a (gap je obicno 16px, dakle -8px) */
    height: calc(50% - 8px); 
    border-radius: 20px;
    overflow: hidden; background: #222;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

.right-banner-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); opacity: 0.8;
}
.right-banner-card:hover img { transform: scale(1.08); opacity: 0.6; }

.rb-content {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
    z-index: 2; text-align: center; padding: 25px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.rb-title {
    color: #fff; font-size: 22px; font-weight: 800; line-height: 1.2; margin-bottom: 5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.rb-subtitle {
    color: #eee; font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
}
.btn-fake {
    margin-top: 10px; font-size: 11px; padding: 6px 18px; 
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
    color: #fff; border-radius: 20px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); font-weight: 800; letter-spacing: 0.5px;
}
.right-banner-card:hover .btn-fake {
    background: #fff; color: #111; transform: translateY(-2px);
}


/* =========================================
   4. HOMEPAGE COMPONENTS
   ========================================= */

/* Popular Categories */
.popular-categories-area { position: relative; z-index: 2; background: #fff; }
.popular-categories-area .section-title h2 { font-weight: 800; margin-bottom: 10px; font-size: 24px; }
.title-underline { width: 60px; height: 3px; background: var(--accent-color); margin: 10px auto 0; }

.category-card {
    display: block; background: #fff; border: 1px solid #eee; text-align: center; 
    padding: 15px; border-radius: var(--border-radius); height: 100%; transition: 0.3s;
}
.category-card:hover { 
    border-color: var(--accent-color); transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.08); 
}
.cat-img-wrap { 
    height: 70px; display: flex; align-items: center; justify-content: center; 
    margin-bottom: 10px; 
}
.cat-img-wrap img { max-height: 100%; max-width: 100%; object-fit: contain; }
.category-card h6 { font-weight: 700; color: var(--text-dark); margin: 0; font-size: 13px; }
.cat-count { font-size: 11px; color: #999; margin-top: 5px; display: block; }

/* Tabs */
.section-tabs { 
    border-bottom: 2px solid #eee; display: flex; justify-content: center; 
    gap: 20px; margin-bottom: 30px; 
}
.section-tab-link {
    font-size: 16px; font-weight: 600; color: #999; padding-bottom: 8px; 
    cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.section-tab-link.active { color: var(--text-dark); border-bottom-color: var(--accent-color); }

/* Product Item */
.product-item { 
    height: 100%; display: flex; flex-direction: column; 
    border: 1px solid transparent; transition: 0.3s; background: #fff;
    border-radius: var(--border-radius); overflow: hidden;
}
.product-item:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.08); transform: translateY(-3px); }

.product-inner { 
    height: 100%; display: flex; flex-direction: column; 
    background: #fff; padding-bottom: 10px; position: relative;
}
.img-block { position: relative; overflow: hidden; text-align: center; }
.img-block img { transition: 0.3s; width: 100%; }
.product-item:hover .img-block img { transform: scale(1.05); }

.product-flag {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    display: flex; flex-direction: column; gap: 5px;
}
.product-flag li.new {
    background: #dc3545; color: #fff; padding: 2px 6px; 
    font-size: 10px; font-weight: 700; border-radius: 3px;
}

.add-to-link {
    position: absolute; bottom: -50px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 8px;
    transition: 0.3s; opacity: 0;
}
.product-item:hover .add-to-link { bottom: 10px; opacity: 1; }
.add-to-link a {
    width: 30px; height: 30px; background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dark); box-shadow: 0 3px 10px rgba(0,0,0,0.1); font-size: 12px;
}
.add-to-link a:hover { background: var(--accent-color); color: #fff; }

.product-decs { 
    flex-grow: 1; display: flex; flex-direction: column; 
    justify-content: space-between; padding: 10px 10px 0 10px; text-align: center; 
}
.product-decs h2 { font-size: 13px; line-height: 1.4; margin-bottom: 5px; }
.product-link { font-weight: 600; color: var(--text-dark); }

.pricing-meta { 
    margin-top: auto; padding-top: 8px; display: flex; 
    align-items: center; justify-content: center; gap: 8px; 
}
.old-price { font-size: 13px; color: #999; text-decoration: line-through; }
.current-price { font-size: 15px; font-weight: 700; color: var(--text-dark); }

/* Service Icons */
.single-service {
    display: flex; align-items: center; justify-content: center;
    background: #fff; padding: 15px; border: 1px solid #f0f0f0; 
    border-radius: var(--border-radius); transition: 0.3s; height: 100%;
}
.single-service:hover { border-color: var(--accent-color); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.service-icon { font-size: 28px; color: var(--accent-color); margin-right: 15px; }
.service-content h5 { font-size: 14px; font-weight: 700; margin: 0 0 3px 0; }
.service-content p { font-size: 11px; color: #777; margin: 0; }

/* Brands */
.brands-area { border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.brand-item { 
    opacity: 0.5; transition: 0.3s; filter: grayscale(100%); 
    display: flex; justify-content: center; align-items: center; height: 70px; 
}
.brand-item:hover { opacity: 1; filter: grayscale(0%); }
.brand-item img { max-height: 40px; max-width: 100%; }

/* Newsletter */
.newsletter-area { background-color: #1a1a1a; padding: 50px 0; color: #fff; text-align: center; }
.newsletter-form { position: relative; max-width: 500px; margin: 30px auto 0; }
.newsletter-form input {
    width: 100%; height: 45px; padding: 0 120px 0 20px;
    border-radius: 30px; border: none; outline: none;
}
.newsletter-form button {
    position: absolute; right: 5px; top: 5px; height: 35px;
    border-radius: 25px; padding: 0 20px; background: var(--accent-color);
    color: #fff; border: none; font-weight: 600; cursor: pointer; transition: 0.3s; font-size: 12px;
}
.newsletter-form button:hover { background: #fff; color: var(--text-dark); }


/* =========================================
   5. PRODUCT DETAILS & INNER PAGES
   ========================================= */
.product-details-section { padding-top: 20px; }
.main-image-frame { 
    border: 1px solid #eee; border-radius: var(--border-radius); overflow: hidden; 
    margin-bottom: 15px; position: relative; background: #fff; 
    display: flex; align-items: center; justify-content: center;
}
.main-image-frame img { width: 100%; height: auto; }

.discount-badge-detail {
    position: absolute; top: 15px; left: 15px; background: #dc3545; color: white; 
    padding: 5px 10px; font-weight: bold; border-radius: 4px; font-size: 14px;
}

.thumbnails-grid { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.thumb-item {
    width: 80px; height: 80px; border: 1px solid #ddd; border-radius: 4px; 
    cursor: pointer; padding: 2px; opacity: 0.6; transition: 0.3s; flex-shrink: 0;
}
.thumb-item.active, .thumb-item:hover { border-color: var(--accent-color); opacity: 1; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

.product-info-wrapper { padding-left: 20px; }
.product-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.sku-text { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; }

.price-box-detail { margin: 20px 0; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.price-new-detail { font-size: 28px; font-weight: 700; color: var(--accent-color); margin-right: 15px; }
.price-old-detail { font-size: 18px; color: #999; text-decoration: line-through; }

.actions-wrapper { display: flex; gap: 15px; align-items: center; margin-top: 30px; }
.qty-input-group { display: flex; border: 1px solid #ddd; border-radius: 4px; height: 45px; width: 120px; }
.qty-btn { width: 40px; background: #f8f9fa; border: none; font-size: 18px; cursor: pointer; }
.qty-field { width: 40px; border: none; text-align: center; font-weight: 600; background: transparent; }

.btn-add-cart-lg {
    flex-grow: 1; background: var(--text-dark); color: #fff; border: none; 
    height: 45px; border-radius: 4px; font-weight: 600; text-transform: uppercase; 
    letter-spacing: 1px; transition: 0.3s;
}
.btn-add-cart-lg:hover { background: var(--accent-color); }

.trust-features { margin-top: 30px; background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 20px; }
.trust-item { display: flex; align-items: center; margin-bottom: 12px; font-size: 13px; color: var(--text-gray); }
.trust-item:last-child { margin-bottom: 0; }
.trust-item i { color: var(--accent-color); font-size: 16px; margin-right: 15px; width: 20px; text-align: center; }

/* Page Headers */
.page-header-area { 
    background: #f4f4f4; padding: 40px 0; text-align: center; 
    margin-bottom: 40px; border-bottom: 1px solid #eee; 
}
.page-header-area h1 { font-weight: 800; text-transform: uppercase; margin-bottom: 10px; font-size: 28px; }
.breadcrumb { justify-content: center; margin: 0; padding: 0; }
.breadcrumb li { display: inline; font-size: 14px; color: #888; }
.breadcrumb li::after { content: '/'; margin: 0 10px; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb li.active { color: var(--accent-color); font-weight: 600; }

/* Contact & Blog */
.contact-info-card {
    text-align: center; padding: 25px; background: #fff; 
    border: 1px solid #eee; border-radius: 8px; transition: 0.3s;
}
.contact-info-card:hover { 
    transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    border-color: var(--accent-color); 
}
.contact-info-card .icon { font-size: 30px; color: var(--accent-color); margin-bottom: 15px; }
.custom-input { background: #f9f9f9; border: 1px solid #eee; padding: 10px; border-radius: 4px; width: 100%; }
.custom-input:focus { border-color: var(--accent-color); box-shadow: none; background: #fff; outline: none; }

.blog-card { 
    background: #fff; border-radius: 8px; overflow: hidden; 
    transition: 0.3s; border: 1px solid #eee; 
}
.blog-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.1); transform: translateY(-5px); }
.blog-img { position: relative; overflow: hidden; height: 200px; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.blog-card:hover .blog-img img { transform: scale(1.1); }
.blog-date {
    position: absolute; top: 15px; left: 15px; background: #fff; 
    padding: 5px 12px; border-radius: 4px; text-align: center; 
    line-height: 1; box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.blog-date span { font-size: 20px; font-weight: 700; display: block; color: var(--text-dark); }
.blog-date small { font-size: 11px; text-transform: uppercase; color: #888; font-weight: 600; }
.blog-title { font-size: 18px; margin: 10px 0; font-weight: 700; line-height: 1.4; }
.read-more-link { 
    font-size: 13px; font-weight: 700; color: var(--accent-color); 
    text-transform: uppercase; margin-top: 15px; display: inline-block; 
}

/* Cart */
.cart-main-area { padding-top: 30px; }
.cart-progress-bar-container {
    background: #f0f0f0; border-radius: 10px; overflow: hidden; height: 8px; margin-top: 10px;
}
.cart-progress-bar { background: var(--accent-color); height: 100%; border-radius: 10px; transition: width 0.5s ease; }
.sticky-summary { position: sticky; top: 90px; }
.cart-item-img { transition: transform 0.3s; }
.cart-item-img:hover { transform: scale(1.05); }


/* =========================================
   6. FOOTER
   ========================================= */
footer { background-color: #1a1a1a; color: #bbb; padding-top: 60px; margin-top: 50px; }
.footer-container { 
    display: flex; flex-wrap: wrap; justify-content: space-between; 
    max-width: 1200px; margin: 0 auto; padding: 0 15px; 
}
.footer-col { flex: 1; min-width: 250px; margin-bottom: 40px; padding-right: 20px; }

.footer-col h3 {
    color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 20px; 
    position: relative; padding-bottom: 10px;
}
.footer-col h3::after {
    content: ''; position: absolute; left: 0; bottom: 0; 
    width: 40px; height: 2px; background: var(--accent-color);
}
.footer-links a { 
    color: #bbb; font-size: 13px; transition: 0.3s; display: block; margin-bottom: 10px; 
}
.footer-links a:hover { color: var(--accent-color); padding-left: 5px; }

.social-icons a {
    display: inline-flex; align-items: center; justify-content: center; 
    width: 35px; height: 35px; background: #333; color: #fff; 
    border-radius: 50%; margin-right: 10px; transition: 0.3s; font-size: 14px;
}
.social-icons a:hover { background: var(--accent-color); }
.copyright { border-top: 1px solid #333; text-align: center; padding: 20px 0; font-size: 12px; color: #777; }


/* =========================================
   7. MOBILE & OFFCANVAS
   ========================================= */
.offcanvas {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; 
    background: #fff; z-index: 2000; transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1); 
    box-shadow: -5px 0 25px rgba(0,0,0,0.15); padding: 20px; display: flex; flex-direction: column;
}
.offcanvas.open { right: 0; }
.offcanvas-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); z-index: 1999; opacity: 0; visibility: hidden; transition: 0.3s;
}
.offcanvas-overlay.open { opacity: 1; visibility: visible; }
.offcanvas-close {
    background: none; border: none; font-size: 24px; position: absolute; 
    top: 10px; right: 15px; cursor: pointer; color: #333;
}
.offcanvas-close:hover { color: #dc3545; }

.offcanvas-mobile-menu .inner { margin-top: 30px; height: 100%; overflow-y: auto; }
.offcanvas-menu ul li { border-bottom: 1px solid #f0f0f0; }
.offcanvas-menu ul li a { display: block; padding: 10px 0; font-size: 14px; font-weight: 500; color: var(--text-dark); }

.minicart-product-list li { display: flex; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.minicart-product-list .image { width: 60px; margin-right: 15px; border: 1px solid #eee; border-radius: 4px; }
.minicart-product-list .content { flex: 1; position: relative; }
.minicart-product-list .title { font-size: 13px; font-weight: 600; line-height: 1.4; display: block; margin-bottom: 5px; }
.minicart-product-list .remove { position: absolute; top: 0; right: 0; font-size: 16px; color: #dc3545; }


/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
    :root { --hero-height: auto; }
    .hero-row { display: block; height: auto; }
    
    .hero-cat-container { display: none; }
    .hero-banners-right-column { display: none; }
    .desktop-nav { display: none; }
    
    .hero-slide-item { height: 300px !important; }
    .hero-slide-title { font-size: 24px; }
    .hero-slide-content { padding: 10px; }
    
    .footer-col { width: 100%; margin-bottom: 30px; }
    .actions-wrapper { flex-direction: column; }
    .qty-input-group, .btn-add-cart-lg { width: 100%; }
}

@media (max-width: 575px) {
    .site-header { height: 60px; padding: 0 15px; }
    .logo { font-size: 20px; }
    .hero-slide-item { height: 260px !important; }
    .btn-hero { padding: 6px 20px; font-size: 11px; }
}

/* ==========================================================================
   A) LEFT COLUMN: KATEGORIJE (SCROLLABLE & CONTAINED)
   ========================================================================== */

.hero-cat-container {
    /* Fiksiramo visinu da bude ista kao slider */
    height: 100%; 
    min-height: 340px; /* Sigurnosna visina */
    
    display: flex; 
    flex-direction: column;
    
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: var(--border-radius);
    
    /* KLJUČNO: Ovo reže sve što viri van i popravlja "prelijevanje" */
    overflow: hidden !important; 
    
    position: relative;
    z-index: 50;
}

.hero-cat-header {
    flex-shrink: 0; /* Header se ne smije smanjivati */
    background: var(--text-dark); 
    color: #fff;
    padding: 10px 15px;
    font-weight: 700; font-size: 13px; text-transform: uppercase;
    display: flex; align-items: center; gap: 10px;
}

/* OVDJE SE DOGAĐA SCROLL */
.hero-categories {
    flex-grow: 1;      /* Uzima sav preostali prostor */
    overflow-y: auto;  /* Pali scrollanje po visini */
    background: #fff;
    position: relative;
}

/* Lijepi Scrollbar */
.hero-categories::-webkit-scrollbar { width: 5px; }
.hero-categories::-webkit-scrollbar-track { background: #f1f1f1; }
.hero-categories::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.hero-categories::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

.hero-cat-list { list-style: none; margin: 0; padding: 0; }

.cat-item { 
    border-bottom: 1px solid #f9f9f9; 
    position: relative; 
}

/* Link Wrapper */
.cat-link-wrap {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 15px; 
    transition: 0.2s;
    cursor: pointer;
}

.cat-item:hover > .cat-link-wrap {
    background: #fdfdfd; 
    color: var(--accent-color);
}

.cat-link {
    font-size: 13px; color: #444; font-weight: 500;
    flex-grow: 1;
    display: block;
}

/* Strelica za podmeni */
.cat-arrow-box {
    width: 20px; height: 20px;
    color: #ccc;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    transition: 0.3s;
}

/* Rotacija strelice na hover */
.cat-item:hover .cat-arrow-box {
    transform: rotate(90deg); /* Rotira prema dolje */
    color: var(--accent-color);
}


/* --- LEVEL 2: PODMENI (ACCORDION STYLE) --- */
/* Sada se otvara PREMA DOLJE, ne desno, da ne bude odsjecen */
.cat-submenu.flyout-menu {
    display: none;        
    position: static;     /* Nije više absolute */
    width: 100%;          /* Širina roditelja */
    background: #fafafa;  /* Malo tamnija pozadina za kontrast */
    border-top: 1px solid #eee;
    box-shadow: none;     /* Nema sjene jer je unutra */
    padding: 0;
    z-index: 1;
    margin-left: 0;
}

/* Prikazi na hover */
.cat-item:hover > .cat-submenu.flyout-menu {
    display: block;
}

.cat-item-sub {
    border-bottom: 1px solid #eee;
}

.sub-link {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 8px 15px 8px 30px; /* Uvuceno */
    font-size: 12px; 
    color: #666;
    transition: 0.2s;
}

.sub-link:hover {
    color: var(--accent-color);
    background: #fff;
    padding-left: 35px;
}

/* --- LEVEL 3: POD-PODMENI --- */
.cat-submenu-lvl3 {
    display: none;
    position: static;
    width: 100%;
    background: #f0f0f0;
    padding: 0;
    box-shadow: none;
    border: none;
}

.cat-item-sub:hover > .cat-submenu-lvl3 {
    display: block;
}

.cat-submenu-lvl3 li a {
    display: block; padding: 6px 15px 6px 45px; /* Jako uvuceno */
    font-size: 12px; color: #777;
    border-bottom: 1px solid #e5e5e5;
}
.cat-submenu-lvl3 li a:hover {
    color: var(--accent-color); background: #fff;
}

/* Gumb na dnu */
.cat-view-all a {
    display: block; text-align: center; padding: 4px;
    font-size: 12px; font-weight: 700; color: var(--accent-color);
    border-top: 1px solid #eee;
    background: #fff;
}

/* Footer Fix */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    display: block;        /* Osigurava da je svaki link u svom redu */
}

.footer-links li a {
    color: #b0b0b0;        /* Svijetlo siva boja teksta */
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block; /* Da padding/transform radi */
}

.footer-links li a:hover {
    color: #d98e50;        /* Boja na hover (tvoja accent boja) */
    transform: translateX(5px); /* Mali pomak udesno kad pređeš mišem */
}


/* --- STILIZACIJA CMS STRANICA (Uslovi, Privatnost) --- */

.policy-content {
    font-family: 'Poppins', sans-serif; /* Forsira Poppins font */
    font-size: 15px;
    line-height: 1.8;      /* Malo veći razmak između redova za lakše čitanje */
    color: #444;           /* Tamno siva boja teksta (ugodnija od crne) */
}

/* Naslovi unutar teksta (Heading 1, Heading 2...) */
.policy-content h1,
.policy-content h2,
.policy-content h3,
.policy-content h4 {
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;        /* Skoro crna za naslove */
    font-weight: 700;      /* Boldirano */
    margin-top: 30px;      /* Razmak iznad naslova */
    margin-bottom: 15px;   /* Razmak ispod naslova */
    text-transform: none;  /* Poništava velika slova ako ih tema forsira */
}

/* Prilagodba veličina naslova */
.policy-content h1 { font-size: 28px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.policy-content h2 { font-size: 24px; }
.policy-content h3 { font-size: 20px; }

/* Paragrafi */
.policy-content p {
    margin-bottom: 15px;
}

/* Liste (Bullets i Brojevi) */
.policy-content ul, 
.policy-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 8px;
}

/* Linkovi unutar teksta */
.policy-content a {
    color: #d98e50;        /* Tvoja accent boja */
    text-decoration: underline;
}

.policy-content a:hover {
    color: #1a1a1a;
    text-decoration: none;
}

/* Boldirani tekst unutar editora */
.policy-content strong, 
.policy-content b {
    font-weight: 600;
    color: #000;
}