/* ============ ROOT COLORS & VARIABLES ============ */
:root {
    --prime-light: #1a4a9f;
    --secondary-color: #f5f7fa;
    --border-color: #e0e6ed;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ GENERAL STYLES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    color: var(--text-dark);
}

/* ============ PRODUCTS HEADER ============ */
.products-main {
    min-height: 100vh;
}

.products-header {
    background: linear-gradient(
        135deg,
        var(--main) 0%,
        var(--prime-light) 100%
    );
    color: white;
    padding: 2rem 0;
}

.section-header {
    background: linear-gradient(180deg, #000000 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem !important;
    margin-bottom: 0 !important;
}

/* ============ TOP CONTROLS ============ */
.top-controls {
    margin-bottom: 2rem;
}

.product-count {
    color: var(--text-light);
    font-weight: 500;
}

.filter-toggle-btn {
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: none;
    background-color: var(--main) !important;
}

.filter-toggle-btn:hover {
    background-color: var(--prime-light) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============ CUSTOM SELECT ============ */
.custom-select-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-label {
    color: var(--text-dark);
    font-weight: 600;
}

.custom-select-wrapper.sort-select {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #e6e6e6;
    border-radius: 16px;
    padding: 6px 10px;
    min-width: 260px;
    min-height: 48px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.06);
    transition: var(--transition);
}

.custom-select-wrapper.sort-select:hover {
    border-color: var(--main);
    box-shadow: 0 8px 18px rgba(14, 52, 117, 0.12);
}

.sort-icon {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #5c6f82;
    font-size: 1.1rem;
    pointer-events: none;
}
.custom-select:lang(en) {
    padding: 6px 10px 6px 44px !important;
}
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    border: none;
    background: transparent;
    color: #7b8a9a;

    font-size: 18px;
    padding: 6px 44px 6px 16px;
    line-height: 1.4;
    cursor: pointer;
}

[dir="rtl"] .custom-select {
    padding: 6px 16px 6px 44px;
    text-align: right;
}

.custom-select:focus {
    outline: none;
}

/* ============ FILTER SIDEBAR (Fixed Sidebar on Desktop) ============ */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.filter-overlay.show {
    opacity: 1;
    visibility: visible;
}

.filter-sidebar {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;

    border: 1px solid #e6e6e6;
}

/* Desktop: Always visible as sidebar in column layout */
@media (min-width: 992px) {
    .filter-sidebar {
        position: sticky;
        top: 164px;
        height: fit-content;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .filter-overlay {
        display: none !important;
    }

    /* Enhanced filter title on desktop */
    .filter-main-title {
        font-size: 1.35rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--main);
        margin-bottom: 1.5rem !important;
    }

    .products-wrapper {
        width: 100%;
    }
}

/* Mobile: Floating overlay */
@media (max-width: 991px) {
    .filter-sidebar {
        position: fixed;
        right: 0;
        top: 0;
        width: 320px;
        max-width: 85%;
        height: 100vh;
        z-index: 2100;
        transform: translateX(100%);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        border-radius: 0;
        border: none;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .filter-sidebar.show {
        transform: translateX(0);
    }
}

.filter-header {
    padding: 0;
    background: white;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid var(--border-color);
}

/* ============ FILTER SEARCH BOX ============ */
.filter-search-box {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}
.filter-search-input:lang(en) {
    padding: 12px 16px 12px 45px !important;
}
.filter-search-input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 1.5px solid #e6e6e6;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: var(--text-dark);
}

.filter-search-input:focus {
    outline: none;
    border-color: var(--main);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(14, 52, 117, 0.08);
}

.filter-search-input::placeholder {
    color: #999;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    inset-inline-start: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.filter-search-input:focus + .search-icon,
.search-input-wrapper:has(.filter-search-input:focus) .search-icon {
    color: var(--main);
}

/* RTL Support */
[dir="rtl"] .filter-search-input {
    padding: 12px 16px 12px 45px;
}

[dir="rtl"] .search-icon {
    left: auto;
    right: 16px;
}

.filter-main-title {
    font-size: 1.5rem;
    color: var(--main);
}

.filter-close-btn {
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.filter-close-btn:hover {
    color: var(--main);
    transform: rotate(90deg);
}

/* ============ FILTER GROUPS ============ */
.filter-group {
    background: white !important;

    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.filter-group:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--main);
}

.filter-group-header {
    padding: 1rem 1.25rem;
    background: white;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.filter-title {
    font-size: 1rem;
    color: var(--main);
    margin: 0;
    font-weight: 700;
}

.filter-group-icon {
    color: var(--main);
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-group-header:hover .filter-group-icon {
    transform: scale(1.1);
}

.filter-group-content {
    padding: 1rem 1.25rem;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.filter-group-content.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ FILTER OPTIONS - CHECKBOXES ============ */
.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.filter-option:last-child {
    margin-bottom: 0;
}

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

.filter-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    flex-shrink: 0;
}

.filter-option input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--main);
    border-color: var(--main);
    color: white;
}

.filter-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    font-size: 0.9rem;
    font-weight: bold;
}

.option-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--main);
}

.filter-option:hover .checkbox-custom {
    border-color: var(--main);
    box-shadow: 0 0 0 2px rgba(14, 52, 117, 0.1);
}

/* ============ PRICE RANGE FILTER ============ */
.price-range-container {
    padding: 0.5rem 0;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.price-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.price-input {
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.price-input:focus {
    outline: none;
    border-color: var(--main);
    box-shadow: 0 0 0 3px rgba(14, 52, 117, 0.1);
}

/* ============ RANGE SLIDER ============ */
.range-slider-container {
    position: relative;
    margin: 2rem 0;
}

.range-slider {
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: transparent;
    outline: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 5;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--main);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    pointer-events: auto;
    transition: var(--transition);
    border: 2px solid white;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(14, 52, 117, 0.2);
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--main);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    pointer-events: auto;
    transition: var(--transition);
    border: 2px solid white;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(14, 52, 117, 0.2);
}

.range-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.range-fill {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--main), var(--prime-light));
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    left: 0;
    right: auto;
}

/* ============ PRODUCTS GRID & CARDS ============ */
.products-wrapper {
    width: 100%;
}

#products-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: auto;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-12px);

    border-color: var(--main);
}

/* ============ PRODUCT IMAGE ============ */
.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--main-bg);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.products-grid.row-view .stock {
    display: none !important;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--danger-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.8);
    z-index: 10;
}

.product-card:hover .favorite-btn {
    opacity: 1;
    transform: scale(1);
}

.favorite-btn:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
}

.favorite-btn.active i {
    color: var(--danger-color);
}

.favorite-btn.active:hover i {
    color: #fff;
}

/* ============ PRODUCT INFO ============ */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;

    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(180deg, #000000 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-description {
    font-size: 1rem;

    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.product-rating i {
    color: var(--warning-color);
    font-size: 0.85rem;
}

.rating-value {
    color: var(--text-light);
    font-weight: 600;
    margin-left: 0.25rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 1rem;
}

.currency {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--main);
}

/* ============ PRODUCT HOVER DETAILS ============ */
.product-hover-details {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);

    padding: 0 1.25rem;
}

.product-card:hover .product-hover-details {
    max-height: 500px;
}

.product-features {
    margin-bottom: 1rem;
}

.feature-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

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

.feature-label {
    color: var(--text-light);
    font-weight: 600;
}

.feature-value {
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.feature-value.color-1 {
    background: linear-gradient(
        135deg,
        rgba(14, 52, 117, 0.1),
        rgba(14, 52, 117, 0.05)
    );
    color: var(--main);
}

.feature-value.color-2 {
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.1),
        rgba(16, 185, 129, 0.05)
    );
    color: var(--success-color);
}

/* ============ PRODUCT ACTION BUTTONS ============ */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-demand-price,
.btn-view-details {
    padding: 0.8rem 1rem;
    border: none;

    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-demand-price {
    background: transparent;
    color: var(--main);
    border: 1px solid #2d8ab1 !important;
}

.btn-demand-price:hover {
    background: #2d8ab1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-view-details {
    background: var(--main);
    color: white;
}

.btn-view-details:hover {
    background: var(--prime-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============ VIEW TOGGLE BUTTONS ============ */
.view-icon-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-icon-btn:hover {
    transform: scale(1.05);
}

.view-icon-btn.active i {
    color: var(--main);
}

.view-icon-btn i {
    font-size: 1.1rem;
}

/* ============ PRODUCTS GRID VIEW MODES ============ */

/* Column View (Grid Layout) */
.products-grid.col-view {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    row-gap: 2.5rem !important;
}

.products-grid.col-view .product-item {
    width: 100% !important;
}

/* Row View (List Layout) - Full Width */
.products-grid.row-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
}

.products-grid.row-view .product-item {
    width: 100% !important;
    flex: 0 0 100% !important;
}

.products-grid.row-view .product-card {
    display: grid !important;
    grid-template-columns: 220px 1fr !important;
    gap: 1.5rem;
    height: auto;
    min-height: auto;
    align-items: start;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 1rem;
}

.products-grid.row-view .product-card a {
    display: contents;
}

.products-grid.row-view .product-image-wrapper {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 220px !important;
    height: 220px !important;
    min-width: 220px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0.75rem !important;
}

.products-grid.row-view .product-info {
    grid-column: 2;
    grid-row: 1;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 1rem 1.5rem 1rem 0 !important;
    margin-top: 0 !important;
}

.products-grid.row-view .product-actions a {
    background: transparent !important;
    border: none !important;
    color: var(--main) !important;
    padding: 0 !important;
    font-weight: 600;
    text-decoration: underline;
    font-size: 1.1rem;
    display: block;
    cursor: pointer;
    box-shadow: none !important;
    transform: none !important;
    width: 100%;
    text-align: start;
}

.products-grid.row-view .product-actions a:hover {
    box-shadow: none !important;
    transform: none !important;
}

@media (max-width: 1024px) {
    #products-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 992px) {
    #products-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    .products-grid.row-view .product-card {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 1rem;
    }

    .products-grid.row-view .product-image-wrapper {
        grid-column: 1;
        grid-row: 1;
        width: 100% !important;
        height: 220px !important;
        min-width: 100% !important;
        padding: 0.75rem !important;
    }

    .products-grid.row-view .product-info {
        grid-column: 1;
        grid-row: 2;
        padding: 1rem 1rem !important;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    #products-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .products-grid.row-view {
        gap: 1rem !important;
    }

    .products-grid.row-view .product-card {
        grid-template-columns: 1fr !important;
        padding: 0.75rem;
    }

    .products-grid.row-view .product-image-wrapper {
        grid-column: 1;
        grid-row: 1;
        width: 100% !important;
        height: 200px !important;
        min-width: 100% !important;
        padding: 0.5rem !important;
    }

    .products-grid.row-view .product-info {
        grid-column: 1;
        grid-row: 2;
        padding: 0.75rem 1rem !important;
    }
}

@media (max-width: 576px) {
    #products-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .products-grid.row-view {
        gap: 0.75rem !important;
    }

    .products-grid.row-view .product-card {
        grid-template-columns: 1fr !important;
        padding: 0.5rem;
    }

    .products-grid.row-view .product-image-wrapper {
        grid-column: 1;
        grid-row: 1;
        width: 100% !important;
        height: 150px !important;
        min-width: 100% !important;
        padding: 0.5rem !important;
    }

    .products-grid.row-view .product-info {
        grid-column: 1;
        grid-row: 2;
        padding: 0.5rem !important;
    }
}

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

/* Desktop (1200px and above) - Filter sidebar slides in from left */
@media (min-width: 1200px) {
    .filter-toggle-btn {
        display: inline-flex !important;
    }

    #products-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .products-wrapper {
        width: 100%;
    }

    .filter-toggle-btn {
        display: none !important;
    }
}

/* Tablet (576px - 991px) */
@media (max-width: 991px) {
    .filter-toggle-btn {
        display: inline-flex !important;
    }

    #products-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .filter-header {
        border-radius: 0;
        padding: 1rem 0;
    }

    .filter-group {
        margin-bottom: 1rem;
    }

    .custom-select-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .sort-label {
        margin-left: 0;
    }

    .custom-select {
        min-width: 100%;
    }

    .product-card {
        min-height: 400px;
    }
}

/* Mobile (below 576px) */
@media (max-width: 575px) {
    .section-header {
        font-size: 1.75rem !important;
    }

    #products-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 1rem;
    }

    .price-inputs {
        grid-template-columns: 1fr;
    }

    .product-card:hover .product-hover-details {
        max-height: 400px;
    }

    .product-card {
        min-height: 350px;
    }

    .filter-toggle-btn {
        display: inline-flex !important;
    }
}

/* ============ UTILITY CLASSES ============ */
.cursor-pointer {
    cursor: pointer;
}

.text-prime {
    color: var(--main);
}

/* .main-bg {
    background-color: var(--main) !important;
} */

.second-text {
    color: var(--sec);
}

.stock {
    right: 0px;
    width: 100%;
    background-color: #fef9e7;
    color: #c1990b;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
}

.hashtag-product {
    position: absolute;
    top: 22px;
    inset-inline-end: 15px;
    z-index: 10;
}
.hashtag-product span {
    font-size: 0.75rem;
}

.hashtag-product .discount {
    background-color: #e7233e;
    color: var(--white);
}

/* ============ SCROLLBAR STYLING ============ */
.filter-sidebar::-webkit-scrollbar {
    width: 5px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(
        135deg,
        var(--main) 0%,
        var(--prime-light) 100%
    );
    border-radius: 10px;
    transition: all 0.3s ease;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        135deg,
        var(--prime-light) 0%,
        var(--main) 100%
    );
    width: 6px;
}

/* Firefox */
.filter-sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--main) transparent;
}

/* ============ ANIMATION IMPROVEMENTS ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* ============ PRINT STYLES ============ */
@media print {
    .top-controls,
    .filter-sidebar,
    .filter-overlay {
        display: none;
    }
}
