/* Mobile Category Dropdown Improvements */

/* Mobile category button styling */
.mobile-categoryBtn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    color: #333;
}

.mobile-categoryBtn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.mobile-categoryBtn .chevron-rotate {
    transition: transform 0.3s ease;
}

/* Mobile categories dropdown content */
.mobile-category-container .collapse {
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: white;
}

.mobile-category-container .browse-categories-items {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-category-container .browse-categories-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-category-container .browse-categories-item:last-child {
    border-bottom: none;
}

.mobile-category-container .browse-categories-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
}

.mobile-category-container .browse-categories-item a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color, #007bff);
}

.mobile-category-container .browse-categories-item a div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-category-container .browse-categories-item a div span {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-category-container .browse-categories-item a div span img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mobile sub-categories dropdown */
.mobile-category-container .mobilecategories-dropdown {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.mobile-category-container .categories-dropdown-items {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.mobile-category-container .categories-dropdown-item {
    border-bottom: 1px solid #e9ecef;
}

.mobile-category-container .categories-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-category-container .categories-dropdown-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 32px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mobile-category-container .categories-dropdown-item a:hover {
    background-color: #e9ecef;
    color: var(--primary-color, #007bff);
    padding-left: 40px;
}

/* Mobile brands section improvements */
.mobile-brandsBtn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    color: #333;
    margin-top: 12px;
}

.mobile-brandsBtn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.mobile-brandsBtn .chevron-rotate {
    transition: transform 0.3s ease;
}

.mobile-brands-container .collapse {
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: white;
    padding: 16px;
}

.mobile-brands-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.mobile-brand-item {
    text-align: left;
}

.mobile-brand-item a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-brand-item a:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color, #007bff);
    color: var(--primary-color, #007bff);
}

.mobile-brand-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.mobile-brand-item span {
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    flex-grow: 1;
}

.mobile-brands-view-all {
    margin-top: 12px;
}
