/**
 * Layout Fixe pour la Page Produits
 * OGEBO
 * 
 * Structure:
 * - Header (navbar) - fixe en haut
 * - Barre de domaines - fixe sous le header
 * - Conteneur principal (sidebar + produits) - remplit l'espace restant, pas de scroll global
 *   - Sidebar filtres - défilement interne
 *   - Zone produits - défilement interne avec pagination fixe en bas
 */

/* === MASQUER LE FOOTER SUR LA PAGE PRODUITS === */
body.page-products .footer,
body.page-products footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.page-products.page-products-detail .footer,
body.page-products.page-products-detail footer {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}

/* === MASQUER LE FOOTER SUR LA PAGE BOUTIQUE === */
body.page-shops .footer,
body.page-shops footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.page-shops.page-shops-detail .footer,
body.page-shops.page-shops-detail footer {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}

/* === LAYOUT PRINCIPAL - PAS DE SCROLL GLOBAL === */
body.page-products {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.page-products.page-products-detail {
    overflow: auto !important;
    height: auto !important;
    max-height: none !important;
}

/* Éléments fixed visibles */
body.page-products .theme-toggle,
body.page-products .favorites-toggle,
body.page-products .floating-contact-btn {
    z-index: 9999 !important;
    position: fixed !important;
}

/* === MAIN CONTENT - Remplit l'espace sous le header === */
body.page-products .main-content,
body.page-products main {
    height: calc(100vh - 20px) !important;
    height: calc(100dvh - 20px) !important;
    max-height: calc(100vh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 0.5rem !important;
}

body.page-products.page-products-detail .main-content,
body.page-products.page-products-detail main {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
}

/* === SECTION - Remplit l'espace restant après la barre de domaines === */
body.page-products .section {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.page-products.page-products-detail .section {
    flex: none !important;
    min-height: auto !important;
    overflow: visible !important;
    padding: 2rem 0 !important;
}

/* === CONTAINER - Hauteur 100% === */
body.page-products .section > .container {
    height: 100% !important;
    max-height: 100% !important;
    padding: 0 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

body.page-products.page-products-detail .section > .container {
    height: auto !important;
    max-height: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: block !important;
    overflow: visible !important;
}

/* === LAYOUT PRODUITS - Grid avec sidebar et zone produits === */
body.page-products .products-layout {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 1rem !important;
    align-items: stretch !important;
    overflow: visible !important;
    margin-top: 2.75rem !important;
}

/* === SIDEBAR FILTRES - Défilement interne === */
body.page-products .products-sidebar {
    position: relative !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: visible !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.5) transparent;
    z-index: 30 !important;
    border-radius: 12px !important;
    padding: 2rem 0.75rem 4.5rem 0.75rem !important;
}

/* Zone de recherche dans la sidebar */
body.page-products .products-sidebar .filter-section:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-products .products-sidebar .form-input {
    width: 100% !important;
    box-sizing: border-box !important;
}

body.page-products .products-sidebar::-webkit-scrollbar {
    width: 6px;
}

body.page-products .products-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

body.page-products .products-sidebar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 3px;
}

body.page-products .products-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.7);
}

/* === ZONE PRINCIPALE PRODUITS - Flex column === */
body.page-products .products-main {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 40 !important;
    position: relative !important;
    padding: 0 !important;
}

/* === TOOLBAR - Fixe en haut de la zone produits === */
body.page-products .products-toolbar {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    padding: 2.5rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
    border-bottom: 1px solid #e5e7eb;
    background: var(--bg-primary, #ffffff) !important;
    z-index: 50 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: 8px !important;
    min-height: 44px !important;
    overflow: visible !important;
}

/* S'assurer que le bouton de tri est visible */
body.page-products .products-toolbar .products-sort {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    visibility: visible !important;
}

body.page-products .products-toolbar .sort-select {
    min-width: 150px !important;
}

body.page-products .products-toolbar .btn {
    padding: 0.5rem 1rem !important;
}

/* === CONTENEUR SCROLLABLE POUR LA GRILLE === */
body.page-products .products-scroll-container {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.5) transparent;
    position: relative !important;
}

body.page-products .products-scroll-container::-webkit-scrollbar {
    width: 8px;
}

body.page-products .products-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

body.page-products .products-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 4px;
}

body.page-products .products-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.7);
}

/* === GRILLE DE PRODUITS === */
body.page-products .product-grid {
    display: grid !important;
    overflow: visible !important;
    padding: 0.5rem;
    padding-bottom: 1rem;
    grid-template-columns: repeat(var(--grid-columns, 3), minmax(0, 1fr));
}

/* === CARTES PRODUITS - VISIBILITÉ ET TAILLES RÉDUITES === */
body.page-products .product-card {
    overflow: visible !important;
}

body.page-products .product-card-image {
    overflow: visible !important;
}

body.page-products .product-badge {
    z-index: 10 !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.65rem !important;
    border-radius: 12px !important;
}

body.page-products .badge-new {
    top: 0.5rem !important;
    right: 0.5rem !important;
}

body.page-products .badge-promo {
    bottom: 0.5rem !important;
    right: 0.5rem !important;
    padding: 0.2rem 0.45rem !important;
    gap: 0.25rem !important;
}

body.page-products .badge-promo-label {
    font-size: 0.55rem !important;
    letter-spacing: 0.3px !important;
}

body.page-products .badge-promo-value {
    font-size: 0.6rem !important;
    padding: 0.1rem 0.3rem !important;
    border-radius: 6px !important;
}

/* === CONTENU CARTE PRODUIT RÉDUIT === */
body.page-products .product-card-body {
    padding: 0.75rem !important;
}

body.page-products .product-category {
    font-size: 0.625rem !important;
    margin-bottom: 0.25rem !important;
    letter-spacing: 0.4px !important;
}

body.page-products .product-name {
    font-size: 0.85rem !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.3 !important;
}

body.page-products .product-creator {
    font-size: 0.7rem !important;
    margin-bottom: 0.5rem !important;
}

body.page-products .product-price {
    gap: 0.4rem !important;
}

body.page-products .price-original {
    font-size: 0.65rem !important;
}

body.page-products .price-current {
    font-size: 0.8rem !important;
}

body.page-products .product-card-views {
    margin-top: 0.4rem !important;
    font-size: 0.65rem !important;
    gap: 0.25rem !important;
}

body.page-products .product-card-views svg {
    width: 11px !important;
    height: 11px !important;
}

body.page-products .product-grid::-webkit-scrollbar {
    width: 8px;
}

body.page-products .product-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

body.page-products .product-grid::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 4px;
}

body.page-products .product-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.7);
}

/* === PAGINATION FIXE EN BAS === */
body.page-products .pagination-wrapper,
body.page-products main .pagination-wrapper,
body.page-products .products-main .pagination-wrapper {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    margin-top: 1rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid #e5e7eb !important;
    display: block !important;
    visibility: visible !important;
}

body.page-products .pagination,
body.page-products main .pagination,
body.page-products .products-main .pagination,
body.page-products .pagination-wrapper .pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
}

body.page-products .pagination .page-link,
body.page-products main .pagination .page-link,
body.page-products .products-main .pagination .page-link,
body.page-products .pagination-wrapper .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0.5rem 0.75rem !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    color: #374151 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* Styles spécifiques pour les boutons de navigation (avec SVG) */
body.page-products .pagination .page-link:has(svg),
body.page-products main .pagination .page-link:has(svg),
body.page-products .products-main .pagination .page-link:has(svg),
body.page-products .pagination-wrapper .page-link:has(svg) {
    min-width: 44px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
}

body.page-products .pagination .page-link svg,
body.page-products main .pagination .page-link svg,
body.page-products .products-main .pagination .page-link svg,
body.page-products .pagination-wrapper .page-link svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

body.page-products .pagination .page-link:hover,
body.page-products main .pagination .page-link:hover,
body.page-products .products-main .pagination .page-link:hover,
body.page-products .pagination-wrapper .page-link:hover {
    background: #f3f4f6 !important;
    border-color: #d4af37 !important;
    color: #d4af37 !important;
}

/* SVG en doré au hover */
body.page-products .pagination .page-link:hover svg,
body.page-products main .pagination .page-link:hover svg,
body.page-products .products-main .pagination .page-link:hover svg,
body.page-products .pagination-wrapper .page-link:hover svg {
    color: #d4af37 !important;
    stroke: #d4af37 !important;
}

body.page-products .pagination .page-link.active,
body.page-products main .pagination .page-link.active,
body.page-products .products-main .pagination .page-link.active,
body.page-products .pagination-wrapper .page-link.active {
    background: linear-gradient(135deg, #d4af37, #b8941f) !important;
    border-color: #d4af37 !important;
    color: #ffffff !important;
    cursor: default !important;
}

/* SVG en blanc si actif */
body.page-products .pagination .page-link.active svg,
body.page-products main .pagination .page-link.active svg,
body.page-products .products-main .pagination .page-link.active svg,
body.page-products .pagination-wrapper .page-link.active svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

body.page-products .pagination .page-ellipsis {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    color: #9ca3af !important;
    font-size: 0.875rem !important;
}

/* Mode sombre - Pagination */
html[data-theme="dark"] body.page-products .pagination .page-link {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] body.page-products .pagination .page-link:hover {
    background: rgba(212, 175, 55, 0.15) !important;
    border-color: #d4af37 !important;
    color: #d4af37 !important;
}

html[data-theme="dark"] body.page-products .pagination .page-link.active {
    background: linear-gradient(135deg, #d4af37, #b8941f) !important;
    border-color: #d4af37 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.page-products .pagination .page-ellipsis {
    color: #64748b !important;
}

/* === ÉTAT VIDE === */
body.page-products .empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* === MODE JOUR (par défaut) === */
body.page-products .products-layout .products-sidebar {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}

body.page-products .products-main .products-toolbar {
    background-color: transparent !important;
    border-bottom: 1px solid #e5e7eb !important;
}

body.page-products .products-toolbar .products-count {
    color: #374151 !important;
}

body.page-products .products-sort .sort-select,
body.page-products .products-toolbar .sort-select {
    background-color: #ffffff !important;
    border-color: #e5e7eb !important;
    color: #374151 !important;
}

/* Zones de saisie et selects du filtre - Mode Jour */
body.page-products .products-sidebar .form-input,
body.page-products .products-sidebar .filter-select,
body.page-products .filter-section .form-input,
body.page-products .filter-section .filter-select {
    background-color: #ffffff !important;
    border-color: #e5e7eb !important;
    color: #374151 !important;
}

body.page-products .products-sidebar .form-input::placeholder {
    color: #9ca3af !important;
}

body.page-products .products-sidebar .filter-title {
    color: #1a1a1a !important;
}

/* === BOUTONS DE FILTRES AMÉLIORÉS === */
body.page-products .products-sidebar .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 0.875rem 1.25rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-bottom: 0.75rem !important;
}

body.page-products .products-sidebar .btn-block {
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
}

body.page-products .products-sidebar .btn-block:hover {
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
}

body.page-products .products-sidebar .btn-primary {
    background: linear-gradient(135deg, #d4af37, #b8941f) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3) !important;
}

body.page-products .products-sidebar .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4) !important;
}

body.page-products .products-sidebar .btn-secondary {
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
}

body.page-products .products-sidebar .btn-secondary:hover {
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
}

/* === MODE SOMBRE (html[data-theme="dark"]) === */
html[data-theme="dark"] body.page-products,
:root[data-theme="dark"] body.page-products {
    background-color: #0f172a !important;
}

html[data-theme="dark"] body.page-products .main-content,
html[data-theme="dark"] body.page-products main,
:root[data-theme="dark"] body.page-products .main-content,
:root[data-theme="dark"] body.page-products main {
    background-color: #0f172a !important;
}

html[data-theme="dark"] body.page-products .section,
:root[data-theme="dark"] body.page-products .section {
    background-color: #0f172a !important;
}

html[data-theme="dark"] body.page-products .section > .container,
:root[data-theme="dark"] body.page-products .section > .container {
    background-color: transparent !important;
}

html[data-theme="dark"] body.page-products .products-layout,
:root[data-theme="dark"] body.page-products .products-layout {
    background-color: transparent !important;
}

html[data-theme="dark"] body.page-products .products-main,
:root[data-theme="dark"] body.page-products .products-main {
    background-color: transparent !important;
}

html[data-theme="dark"] body.page-products .products-scroll-container,
:root[data-theme="dark"] body.page-products .products-scroll-container {
    background-color: transparent !important;
}

html[data-theme="dark"] body.page-products .products-layout .products-sidebar,
:root[data-theme="dark"] body.page-products .products-layout .products-sidebar {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] body.page-products .products-main .products-toolbar,
:root[data-theme="dark"] body.page-products .products-main .products-toolbar {
    background-color: transparent !important;
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] body.page-products .products-toolbar .products-count,
:root[data-theme="dark"] body.page-products .products-toolbar .products-count {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] body.page-products .products-sort .sort-select,
html[data-theme="dark"] body.page-products .products-toolbar .sort-select,
:root[data-theme="dark"] body.page-products .products-sort .sort-select {
    background-color: #0f172a !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] body.page-products .products-sort .sort-select:hover,
html[data-theme="dark"] body.page-products .products-toolbar .sort-select:hover {
    border-color: #d4af37 !important;
    background-color: rgba(212, 175, 55, 0.1) !important;
}

html[data-theme="dark"] body.page-products .products-sort .sort-select:focus,
html[data-theme="dark"] body.page-products .products-toolbar .sort-select:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2) !important;
}

html[data-theme="dark"] body.page-products .pagination-wrapper,
:root[data-theme="dark"] body.page-products .pagination-wrapper {
    border-top-color: #334155 !important;
}

/* Zones de saisie et selects du filtre - Mode Sombre */
html[data-theme="dark"] body.page-products .products-sidebar .form-input,
html[data-theme="dark"] body.page-products .products-sidebar .filter-select,
html[data-theme="dark"] body.page-products .filter-section .form-input,
html[data-theme="dark"] body.page-products .filter-section .filter-select,
:root[data-theme="dark"] body.page-products .products-sidebar .form-input,
:root[data-theme="dark"] body.page-products .products-sidebar .filter-select {
    background-color: #0f172a !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] body.page-products .products-sidebar .form-input::placeholder,
:root[data-theme="dark"] body.page-products .products-sidebar .form-input::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="dark"] body.page-products .products-sidebar .form-input:focus,
html[data-theme="dark"] body.page-products .products-sidebar .filter-select:focus,
:root[data-theme="dark"] body.page-products .products-sidebar .form-input:focus,
:root[data-theme="dark"] body.page-products .products-sidebar .filter-select:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2) !important;
}

html[data-theme="dark"] body.page-products .products-sidebar .form-input:hover,
html[data-theme="dark"] body.page-products .products-sidebar .filter-select:hover,
:root[data-theme="dark"] body.page-products .products-sidebar .form-input:hover,
:root[data-theme="dark"] body.page-products .products-sidebar .filter-select:hover {
    border-color: #d4af37 !important;
    background-color: rgba(212, 175, 55, 0.08) !important;
}

html[data-theme="dark"] body.page-products .products-sidebar .filter-title,
:root[data-theme="dark"] body.page-products .products-sidebar .filter-title {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] body.page-products .products-sidebar .filter-section,
:root[data-theme="dark"] body.page-products .products-sidebar .filter-section {
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] body.page-products .products-sidebar .btn-block,
:root[data-theme="dark"] body.page-products .products-sidebar .btn-block {
    background: linear-gradient(135deg, #475569, #334155) !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] body.page-products .products-sidebar .btn-block:hover,
:root[data-theme="dark"] body.page-products .products-sidebar .btn-block:hover {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    border-color: #64748b !important;
}

html[data-theme="dark"] body.page-products .products-sidebar .btn-primary,
:root[data-theme="dark"] body.page-products .products-sidebar .btn-primary {
    background: linear-gradient(135deg, #d4af37, #b8941f) !important;
    border-color: #d4af37 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.page-products .products-sidebar .btn-secondary,
:root[data-theme="dark"] body.page-products .products-sidebar .btn-secondary {
    background: #334155 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] body.page-products .products-sidebar .btn-secondary:hover,
:root[data-theme="dark"] body.page-products .products-sidebar .btn-secondary:hover {
    background: #475569 !important;
    border-color: #64748b !important;
}

/* Options des selects en mode sombre */
html[data-theme="dark"] body.page-products .products-sidebar .filter-select option,
html[data-theme="dark"] body.page-products .sort-select option,
:root[data-theme="dark"] body.page-products .products-sidebar .filter-select option,
:root[data-theme="dark"] body.page-products .sort-select option {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] body.page-products .products-sidebar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
}

[data-theme="dark"] body.page-products .products-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

[data-theme="dark"] body.page-products .product-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] body.page-products .product-grid::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
}

[data-theme="dark"] body.page-products .product-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

/* === MODE SOMBRE (prefers-color-scheme) === */
@media (prefers-color-scheme: dark) {
    body.page-products .products-sidebar {
        background: #1e293b !important;
        border-color: #334155 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }
    
    body.page-products .products-toolbar {
        background: transparent !important;
        border-bottom-color: #334155 !important;
    }
    
    body.page-products .products-count {
        color: #e2e8f0 !important;
    }
    
    body.page-products .sort-select {
        background: #0f172a !important;
        border-color: #475569 !important;
        color: #f1f5f9 !important;
    }
    
    body.page-products .sort-select:hover {
        border-color: #d4af37 !important;
        background: rgba(212, 175, 55, 0.1) !important;
    }
    
    body.page-products .pagination-wrapper {
        border-top-color: #334155 !important;
    }
    
    body.page-products .products-sidebar::-webkit-scrollbar-thumb {
        background: rgba(212, 175, 55, 0.4);
    }
    
    body.page-products .product-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }
    
    body.page-products .product-grid::-webkit-scrollbar-thumb {
        background: rgba(212, 175, 55, 0.4);
    }
}

/* === RESPONSIVE - TABLETTE === */
@media (max-width: 1024px) {
    body.page-products .products-layout {
        grid-template-columns: 280px 1fr;
        gap: 1rem;
    }
}

/* === RESPONSIVE - MOBILE === */
@media (max-width: 768px) {
    body.page-products {
        overflow: auto !important;
        height: auto !important;
        max-height: none !important;
    }
    
    body.page-products .main-content,
    body.page-products main {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    body.page-products .section {
        overflow: visible !important;
        flex: none !important;
        padding: 1rem 0 !important;
    }
    
    body.page-products .section > .container {
        height: auto !important;
        max-height: none !important;
        display: block !important;
        padding: 0 1rem !important;
    }
    
    body.page-products .products-layout {
        height: auto !important;
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    /* Bouton toggle filtres mobile */
    body.page-products .mobile-filters-toggle {
        display: flex !important;
        order: 1 !important;
        margin-bottom: 1rem !important;
        position: relative !important;
        z-index: 100 !important;
        pointer-events: auto !important;
        width: 100% !important;
        cursor: pointer !important;
    }
    
    body.page-products .products-main {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
        order: 2 !important;
    }
    
    body.page-products .products-scroll-container {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }
    
    body.page-products .product-grid {
        overflow: visible !important;
        max-height: none !important;
        padding: 0.5rem !important;
        display: grid !important;
        grid-template-columns: repeat(var(--grid-columns, 2), minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }
    
    body.page-products .product-card {
        overflow: visible !important;
        display: block !important;
    }
    
    body.page-products .product-card-body {
        padding: 0.75rem !important;
    }
    
    body.page-products .product-name {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
    }
    
    body.page-products .product-creator {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    body.page-products .product-price {
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
    }
    
    body.page-products .price-current {
        font-size: 0.875rem !important;
    }
    
    body.page-products .products-sidebar {
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        height: calc(100dvh - 80px) !important;
        max-height: calc(100dvh - 80px) !important;
        width: min(340px, 88vw) !important;
        transform: translateX(-105%) !important;
        transition: transform 0.3s ease !important;
        z-index: 1000 !important;
        border-radius: 0 14px 14px 0 !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
        background: white !important;
    }
    
    body.page-products .products-sidebar.active {
        transform: translateX(0) !important;
    }
    
    body.page-products .footer,
    body.page-products footer {
        display: none !important;
        visibility: hidden !important;
    }
    
    body.page-products .products-toolbar {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    body.page-products .pagination-wrapper {
        margin-top: 1.5rem !important;
        padding-top: 1rem !important;
    }
}

/* === RESPONSIVE - PETIT MOBILE === */
@media (max-width: 480px) {
    body.page-products .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    body.page-products .product-card-body {
        padding: 0.5rem !important;
    }
    
    body.page-products .product-category {
        font-size: 0.625rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    body.page-products .product-name {
        font-size: 0.8rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    body.page-products .product-creator {
        font-size: 0.7rem !important;
        margin-bottom: 0.375rem !important;
    }
    
    body.page-products .price-original {
        font-size: 0.65rem !important;
    }
    
    body.page-products .price-current {
        font-size: 0.8rem !important;
    }
    
    body.page-products .product-badge {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.625rem !important;
    }
    
    body.page-products .badge-promo {
        padding: 0.25rem 0.5rem !important;
    }
    
    body.page-products .badge-promo-label {
        font-size: 0.55rem !important;
    }
    
    body.page-products .badge-promo-value {
        font-size: 0.7rem !important;
        padding: 0.1rem 0.35rem !important;
    }
    
    body.page-products .product-card-views {
        font-size: 0.65rem !important;
    }
    
    body.page-products .product-card-views svg {
        width: 10px !important;
        height: 10px !important;
    }
}
