/* Variables matching your Suman Trading Theme */
:root {
    --primary-blue: #0b1b3d;
    --secondary-blue: #142a59;
    --theme-orange: #f58634;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e5e5e5;
}
/* ==========================================
   FIX: Off-Canvas Sidebars (Menu & Cart)
   ========================================== */

/* Overlays (Black fade background) */
.mobile-sidebar-overlay, .ajax-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}
.mobile-sidebar-overlay.is-open, .ajax-cart-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Mobile Sidebar Menu (Left side) */
.mobile-sidebar-menu {
    position: fixed;
    top: 0;
    left: -320px; /* Hide off-screen */
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
}
.mobile-sidebar-menu.is-open {
    left: 0;
}

/* AJAX Cart Sidebar (Right side) */
.ajax-cart-sidebar {
    position: fixed;
    top: 0;
    right: -370px; /* Hide off-screen */
    width: 350px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
}
.ajax-cart-sidebar.is-open {
    right: 0;
}

/* Body lock when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- 1. Fix Layout Spacing (Wide Container) --- */
.suman-container {
    max-width: 1600px !important;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.bg-dark-blue { background-color: var(--primary-blue) !important; }
.text-dark-blue { color: var(--primary-blue) !important; }
.bg-orange { background-color: var(--theme-orange) !important; }
.text-orange { color: var(--theme-orange) !important; }

/* --- 2. Search Bar & Dropdown Results CSS --- */
.search-input-group {
    position: relative;
    border: 2px solid var(--primary-blue);
    border-radius: 5px;
}
.search-input-group input:focus {
    box-shadow: none !important;
}
.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1050;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-top: none;
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s;
}
.search-result-item:hover {
    background: #f8f9fa;
    color: var(--theme-orange);
}
.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
}
.search-item-info .title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}
.search-item-info .price {
    font-size: 13px;
    color: var(--theme-orange);
    font-weight: bold;
}
.search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}
.search-loading-spinner {
    position: absolute;
    right: 180px; /* Adjust if category dropdown changes size */
    top: 50%;
    transform: translateY(-50%);
    display: none;
    color: var(--theme-orange);
    z-index: 10;
}
@media (max-width: 991px) {
    .search-loading-spinner {
        right: 60px;
    }
}
/* ==========================================
   Header Category Hover Dropdown (Inner Pages)
   ========================================== */
.header-category-dropdown {
    position: absolute;
    top: 100%;
    left: 15px; /* Alignment fix */
    right: 15px;
    background: #fff;
    z-index: 1050;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e5e5e5;
    border-top: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Mouse aane par Dropdown Dikhana */
.category-dropdown-parent:hover .header-category-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================
   Universal Category List Design (Home & Dropdown)
   ========================================== */
.hero-category-sidebar ul.hero-category-list,
.header-category-dropdown ul.hero-category-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.hero-category-sidebar ul.hero-category-list li,
.header-category-dropdown ul.hero-category-list li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #f2f2f2;
}

/* Remove default bullets completely */
.hero-category-sidebar ul.hero-category-list li::before,
.hero-category-sidebar ul.hero-category-list li::after,
.header-category-dropdown ul.hero-category-list li::before,
.header-category-dropdown ul.hero-category-list li::after {
    display: none !important;
    content: none !important;
}

.hero-category-sidebar ul.hero-category-list li a,
.header-category-dropdown ul.hero-category-list li a {
    display: flex !important;
    align-items: center !important;
    padding: 14px 20px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    background-color: #fff;
}

.hero-category-sidebar ul.hero-category-list li a i.fa-box-open,
.header-category-dropdown ul.hero-category-list li a i.fa-box-open {
    margin-right: 12px !important;
    font-size: 16px !important;
    color: #6c757d; 
    transition: color 0.2s ease;
}

.hero-category-sidebar ul.hero-category-list li a:hover,
.header-category-dropdown ul.hero-category-list li a:hover {
    background-color: #f8f9fa !important;
    color: var(--theme-orange, #f58634) !important;
    padding-left: 26px !important;
}

.hero-category-sidebar ul.hero-category-list li a:hover i.fa-box-open,
.header-category-dropdown ul.hero-category-list li a:hover i.fa-box-open {
    color: var(--theme-orange, #f58634) !important;
}

.hero-category-sidebar ul.hero-category-list li a::after,
.header-category-dropdown ul.hero-category-list li a::after {
    content: "\f054" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 11px !important;
    color: #ced4da !important;
    display: block !important;
    margin-left: auto !important;
    transition: color 0.2s ease !important;
}

.hero-category-sidebar ul.hero-category-list li a:hover::after,
.header-category-dropdown ul.hero-category-list li a:hover::after {
    color: var(--theme-orange, #f58634) !important;
}