/* ============================================
   Best Buy Theme - Custom Styles
   Primary: #0046BE (Blue)
   Accent: #FFE000 (Yellow)
   Dark: #001E62
   ============================================ */

/* --- Global --- */
body {
    background-color: #f5f5f5 !important;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* --- Top Navbar --- */
.top-navbar {
    background: #001E62 !important;
    border-bottom: none !important;
}
.top-navbar a,
.top-navbar .text-reset {
    color: #ffffff !important;
    opacity: 0.9 !important;
}
.top-navbar a:hover {
    opacity: 1 !important;
    color: #FFE000 !important;
}
.top-navbar .dropdown-toggle {
    color: #ffffff !important;
}

/* --- Main Header --- */
header {
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    border-bottom: 3px solid #0046BE !important;
}

/* --- Search Bar --- */
.front-header-search .input-group .form-control {
    border: 2px solid #0046BE !important;
    border-right: none !important;
    border-radius: 4px 0 0 4px !important;
    padding: 10px 16px !important;
    font-size: 15px !important;
}
.front-header-search .input-group .form-control:focus {
    box-shadow: 0 0 0 3px rgba(0,70,190,0.2) !important;
    border-color: #0046BE !important;
}
.front-header-search .btn-primary {
    background: #0046BE !important;
    border-color: #0046BE !important;
    border-radius: 0 4px 4px 0 !important;
    padding: 10px 20px !important;
}
.front-header-search .btn-primary:hover {
    background: #003399 !important;
}

/* --- Header Menu Bar --- */
header .bg-white.border-top {
    background: #0046BE !important;
    border-top: none !important;
}
header .bg-white.border-top a {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 8px 16px !important;
}
header .bg-white.border-top a:hover {
    color: #FFE000 !important;
    opacity: 1 !important;
}

/* --- Cart / Wishlist / Compare Icons --- */
.nav-cart-box,
#wishlist,
#compare {
    background: transparent !important;
}
.nav-cart-box .nav-box-link,
#wishlist .nav-box-link,
#compare .nav-box-link {
    color: #0046BE !important;
    font-size: 22px !important;
}
.nav-cart-box .nav-box-link:hover,
#wishlist .nav-box-link:hover,
#compare .nav-box-link:hover {
    color: #FFE000 !important;
}

/* --- Product Cards --- */
.aiz-card-box {
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
}
.aiz-card-box:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
    border-color: #0046BE !important;
    transform: translateY(-2px) !important;
}
.aiz-card-box .img-fit {
    border-radius: 0 !important;
    padding: 12px !important;
    transition: transform 0.3s ease !important;
}
.aiz-card-box:hover .img-fit {
    transform: scale(1.05) !important;
}

/* Product price - Best Buy blue */
.aiz-card-box .text-primary {
    color: #0046BE !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}
.aiz-card-box del {
    color: #999 !important;
    font-size: 13px !important;
}

/* Product name */
.aiz-card-box h3 a {
    color: #333 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}
.aiz-card-box h3 a:hover {
    color: #0046BE !important;
}

/* Discount badge - Best Buy yellow */
.badge-custom {
    background: #FFE000 !important;
    color: #001E62 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    border-radius: 0 0 8px 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2 !important;
}

/* Hover icons on product card */
.aiz-p-hov-icon a {
    background: #0046BE !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 4px 0 !important;
    transition: all 0.2s ease !important;
}
.aiz-p-hov-icon a:hover {
    background: #FFE000 !important;
    color: #001E62 !important;
}

/* --- Buttons --- */
.btn-primary {
    background: #0046BE !important;
    border-color: #0046BE !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}
.btn-primary:hover {
    background: #003399 !important;
    border-color: #003399 !important;
    color: #ffffff !important;
}

.btn-success {
    background: #0046BE !important;
    border-color: #0046BE !important;
}
.btn-success:hover {
    background: #003399 !important;
    border-color: #003399 !important;
}

/* Yellow accent button for deals */
.btn-warning,
.bg-primary {
    background: #0046BE !important;
}

/* --- Home Banner Area --- */
.home-banner-area {
    background: #f5f5f5 !important;
}

/* Category menu sidebar */
.category-menu {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    border: 1px solid #e8e8e8 !important;
}
.category-menu .list-group-item {
    border: none !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    color: #333 !important;
    transition: all 0.2s ease !important;
}
.category-menu .list-group-item:hover {
    background: rgba(0,70,190,0.08) !important;
    color: #0046BE !important;
    padding-left: 20px !important;
}

/* Today's Deal section */
.bg-soft-primary {
    background: rgba(0,70,190,0.08) !important;
}
.bg-primary {
    background: #0046BE !important;
}

/* --- Section Headers --- */
.section-header,
.aiz-titlebar h1,
.aiz-titlebar h3,
.aiz-titlebar h6 {
    color: #001E62 !important;
    font-weight: 700 !important;
}

/* --- Footer --- */
footer,
.footer {
    background: #001E62 !important;
    color: #ffffff !important;
}
footer a,
.footer a {
    color: rgba(255,255,255,0.8) !important;
}
footer a:hover,
.footer a:hover {
    color: #FFE000 !important;
}

/* --- Pagination --- */
.pagination .page-item.active .page-link {
    background: #0046BE !important;
    border-color: #0046BE !important;
}
.pagination .page-link {
    color: #0046BE !important;
}

/* --- Rating Stars --- */
.rating .la-star,
.rating .las-star {
    color: #FFE000 !important;
}

/* --- Flash Deal / Hot Badge --- */
.badge-primary {
    background: #FFE000 !important;
    color: #001E62 !important;
}

/* --- Cart Page --- */
.cart-item {
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    margin-bottom: 12px !important;
}

/* --- Product Detail Page --- */
.product-details .price {
    color: #0046BE !important;
    font-size: 28px !important;
    font-weight: 700 !important;
}

/* --- Scrollbar --- */
.c-scrollbar-light::-webkit-scrollbar-thumb {
    background: #0046BE !important;
    border-radius: 4px !important;
}

/* --- Mobile Responsive --- */
@media (max-width: 991px) {
    .front-header-search .input-group .form-control {
        font-size: 14px !important;
        padding: 8px 12px !important;
    }
    .aiz-card-box .img-fit {
        height: 160px !important;
    }
}

/* --- Top Banner --- */
.top-banner {
    background: #FFE000 !important;
}
.top-banner a {
    color: #001E62 !important;
}

/* ============================================
   Best Buy Header Layout Styles
   ============================================ */

/* Header container */
.bb-header {
    background: #0046BE !important;
    border-bottom: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

/* Row 1: Top header bar */
.bb-header-top {
    background: #0046BE !important;
    padding: 8px 0 !important;
}

/* Logo */
.bb-logo-img {
    max-height: 36px !important;
    /* filter removed - show original logo */
}

/* Search bar */
.bb-search-group {
    border-radius: 4px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}
.bb-search-input {
    border: none !important;
    padding: 12px 18px !important;
    font-size: 15px !important;
    border-radius: 4px 0 0 4px !important;
    height: auto !important;
}
.bb-search-input:focus {
    box-shadow: none !important;
    outline: 2px solid #FFE000 !important;
}
.bb-search-btn {
    background: #FFE000 !important;
    border: none !important;
    color: #001E62 !important;
    padding: 12px 20px !important;
    border-radius: 0 4px 4px 0 !important;
    font-size: 18px !important;
}
.bb-search-btn:hover {
    background: #e6cc00 !important;
}

/* Header action items (account, cart, etc.) */
.bb-action-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    padding: 6px 8px !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
}
.bb-action-link:hover {
    color: #FFE000 !important;
    background: rgba(255,255,255,0.1) !important;
}
.bb-action-link i {
    font-size: 20px !important;
}

/* Cart box in header */
.bb-cart-box .nav-box-link {
    color: #ffffff !important;
    font-size: 24px !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}
.bb-cart-box .nav-box-link:hover {
    color: #FFE000 !important;
    background: rgba(255,255,255,0.1) !important;
}

/* Row 2: Navigation bar */
.bb-nav-bar {
    background: #003399 !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    padding: 0 !important;
}

/* Nav dropdown buttons */
.bb-nav-btn {
    color: #ffffff !important;
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
}
.bb-nav-btn:hover {
    background: rgba(255,255,255,0.2) !important;
    color: #FFE000 !important;
}

/* Nav links in second bar */
.bb-nav-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 4px !important;
    transition: color 0.2s ease !important;
}
.bb-nav-link:hover {
    color: #FFE000 !important;
}

/* Nav link items (right side) */
.bb-nav-link-item {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 10px 12px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}
.bb-nav-link-item:hover {
    color: #FFE000 !important;
}

/* Mega menu dropdown */
.bb-mega-menu {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
    margin-top: 8px !important;
    padding: 0 !important;
}
.bb-mega-menu .dropdown-item {
    color: #333 !important;
    font-size: 14px !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
}
.bb-mega-menu .dropdown-item:hover {
    background: rgba(0,70,190,0.08) !important;
    color: #0046BE !important;
}

/* Mobile search */
.bb-mobile-search {
    background: #0046BE !important;
}
.bb-mobile-search .form-control {
    border-radius: 4px 0 0 4px !important;
    border: none !important;
    padding: 10px 14px !important;
}

/* Override old header styles */
/* logo-bar-area kept visible for new nav structure */
header .bg-white.border-top {
    display: none !important;
}





/* Featured categories row */
.home-banner-area .list-unstyled.col-4 img {
    border-radius: 6px !important;
}

/* Banner carousel rounded corners like Best Buy */
.aiz-carousel .carousel-box img {
    border-radius: 12px !important;
    border: 3px solid #0046BE !important;
}

/* Section headers */
.section-header h3,
.aiz-titlebar h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #001E62 !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid #0046BE !important;
    display: inline-block !important;
}

/* Footer styling */
footer, .footer {
    background: #001E62 !important;
    color: #ffffff !important;
    padding: 40px 0 20px !important;
}
footer h3, footer h4, footer h5, footer h6,
.footer h3, .footer h4, .footer h5, .footer h6 {
    color: #FFE000 !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
}
footer a, .footer a {
    color: rgba(255,255,255,0.75) !important;
    font-size: 14px !important;
    transition: color 0.2s ease !important;
}
footer a:hover, .footer a:hover {
    color: #FFE000 !important;
    text-decoration: none !important;
}
footer .border-top, .footer .border-top {
    border-color: rgba(255,255,255,0.1) !important;
}

/* Top banner yellow */
.top-banner {
    background: #FFE000 !important;
}

/* Page background */
body {
    background-color: #f0f0f0 !important;
}

/* Content wrapper */
.page-content {
    background: #f0f0f0 !important;
}

/* ============================================
   FORCE Best Buy Background Colors
   ============================================ */

/* Force header top background */
header.bb-header,
header.bb-header .bb-header-top {
    background: #0046BE !important;
    background-color: #0046BE !important;
}

/* Force nav bar background */
header.bb-header .bb-nav-bar {
    background: #003399 !important;
    background-color: #003399 !important;
}

/* Override any white background on header */
header.bb-header *,
header.bb-header-top *,
header.bb-header .logo-bar-area {
    /* Don't force children, just the containers */
}

/* Force the header element itself */
header.z-1020,
header.sticky-top {
    background: #0046BE !important;
}

/* Make sure the header container has blue bg */
header {
    background: #0046BE !important;
}

/* Nav bar row */
.bb-nav-bar {
    background: #003399 !important;
    background-color: #003399 !important;
}

/* Top header row */
.bb-header-top {
    background: #0046BE !important;
    background-color: #0046BE !important;
}

/* Fix nav link items spacing */
.bb-nav-links {
    gap: 0 !important;
}
.bb-nav-link-item {
    padding: 12px 14px !important;
    font-size: 13px !important;
}

/* Fix action items spacing */
.bb-header-actions .bb-action-link {
    padding: 8px 10px !important;
}

/* Ensure container doesn't add white bg */
header .container {
    background: transparent !important;
}

/* ============================================
   COMPLETE Best Buy Header Restyle
   ============================================ */

/* Main header element - BLUE background */
header.bb-header {
    background: #0046BE !important;
    background-color: #0046BE !important;
    border-bottom: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

/* Row 1 - Top bar */
header.bb-header .bb-header-top {
    background: #0046BE !important;
    background-color: #0046BE !important;
}

/* Row 2 - Nav bar */
header.bb-header .bb-nav-bar {
    background: #003399 !important;
    background-color: #003399 !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}

/* Hide only the OLD logo bar area content (not our new BB structure) */
header.bb-header .logo-bar-area .position-relative {
    /* Keep visible - our nav is inside here */
}

/* Hide the old header menu labels bar */
header.bb-header > .bg-white.border-top,
header.bb-header > div.bg-white.border-top {
    display: none !important;
}

/* Container inside header should be transparent */
header.bb-header .container {
    background: transparent !important;
}
/* ============================================
   FIX: Ensure slider displays even if Slick JS fails
   ============================================ */

/* Override aiz-core.css display:none on carousel children */
.aiz-carousel.dots-inside-bottom > .carousel-box {
    display: block !important;
}

/* Ensure carousel container has proper height */
.aiz-carousel.dots-inside-bottom {
    min-height: 315px !important;
    position: relative !important;
}

/* Make sure images inside carousel are visible */
.aiz-carousel.dots-inside-bottom .carousel-box img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 315px !important;
    object-fit: cover !important;
}

/* Hide category sidebar and today's deal sidebar, make slider full width */
.home-banner-area .col-lg-3 {
    display: none !important;
}
.home-banner-area .col-lg-2 {
    display: none !important;
}
.home-banner-area .col-lg-7,
.home-banner-area .col-lg-9 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* ============================================
   FIX: Hide today's deal sidebar, make slider full width
   ============================================ */


/* ============================================
   Mobile Responsive Header - Best Buy Style
   ============================================ */

/* Mobile: max-width 991px (below desktop) */
@media (max-width: 991px) {
    /* Row 1: Simplify to Logo + Cart only */
    .bb-header-top .d-flex {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }

    /* Logo - keep visible, slightly smaller */
    .bb-logo {
        flex-shrink: 0 !important;
    }
    .bb-logo-img {
        max-height: 30px !important;
        height: 30px !important;
    }

    /* Search bar - HIDE on mobile (use bb-mobile-search instead) */
    .bb-search {
        display: none !important;
    }

    /* Header actions - hide most, keep only cart */
    .bb-header-actions {
        flex-shrink: 0 !important;
    }
    .bb-header-actions .bb-action-link {
        display: none !important;
    }

    /* Show cart icon on mobile */
    .bb-cart-box {
        display: block !important;
        margin-left: 0 !important;
    }
    .bb-cart-box .nav-box-link {
        color: #ffffff !important;
        font-size: 22px !important;
        padding: 4px 8px !important;
    }

    /* Show hamburger menu button for mobile nav */
    .bb-mobile-menu-btn {
        display: flex !important;
        align-items: center;
        color: #ffffff !important;
        font-size: 24px !important;
        padding: 4px 8px !important;
        text-decoration: none !important;
    }

    /* Row 2: Nav bar - simplify for mobile */
    .bb-nav-bar {
        padding: 6px 0 !important;
    }
    .bb-nav-bar .d-flex {
        justify-content: space-between !important;
    }

    /* Hide right-side nav links on mobile */
    .bb-nav-links {
        display: none !important;
    }

    /* Keep category dropdown and deals on mobile */
    .bb-nav-dropdowns {
        width: 100% !important;
        justify-content: center !important;
    }
    .bb-nav-dropdowns .dropdown {
        margin-right: 12px !important;
    }
    .bb-nav-btn {
        padding: 6px 14px !important;
        font-size: 13px !important;
    }
    .bb-nav-link {
        font-size: 13px !important;
        padding: 6px 4px !important;
    }

    /* Mobile search bar - show and style */
    .bb-mobile-search {
        display: block !important;
    }
    .bb-mobile-search .form-control {
        font-size: 14px !important;
        padding: 10px 14px !important;
    }
}

/* Tablet: 768px - 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .bb-logo-img {
        max-height: 34px !important;
    }
    .bb-search {
        display: block !important;
    }
    .bb-search-input {
        padding: 8px 14px !important;
        font-size: 14px !important;
    }
    .bb-search-btn {
        padding: 8px 14px !important;
    }
    .bb-header-actions .bb-action-link {
        display: flex !important;
        font-size: 12px !important;
        padding: 4px 6px !important;
    }
    .bb-header-actions .bb-action-link .d-none {
        display: none !important;
    }
}

/* Small mobile: below 576px */
@media (max-width: 575px) {
    .bb-header-top .py-2 {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
    .bb-logo-img {
        max-height: 26px !important;
        height: 26px !important;
    }
    .bb-cart-box .nav-box-link {
        font-size: 20px !important;
    }
    .bb-nav-btn {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
    .bb-nav-link {
        font-size: 12px !important;
    }
    .bb-mobile-search .py-2 {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
}
/* ============================================
   FIX: Mobile Header Layout
   ============================================ */

@media (max-width: 991px) {
    /* Fix: remove empty space from hidden search */
    .bb-header-top .d-flex {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Logo - left side, no extra margin */
    .bb-logo {
        flex-shrink: 0 !important;
        margin-right: 0 !important;
    }

    /* Search bar - completely remove from flow on mobile */
    .bb-search {
        display: none !important;
        flex-grow: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Mobile menu button - move to right, before cart */
    .bb-mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        color: #ffffff !important;
        font-size: 24px !important;
        padding: 4px 8px !important;
        text-decoration: none !important;
        margin-left: auto !important;
        margin-right: 4px !important;
        order: 2 !important;
    }

    /* Cart - rightmost */
    .bb-cart-box {
        display: block !important;
        margin-left: 0 !important;
        order: 3 !important;
    }
    .bb-cart-box .nav-box-link {
        color: #ffffff !important;
        font-size: 22px !important;
        padding: 4px 8px !important;
    }

    /* Header actions container - don't stretch */
    .bb-header-actions {
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        margin-left: 0 !important;
    }

    /* Hide all action links on mobile, only cart visible */
    .bb-header-actions .bb-action-item,
    .bb-header-actions > a.bb-action-link {
        display: none !important;
    }

    /* Nav bar - center the buttons */
    .bb-nav-bar .d-flex {
        justify-content: center !important;
    }
    .bb-nav-links {
        display: none !important;
    }
    .bb-nav-dropdowns {
        justify-content: center !important;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .bb-header-top .py-2 {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    .bb-logo-img {
        max-height: 28px !important;
        height: 28px !important;
    }
    .bb-mobile-menu-btn {
        font-size: 22px !important;
        padding: 4px 6px !important;
    }
}
/* ============================================
   FIX: Show icons on mobile (no text)
   ============================================ */

@media (max-width: 991px) {
    /* Header row 1: Logo + Search + Icons */
    .bb-header-top .d-flex {
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    /* Logo - smaller on mobile */
    .bb-logo {
        flex-shrink: 0 !important;
        margin-right: 6px !important;
    }
    .bb-logo-img {
        max-height: 28px !important;
        height: 28px !important;
    }

    /* Search bar - smaller on mobile but still visible */
    .bb-search {
        display: block !important;
        flex-grow: 1 !important;
        min-width: 0 !important;
        margin: 0 6px !important;
    }
    .bb-search-input {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }
    .bb-search-btn {
        padding: 6px 12px !important;
        font-size: 14px !important;
    }

    /* Header actions - show all icons, hide text */
    .bb-header-actions {
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
    }

    /* Show all action items on mobile */
    .bb-header-actions .bb-action-item,
    .bb-header-actions > a.bb-action-link {
        display: flex !important;
    }

    /* Hide text labels on mobile, keep icons */
    .bb-header-actions .bb-action-link .d-none,
    .bb-header-actions .bb-action-link span:not([class*="badge"]) {
        display: none !important;
    }

    /* Compact icon styling */
    .bb-header-actions .bb-action-link {
        padding: 4px 5px !important;
        font-size: 0 !important;
        margin-right: 0 !important;
    }
    .bb-header-actions .bb-action-link i {
        font-size: 18px !important;
        margin-right: 0 !important;
    }

    /* Language flag - keep visible */
    .bb-header-actions #lang-change .bb-action-link img {
        margin-right: 0 !important;
    }

    /* Currency icon */
    .bb-header-actions #currency-change .bb-action-link i {
        font-size: 16px !important;
    }

    /* Cart - keep badge visible */
    .bb-cart-box {
        display: block !important;
        margin-left: 2px !important;
    }
    .bb-cart-box .nav-box-link {
        font-size: 18px !important;
        padding: 4px 6px !important;
    }

    /* Hide mobile menu button (not needed since we show all icons) */
    .bb-mobile-menu-btn {
        display: none !important;
    }

    /* Nav bar row 2 */
    .bb-nav-bar .d-flex {
        justify-content: space-between !important;
    }
    .bb-nav-links {
        display: none !important;
    }
    .bb-nav-dropdowns {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Hide the separate mobile search (we show search in header now) */
    .bb-mobile-search {
        display: none !important;
    }
}

/* Very small screens: hide some less important icons */
@media (max-width: 480px) {
    /* Hide sell button on very small screens */
    .bb-header-actions a[href*="shops.create"] {
        display: none !important;
    }
    /* Hide currency on very small */
    .bb-header-actions #currency-change {
        display: none !important;
    }
    .bb-search-input {
        padding: 5px 8px !important;
        font-size: 12px !important;
    }
    .bb-logo-img {
        max-height: 24px !important;
        height: 24px !important;
    }
}
/* ============================================
   FIX: Force ALL icons visible on mobile
   Override d-none d-lg-block
   ============================================ */

@media (max-width: 991px) {
    /* Force all action items visible - override d-none */
    .bb-header-actions .bb-action-item.d-none,
    .bb-header-actions > a.bb-action-link.d-none {
        display: flex !important;
    }

    /* Force notification dropdown visible */
    .bb-header-actions .bb-action-item.dropdown.d-none {
        display: block !important;
    }

    /* Compact all icons */
    .bb-header-actions .bb-action-link {
        padding: 4px 4px !important;
    }
    .bb-header-actions .bb-action-link i {
        font-size: 17px !important;
        margin-right: 0 !important;
    }

    /* Language flag small */
    .bb-header-actions #lang-change .bb-action-link img {
        height: 14px !important;
        margin-right: 0 !important;
    }

    /* Currency icon */
    .bb-header-actions #currency-change .bb-action-link i {
        font-size: 15px !important;
    }

    /* Notification bell */
    .bb-header-actions .dropdown-toggle .las.la-bell {
        font-size: 18px !important;
    }

    /* Hide all text spans on mobile */
    .bb-header-actions .bb-action-link span.d-none {
        display: none !important;
    }
}
/* Mobile: show all header icons compact (icon only, no text) */
@media (max-width: 991px) {
    .bb-header-actions .bb-mobile-show {
        display: flex !important;
    }
    .bb-header-actions .bb-mobile-show.dropdown {
        display: block !important;
    }
    .bb-header-actions .bb-mobile-show a.bb-action-link {
        display: inline-flex !important;
    }
    /* Hide text labels on mobile, show icon only */
    .bb-header-actions .bb-mobile-show .d-none.d-xl-inline {
        display: none !important;
    }
    /* Compact spacing */
    .bb-header-actions .bb-mobile-show {
        margin-right: 0.25rem !important;
    }
    .bb-header-actions .bb-mobile-show .bb-action-link {
        padding: 4px 2px;
        font-size: 14px;
    }
}
/* Fix carousel blank space on mobile */
@media (max-width: 991px) {
    .home-banner-area {
        padding-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    .home-banner-area .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .aiz-carousel {
        margin-bottom: 0 !important;
    }
    .aiz-carousel .carousel-box img {
        height: auto !important;
        max-height: 200px;
        object-fit: cover;
        width: 100%;
    }
    .aiz-carousel .slick-slide {
        height: auto !important;
    }
    .aiz-carousel .slick-track {
        height: auto !important;
    }
    /* Reduce featured categories spacing */
    .home-banner-area .row.gutters-5 {
        margin-top: 0.25rem;
    }
}
/* Fix carousel blank space on mobile - aggressive */
@media (max-width: 991px) {
    .home-banner-area {
        padding-top: 0 !important;
        margin-bottom: 0.5rem !important;
    }
    .home-banner-area > .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .home-banner-area .row.gutters-10 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .home-banner-area .col-lg-9 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Carousel images - remove fixed height */
    .aiz-carousel .carousel-box img {
        height: auto !important;
        width: 100% !important;
        max-height: 220px !important;
        object-fit: cover !important;
    }
    /* Remove carousel container extra height */
    .aiz-carousel {
        line-height: 0 !important;
        font-size: 0 !important;
    }
    .aiz-carousel .carousel-box {
        line-height: 0 !important;
    }
    .aiz-carousel .carousel-box a {
        display: block !important;
        line-height: 0 !important;
    }
    /* Featured categories - reduce top margin */
    .home-banner-area ul.list-unstyled {
        margin-top: 0.25rem !important;
    }
    .home-banner-area ul.list-unstyled li {
        margin-top: 0.25rem !important;
    }
}
/* Hide empty AJAX-loaded sections */
#section_featured:empty,
#section_best_selling:empty,
#section_home_categories:empty,
#section_best_sellers:empty,
#auction_products:empty {
    display: none !important;
}
/* Hide sections that only contain whitespace */
#section_featured:not(:has(*)),
#section_best_selling:not(:has(*)),
#section_home_categories:not(:has(*)),
#section_best_sellers:not(:has(*)) {
    display: none !important;
}
