/* Flipkart-style Category Dropdown Menu */
/* Only apply to non-homepage pages */
body:not(.homepage) .nav-item {
    position: relative;
}

body:not(.homepage) .category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    min-width: 800px;
    max-width: 1000px;
    padding: 0;
    margin-top: 0;
    border-top: 2px solid #2874f0;
}

/* Ensure dropdowns show on hover for all non-homepage pages */
body:not(.homepage) .nav-item:hover .category-dropdown,
body:not(.homepage) .nav-item .category-dropdown:hover {
    display: block !important;
}

/* Keep dropdown visible when hovering over it */
body:not(.homepage) .category-dropdown:hover {
    display: block !important;
}

body:not(.homepage) .category-dropdown-content {
    display: flex;
    width: 100%;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
}

/* Left Sidebar - Filters */
body:not(.homepage) .dropdown-filters {
    width: 250px;
    background: #f9f9f9;
    border-right: 1px solid #e0e0e0;
    padding: 20px 16px;
    overflow-y: auto;
    flex-shrink: 0;
}

body:not(.homepage) .dropdown-filters h3 {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body:not(.homepage) .filter-section {
    margin-bottom: 24px;
}

body:not(.homepage) .filter-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 12px;
    text-transform: uppercase;
}

body:not(.homepage) .filter-section-title.back-link {
    color: #2874f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

body:not(.homepage) .filter-section-title.back-link:hover {
    text-decoration: underline;
}

body:not(.homepage) .filter-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

body:not(.homepage) .filter-option {
    padding: 8px 0;
    font-size: 13px;
    color: #212121;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

body:not(.homepage) .filter-option:hover {
    color: #2874f0;
}

body:not(.homepage) .filter-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #2874f0;
}

body:not(.homepage) .filter-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 12px;
}

body:not(.homepage) .filter-search:focus {
    outline: none;
    border-color: #2874f0;
}

body:not(.homepage) .more-link {
    color: #2874f0;
    font-size: 12px;
    margin-top: 8px;
    cursor: pointer;
    display: inline-block;
}

body:not(.homepage) .more-link:hover {
    text-decoration: underline;
}

/* Center Columns - Subcategories (Full Width) */
body:not(.homepage) .dropdown-subcategories {
    flex: 1;
    display: flex;
    padding: 0;
    gap: 30px;
    overflow-x: auto;
    width: 100%;
}

body:not(.homepage) .subcategory-column {
    min-width: 200px;
    flex: 1;
    flex-shrink: 0;
}

body:not(.homepage) .subcategory-column-title {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

body:not(.homepage) .subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

body:not(.homepage) .subcategory-item {
    margin-bottom: 12px;
}

body:not(.homepage) .subcategory-link {
    font-size: 13px;
    color: #212121;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    transition: color 0.2s;
}

body:not(.homepage) .subcategory-link:hover {
    color: #2874f0;
}

/* Right Column - Featured */
body:not(.homepage) .dropdown-featured {
    width: 220px;
    background: #f9f9f9;
    border-left: 1px solid #e0e0e0;
    padding: 20px 16px;
    overflow-y: auto;
    flex-shrink: 0;
}

body:not(.homepage) .dropdown-featured h3 {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body:not(.homepage) .featured-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

body:not(.homepage) .featured-item {
    margin-bottom: 12px;
}

body:not(.homepage) .featured-link {
    font-size: 13px;
    color: #212121;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    transition: color 0.2s;
}

body:not(.homepage) .featured-link:hover {
    color: #2874f0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    body:not(.homepage) .category-dropdown {
        min-width: 800px;
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    body:not(.homepage) .category-dropdown {
        min-width: 700px;
        max-width: 900px;
    }
    
    body:not(.homepage) .dropdown-filters {
        width: 200px;
    }
    
    body:not(.homepage) .dropdown-featured {
        width: 180px;
    }
}

/* Ensure dropdown doesn't break layout */
body:not(.homepage) .nav-menu {
    overflow: visible !important;
}

body:not(.homepage) .nav-container {
    overflow: visible !important;
}

