/* ==========================================================================
   ASSETS/CSS/STYLE.CSS - SANTÉ PLUS CI (Version Premium Unifiée)
   ========================================================================== */

/* --- 1. VARIABLES GLOBALES & THEMES --- */
:root {
    /* Dimensions */
    --header-h: 70px;
    --banner-h: 36px;
    
    /* Couleurs Principales */
    --primary-color: #2563eb; 
    --accent-color: #f59e0b;
    
    /* Thème Clair (Défaut) */
    --bg-body: #f8fafc;
    --bg-header: rgba(255, 255, 255, 0.95);
    --bg-card: #ffffff;
    --bg-search: #f1f5f9;
    --input-bg: #ffffff;
    --text-main: #334155;
    --text-title: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --hover-bg: #f1f5f9;
    
    /* Effets */
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --font-main: 'Inter', sans-serif;
}

/* Thème Sombre */
html.dark {
    --bg-body: #0f172a;
    --bg-header: rgba(15, 23, 42, 0.95);
    --bg-card: #1e293b;
    --bg-search: #0f172a;
    --input-bg: #0f172a;
    --text-main: #cbd5e1;
    --text-title: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --hover-bg: #334155;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
}

/* --- 2. BASE & RESET --- */
* { 
    box-sizing: border-box; 
}

body { 
    margin: 0; 
    font-family: var(--font-main); 
    background: var(--bg-body); 
    color: var(--text-main); 
    padding-top: calc(var(--header-h) + var(--banner-h)); 
    font-size: 14px;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease; 
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
body.no-scroll { overflow: hidden; }

/* Layout Global */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
}

/* Boutons génériques */
.btn { 
    background: var(--primary-color); 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 13px; 
    font-weight: 600;
    display: inline-block; 
    transition: 0.2s;
}
.btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* --- 3. TOP BANNER --- */
.top-banner {
    position: fixed; top: 0; left: 0; right: 0; height: var(--banner-h);
    background: var(--primary-color); color: white;
    display: flex; align-items: center; overflow: hidden; z-index: 1010;
    font-size: 13px; font-weight: 500;
}
.marquee-content {
    display: flex; gap: 40px; animation: marquee 25s linear infinite;
    white-space: nowrap; padding-left: 100%;
}
.marquee-item { display: flex; align-items: center; gap: 8px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* --- 4. HEADER DESKTOP --- */
.main-header {
    position: fixed; top: var(--banner-h); left: 0; right: 0; height: var(--header-h);
    background: var(--bg-header); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color); z-index: 1000; transition: all 0.3s;
}

.header-grid {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 100%;
}

.header-left, .header-right { flex: 1; display: flex; align-items: center; }
.header-left { justify-content: flex-start; gap: 15px; }
.header-right { justify-content: flex-end; gap: 12px; }
.header-center { flex-shrink: 0; display: flex; justify-content: center; align-items: center; }

/* Logo */
.logo a { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.5px; color: var(--text-title); }
.logo-img { height: 40px; width: 40px; border-radius: 10px; object-fit: cover; }
.logo-text span { color: var(--primary-color); }

/* Recherche Premium */
.search-wrapper { width: 100%; max-width: 350px; position: relative; }
.search-form {
    display: flex; align-items: center; background: var(--bg-search);
    border: 1px solid var(--border-color); border-radius: 12px; padding: 8px 16px; transition: 0.2s;
}
.search-form:focus-within { background: var(--input-bg); border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.search-form input { border: none; background: transparent; outline: none; flex: 1; padding: 5px; color: var(--text-title); font-size: 14px; }
.search-form button { border: none; background: transparent; cursor: pointer; font-size: 16px; color: var(--text-muted); }

/* Recherche Prédictive */
.predictive-results {
    position: absolute; top: 110%; left: 0; right: 0;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; box-shadow: var(--shadow);
    max-height: 400px; overflow-y: auto; opacity: 0; visibility: hidden;
    transform: translateY(-10px); transition: 0.2s; z-index: 1020;
}
.predictive-results.active { opacity: 1; visibility: visible; transform: translateY(0); }
.p-result-item { display: flex; align-items: center; gap: 15px; padding: 12px 15px; border-bottom: 1px solid var(--border-color); transition: 0.2s; }
.p-result-item:hover { background: var(--hover-bg); }
.p-img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: #fff; }
.p-info { display: flex; flex-direction: column; }
.p-name { font-weight: 600; font-size: 14px; color: var(--text-title); }
.p-price { font-size: 13px; color: var(--primary-color); font-weight: bold; }

/* Boutons Actions (Droite) */
.icon-btn {
    width: 44px; height: 44px; border-radius: 12px;
    background: transparent; border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-title); cursor: pointer; transition: 0.2s; position: relative; font-size: 18px;
}
.icon-btn:hover { background: var(--hover-bg); border-color: var(--text-muted); }
.cart-badge {
    position: absolute; top: -5px; right: -5px;
    background: #ef4444; color: white; font-size: 10px; font-weight: 800;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-header);
}
.wishlist-badge { background: #ef4444; }

/* --- 5. MENU MOBILE (SIDEBAR) --- */
.burger-menu { border: none; background: none; color: var(--text-title); font-size: 24px; cursor: pointer; padding: 0; }

.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1005; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(2px); }
.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: 85%; max-width: 320px;
    background: var(--bg-card); z-index: 1010;
    transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border-color); display: flex; flex-direction: column;
}
.mobile-nav.open { transform: translateX(0); }

.nav-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.nav-header h3 { margin: 0; font-size: 18px; color: var(--text-title); font-weight: 700; }
.close-btn { background: none; border: none; font-size: 28px; color: var(--text-muted); cursor: pointer; transition: 0.2s; }
.close-btn:hover { color: #ef4444; transform: rotate(90deg); }

.nav-body { padding: 20px; flex: 1; overflow-y: auto; }
.nav-links { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.nav-link { 
    display: flex; align-items: center; gap: 15px; 
    padding: 12px 15px; border-radius: 12px; 
    color: var(--text-title); font-weight: 600; font-size: 15px;
    transition: 0.2s;
}
.nav-link i { font-size: 18px; width: 24px; text-align: center; color: var(--text-muted); transition: 0.2s; }
.nav-link:hover { background: var(--hover-bg); }
.nav-link:hover i { color: var(--primary-color); }
.nav-link.active { background: rgba(59, 130, 246, 0.1); color: var(--primary-color); }
.nav-link.active i { color: var(--primary-color); }

/* --- 6. GRILLES & CARTES PRODUITS --- */
.grid-products { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
    gap: 25px; 
}

.product-card { 
    background: var(--bg-card);
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    overflow: hidden; 
    transition: all 0.3s ease; 
    box-shadow: var(--shadow);
}
.product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}
.product-card img { width: 100%; height: 220px; object-fit: contain; background: #fff; padding: 15px; border-bottom: 1px solid var(--border-color); }
.p-details { padding: 20px; }

/* --- 7. FOOTER MODERNE --- */
.site-footer {
    background-color: #0f172a; 
    color: #94a3b8; 
    padding: 60px 0 20px;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col h3 { color: #f8fafc; margin-bottom: 20px; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: 0.3s; font-weight: 500; }
.footer-links a:hover { color: var(--primary-color); padding-left: 8px; }

.copyright { text-align: center; font-size: 13px; opacity: 0.7; margin-top: 50px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

/* --- 8. UTILITAIRES & WHATSAPP --- */
.wa-float { 
    position: fixed; bottom: 25px; right: 25px; 
    background: #25D366; color: white; 
    padding: 12px 20px; border-radius: 50px; 
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3); 
    display: flex; align-items: center; gap: 10px; 
    text-decoration: none; font-weight: 700; 
    animation: popIn 0.5s; z-index: 1000; transition: 0.3s;
}
.wa-float:hover { transform: translateY(-5px) scale(1.05); background: #1da851; }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

/* Tableaux Responsives (Admin) */
table { width: 100%; border-collapse: collapse; }
.table-responsive { overflow-x: auto; display: block; width: 100%; }

/* --- 9. MEDIA QUERIES (RESPONSIVE) --- */

/* Tablette & Mobile */
@media (max-width: 900px) {
    .desktop-only { display: none !important; }
    .logo-text { display: none; }
    .top-banner { font-size: 12px; }
    
    .header-right { gap: 8px; }
    .icon-btn { width: 38px; height: 38px; font-size: 16px; border-radius: 10px; }
    
    .grid-products { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
}

@media (min-width: 901px) { 
    .mobile-only { display: none !important; } 
}

/* Petit Mobile */
@media (max-width: 480px) {
    .container { padding: 15px; }
    .grid-products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card img { height: 160px; padding: 10px; }
    .p-details { padding: 12px; }
    
    .product-layout { grid-template-columns: 1fr; gap: 25px; }
    .wa-float { bottom: 15px; right: 15px; padding: 10px 15px; font-size: 13px; }
}

/* --- TYPOGRAPHIE & GLOBALS --- */
.page-title { margin: 0; font-size: 28px; color: var(--text-title); font-weight: 700; }

/* Bannière Promo Top */
.promo-banner-top {
    background: var(--text-title); 
    color: var(--bg-card); 
    text-align: center;
    padding: 10px; font-size: 14px; font-weight: 500;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    flex-wrap: wrap;
}
.code-badge {
    background: var(--primary-color);
    color: white; border: none;
    padding: 4px 10px; border-radius: 6px; font-weight: 700;
    cursor: pointer; font-family: monospace; font-size: 14px;
    transition: 0.2s;
}
.code-badge:hover { opacity: 0.8; transform: translateY(-1px); }

/* 1. HERO SLIDER PRO */
.slider-wrapper { position: relative; width: 100%; height: 450px; overflow: hidden; }
.slide { 
    position: absolute; inset: 0; opacity: 0; 
    transition: opacity 0.8s ease-in-out;
    background-size: cover; background-position: center; 
}
.slide.active { opacity: 1; z-index: 1; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%); }
.slide-content { position: absolute; top: 50%; left: 8%; transform: translateY(-50%); color: white; z-index: 2; max-width: 600px; padding: 20px; }
.slide-subtitle { display: inline-block; background: rgba(255,255,255,0.15); padding: 6px 15px; border-radius: 30px; font-size: 12px; backdrop-filter: blur(8px); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; border: 1px solid rgba(255,255,255,0.2); }
.slide-title { font-size: 1rem; font-weight: 800; margin: 0 0 25px 0; line-height: 1.1; text-shadow: 0 4px 12px rgba(0,0,0,0.4); letter-spacing: -0.5px; }
.btn-hero { display: inline-flex; align-items: center; gap: 8px; background: white; color: black; padding: 8px 25px; border-radius: 50px; font-weight: 700; text-decoration: none; transition: 0.3s; font-size: 15px; }
.btn-hero:hover { background: var(--primary-color); color: white; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.slider-nav button {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
    color: white; width: 45px; height: 45px; border-radius: 50%;
    cursor: pointer; z-index: 10; font-size: 10px; backdrop-filter: blur(4px); transition: 0.2s;
}
.slider-nav button:hover { background: white; color: black; transform: translateY(-50%) scale(1.1); }
.slider-nav button:first-child { left: 30px; }
.slider-nav button:last-child { right: 30px; }

/* 2. TRUST BAR ÉLÉGANTE */
.trust-bar { background: var(--bg-card); border-bottom: 1px solid var(--border-color); padding: 30px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.trust-item { display: flex; align-items: center; gap: 15px; }
.icon-box { 
    width: 50px; height: 50px; border-radius: 14px; 
    background: rgba(59, 130, 246, 0.1); color: var(--primary-color); 
    display: flex; align-items: center; justify-content: center; 
    font-size: 20px; flex-shrink: 0; 
}
.trust-text strong { display: block; color: var(--text-title); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.trust-text p { margin: 0; font-size: 13px; color: var(--text-muted); }
.wa-link { color: #25D366; font-weight: 700; text-decoration: none; font-size: 13px; display: inline-block; margin-top: 2px; }

/* 3. CONTENU PRINCIPAL */
.main-content { padding-top: 50px; padding-bottom: 80px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.section-header h3 { font-size: 1.75rem; font-weight: 800; color: var(--text-title); margin: 0; }
.view-all-link { color: var(--text-muted); font-weight: 600; font-size: 14px; text-decoration: none; transition: 0.2s; }
.view-all-link:hover { color: var(--primary-color); }
.product-count { background: var(--hover-bg); border: 1px solid var(--border-color); padding: 5px 12px; border-radius: 20px; font-size: 12px; color: var(--text-title); font-weight: 600; }

/* Scroll Catégories Pro */
.category-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.cat-pill { 
    padding: 10px 22px; background: var(--bg-card); border: 1px solid var(--border-color); 
    border-radius: 50px; color: var(--text-main); font-weight: 600; white-space: nowrap; 
    transition: 0.3s; font-size: 14px; display: flex; align-items: center; gap: 8px;
}
.cat-pill:hover, .cat-pill.active { background: var(--text-title); color: var(--bg-card); border-color: var(--text-title); }
.promo-pill { background: rgba(239, 68, 68, 0.05); color: #ef4444; border-color: rgba(239, 68, 68, 0.2); }
.promo-pill:hover { background: #ef4444; color: white; border-color: #ef4444; }

/* 4. GRILLE PRODUITS (Design Premium) */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px; }

.product-card { 
    background: var(--bg-card); border: 1px solid var(--border-color); 
    border-radius: 20px; overflow: hidden; transition: all 0.3s ease; 
    display: flex; flex-direction: column; position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); border-color: var(--border-color); }

/* NOUVEAUX STYLES DE STOCK */
.out-of-stock-card { border-color: rgba(239, 68, 68, 0.2); }
.stock-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; display: inline-block; }
.stock-empty { background: #fee2e2; color: #ef4444; }
.stock-low { background: #fef3c7; color: #d97706; }
.badge-stock { background: #64748b; }

/* Bouton Wishlist sur carte */
.btn-wishlist {
    position: absolute; top: 15px; right: 15px;
    background: rgba(255,255,255,0.9); border: none;
    width: 35px; height: 35px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.2s; color: var(--text-muted); font-size: 15px;
    backdrop-filter: blur(4px);
}
.btn-wishlist:hover { color: #ef4444; transform: scale(1.1); }
.btn-wishlist.active { color: #ef4444; }

/* Image Wrapper épuré */
.img-wrapper { 
    position: relative; width: 100%; aspect-ratio: 4 / 5; background: #ffffff; 
    display: flex; align-items: center; justify-content: center; overflow: hidden; 
    padding: 20px; border-bottom: 1px solid var(--border-color);
}
.img-wrapper img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.product-card:hover:not(.out-of-stock-card) img { transform: scale(1.05); }
.grayscale { filter: grayscale(100%); opacity: 0.6; }

/* Badges Modernes */
.badge { position: absolute; top: 15px; left: 15px; font-size: 11px; font-weight: 800; padding: 6px 12px; border-radius: 30px; z-index: 2; color: white; letter-spacing: 0.5px; }
.badge-promo { background: #ef4444; box-shadow: 0 4px 10px rgba(239,68,68,0.3); }

/* Overlay Desktop */
.hover-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.02); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.product-card:hover .hover-overlay { opacity: 1; }
.btn-quick-view { background: rgba(255,255,255,0.9); color: black; padding: 10px 20px; border-radius: 30px; font-size: 13px; font-weight: 700; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transform: translateY(15px); transition: 0.3s ease; backdrop-filter: blur(4px); display: flex; align-items: center; gap: 6px; }
.btn-quick-view:hover { background: var(--text-title); color: var(--bg-card); }
.product-card:hover .btn-quick-view { transform: translateY(0); }

/* Détails Produit */
.p-details { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cat-tag { color: var(--text-muted); text-transform: uppercase; font-size: 11px; font-weight: 700; display: block; letter-spacing: 0.5px; }
.p-title { font-size: 16px; font-weight: 600; margin: 0 0 10px; line-height: 1.4; }
.p-title a { color: var(--text-title); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: 0.2s; }
.p-title a:hover { color: var(--primary-color); }

.p-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.price-block { display: flex; flex-direction: column; }
.old-price { text-decoration: line-through; color: var(--text-muted); font-size: 12px; margin-bottom: 2px; }
.current-price { font-weight: 800; color: var(--text-title); font-size: 18px; }
.current-price.promo { color: #ef4444; }

/* Bouton Ajouter au Panier - Style Pro */
.btn-icon { 
    width: 40px; height: 40px; border-radius: 12px; 
    background: var(--hover-bg); color: var(--text-title); 
    display: flex; align-items: center; justify-content: center; 
    transition: 0.2s; border: 1px solid var(--border-color); font-size: 16px;
}
.btn-icon.add-btn:hover { background: var(--text-title); color: var(--bg-card); border-color: var(--text-title); transform: scale(1.05); }
.btn-icon.disabled { opacity: 0.5; cursor: not-allowed; background: var(--hover-bg); color: #ef4444; border-color: rgba(239, 68, 68, 0.2); }

/* Zero Results */
.no-results { text-align: center; padding: 100px 20px; background: var(--bg-card); border-radius: 20px; margin-top: 20px; border: 1px dashed var(--border-color); }
.icon-404 { font-size: 60px; color: var(--border-color); margin-bottom: 20px; }
.btn-reset { display: inline-block; margin-top: 20px; background: var(--text-title); color: var(--bg-card); padding: 12px 30px; border-radius: 50px; text-decoration: none; font-size: 14px; font-weight: 700; transition: 0.2s; }
.btn-reset:hover { opacity: 0.9; transform: translateY(-2px); }

/* MOBILE */
@media (max-width: 768px) {
    .slider-wrapper { height: 350px; }
    .slide-title { font-size: 2rem; }
    .slide-content { left: 5%; right: 5%; text-align: center; }
    .btn-hero { width: 100%; justify-content: center; }
    .desktop-only { display: none !important; }
    
    .grid-products { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .img-wrapper { padding: 10px; } 
    .p-details { padding: 15px; }
    .p-title { font-size: 14px; }
    .current-price { font-size: 15px; }
    .btn-icon { width: 35px; height: 35px; font-size: 14px; border-radius: 10px; }
}

/* MÊME STYLE PREMIUM QUE L'ACCUEIL POUR LES CARTES */
.catalog-page-header { background: var(--bg-search); padding: 40px 0 20px; margin-bottom: 30px; border-bottom: 1px solid var(--border-color); }
.page-title { margin: 0; font-size: 28px; color: var(--text-title); font-weight: 800; }
.result-count { color: var(--text-muted); font-size: 14px; margin-top: 5px; font-weight: 500; }

.category-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; margin-bottom: 25px; }
.category-scroll::-webkit-scrollbar { display: none; }
.cat-pill { padding: 10px 22px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 50px; color: var(--text-main); font-weight: 600; white-space: nowrap; transition: 0.3s; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.cat-pill:hover, .cat-pill.active { background: var(--text-title); color: var(--bg-card); border-color: var(--text-title); }

.promo-pill { background: rgba(239, 68, 68, 0.05); color: #ef4444; border-color: rgba(239, 68, 68, 0.2); }
.promo-pill:hover, .promo-pill.active { background: #ef4444 !important; color: white !important; border-color: #ef4444 !important; }

.filters-bar { background: var(--bg-card); padding: 20px; border-radius: 16px; border: 1px solid var(--border-color); margin-bottom: 40px; box-shadow: var(--shadow); }
.filters-wrapper { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; }
.filter-item label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

.form-select { padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 10px; background-color: var(--input-bg); color: var(--text-title); cursor: pointer; font-size: 14px; outline: none; min-width: 180px; font-weight: 500; }
.price-inputs { display: flex; align-items: center; gap: 10px; }
.price-inputs input { width: 90px; padding: 12px; border: 1px solid var(--border-color); border-radius: 10px; text-align: center; font-size: 14px; outline: none; background: var(--input-bg); color: var(--text-title); }
.price-inputs span { color: var(--text-muted); font-weight: bold; }

.btn-filter { background: var(--text-title); color: var(--bg-card); border: none; padding: 12px 20px; border-radius: 10px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.btn-filter:hover { background: var(--primary-color); }
.reset-link { margin-left: auto; color: #ef4444; font-size: 13px; text-decoration: none; font-weight: 600; transition: 0.2s; }
.reset-link:hover { opacity: 0.7; }

/* Grid Produits */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column; position: relative; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); border-color: var(--border-color); }

/* Opacité légère si épuisé (le filtre gris est sur l'image) */
.out-of-stock-card { border-color: rgba(239, 68, 68, 0.2); }

/* Bouton Wishlist sur carte */
.btn-wishlist {
    position: absolute; top: 15px; right: 15px;
    background: rgba(255,255,255,0.9); border: none;
    width: 35px; height: 35px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.2s; color: var(--text-muted); font-size: 15px;
    backdrop-filter: blur(4px);
}
.btn-wishlist:hover { color: #ef4444; transform: scale(1.1); }
.btn-wishlist.active { color: #ef4444; }

.img-wrapper { position: relative; width: 100%; aspect-ratio: 4 / 5; background: #ffffff; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px; border-bottom: 1px solid var(--border-color); }
.img-wrapper img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.product-card:hover:not(.out-of-stock-card) img { transform: scale(1.05); }

/* NOUVEAUX STYLES DE STOCK */
.badge { position: absolute; top: 15px; left: 15px; font-size: 11px; font-weight: 800; padding: 6px 12px; border-radius: 30px; z-index: 2; color: white; letter-spacing: 0.5px; }
.badge-promo { background: #ef4444; box-shadow: 0 4px 10px rgba(239,68,68,0.3); }
.badge-stock { background: #64748b; }
.grayscale { filter: grayscale(100%); opacity: 0.6; }

.stock-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; display: inline-block; }
.stock-empty { background: #fee2e2; color: #ef4444; }
.stock-low { background: #fef3c7; color: #d97706; }

.hover-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.02); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.product-card:hover .hover-overlay { opacity: 1; }
.btn-quick-view { background: rgba(255,255,255,0.9); color: black; padding: 10px 20px; border-radius: 30px; font-size: 13px; font-weight: 700; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transform: translateY(15px); transition: 0.3s ease; backdrop-filter: blur(4px); display: flex; align-items: center; gap: 6px; }
.btn-quick-view:hover { background: var(--text-title); color: var(--bg-card); }
.product-card:hover .btn-quick-view { transform: translateY(0); }

.p-details { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cat-tag { color: var(--text-muted); text-transform: uppercase; font-size: 11px; font-weight: 700; display: block; letter-spacing: 0.5px; }
.p-title { font-size: 16px; font-weight: 600; margin: 0 0 10px; line-height: 1.4; }
.p-title a { color: var(--text-title); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: 0.2s; }
.p-title a:hover { color: var(--primary-color); }

.p-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.price-block { display: flex; flex-direction: column; }
.old-price { text-decoration: line-through; color: var(--text-muted); font-size: 12px; margin-bottom: 2px; }
.current-price { font-weight: 800; color: var(--text-title); font-size: 18px; }
.current-price.promo { color: #ef4444; }

.btn-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--hover-bg); color: var(--text-title); display: flex; align-items: center; justify-content: center; transition: 0.2s; border: 1px solid var(--border-color); font-size: 16px; }
.btn-icon.add-btn:hover { background: var(--text-title); color: var(--bg-card); border-color: var(--text-title); transform: scale(1.05); }
.btn-icon.disabled { opacity: 0.5; cursor: not-allowed; background: var(--hover-bg); color: #ef4444; border-color: rgba(239, 68, 68, 0.2); }

/* No Results */
.no-results { text-align: center; padding: 100px 20px; background: var(--bg-card); border-radius: 20px; margin-top: 20px; border: 1px dashed var(--border-color); }
.icon-404 { font-size: 60px; color: var(--border-color); margin-bottom: 20px; }
.btn-reset { display: inline-block; margin-top: 20px; background: var(--text-title); color: var(--bg-card); padding: 12px 30px; border-radius: 50px; text-decoration: none; font-size: 14px; font-weight: 700; transition: 0.2s; }

/* Responsive */
@media (max-width: 768px) {
    .filters-wrapper { flex-direction: column; align-items: stretch; gap: 15px; }
    .price-inputs { display: grid; grid-template-columns: 1fr auto 1fr auto; }
    .price-inputs input { width: 100%; }
    .reset-link { margin-left: 0; margin-top: 10px; display: block; text-align: center; }
    .grid-products { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .img-wrapper { padding: 10px; }
    .p-details { padding: 15px; }
    .p-title { font-size: 14px; }
    .current-price { font-size: 15px; }
    .btn-icon { width: 35px; height: 35px; font-size: 14px; border-radius: 10px; }
    .desktop-only { display: none !important; }
}

/* ==========================================================================
   10. PAGE CATALOGUE (Filtres & En-tête)
   ========================================================================== */

.catalog-page-header { 
    background: var(--bg-search); 
    padding: 40px 0 20px; 
    margin-bottom: 30px; 
    border-bottom: 1px solid var(--border-color); 
}
.page-title { 
    margin: 0; 
    font-size: 28px; 
    color: var(--text-title); 
    font-weight: 800; 
}
.result-count { 
    color: var(--text-muted); 
    font-size: 14px; 
    margin-top: 5px; 
    font-weight: 500; 
}

.category-scroll { 
    display: flex; 
    gap: 12px; 
    overflow-x: auto; 
    padding-bottom: 10px; 
    scrollbar-width: none; 
    margin-bottom: 25px; 
}
.category-scroll::-webkit-scrollbar { display: none; }
.cat-pill { 
    padding: 10px 22px; 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 50px; 
    color: var(--text-main); 
    font-weight: 600; 
    white-space: nowrap; 
    transition: 0.3s; 
    font-size: 14px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.cat-pill:hover, .cat-pill.active { 
    background: var(--text-title); 
    color: var(--bg-card); 
    border-color: var(--text-title); 
}
.promo-pill { 
    background: rgba(239, 68, 68, 0.05); 
    color: #ef4444; 
    border-color: rgba(239, 68, 68, 0.2); 
}
.promo-pill:hover, .promo-pill.active { 
    background: #ef4444 !important; 
    color: white !important; 
    border-color: #ef4444 !important; 
}

.filters-bar { 
    background: var(--bg-card); 
    padding: 20px; 
    border-radius: 16px; 
    border: 1px solid var(--border-color); 
    margin-bottom: 40px; 
    box-shadow: var(--shadow); 
}
.filters-wrapper { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 30px; 
    align-items: center; 
}
.filter-item label { 
    display: block; 
    font-size: 12px; 
    font-weight: 700; 
    color: var(--text-muted); 
    margin-bottom: 8px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.form-select { 
    padding: 12px 15px; 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    background-color: var(--input-bg); 
    color: var(--text-title); 
    cursor: pointer; 
    font-size: 14px; 
    outline: none; 
    min-width: 180px; 
    font-weight: 500; 
}
.price-inputs { display: flex; align-items: center; gap: 10px; }
.price-inputs input { 
    width: 90px; 
    padding: 12px; 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    text-align: center; 
    font-size: 14px; 
    outline: none; 
    background: var(--input-bg); 
    color: var(--text-title); 
}
.price-inputs span { color: var(--text-muted); font-weight: bold; }

.btn-filter { 
    background: var(--text-title); 
    color: var(--bg-card); 
    border: none; 
    padding: 12px 20px; 
    border-radius: 10px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: 0.2s; 
}
.btn-filter:hover { background: var(--primary-color); }
.reset-link { 
    margin-left: auto; 
    color: #ef4444; 
    font-size: 13px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: 0.2s; 
}
.reset-link:hover { opacity: 0.7; }

/* Responsive Filtres */
@media (max-width: 768px) {
    .filters-wrapper { flex-direction: column; align-items: stretch; gap: 15px; }
    .price-inputs { display: grid; grid-template-columns: 1fr auto 1fr auto; }
    .price-inputs input { width: 100%; }
    .reset-link { margin-left: 0; margin-top: 10px; display: block; text-align: center; }
}