/*
Theme Name: Xmarket CI
Author: X-ci digital
Description: Thème sur mesure ultra-léger pour la marketplace.
Version: 1.0.0
Text Domain: xmarket
*/
/* =========================================
   SÉCURITÉ ANTI-DÉBORDEMENT GLOBAL
   ========================================= */
/* Sécurité anti-débordement ciblée (Ne casse pas l'entête) */
.site-main {
    overflow-x: hidden !important;
    width: 100%;
}
/* RESET BASIC */
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; background-color: #f9f9f9; }
a { text-decoration: none; color: inherit; }

/* HEADER STRUCTURE */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* LOGO */
.header-logo .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #111;
}

/* RECHERCHE WOOCOMMERCE */
.header-search {
    flex-grow: 1;
    max-width: 500px;
}
.header-search form {
    display: flex;
    width: 100%;
}
.header-search input[type="search"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}
.header-search button {
    padding: 10px 20px;
    background-color: #111;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* ACTIONS (COMPTE & PANIER) */
.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 500;
}
.action-btn svg {
    color: #111;
}

/* =========================================
   HEADER STRUCTURE - VERSION BUREAU
   ========================================= */
.header-container {
    display: flex;
    justify-content: space-between; /* Espace entre la gauche, le centre et la droite */
    align-items: center; /* Centre tout verticalement */
    flex-wrap: nowrap; /* Force sur une seule ligne */
    gap: 20px; /* Espace global */
}

/* Bloc Logo + Icône Modale */
.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Empêche le logo de s'écraser */
}

/* Barre de recherche (Au centre) */
.header-search {
    flex-grow: 1; /* Prend l'espace disponible au centre */
    max-width: 600px; /* Limite la largeur pour l'esthétique */
    margin: 0 20px;
}

.header-search form {
    display: flex; /* Garde le champ et le bouton alignés */
    width: 100%;
}

.header-search input[type="search"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px; /* Arrondi à gauche seulement */
}

.header-search button,
.header-search input[type="submit"] {
    padding: 10px 20px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0; /* Arrondi à droite seulement */
    cursor: pointer;
}

/* Bloc Compte + Panier (À droite) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px; /* Espace entre les icônes de droite */
    flex-shrink: 0;
}

/* S'assure que les icônes et le texte restent alignés horizontalement */
.header-actions > a,
.header-actions > div {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #111;
}

/* RESPONSIVE - VERSION MOBILE */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 15px;
    }
    
    .header-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    /* Force le bloc Logo/Menu en position 1 (gauche) */
    .header-left {
        order: 1;
        display: flex;
        align-items: center;
    }

    /* Force le bloc Compte/Panier en position 2 (droite) */
    .header-actions {
        order: 2;
        display: flex;
        gap: 15px; /* Espace entre les deux icônes */
        align-items: center;
    }

    /* Force la recherche en position 3 (en dessous, sur toute la largeur) */
    .header-search {
        order: 3;
        width: 100% !important;
        margin-top: 12px;
    }
    
    .header-search form {
        display: block !important;
        width: 100%;
    }
    
    /* Masquage du bouton WooCommerce */
    .header-search form button, 
    .header-search form input[type="submit"],
    .header-search .woocommerce-product-search button {
        display: none !important; 
    }
    
    /* Input propre sans angles cassés */
    .header-search form input[type="search"] {
        width: 100% !important;
        border-radius: 6px !important;
        padding: 10px !important;
        border: 1px solid #ddd !important;
        box-sizing: border-box;
    }

    /* Cache strictement les textes sur mobile pour ne garder que les icônes */
    .action-text {
        display: none !important;
    }

    /* =========================================
   ENTÊTE FIXE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .site-header {
        position: sticky !important;
        top: 0;
        z-index: 1000 !important; /* Force l'entête à passer au-dessus de tout le reste */
        background-color: #fff !important; /* Empêche la transparence lors du défilement */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Ajoute une ombre pour détacher l'entête des produits */
    }
}
}

/* =========================================
   SECTION ACCUEIL : GRILLE 3 COLONNES (Bureau)
   ========================================= */
.hero-section-grid {
    display: grid;
    grid-template-columns: 220px 1fr 220px; /* Taille: Gauche | Centre fluide | Droite */
    gap: 15px;
    margin-bottom: 40px;
    align-items: stretch; /* Force les 3 colonnes à avoir la même hauteur */
}

/* --- 1. Menu Gauche --- */
.hero-categories {
    background: #fff;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list li a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}
.category-list li a:hover {
    background: #f5f5f5;
    color: #ff9900; /* Couleur Xmarket au survol */
}

/* --- 2. Carrousel Centre --- */
.hero-slider-container {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}
.slide {
    flex: 0 0 100%; /* Prend toute la largeur de la zone centrale */
}
.slide img {
    width: 100%;
    height: 380px; /* Hauteur fixe globale pour bloquer la grille */
    object-fit: cover;
    display: block;
}

/* --- 3. Colonne Droite --- */
.hero-right-banners {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.info-box {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 4px rgba(248, 246, 246, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.info-box a {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
}
.promo-box {
    flex-grow: 1; /* Remplit l'espace restant en bas */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(244, 242, 242, 0.1);
}
.promo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Arrière-plan page d'accueil (Bureau uniquement) */
@media (min-width: 993px) {
    body.home {
        background-color: #f4f7f4; /* Vert très clair. Change ici si besoin. */
    }
}

/* =========================================
   ADAPTATION MOBILE STRICTE
   ========================================= */
@media (max-width: 992px) {
    .hero-section-grid {
        grid-template-columns: 1fr; /* Passe sur une seule colonne */
    }
    
    /* Sur mobile, on cache le menu latéral et la colonne droite pour ne garder que le carrousel */
    .hero-categories,
    .hero-right-banners {
        display: none; 
    }
    
    /* Effet Peek restauré sur mobile */
    .slide {
        flex: 0 0 85%; /* Laisse 15% pour voir la prochaine slide */
        margin-right: 15px; 
    }
    
    .slide img {
        height: 180px;
    }
}

/* =========================================
   BOUTONS DE NAVIGATION (Bureau)
   ========================================= */
.qc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #111;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.3s;
}

.qc-nav:hover {
    background: #111;
    color: #fff;
}

.qc-prev { left: -15px; }
.qc-next { right: -15px; }

/* =========================================
   1. BASE ET BUREAU (Aligné, taille stricte, cercles)
   ========================================= */
.quick-categories-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* EMPÊCHE L'EMPILAGE */
    gap: 20px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding-bottom: 10px !important;
    min-width: 100% !important; /* Force le conteneur */
}

.quick-category-item {
    flex: 0 0 150px !important; /* Conteneur élargi (était à 100px) */
    max-width: 150px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.qc-img-wrapper {
    width: 110px !important; 
    height: 110px !important;
    min-width: 110px !important; 
    min-height: 110px !important;
    margin: 0 auto 10px auto !important;
    border-radius: 5% !important; 
    overflow: hidden !important;
    background: #f9f9f9 !important;
    flex-shrink: 0 !important;
    
    /* Ombre statique et définition de la transition */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* =========================================
   ANIMATIONS AU SURVOL (Hover)
   ========================================= */
.quick-category-item:hover .qc-img-wrapper {
    transform: translateY(-5px) !important; /* Soulèvement de 5 pixels vers le haut */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important; /* Ombre plus large et plus marquée */
}

.quick-category-item:hover .qc-title {
    color: #ff9900 !important; /* Met le texte dans ta couleur de marque au survol (modifie le code hex si besoin) */
    transition: color 0.3s ease !important;
}

.qc-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.qc-title {
    font-size: 15px !important;
    margin-top: 5px !important;
    color: #333 !important;
}

/* =========================================
   2. AJUSTEMENT MOBILE STRICT (Max 768px)
   ========================================= */
@media (max-width: 768px) {
    .qc-nav {
        display: none !important; /* On cache les flèches */
    }
    
    .quick-categories-track {
        gap: 15px !important;
    }

    .quick-category-item {
        /* Force exactement ~38% de la largeur pour afficher 2 blocs + 1 morceau */
        flex: 0 0 38% !important; 
        max-width: 38% !important;
    }
    
    .qc-img-wrapper {
        width: 100% !important; /* S'adapte aux 38% de son parent */
        height: auto !important;
        min-width: unset !important;
        min-height: unset !important;
        aspect-ratio: 1 / 1 !important; /* Garde le format carré mathématiquement */
        border-radius: 12px !important; /* Bords arrondis pour le mobile (meilleure UX que les cercles géants) */
    }

    .qc-title {
        font-size: 12px !important;
    }
}

/* =========================================
   BARRE DE RECHERCHE - BASCULE MOBILE/BUREAU
   ========================================= */

/* Par défaut (Bureau) : l'icône mobile est cachée */
.mobile-only-icon {
    display: none !important; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #111;
}

/* Sur Mobile (Max 768px) */
@media (max-width: 768px) {
    /* 1. On affiche l'icône de recherche */
    .mobile-only-icon {
        display: flex !important; 
        align-items: center;
        justify-content: center;
        margin-right: 12px; /* Espacement avec le bouton compte */
    }

    /* 2. On masque la barre de recherche par défaut et on prépare son menu déroulant */
    .header-search {
        display: none; /* Masquée */
        position: absolute;
        top: 100%; /* S'affiche juste en dessous de l'en-tête */
        left: 0;
        width: 100%;
        background: #fff;
        padding: 10px 15px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 99;
    }

    /* 3. Classe activée par le script JS lors du clic */
    .header-search.active-mobile-search {
        display: block !important; 
    }
    
    /* Obligatoire : l'en-tête parent doit être relatif pour que le absolute fonctionne bien */
    .site-header {
        position: relative;
    }
}

/* =========================================
   MASQUER L'ICÔNE MODALE (BUREAU)
   ========================================= */
@media (min-width: 769px) {
    #trigger-mobile-menu {
        display: none !important;
    }
}

/* =========================================
   SECTION NOUVEAUTÉS (Ombre & Conteneur)
   ========================================= */
.new-products-section {
    margin-top: 30px; /* Crée l'espace avec le bloc précédent */
    margin-bottom: 40px;
    background: #fff;
    /* On enlève le padding à droite pour que le carrousel touche le bord de l'écran */
    padding: 20px 0 20px 15px; 
    border-radius: 12px;
    /* Ombre bien visible dirigée vers le haut (le Y est négatif : -8px) */
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.12) !important; 
    position: relative;
    z-index: 10;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-right: 15px; /* On remet le padding droit uniquement pour l'en-tête */
}

/* =========================================
   CARROUSEL DE PRODUITS (Libéré)
   ========================================= */
.products-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 12px; /* Réduction légère de l'écart */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 15px;
    padding-right: 15px; /* Laisse l'espace final pour le dernier élément */
}

.products-carousel-track::-webkit-scrollbar {
    display: none;
}

/* Carte Produit (Bureau) */
.product-card {
    flex: 0 0 170px; /* Plus large sur bureau pour compenser la perte du bouton */
    max-width: 170px;
    scroll-snap-align: start;
    position: relative;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    background: #fff;
    /* Plus besoin de justify-content: space-between si le bouton est supprimé */
}
/* Ajoute la ligne "transition" à ta carte existante */
.product-card {
    /* ... ton code existant ... */
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* NOUVEAU : Animation au survol */
.product-card:hover {
    transform: translateY(-6px) !important; /* Soulève le produit */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important; /* Intensifie l'ombre */
    z-index: 2; /* S'assure que la carte passe au-dessus des autres lors du soulèvement */
}

/* =========================================
   ADAPTATION MOBILE STRICTE
   ========================================= */
@media (max-width: 768px) {
    .product-card {
        /* Affiche 2 produits entiers et laisse déborder le 3ème de ~10% */
        flex: 0 0 30%; 
        max-width: 30%;
    }
}

/* Image du produit */
.product-card .product-img-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Badge de pourcentage */
.discount-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: #e60000; /* Rouge promo */
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 10;
}

/* TITRE LIMITÉ À 1 LIGNE STRICTEMENT */
.product-title {
    font-size: 13px;
    color: #333;
    margin: 0 0 5px 0;
    white-space: nowrap; /* Interdit le passage à la ligne */
    overflow: hidden; /* Masque ce qui dépasse */
    text-overflow: ellipsis; /* Ajoute les "..." */
}

/* Prix */
.product-price {
    font-size: 14px;
    font-weight: bold;
    color: #111;
    margin-bottom: 10px;
}

.product-price del {
    font-size: 11px;
    color: #999;
    font-weight: normal;
    margin-right: 5px;
}

.product-price ins {
    text-decoration: none;
}

/* Redimensionnement des boutons WooCommerce natifs pour la carte */
.product-card .add_to_cart_button {
    display: block;
    width: 100%;
    text-align: center;
    background: #111;
    color: #fff;
    padding: 8px 0;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
}

/* =========================================
   ADAPTATION MOBILE
   ========================================= */
@media (max-width: 768px) {
    .product-card {
        flex: 0 0 140px; /* Légèrement plus petit sur mobile */
        max-width: 140px;
    }
}

/* =========================================
   BARRE DE LIENS RAPIDES
   ========================================= */
.top-quick-links-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 10px;
    padding: 10px 15px;
    background: #fff; /* À ajuster si tu veux que ça se fonde dans le fond de ta page */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.top-quick-links-track::-webkit-scrollbar {
    display: none;
}

/* Le design des "pilules" */
.quick-link-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f5f5f5; /* Gris clair par défaut */
    border-radius: 20px; /* Bords très arrondis */
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap; /* Interdit le retour à la ligne du texte */
    flex: 0 0 auto; /* Empêche la pilule de s'écraser */
    transition: background 0.2s ease, transform 0.2s ease;
}

/* Variante spécifique pour mettre WhatsApp en valeur */
.whatsapp-pill {
    background: #e8f5e9; /* Vert très clair */
    color: #2e7d32; /* Vert foncé WhatsApp */
    border: 1px solid #c8e6c9;
}

.whatsapp-pill svg {
    stroke: #2e7d32;
}

/* Animation légère au survol (Bureau) */
.quick-link-pill:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.whatsapp-pill:hover {
    background: #c8e6c9;
}

/* =========================================
   MASQUER LIENS RAPIDES (BUREAU)
   ========================================= */
@media (min-width: 769px) {
    .top-quick-links-track {
        display: none !important;
    }
}

/* =========================================
   FLÈCHES DE NAVIGATION (CARROUSEL NOUVEAUTÉS)
   ========================================= */

/* L'apparence de base des flèches */
.prod-nav {
    position: absolute;
    top: 50%; /* Centre verticalement */
    transform: translateY(-50%);
    background: #fff;
    color: #111;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Rend le bouton parfaitement rond */
    cursor: pointer;
    z-index: 20 !important; /* Force les flèches à rester au-dessus des images */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.3s, color 0.3s;
}

/* Changement de couleur quand la souris passe dessus */
.prod-nav:hover {
    background: #111;
    color: #fff;
}

/* Placement de la flèche gauche et de la flèche droite */
.prod-prev { left: 5px; }
.prod-next { right: 5px; }

/* =========================================
   MASQUER LES FLÈCHES SUR MOBILE
   ========================================= */
@media (max-width: 768px) {
    .prod-nav {
        display: none !important; /* Le client utilise son doigt, pas besoin de flèches */
    }
}

/* =========================================
   SECTION GRILLE DÉCOUVERTE (3 Colonnes x 2 Lignes)
   ========================================= */

/* Le conteneur principal avec l'ombre de séparation */
.featured-grid-section {
    margin-top: 40px; /* Crée l'espace avec la section précédente */
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.15) !important; /* Ombre forte vers le haut */
    position: relative;
    z-index: 10;
}

/* Configuration de la grille (Bureau) */
.featured-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 3 colonnes égales */
    gap: 15px !important; /* Espace entre les cases */
}

/* Le design d'une case individuelle */
.featured-item {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3; /* Format rectangulaire standard (paysage) */
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* L'image de fond */
.featured-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.5s ease;
}

/* Calque sombre par-dessus l'image pour lire le texte */
.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

/* Le texte du titre */
.featured-title {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    z-index: 2; /* Passe au-dessus du calque sombre */
    text-shadow: 0 1px 3px rgba(0,0,0,0.5); /* Ombre sur le texte pour la sécurité */
}

/* Animation au survol sur ordinateur */
.featured-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.featured-item:hover img {
    transform: scale(1.05); /* L'image grossit légèrement à l'intérieur de la case */
}

/* =========================================
   ADAPTATION MOBILE DE LA GRILLE
   ========================================= */
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Passe en 2 colonnes pour ne pas être illisible */
        gap: 10px !important;
    }
    
    .featured-grid-section {
        padding: 15px 10px;
    }

    .featured-item {
        aspect-ratio: 1 / 1; /* Sur mobile, on passe en format carré pour gagner de la place */
    }

    .featured-title {
        font-size: 14px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
}

/* =========================================
   FICHE PRODUIT : NETTOYAGE
   ========================================= */
.single-product .product_meta {
    display: none !important;
}

/* Aérer le titre et le prix */
.single-product .product_title {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

.single-product .price {
    font-size: 22px !important;
    color: #131313 !important; /* Ta couleur d'accentuation */
    font-weight: bold !important;
    margin-bottom: 20px !important;
}

/* =========================================
   DESIGN DU BADGE PROMO POURCENTAGE
   ========================================= */
.woocommerce span.onsale {
    position: absolute;
    top: 10px;
    left: 10px; /* On le force à gauche pour la visibilité */
    background-color: #e60000 !important; /* Rouge promo */
    color: #fff !important;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 9;
    min-width: unset;
    min-height: unset;
    line-height: 1;
}

/* =========================================
   BARRE FLOTTANTE MOBILE
   ========================================= */

/* Masquée sur Bureau et Tablette */
.mobile-sticky-bar {
    display: none !important;
}

@media (max-width: 768px) {
    /* Cache le bouton WooCommerce natif pour éviter un doublon visuel sur mobile */
    .single_add_to_cart_button {
        display: none !important; 
    }

    /* Le conteneur fixe */
    .mobile-sticky-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box !important; /* <- LA CORRECTION EST ICI */
        background: #fff;
        padding: 12px 15px;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
        z-index: 9999;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

    /* Bouton Commander */
    .sticky-btn-commander {
        flex: 1; /* Prend tout l'espace restant */
        background: #ff9900; /* Couleur d'action Xmarket */
        color: #fff;
        border: none;
        padding: 14px 0;
        border-radius: 8px;
        font-size: 16px;
        font-weight: bold;
        text-align: center;
        cursor: pointer;
        text-transform: uppercase;
    }

    /* Bouton Accueil */
    .sticky-btn-home {
        background: #f5f5f5;
        border: 1px solid #eaeaea;
        padding: 12px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #111;
        text-decoration: none;
    }
}
/* =========================================
   BLOC UNIFIÉ DESCRIPTIONS (COURTE + LONGUE)
   ========================================= */
.xmarket-unified-desc-container {
    background: #fff;
    padding: 20px 15px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.xmarket-desc-title {
    font-size: 18px;
    font-weight: bold;
    color: #111;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff9900;
    display: inline-block;
    padding-bottom: 5px;
}

.xmarket-short-desc {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

.xmarket-short-desc p {
    margin-bottom: 10px;
}

/* La description longue qui s'affiche au clic */
.xmarket-long-desc {
    font-size: 14px;
    color: #333;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    line-height: 1.7;
}

/* Images et iframes responsives dans la description longue */
.xmarket-long-desc img, 
.xmarket-long-desc iframe {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Le bouton d'action */
.btn-toggle-desc {
    display: block;
    width: 100%;
    background: #f5f5f5;
    color: #0d0d0e;
    border: 1px solid #0a9c9c;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.btn-toggle-desc:hover {
    background: #e0e0e0;
}
/* =========================================
   MASQUER LES ZONES DE WIDGETS PAR DÉFAUT
   ========================================= */
.widget-area, 
#secondary, 
.footer-widgets {
    display: none !important;
}
/* =========================================
   AJUSTEMENTS FINAUX DE LA FICHE PRODUIT
   ========================================= */

/* 1. Mettre de l'espace entre l'entête et le haut du produit */
.single-product div.product {
    margin-top: 40px !important;
}

/* 2. Retirer le soulignement inesthétique du prix en promotion */
.single-product .price ins {
    text-decoration: none !important;
}

/* 3. Supprimer le compteur de quantité de l'ancien bouton */
.single-product form.cart .quantity {
    display: none !important;
}

/* 4. Tenter de masquer le bloc "Poser une question" (Classes courantes) */
.single-product .ask-question,
.single-product .contact-for-price,
.single-product [class*="question"],
.single-product a[href*="question"] {
    display: none !important;
}
/* =========================================
   SUPPRIMER LE BOUTON WCFM "POSER UNE QUESTION"
   ========================================= */
a.wcfm_catalog_enquiry {
    display: none !important;
}
/* =========================================
   STYLE DU BLOC SUPPORT CLIENT
   ========================================= */
.xmarket-support-call-block {
    background: #faebd5; /* Vert très clair de réassurance */
    border: 3px solid #c8e6c9;
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
    margin-bottom: -10px; /* Réduit l'espace avec le bloc description en dessous */
    font-size: 14px;
    color: #333;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.support-call-link {
    color: #2e7d32; /* Vert bouton appel */
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.support-call-link:hover {
    text-decoration: underline;
}
/* =========================================
   FICHE PRODUIT : SUPPRESSION TITRE HAUT & ESPACEMENT
   ========================================= */

/* 1. Masquer le titre du produit dans le bloc résumé en haut */
.single-product .product_title {
    display: none !important;
}

/* 2. Si le titre apparaît aussi dans le fil d'Ariane (Breadcrumb) en haut, on le masque ici */
.single-product .woocommerce-breadcrumb {
    display: none !important;
}

/* 3. Forcer l'espace en haut pour éviter que l'entête fixe ne colle ou ne cache le produit */
.single-product #primary, 
.single-product div.product {
    padding-top: 20px !important; /* Augmente cette valeur (ex: 110px) si ton entête est plus haut */
    margin-top: 0 !important;
}