/* ========================================
   MODERN FILTERS - NOON STYLE COMPLETE
   ======================================== */

/* Main Filter Box */
.filters_box {
    background: #ffffff;
    border: 1px solid #E6E6E6;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 20px;
    height: max-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Filter Header */
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
    margin-bottom: 8px;
}

.filter-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.clear-all-btn {
    background: transparent;
    border: none;
    color: #F35024;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.clear-all-btn:hover {
    background: #FEF2EE;
}

/* Filter Groups */
.filter-group {
    padding: 12px 0;
    border-bottom: 1px solid #F0F0F0;
}

.filter-group:last-child {
    border-bottom: none;
}

/* Filter Title/Toggle */
.filter__title {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter__title:hover {
    opacity: 0.8;
}

.filter__title span {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    text-transform: capitalize;
}

.filter__arrow {
    width: 14px;
    height: 14px;
    color: #6B7280;
    transition: transform 0.3s ease;
}

.filter-group.collapsed .filter__arrow {
    transform: rotate(90deg);
}

/* Filter Content */
.filter-content {
    padding: 8px 0 0 0;
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.filter-group.collapsed .filter-content {
    max-height: 0 !important;
    padding: 0;
}

/* Search Box */
.filter-search {
    height: 36px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    margin-bottom: 12px;
}

.filter-search svg {
    width: 14px;
    height: 14px;
    color: #9CA3AF;
    flex-shrink: 0;
}

.filter-search input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #111827;
}

.filter-search input::placeholder {
    color: #9CA3AF;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar */
.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 10px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 10px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Filter Option Item */
.filter-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.filter-option-item:hover {
    background: #F9FAFB;
}

.filter-option-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* Checkbox */
.filter-checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    transition: all 0.2s ease;
    background: #ffffff;
}

.filter-checkbox:hover {
    border-color: #3B82F6;
}

.filter-checkbox:checked {
    background: #3B82F6;
    border-color: #3B82F6;
}

.filter-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Label */
.filter-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* Count */
.filter-count {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 400;
    white-space: nowrap;
    margin-left: 4px;
}

/* Color Swatch */
.color-swatch {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    margin-left: 8px;
}

/* See All Button */
.see-all-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #3B82F6;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    border: none;
    padding: 8px 4px;
    margin-top: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.see-all-btn:hover {
    background: #EFF6FF;
}

.see-all-btn svg {
    width: 14px;
    height: 14px;
}

/* Price Filter Widget Styling */
.filter-content .price_slider_wrapper {
    padding: 10px 8px;
}

.filter-content .price_slider {
    margin-bottom: 15px;
}

.filter-content .price_slider_amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.filter-content .price_slider_amount .button {
    padding: 8px 16px;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-content .price_slider_amount .button:hover {
    background: #2563EB;
}

.filter-content .price-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.filter-content .dirham-symbol img {
    height: 12px;
    width: auto;
}

/* Category Sidebar Layout */
.category-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.category-products-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.category-products-main {
    flex: 1;
    min-width: 0;
}

.breadcrumb-container {
    margin-bottom: 20px;
}

.woocommerce-breadcrumb {
    font-size: 14px;
    color: #6B7280;
}

.woocommerce-breadcrumb a {
    color: #3B82F6;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .category-sidebar {
        width: 250px;
    }
    
    .category-products-layout {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .filters_box {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
    
    .category-sidebar {
        width: 100%;
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 9999;
        background: white;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 20px;
    }
    
    .category-sidebar.active {
        left: 0;
    }
    
    .category-products-layout {
        flex-direction: column;
    }
}

/* Additional WooCommerce Price Slider Styles */
.ui-slider {
    position: relative;
    text-align: left;
    height: 6px;
    border-radius: 3px;
    background: #E5E7EB;
}

.ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    height: 100%;
    display: block;
    border: 0;
    background: #3B82F6;
    border-radius: 3px;
}

.ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3B82F6;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
    outline: none;
}

.ui-slider .ui-slider-handle:hover,
.ui-slider .ui-slider-handle:focus {
    background: #2563EB;
}

/* Hide default WooCommerce price inputs */
.filter-content .price_slider_amount input[type="text"] {
    display: none;
}

/* Widget Title */
.filter-content .widget-title {
    display: none;
}
