/* ========== ORIGINAL DESKTOP STYLES - UNTOUCHED ========== */
.our-products li {
    list-style: none;
    background: rgba(41, 16, 1, 0.9);
    border-bottom: 1px dashed;
    font-size: 17px;
    color: #fff;
    width: 77%;
    margin: 0px 25px;
}
.our-products a {
    color: #fff;
    display: block;
    padding: 0px 0 1px 24px;
}
.our-products a:hover {
    text-decoration: none;
    color: #e77735;
}

/* =====================================================
   MOBILE SLIDING MENU - FIXED VERSION
   ===================================================== */
@media only screen and (max-width: 767px) {
    
    /* Container should not be relative */
    .container-fluid {
        position: static !important;
    }
    
    /* Row setup */
    .row.mobile-flex-row {
        position: static !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Sidebar - Hidden by default, slides in from left */
    .row.mobile-flex-row > .col-lg-4,
    .row.mobile-flex-row > .col-md-12,
    .row.mobile-flex-row > .col-sm-12,
    .row.mobile-flex-row > .col-xs-12,
    .row.mobile-flex-row > .mobile-sidebar-col {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important; /* Start completely off screen */
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: #1a0a03 !important;
        z-index: 99999 !important; /* Very high z-index */
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 5px 0 20px rgba(0,0,0,0.5) !important;
        padding: 0 !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Sidebar visible state */
    .row.mobile-flex-row > .mobile-sidebar-col.active {
        left: 0 !important;
    }
    
    /* Content takes full width - no position changes */
    .row.mobile-flex-row > .col-lg-8,
    .row.mobile-flex-row > .mobile-content-col {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        display: block !important;
        float: none !important;
    }
    
    /* Menu Toggle Button (Hamburger) - Fixed at Bottom Right */
    .mobile-menu-toggle {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 100000 !important; /* Higher than sidebar */
        background: #e7631a !important;
        color: #fff !important;
        border: none !important;
        padding: 12px 15px !important;
        border-radius: 50% !important;
        font-size: 22px !important;
        cursor: pointer !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
        transition: all 0.3s ease !important;
        width: 60px !important;
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mobile-menu-toggle:active {
        transform: scale(0.9) !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
    }
    
    /* Close button inside sidebar */
    .mobile-menu-close {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        background: #e7631a !important;
        color: #fff !important;
        border: none !important;
        padding: 10px 14px !important;
        border-radius: 8px !important;
        font-size: 20px !important;
        cursor: pointer !important;
        z-index: 100001 !important;
        width: 45px !important;
        height: 45px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Overlay background when menu is open */
    .mobile-menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0,0,0,0.6) !important;
        z-index: 99998 !important;
        display: none !important;
        opacity: 0 !important;
        transition: opacity 0.4s ease !important;
    }
    
    .mobile-menu-overlay.active {
        display: block !important;
        opacity: 1 !important;
    }
    
    /* Sidebar Products List */
    .row.mobile-flex-row .our-products {
        margin: 0 !important;
        padding: 70px 0 20px 0 !important; /* Space for close button */
        background: transparent !important;
    }
    
    .row.mobile-flex-row .our-products ul {
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }
    
    .row.mobile-flex-row .our-products li {
        width: 100% !important;
        margin: 0 !important;
        font-size: 14px !important;
        padding: 0 !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    .row.mobile-flex-row .our-products a {
        padding: 14px 20px !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        word-wrap: break-word !important;
        border-bottom: none !important;
        display: block !important;
        color: #fff !important;
        text-decoration: none !important;
    }
    
    .row.mobile-flex-row .our-products a:active {
        background: rgba(231, 99, 26, 0.3) !important;
    }
    
    .row.mobile-flex-row .our-products h2 {
        font-size: 18px !important;
        padding: 18px 15px !important;
        margin: 0 !important;
        background: rgba(255, 108, 27, 0.88) !important;
        text-align: center !important;
    }
    
    /* Category Headers */
    .row.mobile-flex-row .our-products .mobile-cat-head {
        font-size: 15px !important;
        padding: 14px 20px !important;
        line-height: 1.5 !important;
        font-weight: 600 !important;
        background: #e7631a !important;
    }
    
    .row.mobile-flex-row .our-products .mobile-cat-head i {
        font-size: 13px !important;
        margin-right: 10px !important;
    }
    
    /* Sub Category Items */
    .row.mobile-flex-row .our-products .mobile-sub-item {
        font-size: 13px !important;
        padding: 12px 20px 12px 40px !important;
        line-height: 1.5 !important;
        background: rgba(41, 16, 1, 0.6) !important;
    }
    
    /* Content Area Title - No extra top margin needed */
    .row.mobile-flex-row .mobile-content-col h2 {
        font-size: 20px !important;
        border-bottom: 3px solid #ff6c1b !important;
        width: auto !important;
        display: inline-block !important;
        margin-bottom: 15px !important;
        padding-bottom: 8px !important;
        margin-top: 10px !important;
    }
    
    /* Gallery Container - 2 Column Grid */
    .row.mobile-flex-row #vlightbox {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Gallery Items */
    .row.mobile-flex-row #vlightbox a,
    .row.mobile-flex-row #vlightbox a.vlightbox {
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }
    
    /* Gallery Images */
    .row.mobile-flex-row #vlightbox a img,
    .row.mobile-flex-row #vlightbox a.vlightbox img {
        width: 100% !important;
        height: 150px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        display: block !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    /* Hide desktop margin on mobile */
    .row.mobile-flex-row #vlightbox[style*="margin: 0px 50px"] {
        margin: 0 !important;
    }
}

/* ========== SMALL MOBILE (Below 400px) ========== */
@media only screen and (max-width: 400px) {
    
    .row.mobile-flex-row > .mobile-sidebar-col {
        width: 90% !important;
        max-width: 280px !important;
    }
    
    .mobile-menu-toggle {
        width: 55px !important;
        height: 55px !important;
        font-size: 20px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
    
    .mobile-menu-close {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .row.mobile-flex-row .our-products a {
        padding: 12px 15px !important;
        font-size: 13px !important;
    }
    
    .row.mobile-flex-row .our-products .mobile-cat-head {
        font-size: 14px !important;
        padding: 12px 15px !important;
    }
    
    .row.mobile-flex-row .our-products .mobile-sub-item {
        font-size: 12px !important;
        padding: 10px 15px 10px 30px !important;
    }
    
    .row.mobile-flex-row #vlightbox a img {
        height: 130px !important;
    }
}

/* ========== VERY SMALL MOBILE (Below 350px) ========== */
@media only screen and (max-width: 350px) {
    
    .row.mobile-flex-row #vlightbox a img {
        height: 110px !important;
    }
    
    .row.mobile-flex-row .mobile-content-col h2 {
        font-size: 18px !important;
    }
}

/* ========== SMOOTH TRANSITIONS ========== */
.row.mobile-flex-row .our-products a {
    transition: background 0.2s ease !important;
}

/* Webkit scrollbar styling for sidebar */
@media only screen and (max-width: 767px) {
    .mobile-sidebar-col::-webkit-scrollbar {
        width: 6px !important;
    }
    
    .mobile-sidebar-col::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.2) !important;
    }
    
    .mobile-sidebar-col::-webkit-scrollbar-thumb {
        background: rgba(231, 99, 26, 0.6) !important;
        border-radius: 3px !important;
    }
    
    .mobile-sidebar-col::-webkit-scrollbar-thumb:hover {
        background: rgba(231, 99, 26, 0.8) !important;
    }
}