.products-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 16px;
    flex-wrap: wrap;
}

.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-tab {
    padding: 8px 20px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-tab:hover {
    background: #e5e7eb;
    color: #374151;
}

.category-tab.active {
    background: #fb2c36;
    color: white;
}

.filters-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.filters-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.filters-btn.active {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.filters-btn svg {
    width: 16px;
    height: 16px;
}

/* Main Content Layout */
.products-content {
    display: flex;
    gap: 24px;
}

.products-content.filters-hidden {
    display: block;
}

/* Price Filter Sidebar */
.price-filter-sidebar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 280px;
}

.price-filter-sidebar.hidden {
    display: none;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reset-filter {
    font-size: 13px;
    color: #446cef;
    cursor: pointer;
    font-weight: 500;
}

.reset-filter:hover {
    text-decoration: underline;
}

.price-inputs {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.price-input {
    flex: 1;
}

.price-input label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 500;
}

.price-input input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
}

.price-input input:focus {
    outline: none;
    border-color: #ef4444;
}

.price-divider {
    color: #9ca3af;
    font-weight: 500;
    margin-top: 20px;
}

.price-slider {
    margin: 24px 0;
    padding: 0 8px;
    position: relative;
}

.slider-track {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    position: relative;
    width: 100%;
}

.slider-range {
    position: absolute;
    height: 100%;
    background: #2b7fff;
    border-radius: 2px;
}

.slider-handles {
    position: relative;
    height: 20px;
    margin-top: -12px;
    width: 100%;
}

.slider-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #2b7fff;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin-left: -10px;
    transition: transform 0.1s;
    z-index: 2;
}

.slider-handle:hover {
    transform: scale(1.15);
}

.slider-handle:active {
    transform: scale(1.1);
    cursor: grabbing;
}

.set-price-btn {
    display: flex;
    width: 117px;
    height: 34px;
    padding: 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    border: 1px solid #4f39f6;
    background: var(--Color-3, #fff);
    box-shadow: -1px 2px 4px 0 rgba(0, 0, 0, 0.27);
}

.set-price-btn:hover {
    background: #e6e6e6;
}

/* Products Grid Wrapper - NO STYLING */
.products-grid-wrapper {
    flex: 1;
    min-width: 0;
}

@media (max-width: 1200px) {
    .price-filter-sidebar {
        width: 250px;
    }

    .price-slider {
        padding: 0 6px;
    }
}

@media (max-width: 992px) {
    .products-content {
        display: block;
    }

    .price-filter-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        max-width: 600px;
        margin: 0 auto 24px;
    }

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

@media (max-width: 768px) {
    .products-header {
        margin-bottom: 20px;
    }

    .filters-btn svg {
        width: 16px;
        height: 16px;
    }

    .products-content {
        display: block;
    }

    .price-filter-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
        padding: 20px;
    }

    .price-slider {
        padding: 0 6px;
    }

    .price-inputs {
        gap: 8px;
    }

    .slider-handle {
        width: 22px;
        height: 22px;
        margin-left: -11px;
    }
}

@media (max-width: 480px) {
    .category-tabs {
        width: 100%;
    }

    .price-filter-sidebar {
        padding: 16px;
    }

    .filter-title {
        font-size: 16px;
    }

    .price-inputs {
        flex-direction: column;
        gap: 12px;
    }

    .price-input {
        width: 100%;
    }

    .price-divider {
        display: none;
    }

    .price-slider {
        margin: 20px 0;
        padding: 0 4px;
    }

    .slider-handle {
        width: 24px;
        height: 24px;
        margin-left: -12px;
    }
}
