/* ===================================
   PAGE LISTE PRODUITS - HD&YOU
   Design cohérent avec Split Screen Modern
=================================== */

/* Classe utilitaire pour masquer des éléments */
.hidden {
    display: none !important;
}

.products-page {
    background: #fafafa;
    min-height: 100vh;
}

/* Hero Header */
.products-hero {
    background: linear-gradient(135deg, var(--hd-black) 0%, #1a1a1a 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: -100px;
    padding-top: 180px;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(253, 191, 10, 0.03) 10px,
        rgba(253, 191, 10, 0.03) 20px
    );
}

.hero-content {
    position: relative;
    z-index: 1;
}

.products-hero h1 {
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.products-hero h1 i {
    color: var(--hd-yellow);
    margin-right: 16px;
}

.products-hero .highlight {
    background: linear-gradient(135deg, var(--hd-yellow) 0%, #fdc520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Main Layout */
.products-container {
    padding: 40px 0;
}

.products-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   MOBILE FILTER BUTTON
=================================== */

.mobile-filter-header {
    display: none;
    margin-bottom: 24px;
}

.btn-open-filters {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: white;
    border: 2px solid var(--hd-yellow);
    border-radius: 12px;
    color: var(--hd-text-dark);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.btn-open-filters:hover {
    background: var(--hd-yellow);
    color: var(--hd-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(253, 191, 10, 0.3);
}

.btn-open-filters i {
    font-size: 20px;
}

.filters-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 24px;
    height: 24px;
    background: var(--hd-danger);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.filters-count:empty {
    display: none;
}

/* ===================================
   FILTERS SIDEBAR
=================================== */

.filters-sidebar {
    position: relative;
}

.filters-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998; /* Derrière le drawer */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filters-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--hd-yellow);
    margin: -24px -24px 24px -24px;
    border-radius: 12px 12px 0 0;
}

.filters-mobile-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--hd-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-close-filters {
    width: 40px;
    height: 40px;
    background: var(--hd-black);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-close-filters:hover {
    background: #2a2a2a;
    transform: scale(1.1);
}

.filters-sticky {
    position: sticky;
    top: 120px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* Custom scrollbar */
.filters-sticky::-webkit-scrollbar {
    width: 6px;
}

.filters-sticky::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.filters-sticky::-webkit-scrollbar-thumb {
    background: var(--hd-yellow);
    border-radius: 3px;
}

.filter-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 2px solid #f5f5f5;
    transition: padding-bottom 0.3s ease, margin-bottom 0.3s ease;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--hd-text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease, margin-bottom 0.3s ease;
    position: relative;
}

.filter-title:hover {
    color: var(--hd-yellow);
}

.filter-title i.filter-icon {
    color: var(--hd-yellow);
    font-size: 18px;
}

.filter-title i.chevron {
    margin-left: auto;
    font-size: 14px;
    transition: transform 0.3s ease;
    color: var(--hd-text-medium);
}

.filter-title.collapsed i.chevron {
    transform: rotate(-90deg);
}

/* Search Box */
.search-section {
    padding-bottom: 24px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hd-text-medium);
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--hd-yellow);
    box-shadow: 0 0 0 3px rgba(253, 191, 10, 0.1);
}

.btn-clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--hd-text-medium);
    cursor: pointer;
    padding: 6px;
    transition: all 0.2s ease;
}

.btn-clear-search:hover {
    color: var(--hd-danger);
}

.btn-search {
    width: 100%;
    padding: 12px;
    background: var(--hd-yellow);
    color: var(--hd-black);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: #e5ad09;
    transform: translateY(-1px);
}

/* Quick Filters */
.quick-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--hd-text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-chip i {
    color: var(--hd-yellow);
    font-size: 16px;
}

.filter-chip:hover {
    background: #fffdf0;
    border-color: var(--hd-yellow);
    transform: translateX(4px);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--hd-yellow) 0%, #fdc520 100%);
    color: var(--hd-black);
    border-color: var(--hd-yellow);
    box-shadow: 0 4px 12px rgba(253, 191, 10, 0.3);
}

.filter-chip.active i {
    color: var(--hd-black);
}

/* Filter Options (Checkboxes) */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.filter-options.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: -16px;
    padding-top: 0;
}

.quick-filters {
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.quick-filters.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: -16px;
    padding-top: 0;
}

/* État collapsed pour la section entière */
.filter-section.collapsed {
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.filter-section.collapsed .filter-title {
    margin-bottom: 0;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.filter-option:hover {
    background: #f5f5f5;
}

.filter-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-option input[type="checkbox"]:checked + .checkmark {
    background: var(--hd-yellow);
    border-color: var(--hd-yellow);
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--hd-black);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.label-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--hd-text-dark);
}

.count {
    font-size: 12px;
    color: var(--hd-text-medium);
    font-weight: 700;
}

/* Price Range */
.price-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.price-input:focus {
    outline: none;
    border-color: var(--hd-yellow);
}

.price-separator {
    font-weight: 700;
    color: var(--hd-text-medium);
}

.btn-apply-price {
    width: 100%;
    padding: 10px;
    background: var(--hd-black);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply-price:hover {
    background: #2a2a2a;
}

/* Apply & Reset Filters */
.filter-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-apply-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--hd-yellow) 0%, #fdc520 100%);
    color: var(--hd-black);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(253, 191, 10, 0.3);
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 191, 10, 0.4);
}

.btn-reset-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: white;
    color: var(--hd-text-dark);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-reset-filters:hover {
    border-color: var(--hd-danger);
    color: var(--hd-danger);
    background: #fff5f5;
}

/* Mobile Apply Button */
.filter-actions-mobile {
    display: none;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 2px solid #f5f5f5;
}

.btn-apply-filters-mobile {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--hd-yellow) 0%, #fdc520 100%);
    color: var(--hd-black);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(253, 191, 10, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-apply-filters-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 191, 10, 0.4);
}

.btn-apply-filters-mobile i {
    font-size: 18px;
}

/* ===================================
   PRODUCTS MAIN
=================================== */

.products-main {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Toolbar */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f5f5f5;
}

.toolbar-left {
    flex: 1;
}

.results-count {
    font-size: 16px;
    color: var(--hd-text-dark);
}

.results-count strong {
    font-size: 20px;
    font-weight: 900;
    color: var(--hd-yellow);
}

.search-query {
    font-size: 14px;
    color: var(--hd-text-medium);
    font-style: italic;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Sort Dropdown */
.sort-dropdown {
    position: relative;
}

.btn-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hd-text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sort:hover {
    background: #fffdf0;
    border-color: var(--hd-yellow);
}

.sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px;
    display: none;
    z-index: 100;
}

.sort-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.sort-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--hd-text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sort-option:hover {
    background: #fffdf0;
    color: var(--hd-yellow);
}

.sort-option.active {
    background: var(--hd-yellow);
    color: var(--hd-black);
    font-weight: 800;
}

.sort-option i {
    width: 16px;
    text-align: center;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 4px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 8px;
}

.btn-view {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--hd-text-medium);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view:hover {
    color: var(--hd-text-dark);
}

.btn-view.active {
    background: white;
    color: var(--hd-yellow);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ===================================
   PRODUCTS GRID
=================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Product Card */
.product-card {
    background: white;
    border: 2px solid #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--hd-yellow);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Product Image */
.product-image-link {
    display: block;
    text-decoration: none;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hd-black) 0%, #333 100%);
}

.product-image-placeholder i {
    font-size: 64px;
    color: var(--hd-yellow);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge-product {
    background: var(--hd-yellow);
    color: var(--hd-black);
}

.badge-discount {
    background: var(--hd-danger);
    color: white;
}

/* Stock Overlay */
.stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.stock-indicator {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stock-badge.out-of-stock {
    background: var(--hd-danger);
    color: white;
}

.stock-badge.limited {
    background: #ff9800;
    color: white;
}

/* Product Info */
.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 12px;
    color: var(--hd-text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-title a {
    color: var(--hd-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--hd-yellow);
}

/* Product Price */
.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.price-old {
    font-size: 14px;
    color: var(--hd-text-medium);
    text-decoration: line-through;
}

.price-current {
    font-size: 24px;
    font-weight: 900;
    color: var(--hd-yellow);
}

.price-current.discount {
    color: var(--hd-danger);
}

/* Product Stock */
.product-stock {
    margin-bottom: 16px;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.stock-status.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.stock-status.limited {
    background: #fff4e5;
    color: #d9480f;
}

.stock-status.out {
    background: #ffe5e5;
    color: #c92a2a;
}

/* Product Action */
.btn-product-view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--hd-black);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-product-view:hover {
    background: var(--hd-yellow);
    color: var(--hd-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 191, 10, 0.3);
}

/* ===================================
   LIST VIEW
=================================== */

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
}

.products-grid.list-view .product-image-wrapper {
    height: 200px;
}

.products-grid.list-view .product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-grid.list-view .btn-product-view {
    width: auto;
    align-self: flex-start;
    padding: 12px 24px;
}

/* ===================================
   EMPTY STATE
=================================== */

.empty-state {
    text-align: center;
    padding: 80px 40px;
    grid-column: 1 / -1; /* Prend toute la largeur de la grille */
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    font-size: 60px;
    color: var(--hd-yellow);
}

.empty-state h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--hd-text-dark);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    color: var(--hd-text-medium);
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   LOADING OVERLAY
=================================== */

.products-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.loading-spinner i {
    font-size: 48px;
    color: var(--hd-yellow);
    animation: spin 1s linear infinite;
}

.loading-spinner span {
    font-size: 16px;
    font-weight: 700;
    color: var(--hd-text-dark);
}

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

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

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .products-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Afficher le bouton mobile */
    .mobile-filter-header {
        display: block;
    }

    /* Drawer mobile pour les filtres */
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        z-index: 999; /* Au-dessus de l'overlay (998) */
        transition: left 0.3s ease;
        background: white;
        overflow-y: auto;
    }

    .filters-sidebar.active {
        left: 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .filters-overlay.active {
        display: block;
        opacity: 1;
    }

    .filters-sticky {
        position: static;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
        height: 100%;
        padding: 24px;
    }

    /* Afficher le header mobile */
    .filters-mobile-header {
        display: flex;
    }

    /* Afficher le bouton Appliquer mobile */
    .filter-actions-mobile {
        display: block;
    }

    .products-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .products-hero h1 {
        font-size: 36px;
    }

    .products-main {
        padding: 24px 16px;
    }

    .products-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .products-grid.list-view .product-card {
        grid-template-columns: 1fr;
    }

    .products-grid.list-view .product-image-wrapper {
        height: 250px;
    }

    .view-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .products-hero {
        padding: 140px 0 40px;
    }

    .products-hero h1 {
        font-size: 28px;
    }

    .filters-sticky {
        padding: 20px;
    }
}

