.shop-container {
    display: flex;
    gap: 32px;
    padding: 24px 5%;
    background-color: #f8f9fa;
}

/* Sidebar Filters */
.filter-sidebar {
    width: 280px;
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    height: fit-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
}

.reset-btn {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
    transition: all 0.2s;
}

.filter-option:hover {
    color: var(--text-dark);
}

.filter-option.selected {
    color: var(--primary-color);
    font-weight: 700;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.price-slider-container {
    padding: 0 8px;
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.price-label {
    background: #f1f3f5;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

/* Main Content */
.shop-main {
    flex: 1;
}

.shop-results-header {
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.results-info h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.results-count {
    font-size: 14px;
    color: var(--text-light);
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-label {
    font-size: 14px;
    color: var(--text-light);
}

.sort-select {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: #f8f9fa;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

/* Product Grid */
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: var(--text-light);
}

/* Improved Filter Styles */
.title-with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group-alt {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-group-alt:last-child {
    border-bottom: none;
}

.filter-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.group-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.group-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Checkboxes */
.category-options-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.custom-checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.custom-checkbox-option:hover {
    background: #f8fafc;
}

.custom-checkbox-option.active {
    background: #eff6ff;
}

.custom-checkbox-option input {
    display: none;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
}

.custom-checkbox-option:hover .checkbox-mark {
    border-color: var(--primary-color);
}

.custom-checkbox-option.active .checkbox-mark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-checkbox-option.active .checkbox-mark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.custom-checkbox-option.active .checkbox-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Price Range Slider */
.price-filter-content {
    padding: 0 4px;
}

.dual-range-slider-container {
    position: relative;
    width: 100%;
    height: 40px;
}

.price-range-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    background: none;
    pointer-events: none;
    appearance: none;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 2;
}

.price-range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #e2e8f0 var(--min-percent), var(--primary-color) var(--min-percent), var(--primary-color) var(--max-percent), #e2e8f0 var(--max-percent));
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

[dir="rtl"] .slider-track {
    background: linear-gradient(to left, #e2e8f0 var(--min-percent), var(--primary-color) var(--min-percent), var(--primary-color) var(--max-percent), #e2e8f0 var(--max-percent));
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.price-box {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.price-box.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #eff6ff;
}

.price-separator {
    color: #cbd5e1;
}

/* Rating Options */
.rating-options-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.rating-option-item:hover {
    background: #f8fafc;
}

.rating-option-item.selected {
    background: #fffbeb;
}

.rating-option-item input {
    display: none;
}

.rating-stars-row {
    display: flex;
    align-items: center;
}

.rating-up-text {
    font-size: 13px;
    color: #64748b;
    margin-left: 8px;
    font-weight: 500;
}

[dir="rtl"] .rating-up-text {
    margin-left: 0;
    margin-right: 8px;
}

/* IOS Switch */
.availability-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.option-text {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.ios-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ios-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 24px;
}

.ios-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.ios-slider {
    background-color: var(--primary-color);
}

input:checked+.ios-slider:before {
    transform: translateX(24px);
}