:root { 
    --primary: #0A3D62; /* গভীর নীল - মূল থিম রঙ */
    --secondary: #F79F1F; /* উজ্জ্বল কমলা */
    --bg-gray: #F4F7F6; /* হালকা গ্রে - পৃষ্ঠভূমি */
    --footer-bg: #1C2833; /* গাঢ় গ্রে - ফুটার */
    --text-dark: #2C3E50; /* গাঢ় গ্রে - টেক্সট */
    --text-light: #7F8C8D; /* হালকা গ্রে - টেক্সট */
}
body { background-color: var(--bg-gray); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; overflow-x: hidden; color: var(--text-dark); }

/* ================= General Utilities & Floating Buttons ================= */
.floating-whatsapp {
    position: fixed; bottom: 85px; left: 20px; background-color: #25D366; color: white;
    width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 28px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); z-index: 1050; transition: 0.3s; text-decoration: none;
}
.floating-whatsapp:hover { transform: scale(1.1); color: white; background-color: #1ebd5a; }

.scroll-to-top {
    position: fixed; bottom: 85px; right: 20px; background-color: var(--primary); color: white;
    width: 45px; height: 45px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); z-index: 1050; transition: 0.3s; opacity: 0; visibility: hidden; border: none;
}
.scroll-to-top.show { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background-color: var(--secondary); transform: translateY(-3px); color: white; }

.transition-all { transition: all 0.3s ease; }
.hover-shadow:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important; transform: translateY(-3px); }
.pagination { flex-wrap: wrap; justify-content: center; }

@media (max-width: 991px) {
    .floating-whatsapp { bottom: 85px; left: 15px; width: 45px; height: 45px; font-size: 24px; }
    .scroll-to-top { bottom: 85px; right: 15px; width: 40px; height: 40px; font-size: 18px; }
}
@media (min-width: 992px) {
    .floating-whatsapp { bottom: 30px; }
    .scroll-to-top { bottom: 30px; }
}

/* ================= Header Top ================= */
.top-navbar { background-color: #ffffff; padding: 18px 0; border-bottom: 1px solid #e0e0e0; }
.site-logo { color: var(--primary); font-size: 32px; font-weight: 800; text-decoration: none; letter-spacing: -0.5px; }
.site-logo span { color: var(--text-dark); font-size: 16px; font-weight: normal; }

.search-container { flex-grow: 1; max-width: 650px; margin: 0 20px; }
.search-bar { border: 2px solid var(--primary); border-radius: 4px 0 0 4px; height: 42px; padding-left: 15px; font-size: 14px; box-shadow: none; outline: none; }
.search-bar:focus { border-color: var(--secondary); box-shadow: 0 0 5px rgba(247, 159, 31, 0.4); }
.search-btn { background-color: var(--primary); color: white; border-radius: 0 4px 4px 0; border: none; width: 60px; height: 42px; transition: 0.3s;}
.search-btn:hover { background-color: #082d49; color: white;}
.search-btn i { color: white !important; }

.top-icon-link { color: var(--primary); text-decoration: none; font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 6px; transition: 0.3s; }
.top-icon-link i { font-size: 18px; }
.top-icon-link:hover { color: var(--secondary); }

.cart-icon-wrapper { position: relative; color: var(--primary); display: flex; align-items: center; text-decoration: none; transition: 0.3s; }
.cart-icon-wrapper i { font-size: 24px; }
.cart-badge { position: absolute; top: -8px; right: -10px; background-color: var(--secondary); color: white; font-size: 11px; padding: 2px 6px; border-radius: 50%; font-weight: bold; border: 2px solid white;}
.cart-icon-wrapper:hover { color: var(--secondary); }

/* ================= Main Navbar ================= */
.main-navbar { background-color: var(--primary); height: 50px; border-bottom: none; }

@media (min-width: 992px) {
    .desktop-category-wrapper { background-color: var(--secondary); height: 100%; position: relative; z-index: 1050; }
    .desktop-category-btn { color: #ffffff; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-size: 14px; font-weight: 700; letter-spacing: 0.5px; cursor: pointer; transition: 0.3s; }
    .desktop-category-btn:hover { background-color: #e69119; }
    
    .desktop-category-list {
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background-color: #ffffff;
        border: 1px solid var(--secondary); 
        border-top: none; 
        box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
        padding: 0; 
        margin: 0; 
        list-style: none; 
        border-radius: 0 0 4px 4px;
        z-index: 1050;
    }

    .desktop-category-wrapper:hover .desktop-category-list { display: block !important; }

    .desktop-category-list.home-active {
        display: block !important;
        box-shadow: none; 
        border: 1px solid var(--secondary); 
        border-top: none;
    }

    .desktop-category-item { position: static; }
    .desktop-category-link {
        display: flex; align-items: center; justify-content: space-between;
        padding: 8px 20px; text-decoration: none; color: var(--text-dark); font-size: 14.5px; font-weight: 700;
        border-bottom: 1px solid #f1f1f1; transition: background-color 0.2s;
    }
    .desktop-category-item:last-child .desktop-category-link { border-bottom: none; }
    .desktop-category-link:hover { background-color: #f4f8fb; color: var(--primary); }
    .desktop-category-link:hover .cat-icon-left, 
    .desktop-category-link:hover span,
    .desktop-category-link:hover .cat-arrow { color: var(--primary) !important; }
    .cat-icon-left { width: 25px; color: var(--text-light); font-size: 15px; text-align: left;}
    .cat-arrow { font-size: 11px; color: var(--text-light); }
    
    /* Subcategory Flyout Panel */
    .desktop-subcategory-panel {
        position: absolute; top: 0; left: 100%; width: 250px; min-height: 100%; 
        background-color: #ffffff; border: 1px solid var(--secondary);
        box-shadow: 5px 5px 15px rgba(0,0,0,0.05); display: none; padding: 10px 0; z-index: 1051;
    }
    .desktop-category-item:hover .desktop-subcategory-panel { display: block !important; }
    .subcat-list { list-style: none; padding: 0; margin: 0; }
    .subcat-list li a { display: block; padding: 6px 20px; color: var(--text-dark); text-decoration: none; font-size: 16px; font-weight: bold; border-bottom: 1px dashed #f1f1f1; transition: 0.2s; }
    .subcat-list li a:hover { color: var(--primary); background-color: #fcfcfc; padding-left: 25px; }

    /* Nav Links */
    .nav-menu-links { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; align-items: center; }
    .nav-menu-links > li > a { color: #ffffff; text-decoration: none; font-size: 16px; font-weight: 700; transition: 0.3s; display: flex; align-items: center;}
    .nav-menu-links > li > a:hover { color: var(--secondary); }
    
    /* Header Account Dropdown Menu */
    .account-dropdown-wrapper { position: relative; }
    .account-dropdown-menu {
        position: absolute; top: 100%; right: 0; background-color: white; min-width: 180px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-radius: 4px; margin-top: 10px;
        opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; z-index: 1000; padding: 8px 0;
    }
    .account-dropdown-wrapper:hover .account-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
    .account-dropdown-menu a { display: block; color: var(--text-dark) !important; padding: 8px 20px; font-size: 14px; font-weight: 600; text-decoration: none; transition: 0.2s; }
    .account-dropdown-menu a:hover { background-color: #f8f9fa; color: var(--primary) !important; padding-left: 25px; }
    .account-dropdown-menu hr { margin: 5px 0; border-color: #eee; }
}

/* ================= MOBILE DESIGN ================= */
@media (max-width: 991px) {
    body { padding-bottom: 75px; }
    .search-container { margin: 15px 0 0 0; order: 3; max-width: 100%; width: 100%; }
    .top-navbar .container { flex-wrap: wrap; }
    .mobile-menu-btn { background: none; border: none; font-size: 24px; color: var(--primary); margin-right: 15px; }
    .logo-wrapper { display: flex; align-items: center; }
    
    .offcanvas-start { width: 300px; max-width: 85vw; background-color: #ffffff; }
    .offcanvas-header { background-color: #ffffff; border-bottom: 1px solid #e0e0e0; padding: 15px 20px; }
    
    .btn-close-custom {
        background: transparent; color: #000; border: none; font-size: 22px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; cursor: pointer; padding: 0;
    }
    .btn-close-custom:hover { color: var(--secondary); transform: rotate(90deg); }

    .offcanvas-body { padding: 0; display: flex; flex-direction: column; overflow-y: auto; }
    
    /* === Very Compact Mobile Menu Spacing === */
    .mobile-nav-item { border-bottom: 1px solid #f0f0f0; margin-bottom: 0 !important; } 
    .mobile-nav-item:last-child { border-bottom: none; }
    
    .mobile-nav-link { 
        display: flex; align-items: center; justify-content: space-between; 
        padding: 8px 20px !important; /* Very tight padding */
        color: var(--text-dark); font-weight: 700 !important; font-size: 15px !important; 
        text-decoration: none; transition: 0.2s;
    }
    .mobile-nav-link:hover { color: var(--primary); background-color: #f4f8fb;}
    
    .mobile-icon-wrapper { 
        display: inline-flex; align-items: center; justify-content: center; 
        width: 30px !important; height: 30px !important; /* Smaller compact icon */
        background-color: #eef6ff !important; color: #007bff; 
        border-radius: 50%; font-size: 13px !important; margin-right: 12px !important;
    }
    .mobile-icon-wrapper i { color: var(--primary) !important; }
    
    .mobile-nav-link[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); color: var(--primary); }
    .mobile-nav-link .fa-chevron-down { transition: transform 0.3s ease; color: var(--text-dark); font-size: 12px; }
    
    .mobile-subcat-list { background-color: #fafbfc; padding: 0; margin: 0; list-style: none; border-top: 1px solid #f0f0f0; padding-left: 52px !important; }
    .mobile-subcat-link { 
        display: block; padding: 6px 20px 6px 0 !important; /* Extremely tight subcategory padding */
        color: var(--text-light); font-size: 14px !important; 
        font-weight: 700 !important; text-decoration: none; border-bottom: 1px solid #f0f0f0; transition: 0.2s;
    }
    .mobile-subcat-link:last-child { border-bottom: none; }
    .mobile-subcat-link:hover { color: var(--primary); background-color: #f4f0fa; }

    /* Professional Mobile Bottom Nav */
    .mobile-bottom-nav {
        position: fixed; bottom: 0; left: 0; width: 100%; background-color: #ffffff;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08); display: flex; justify-content: space-around;
        align-items: center; height: 65px; z-index: 1040; border-top: 1px solid #f0f0f0; border-radius: 15px 15px 0 0;
    }
    .mobile-bottom-nav .nav-item {
        display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-light);
        text-decoration: none; font-size: 11px; font-weight: 600; width: 20%; position: relative; transition: all 0.3s ease; padding-top: 5px;
    }
    .mobile-bottom-nav .nav-item i { font-size: 20px; margin-bottom: 3px; transition: all 0.3s ease; }
    .mobile-bottom-nav .nav-item:hover, .mobile-bottom-nav .nav-item:active { color: var(--primary); }
    .mobile-bottom-nav .nav-item:hover i { transform: translateY(-3px); }
    
    /* Professional Floating Center Button */
    .nav-item-center { width: 20%; display: flex; justify-content: center; position: relative; top: -20px; }
    .floating-btn {
        background: linear-gradient(135deg, var(--primary) 0%, #0d4a7a 100%);
        color: #ffffff !important; width: 60px; height: 60px; border-radius: 50%;
        display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 22px;
        box-shadow: 0 5px 15px rgba(10, 61, 98, 0.4); border: 4px solid #ffffff; text-decoration: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 1045;
    }
    .floating-btn i { margin: 0; color: white !important; }
    .floating-btn:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(10, 61, 98, 0.5); }
    .floating-btn:active { transform: scale(0.95); }
    
    /* Professional Cart Badge */
    .cart-badge-bottom {
        position: absolute; top: 0px; right: 20px; background-color: var(--secondary); color: white;
        font-size: 10px; height: 18px; min-width: 18px; display: flex; align-items: center; justify-content: center;
        border-radius: 20px; font-weight: bold; border: 2px solid #fff; padding: 0 4px;
    }
}

/* ================= BANNER & CARDS ================= */
.banner-img { width: 100%; height: 320px; object-fit: cover; }
@media (max-width: 991px) { .banner-img { height: 220px; } }
@media (max-width: 576px) { .banner-img { height: 150px; border-radius: 6px; } }

.cat-circle { width: 70px; height: 70px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; border: 2px solid #eaeaea; margin: 0 auto 10px; font-size: 24px; color: var(--primary); transition: 0.3s; }
.cat-circle:hover { border-color: var(--secondary); box-shadow: 0 5px 15px rgba(247, 159, 31, 0.2); transform: translateY(-3px);}
.cat-item { text-align: center; text-decoration: none; color: var(--text-dark); font-size: 13px; font-weight: 600; }
.cat-item:hover { color: var(--primary); }

.category-scroll { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 20px; padding-bottom: 10px; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-item-wrapper { flex: 0 0 auto; min-width: 85px; }

.product-card { border: 1px solid #eaeaea; border-radius: 8px; transition: all 0.3s ease; background: white; position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.product-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.08); transform: translateY(-5px); border-color: #d1d1d1; }

/* Quick View Button Styling */
.btn-quick-view { position: absolute; top: 10px; left: 10px; background: #ffffff; border: 1px solid #eaeaea; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.15); z-index: 10; opacity: 0; transition: all 0.3s ease; text-decoration: none; padding: 0; }
.product-card:hover .btn-quick-view { opacity: 1; }
.btn-quick-view:hover { background: var(--primary); color: #ffffff !important; border-color: var(--primary); transform: scale(1.1); }
.btn-quick-view:hover i { color: white !important; }
@media (max-width: 991px) { .btn-quick-view { opacity: 1; width: 28px; height: 28px; font-size: 12px;} }

/* Discount Badge */
.discount-badge { position: absolute; top: 10px; right: 10px; background-color: var(--secondary); color: #ffffff; padding: 4px 10px; border-radius: 30px; font-size: 11px; font-weight: 700; z-index: 5; }

.product-img-wrapper { position: relative; width: 100%; text-align: center; padding: 15px; }
.product-img-wrapper img { max-height: 160px; object-fit: contain; width: 100%; transition: 0.3s;}
.product-card:hover .product-img-wrapper img { transform: scale(1.05); }

.product-details { flex-grow: 1; padding: 0 15px 15px; text-align: center; display: flex; flex-direction: column; justify-content: flex-end;}
.product-title { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: 0.3s; }
.product-card:hover .product-title { color: var(--primary); }
.new-price { color: var(--secondary); font-weight: 800; font-size: 17px; }
.old-price { text-decoration: line-through; color: var(--text-light); font-size: 13px; margin-left: 6px; }

.btn-order { background-color: var(--primary); color: white; border-radius: 6px; font-weight: 700; width: calc(100% - 20px); margin: 0 10px 10px 10px; transition: 0.3s; padding: 9px; border: none; font-size: 13px; text-transform: uppercase; display: flex; justify-content: center; align-items: center; white-space: nowrap; gap: 8px; }
.btn-order:hover { background-color: #082d49; color: white;}
.btn-order i { color: white !important; }

.section-header { display: flex; justify-content: space-between; align-items: center; background: white; padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.02);}
.section-header .fa-star, .section-header .fa-bolt { color: var(--secondary) !important; }
.hot-header { border-left-color: var(--secondary) !important; }
.timer-unit { background: var(--secondary); color: white; padding: 4px 10px; border-radius: 4px; font-weight: bold; min-width: 35px; text-align: center; }
.view-all-btn { background-color: var(--primary); color: white; padding: 6px 16px; border-radius: 4px; text-decoration: none; font-size: 13px; font-weight: 600; transition: 0.3s;}
.view-all-btn:hover { background-color: #082d49; color: white; }

/* Very Small Mobile Fixes */
@media (max-width: 575px) {
    .product-card { border-radius: 6px; }
    .product-img-wrapper { padding: 10px; }
    .product-details { padding: 0 10px 10px; }
    .product-title { font-size: 13px; margin-bottom: 6px; }
    .new-price { font-size: 15px; }
    .old-price { font-size: 11px; }
    .btn-order { font-size: 11px; padding: 7px 5px; margin: 0 8px 10px 8px; width: calc(100% - 16px); }
    .discount-badge { font-size: 10px; padding: 2px 6px; top: 5px; right: 5px; }
    .btn-quick-view { top: 5px; left: 5px; width: 26px; height: 26px; font-size: 11px; }
}

/* Pagination */
.page-link { color: var(--primary); font-weight: bold; border-radius: 50% !important; margin: 0 5px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.page-item.active .page-link { background-color: var(--primary); border-color: var(--primary); color: white; }
.page-link:hover { background-color: #eef6ff; color: var(--primary); }

/* ================= Category Page Sidebar & Filters (Added from category.php) ================= */
.filter-sidebar { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid #e0e0e0; filter-title }
.filter-title { font-size: 15px; font-weight: 700; margin-bottom: 15px; border-bottom: 2px solid #eee; padding-bottom: 8px; color: var(--text-dark); text-transform: uppercase; }
.sticky-filter { position: sticky; top: 20px; }
.search-results { z-index: 1050; max-height: 300px; overflow-y: auto; }

/* Sidebar Widget Styles */
.sidebar-widget { background: #fff; border: 1px solid #eaeaea; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); border-radius: 4px; overflow: hidden; }
.widget-header { background: var(--primary); color: #fff; padding: 12px 15px; font-weight: 700; font-size: 14px; text-transform: uppercase; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.widget-header i { transition: transform 0.3s ease; }
.widget-header.collapsed i { transform: rotate(180deg); }
.widget-body { padding: 15px; }

/* Category Links */
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { margin-bottom: 12px; }
.sidebar-links li:last-child { margin-bottom: 0; }
.sidebar-links a { color: var(--text-dark); font-weight: 600; font-size: 14px; text-decoration: none; transition: 0.2s; display: block; }
.sidebar-links a:hover { color: var(--primary); padding-left: 5px; }

/* Custom Range Slider */
.price-input { display: flex; justify-content: space-between; margin-bottom: 15px; font-weight: 400; color: var(--text-dark); font-size: 14px; }
.slider { height: 6px; position: relative; background: #ddd; border-radius: 5px; margin-top: 10px; }
.slider .progress { height: 100%; left: 0%; right: 0%; position: absolute; border-radius: 5px; background: var(--primary); }
.range-input { position: relative; }
.range-input input { position: absolute; width: 100%; height: 6px; top: -6px; background: none; pointer-events: none; -webkit-appearance: none; -moz-appearance: none; }
.range-input input::-webkit-slider-thumb { height: 16px; width: 16px; border-radius: 50%; background: #eee; border: 1px solid #ccc; pointer-events: auto; -webkit-appearance: none; cursor: pointer; transition: 0.2s; }
.range-input input::-moz-range-thumb { height: 16px; width: 16px; border: 1px solid #ccc; border-radius: 50%; background: #eee; pointer-events: auto; -moz-appearance: none; cursor: pointer; }
.range-input input::-webkit-slider-thumb:hover, .range-input input::-moz-range-thumb:hover { background: var(--primary); border-color: var(--primary); }

/* Custom Checkbox */
.custom-checkbox { display: flex; align-items: center; margin-bottom: 12px; cursor: pointer; }
.custom-checkbox input { display: none; }
.checkmark { width: 18px; height: 18px; border: 2px solid #ddd; border-radius: 4px; display: inline-block; position: relative; margin-right: 12px; transition: 0.2s; background: #fff; }
.custom-checkbox:hover .checkmark { border-color: var(--primary); }
.custom-checkbox input:checked + .checkmark { border-color: var(--primary); background-color: var(--primary); }
.custom-checkbox input:checked + .checkmark::after { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: white; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 10px; }
.filter-label { color: var(--text-dark); font-weight: 600; font-size: 14px; }

/* ================= FOOTER ================= */
.site-footer { background-color: var(--footer-bg); color: #b0b0b0; border-top: none; margin-top: 60px; }
.site-footer-top { padding: 50px 0 30px; }
.footer-logo { color: #ffffff; font-size: 28px; font-weight: 700; text-decoration: none; display: inline-block; margin-bottom: 10px; transition: 0.3s; }
.footer-logo:hover { color: #ffffff; opacity: 0.8; }
.footer-logo .com { color: #F79F1F; font-size: 22px; }

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #a1b4c9;
    margin-bottom: 25px;
}

.footer-app-title { color: #ffffff; font-size: 14px; font-weight: 600; margin-bottom: 15px; }
.footer-heading { color: #ffffff; font-size: 16px; font-weight: 700; margin-bottom: 20px; position: relative; padding-bottom: 8px; }
.footer-heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 35px; height: 2px; background-color: var(--secondary); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #a0a0a0; text-decoration: none; font-size: 14px; transition: all 0.3s ease; }
.footer-links a:hover { color: #ffffff; padding-left: 5px; }

.newsletter-text { font-size: 14px; margin-bottom: 15px; color: #a0a0a0;}
.newsletter-form { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: nowrap;}
.newsletter-input { background-color: transparent; border: 1px solid #30363d; color: #fff; padding: 10px 15px; border-radius: 6px; font-size: 14px; flex-grow: 1; outline: none; transition: 0.3s;}
.newsletter-input:focus { border-color: var(--secondary); }
.newsletter-btn { background-color: var(--secondary); color: white; border: none; padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 8px; white-space: nowrap;}
.newsletter-btn:hover { background-color: #e69119; }
.newsletter-btn i { color: white !important; }

.footer-social-title { color: #ffffff; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.social-icons { display: flex; gap: 8px; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; background-color: transparent; border: 1px solid #30363d; color: #a0a0a0; border-radius: 4px; text-decoration: none; font-size: 14px; transition: 0.3s; }
.social-icons a:hover { background-color: var(--secondary); border-color: var(--secondary); color: white; transform: translateY(-3px); }

.footer-bottom { background-color: #0d1117; padding: 20px 0; font-size: 13px; color: #8b949e; border-top: 1px solid #21262d;}
.footer-bottom-container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 15px; text-align: center;}
.developer-badge { display: inline-flex; align-items: center; gap: 6px; background-color: #1C2833; border: 1px solid #30363d; padding: 5px 15px; border-radius: 20px; color: #c9d1d9; font-weight: 600; text-decoration: none; transition: 0.3s;}
.developer-badge:hover { background-color: #21262d; color: #fff; border-color: var(--secondary);}
.developer-badge img { height: 16px; border-radius: 50%;}

/* Custom Footer Alternative */
.custom-footer { background-color: #111; padding: 60px 0 30px; color: #ccc; margin-top: 80px; border-top: 4px solid var(--secondary); }
.custom-footer a { color: #aaa; text-decoration: none; font-size: 14px; transition: 0.3s; }
.custom-footer a:hover { color: var(--secondary); padding-left: 5px; }

/* ================= BRAND AUTO SCROLL CSS ================= */
.brand-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding-bottom: 15px;
}

.brand-scroll-track {
    display: inline-flex;
    gap: 20px;
    animation: autoScrollBrands 25s linear infinite;
}

/* Pause animation on hover */
.brand-scroll-wrapper:hover .brand-scroll-track {
    animation-play-state: paused;
}

.brand-item {
    width: 110px;
    flex-shrink: 0;
    text-align: center;
    text-decoration: none;
}

.brand-logo-box {
    width: 85px;
    height: 85px;
    margin: 0 auto 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

/* Hover Effect for individual brand */
.brand-item:hover .brand-logo-box {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(10, 61, 98, 0.15);
}

.brand-name-text { font-size: 12px; font-weight: 600; color: var(--text-dark); transition: 0.3s; }
.brand-item:hover .brand-name-text {
    color: var(--primary);
}

/* Keyframes for continuous scroll */
@keyframes autoScrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); /* Move by half the track width */ }
}

/* Hide scrollbar completely for aesthetic look */
.brand-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* =========================================================
   BLUE THEME OVERRIDES FOR HEADER & CATEGORY
========================================================= */

/* 1. White Navbar and Search Logic */
.top-navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 15px 0 !important;
}

.search-container { max-width: 550px !important; margin: 0 auto !important; }

/* Search Bar (Primary color borders, Orange focus) */
.search-container .search-bar { 
    border: 1px solid #e0e0e0 !important; /* Start with light border */
    border-radius: 4px !important;
    padding-right: 50px !important; /* Space for button */
}
.search-container .search-bar:focus { 
    border-color: var(--primary) !important;
    box-shadow: 0 0 5px rgba(10, 61, 98, 0.2) !important; 
}

/* Primary Search Icon Button */
.search-container .search-btn { 
    color: var(--primary) !important;
    background: transparent !important;
    font-size: 18px !important;
    border-radius: 0 4px 4px 0 !important;
}
.search-container .search-btn i { color: var(--primary) !important; transition: 0.3s; }
.search-container .search-btn:hover i { color: var(--secondary) !important; }

/* Main Navbar (Primary Blue) */
.main-navbar { 
    background-color: var(--primary) !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* 2. Category Buttons & Panel (Blue Themed) */
.desktop-category-wrapper { background-color: #082d49 !important; } /* Darker Blue */
.desktop-category-btn { 
    background-color: transparent !important;
    color: #ffffff !important; 
}
.desktop-category-btn:hover { background-color: rgba(255, 255, 255, 0.1) !important; }

/* Category List (Orange border for emphasis) */
.desktop-category-list { 
    border: none !important;
    border-bottom: 2px solid var(--primary) !important;
    border-radius: 0 0 8px 8px !important;
}
.desktop-category-list.home-active {
    border-bottom: none !important;
    border-radius: 0 !important;
}

/* Flyout Panel (Professional Blue accents) */
.desktop-subcategory-panel { 
    border: none !important;
    box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.1) !important;
    border-radius: 0 8px 8px 0 !important;
}

/* 3. Link Overrides for Header (Blue Accent) */
.top-icon-link { color: var(--text-dark) !important; }
.top-icon-link i { color: var(--primary) !important; }
.top-icon-link:hover { color: var(--primary) !important; }

.cart-icon-wrapper { color: var(--text-dark) !important; }
.cart-icon-wrapper i { color: var(--primary) !important; }
.cart-icon-wrapper:hover i { color: var(--secondary) !important; }

/* Cart Badge (Primary Blue) */
.cart-badge { background-color: var(--primary) !important; color: #fff !important; }

/* Nav Links (Hover accent) */
.nav-menu-links a:hover { color: var(--secondary) !important; }

/* Category Links */
.desktop-category-link:hover .cat-icon-left, 
.desktop-category-link:hover span,
.desktop-category-link:hover .cat-arrow { color: var(--primary) !important; }
.desktop-category-link:hover { background-color: #eef6ff !important; }

/* Subcat Links */
.subcat-list a:hover { color: var(--primary) !important; background-color: #eef6ff !important; }

/* Dropdown Menu */
.account-dropdown-menu a:hover { color: var(--primary) !important; background-color: #eef6ff !important; }

/* 4. Mobile Changes (White Header, Blue Icons, Compact yet Bold) */
#mobileSidebar .offcanvas-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 15px 20px !important;
}
#mobileSidebar .offcanvas-header .site-logo { color: var(--primary) !important; font-weight: 700 !important; text-decoration: none !important; }
#mobileSidebar .offcanvas-header .site-logo span { color: var(--text-dark) !important; }
#mobileSidebar .offcanvas-header .btn-close-custom i { color: var(--text-dark) !important; transition: 0.3s; }
#mobileSidebar .offcanvas-header .btn-close-custom:hover i { color: var(--secondary) !important; }

#mobileSidebar .mobile-nav-item { border-bottom: 1px solid #f0f0f0; margin-bottom: 0 !important; } 
#mobileSidebar .mobile-nav-link {
    padding: 8px 20px !important; /* Compact Vertical Padding */
    font-size: 15px !important; /* Proper text size */
    font-weight: 700 !important; /* Bold */
}

#mobileSidebar .mobile-icon-wrapper {
    background-color: #eef6ff !important; 
    color: var(--primary) !important; 
    width: 32px !important; /* Compact Icon Size */
    height: 32px !important; 
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    margin-right: 12px !important;
    font-size: 14px !important;
}
#mobileSidebar .mobile-icon-wrapper i { color: var(--primary) !important; }

#mobileSidebar .mobile-nav-link:hover .mobile-icon-wrapper { background-color: var(--primary) !important; }
#mobileSidebar .mobile-nav-link:hover .mobile-icon-wrapper i { color: white !important; }

#mobileSidebar .mobile-nav-link .fa-chevron-down { color: var(--text-dark) !important; }
#mobileSidebar .mobile-nav-link[aria-expanded="true"] { color: var(--primary) !important; background-color: #eef6ff !important; }
#mobileSidebar .mobile-nav-link[aria-expanded="true"] .fa-chevron-down { color: var(--primary) !important; }

/* Subcategories tighter spacing but bold fonts */
#mobileSidebar .mobile-subcat-list {
    padding-left: 52px !important; /* Aligned nicely below the text */
}
#mobileSidebar .mobile-subcat-link {
    padding: 6px 20px 6px 0 !important; /* Very Compact Padding */
    font-size: 14px !important; 
    font-weight: 700 !important; /* Bold */
}

/* Spin & Win / Floating Buttons */
a[href*="spin"], .spin-btn, .promo-btn, .floating-btn, .view-all-btn, .newsletter-btn, .btn-order, .page-item.active .page-link {
    background: var(--primary) !important;
    background-image: none !important;
    color: white !important;
    transition: 0.3s !important;
}
a[href*="spin"]:hover, .spin-btn:hover, .promo-btn:hover, .floating-btn:hover, .view-all-btn:hover, .newsletter-btn:hover, .btn-order:hover {
    background: #082d49 !important;
}

/* =======================================================
   Header, Navigation & Menu Spacing Styles
   ======================================================= */

/* Pulse Animation for Team Buy Mobile Icon */
.pulse-team-icon { animation: team-pulse-glow 2s infinite; }
@keyframes team-pulse-glow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* 🚀 Pulse Animation for Mystery Box */
.pulse-mystery-icon { animation: mystery-pulse-glow 2s infinite; }
@keyframes mystery-pulse-glow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(179, 18, 71, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(179, 18, 71, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(179, 18, 71, 0); }
}

/* 🚀 Blinking Text Animation */
@keyframes blink-anim { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
.blink-anim { animation: blink-anim 1.5s linear infinite; }

/* 🚀 HIGH CONTRAST BATCH STYLES */
.badge-hot-custom {
    background-color: #000000 !important; 
    color: #ffffff !important; 
    border: 1px solid #ffffff !important;
    font-size: 0.6rem;
    padding: 2px 5px;
}

/* 🚀 FIXED: Menu Links Spacing Reduced */
.nav-menu-links {
    display: flex;
    align-items: center;
    gap: 13px; /* 🚀 Fixed: Gap reduced from 15px to 6px for a compact look */
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
}

.nav-menu-links li { display: inline-block; white-space: nowrap; }

.nav-menu-links a.standard-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 5px 6px; /* 🚀 Padding reduced */
    border-radius: 4px;
    transition: 0.3s;
}
.nav-menu-links a.standard-link:hover { background-color: rgba(255,255,255,0.1); }

/* 🚀 HIGH CONTRAST MYSTERY BOX LINK */
.nav-mystery-buy-link {
    background-color: #b31247 !important; 
    color: #ffffff !important; 
    padding: 5px 10px; /* Reduced Padding */
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(179, 18, 71, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    white-space: nowrap;
}
.nav-mystery-buy-link:hover { 
    background-color: #8a0b2c !important; 
    color: #ffffff !important; 
    transform: translateY(-2px); 
}

/* Update Team Buy Link */
.nav-team-buy-link {
    background-color: #198754; 
    color: #ffffff !important; 
    padding: 5px 10px; /* Reduced Padding */
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.4); 
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    white-space: nowrap;
}
.nav-team-buy-link:hover {
    background-color: #146c43; 
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* 🚀 Black Market Link Styles */
.nav-black-market {
    padding: 5px 10px; 
    border-radius: 20px; 
    font-weight: bold; 
    transition: all 0.3s ease; 
    display: inline-flex; 
    align-items: center;
    font-size: 13px;
    white-space: nowrap;
}
.nav-black-market:hover { transform: translateY(-2px); color: #ffffff !important; }

/* Dynamic Classes for Black Market (Replacing PHP in CSS) */
.nav-bm-open {
    background-color: #000000 !important;
    color: #00ffcc !important;
    box-shadow: 0 0 10px #00ffcc;
    border: 1px solid #00ffcc !important;
}
.nav-bm-closed {
    background-color: #4a5568 !important;
    color: #ffffff !important;
    border: 1px solid #718096 !important;
}

/* Mobile Offcanvas Scroll */
.offcanvas-body { overflow-y: auto; max-height: calc(100vh - 80px); padding-bottom: 90px !important; }

@media (max-width: 1199px) {
    .nav-menu-links { gap: 3px; }
    .nav-menu-links a.standard-link { font-size: 13px; padding: 4px; }
    .nav-mystery-buy-link, .nav-team-buy-link, .nav-black-market { padding: 4px 8px; font-size: 12px; }
}


/* =======================================================
   Premium Footer Design (Safe & Advanced)
   ======================================================= */
.site-footer {
    background: linear-gradient(180deg, #0A3D62 0%, #06243b 100%);
    color: #eef6ff;
    font-family: 'Inter', sans-serif;
    padding-top: 60px;
    border-top: none; 
    position: relative;
    margin-top: auto; 
}

.footer-logo {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}
.footer-logo:hover { color: #ffffff; opacity: 0.8; }
.footer-logo .com { color: #F79F1F; font-size: 22px; }

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #a1b4c9;
    margin-bottom: 25px;
}

.footer-heading {
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #F79F1F;
    border-radius: 2px;
    transition: width 0.3s ease;
}
.footer-col:hover .footer-heading::after { width: 60px; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #a1b4c9;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}
.footer-links a i {
    font-size: 10px;
    color: #F79F1F;
    margin-right: 8px;
    transition: transform 0.3s ease;
}
.footer-links a:hover { color: #ffffff; padding-left: 5px; }
.footer-links a:hover i { transform: translateX(3px); }

/* Newsletter Section */
.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.newsletter-form:focus-within { border-color: #F79F1F; box-shadow: 0 0 10px rgba(247, 159, 31, 0.2); }
.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}
.newsletter-input::placeholder { color: #8c9fb3; }
.newsletter-btn {
    background-color: #F79F1F;
    color: #0A3D62;
    border: none;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.newsletter-btn:hover { background-color: #e08e1a; color: #ffffff; }

/* Social Icons */
.social-icons { display: flex; gap: 10px; margin-top: 20px; }
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background-color: #F79F1F;
    border-color: #F79F1F;
    color: #0A3D62;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #041829;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: #8c9fb3;
}
.developer-badge { color: #F79F1F; text-decoration: none; font-weight: 600; transition: color 0.3s; }
.developer-badge:hover { color: #ffffff; }

/* =======================================================
   Mobile Bottom Nav
   ======================================================= */
.mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid #eaeaea;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1050;
}
.mobile-bottom-nav .nav-item {
    color: #6c757d;
    text-align: center;
    text-decoration: none;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 600;
    transition: color 0.3s;
}
.mobile-bottom-nav .nav-item i { font-size: 20px; margin-bottom: 3px; transition: transform 0.3s; }
.mobile-bottom-nav .nav-item:hover, .mobile-bottom-nav .nav-item.active { color: #0A3D62; }
.mobile-bottom-nav .nav-item:hover i { transform: translateY(-2px); color: #F79F1F; }

.mobile-bottom-nav .nav-item-center {
    position: relative;
    display: flex;
    justify-content: center;
}
.mobile-bottom-nav .floating-btn {
    background: #0A3D62;
    color: #ffffff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(10, 61, 98, 0.3);
    transform: translateY(-25px);
    border: 4px solid #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}
.mobile-bottom-nav .floating-btn:hover { background: #F79F1F; transform: translateY(-28px); }

.cart-badge-bottom {
    position: absolute;
    top: -5px;
    right: 15px;
    background: #F79F1F;
    color: #fff;
    border-radius: 50px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Safe Floating Buttons */
.floating-whatsapp, .scroll-to-top {
    position: fixed;
    right: 20px !important;
    left: auto !important; 
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.floating-whatsapp {
    background-color: #25D366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 30px;
    bottom: 30px; 
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.floating-whatsapp:hover { transform: scale(1.1); color: white; background-color: #20b858; }

.scroll-to-top {
    background-color: #0A3D62;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 20px;
    bottom: 100px; 
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.scroll-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top:hover { background-color: #F79F1F; transform: translateY(-3px); }

/* Spin to Win Widget Positioning */
.spin-widget-btn { z-index: 1040 !important; }

/* Fixed Media Query: Mobile Handling */
@media (max-width: 991px) {
    body { padding-bottom: 75px !important; }
    .footer-bottom .d-flex { flex-direction: column; text-align: center; gap: 8px; }
    .footer-col { margin-bottom: 30px; }
    
    .floating-whatsapp { bottom: 90px !important; width: 50px; height: 50px; font-size: 26px; }
    .scroll-to-top { bottom: 155px !important; width: 40px; height: 40px; font-size: 18px; }
    .spin-widget-btn {
        bottom: auto !important; top: 60% !important; left: 0px !important;
        transform: translateY(-50%); padding: 8px 12px !important; font-size: 13px !important;
        border-radius: 0 20px 20px 0 !important; box-shadow: 3px 3px 10px rgba(0,0,0,0.2) !important;
        animation: pulse-glow 2s infinite !important; border-left: none !important;
    }
    @keyframes pulse-glow {
        0% { box-shadow: 0 0 0 0 rgba(10, 61, 98, 0.7); } 
        70% { box-shadow: 0 0 0 10px rgba(10, 61, 98, 0); }
        100% { box-shadow: 0 0 0 0 rgba(10, 61, 98, 0); }
    }
}