/* ========================================
   PROFESSIONAL SHOP SIDEBAR
   ======================================== */

/* Mobile Sidebar Container */
.shop-sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    display: none; /* Hide by default on desktop */
}

.shop-sidebar-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.shop-sidebar-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    box-shadow: 8px 0 50px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 0 25px 25px 0;
    border-left: 4px solid #00a76b;
}

.shop-sidebar-wrapper.active .shop-sidebar-inner {
    transform: translateX(0);
}

/* Mobile Sidebar Header */
.mobile-sidebar-header {
    background: linear-gradient(135deg, #00a76b 0%, #007a52 100%);
    padding: 20px 25px;
    color: white;
    border-radius: 0 25px 0 0;
    position: relative;
    overflow: hidden;
}

.mobile-sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.mobile-sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-sidebar-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 5px 0 0 0;
}

/* Mobile Sidebar Content */
.mobile-sidebar-content {
    padding: 25px;
    background: #ffffff;
    animation: slideInContent 0.6s ease-out 0.2s both;
}

@keyframes slideInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Sidebar Widgets */
.mobile-sidebar-content .sidebar-widget {
    animation: slideInWidget 0.5s ease-out both;
    animation-delay: calc(var(--widget-delay, 0) * 0.1s);
}

.mobile-sidebar-content .sidebar-widget:nth-child(1) { --widget-delay: 1; }
.mobile-sidebar-content .sidebar-widget:nth-child(2) { --widget-delay: 2; }
.mobile-sidebar-content .sidebar-widget:nth-child(3) { --widget-delay: 3; }
.mobile-sidebar-content .sidebar-widget:nth-child(4) { --widget-delay: 4; }

@keyframes slideInWidget {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Sidebar Content */
.mobile-sidebar-content {
    padding: 30px 20px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.mobile-sidebar-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-sidebar-content::-webkit-scrollbar-thumb {
    background: #00a76b;
    border-radius: 10px;
}

.mobile-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #007a52;
}

.mobile-sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00a76b;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #00a76b;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-filter-section {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 2px solid rgba(0, 167, 107, 0.1);
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-filter-section:last-of-type {
    border-bottom: none;
}

.mobile-filter-section h4,
.mobile-filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #00a76b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 167, 107, 0.2);
}

.mobile-filter-title i {
    font-size: 0.85rem;
    color: #00a76b;
}

/* Mobile Price Filter */
.mobile-price-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 18px;
}

.mobile-price-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-price-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mobile-price-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #333;
}

.mobile-price-input:focus {
    outline: none;
    border-color: #00a76b;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 167, 107, 0.1);
}

.mobile-price-inputs span {
    display: none;
}

.mobile-filter-btn-apply {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #00a76b 0%, #007a52 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 12px rgba(0, 167, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mobile-filter-btn-apply:hover {
    background: linear-gradient(135deg, #007a52 0%, #005a3a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 167, 107, 0.4);
}

.mobile-filter-btn-apply:active {
    transform: translateY(0);
}

.mobile-filter-btn-apply.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.mobile-filter-btn-apply.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Categories */
.mobile-categories-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}

.mobile-category-item {
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.mobile-category-item:hover {
    border-color: #00a76b;
    box-shadow: 0 2px 8px rgba(0, 167, 107, 0.15);
}

.mobile-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    cursor: pointer;
}

.mobile-category-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    cursor: pointer;
}

.mobile-category-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #00a76b;
}

.mobile-category-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.mobile-category-count {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.mobile-category-toggle {
    background: none;
    border: none;
    color: #00a76b;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 5px 8px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-category-item.active .mobile-category-toggle {
    transform: rotate(180deg);
}

.mobile-subcategories {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.mobile-category-item.active .mobile-subcategories {
    max-height: 500px;
}

.mobile-subcategory-item {
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-subcategory-item:last-child {
    border-bottom: none;
}

.mobile-subcategory-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px 10px 35px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-subcategory-label:hover {
    background: #f8f9fa;
}

.mobile-subcategory-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00a76b;
}

.mobile-subcategory-name {
    font-size: 0.8rem;
    color: #555;
    flex: 1;
}

.mobile-subcategory-count {
    font-size: 0.7rem;
    color: #888;
}

/* Mobile Brands */
.mobile-brands {
    max-height: 200px;
    overflow-y: auto;
}

.mobile-brand-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 4px;
    margin-bottom: 5px;
}

.mobile-brand-item:hover {
    background: #f8f9fa;
}

.mobile-brand-checkbox {
    margin-right: 10px;
    transform: scale(1.2);
}

.mobile-brand-name {
    flex: 1;
    font-size: 0.8rem;
    color: #333;
    font-weight: 500;
}

.mobile-brand-count {
    font-size: 0.8rem;
    color: #666666;
    margin-left: 5px;
}

.mobile-brands-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 18px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
}

.mobile-brands-container .mobile-brands {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-brands-container .mobile-brand-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid transparent;
}

.mobile-brands-container .mobile-brand-item:hover {
    background: #ffffff;
    border-color: #00a76b;
    box-shadow: 0 2px 6px rgba(0, 167, 107, 0.1);
}

.mobile-brands-container .mobile-brand-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00a76b;
}

.mobile-brands-container .mobile-brand-name {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.mobile-brands-container .mobile-brand-count {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Custom Scrollbar for Mobile Brands */
.mobile-brands-container::-webkit-scrollbar {
    width: 6px;
}

.mobile-brands-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.mobile-brands-container::-webkit-scrollbar-thumb {
    background: #00a76b;
    border-radius: 10px;
}

.mobile-brands-container::-webkit-scrollbar-thumb:hover {
    background: #007a52;
}

/* Mobile Filter Actions */
.mobile-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 2px solid rgba(0, 167, 107, 0.2);
}

.mobile-apply-all,
.mobile-clear-all {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.mobile-apply-all {
    background: linear-gradient(135deg, #00a76b 0%, #007a52 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 167, 107, 0.3);
}

.mobile-apply-all:hover {
    background: linear-gradient(135deg, #007a52 0%, #005a3a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 167, 107, 0.4);
}

.mobile-apply-all:active {
    transform: translateY(0);
}

.mobile-apply-all.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.mobile-clear-all {
    background: #ffffff;
    color: #666;
    border: 2px solid #e9ecef;
}

.mobile-clear-all:hover {
    background: #f8f9fa;
    border-color: #00a76b;
    color: #00a76b;
    transform: translateY(-2px);
}

.mobile-clear-all:active {
    transform: translateY(0);
}

/* Mobile Close Button */
.close-sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    color: #666;
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
    line-height: 1;
    padding: 0;
    overflow: hidden;
}

.close-sidebar:hover {
    background: #00a76b;
    color: #ffffff;
    border-color: #00a76b;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 167, 107, 0.3);
}

.close-sidebar:active {
    transform: scale(0.95);
}

.close-sidebar::before {
    content: '×';
    font-weight: 300;
    font-size: 2rem;
    line-height: 1;
    display: block;
    color: inherit;
    transition: color 0.3s ease;
}

/* Mobile Filter Button */
.mobile-filter-container {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    transition: all 0.3s ease;
    display: block; /* Ensure it's visible */
}

.mobile-filter-container:hover {
    transform: translateY(-50%) scale(1.05);
}

.mobile-filter-btn {
    background: linear-gradient(135deg, #00a76b 0%, #007a52 100%);
    color: #ffffff;
    border: none;
    padding: 0;
    border-radius: 50%;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(0, 167, 107, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    width: 35px;
    height: 35px;
    position: relative;
    overflow: hidden;
}

.mobile-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.mobile-filter-btn:hover::before {
    left: 100%;
}

.mobile-filter-btn:hover {
    background: linear-gradient(135deg, #007a52 0%, #005a3a 100%);
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 35px rgba(0, 167, 107, 0.6);
}

.mobile-filter-btn:active {
    transform: scale(1.05) rotate(10deg);
}

.mobile-filter-btn i {
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    position: relative;
}

.mobile-filter-btn:hover i {
    transform: scale(1.2) rotate(-10deg);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive Mobile Sidebar */
@media (max-width: 991px) {
    .shop-sidebar-wrapper {
        display: block !important;
    }
    
    .mobile-filter-container {
        display: block !important;
    }
    
    .shop-sidebar {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .shop-sidebar-wrapper {
        display: none !important;
    }
    
    .mobile-filter-container {
        display: none !important;
    }
    
    .shop-sidebar {
        display: block !important;
    }
}

/* Desktop Sidebar */
.shop-sidebar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 35px;
    margin-bottom: 30px;
    width: 100%;
    border: 1px solid rgba(0, 167, 107, 0.1);
}

/* Sidebar Content */
.shop-widget-area {
    margin-bottom: 0;
}

.sidebar-widget {
    margin-bottom: 35px;
    padding-bottom: 28px;
    border-bottom: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-2px);
}

.sidebar-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #00a76b;
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #00a76b;
}

/* ========================================
   PRICE FILTER
   ======================================== */

.price-filter {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.price-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: #00a76b;
    box-shadow: 0 0 0 2px rgba(0, 167, 107, 0.1);
}

.price-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    outline: none;
    margin: 16px 0;
    -webkit-appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00a76b;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 167, 107, 0.3);
    transition: all 0.3s ease;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 167, 107, 0.4);
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00a76b;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 167, 107, 0.3);
}

.price-apply-btn {
    width: 100%;
    background: #00a76b;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.price-apply-btn:hover {
    background: #007a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 167, 107, 0.3);
}

.price-apply-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.price-apply-btn.loading {
    background: #007a52;
    color: transparent;
}

.price-apply-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   CATEGORIES FILTER
   ======================================== */

.categories-filter {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin-bottom: 4px;
}

.category-checkbox {
    margin-right: 8px;
}

.category-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.subcategory-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.subcategory-count { margin-left: 4px; }

.category-item:hover {
    background: #f0f8f5;
    padding-left: 8px;
}

.category-checkbox {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    accent-color: #00a76b;
}

.category-label {
    flex: 1;
    font-size: 0.9rem;
    color: #333333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-count {
    background: #e9ecef;
    color: #666666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category-item:hover .category-count {
    background: #00a76b;
    color: #ffffff;
}

/* Subcategories */
.subcategories {
    margin-top: 8px;
    margin-left: 16px;
    padding-left: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: block;
    width: 100%;
    flex-basis: 100%;
    overflow-x: hidden;
}

.subcategories.active {
    max-height: 300px;
    padding: 16px;
    border-color: #00a76b;
    box-shadow: 0 4px 12px rgba(0, 167, 107, 0.15);
}

.subcategory-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-bottom: 2px;
}

.subcategory-item:hover {
    background: #f0f8f5;
    padding-left: 8px;
}

.subcategory-checkbox {
    margin-right: 10px;
    width: 14px;
    height: 14px;
    accent-color: #00a76b;
}

.subcategory-label {
    flex: 1;
    font-size: 0.85rem;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subcategory-count {
    background: #f8f9fa;
    color: #999999;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.subcategory-item:hover .subcategory-count {
    background: #00a76b;
    color: #ffffff;
}

/* ========================================
   BRANDS FILTER
   ======================================== */

.brands-filter {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 8px;
}

.brands-filter::-webkit-scrollbar {
    width: 6px;
}

.brands-filter::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.brands-filter::-webkit-scrollbar-thumb {
    background: #00a76b;
    border-radius: 3px;
}

.brands-filter::-webkit-scrollbar-thumb:hover {
    background: #007a52;
}

.brand-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin-bottom: 4px;
}

.brand-item:hover {
    background: #f0f8f5;
    padding-left: 8px;
}

.brand-checkbox {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    accent-color: #00a76b;
}

.brand-label {
    flex: 1;
    font-size: 0.9rem;
    color: #333333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
    border-radius: 4px;
}

.brand-count {
    background: #e9ecef;
    color: #666666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.brand-item:hover .brand-count {
    background: #00a76b;
    color: #ffffff;
}

/* ========================================
   FILTER ACTIONS
   ======================================== */

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.filter-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.filter-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.filter-btn.loading {
    color: transparent;
}

.filter-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.filter-apply {
    background: #00a76b;
    color: #ffffff;
    border: none;
}

.filter-apply:hover {
    background: #007a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 167, 107, 0.3);
}

.filter-clear {
    background: #ffffff;
    color: #666666;
    border: 2px solid #e0e0e0;
}

.filter-clear:hover {
    background: #f8f9fa;
    border-color: #00a76b;
    color: #00a76b;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991px) {
    .sidebar-toggle {
        display: block;
    }
    
    .shop-sidebar {
        display: none;
    }
}

@media (min-width: 992px) {
    .shop-sidebar-wrapper {
        display: none;
    }
}

/* ========================================
   LOADING STATES
   ======================================== */

.sidebar-widget.loading {
    opacity: 0.6;
    pointer-events: none;
}

.sidebar-widget.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #00a76b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.category-checkbox:focus,
.subcategory-checkbox:focus,
.brand-checkbox:focus,
.price-input:focus,
.price-slider:focus {
    outline: 2px solid #00a76b;
    outline-offset: 2px;
}

.filter-btn:focus {
    outline: 2px solid #00a76b;
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .shop-sidebar-wrapper,
    .sidebar-toggle {
        display: none !important;
    }
    
    .shop-sidebar {
        display: block !important;
        box-shadow: none !important;
        border: 1px solid #e0e0e0 !important;
    }
}
