/**
 * FDLM - Styles pour les onglets produits avec slider
 * Shortcode: [fdlm_product_tabs]
 * Couleurs: #142451 (bleu), #F0B9F0 (rose), #F2E2D0 (crème)
 */

/* ============================================
   BOUTON STYLE MÉMÉE (réutilisable)
   À coller dans le champ "Classe CSS" d'un bouton Elementor : fdlm-btn-memee
   Charte : fond bleu #142451 → rose #F0B9F0 au survol.
   !important pour passer au-dessus des styles par défaut du widget Elementor.
   ============================================ */
.fdlm-btn-memee,
.fdlm-btn-memee.elementor-button,
.fdlm-btn-memee .elementor-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 28px !important;
    background: #142451 !important;
    color: #fff !important;
    border: 2px solid #142451 !important;
    border-radius: 10px !important;
    font-family: 'hoss-sharp', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
}
.fdlm-btn-memee:hover,
.fdlm-btn-memee.elementor-button:hover,
.fdlm-btn-memee .elementor-button:hover,
.fdlm-btn-memee:focus,
.fdlm-btn-memee.elementor-button:focus {
    background: #F0B9F0 !important;
    color: #142451 !important;
    border-color: #F0B9F0 !important;
    transform: translateY(-2px) !important;
}
/* Les enfants (texte/icône) héritent de la couleur du bouton */
.fdlm-btn-memee .elementor-button-text,
.fdlm-btn-memee .elementor-button-icon,
.fdlm-btn-memee .elementor-button-icon svg {
    color: inherit !important;
    fill: currentColor !important;
}

/* Variante secondaire (contour) : fdlm-btn-memee fdlm-btn-memee-outline */
.fdlm-btn-memee-outline,
.fdlm-btn-memee-outline.elementor-button,
.fdlm-btn-memee-outline .elementor-button {
    background: transparent !important;
    color: #142451 !important;
    border-color: #142451 !important;
}
.fdlm-btn-memee-outline:hover,
.fdlm-btn-memee-outline.elementor-button:hover,
.fdlm-btn-memee-outline .elementor-button:hover {
    background: #142451 !important;
    color: #fff !important;
    border-color: #142451 !important;
}

/* ============================================
   CONTENEUR PRINCIPAL
   ============================================ */

.fdlm-product-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    overflow: hidden;
}

/* ============================================
   NAVIGATION DES ONGLETS
   ============================================ */

.fdlm-tabs-nav {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 40px;
    
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #FFFFFF rgba(20, 36, 81, 0.1);
    padding-bottom: 10px;
}

/* Scrollbar stylisée pour Webkit (Chrome, Safari, Edge) */
.fdlm-tabs-nav::-webkit-scrollbar {
    height: 6px;
}

.fdlm-tabs-nav::-webkit-scrollbar-track {
    background: rgba(20, 36, 81, 0.1);
    border-radius: 3px;
}

.fdlm-tabs-nav::-webkit-scrollbar-thumb {
    background: #142451;
    border-radius: 3px;
}

.fdlm-tabs-nav::-webkit-scrollbar-thumb:hover {
    background: white;
}

.fdlm-tab-btn {
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: #142451;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Decoy';
    flex-shrink: 0;
}

.fdlm-tab-btn::after {
    content: none;
}

/* 26/10 : texte blanc illisible sur la barre beige (contraste 1,5) → texte
   bleu marine ; onglet actif en gras souligné, survol avec un fond clair. */
.fdlm-tab-btn:hover {
    color: #142451!important;
    background-color: rgba(255, 255, 255, 0.45)!important;
}

.fdlm-tab-btn.active {
    color: #142451!important;
    font-weight: 700;
    box-shadow: inset 0 -3px 0 #142451;
}

/* Séparateur entre onglets (sauf le premier) */
.fdlm-tab-btn:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: white;
}

/* 28/10 : le style des boutons du thème arrondissait les angles (3 px), ce qui
   courbait le soulignement de l'onglet actif → angles droits. */
.fdlm-tab-btn {
    border-radius: 0 !important;
}

/* 28/10 sur PC : les 9 onglets débordaient (barre de défilement blanche,
   « Autres fromages » coupé). Tout tient sur une ligne centrée, sans barre de
   défilement ; un filet marine sert de base au soulignement de l'onglet actif.
   S'il manque de place (1025-1200 px), les onglets passent à la ligne, centrés. */
@media (min-width: 1025px) {
    .fdlm-product-tabs .fdlm-tabs-nav {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 4px;
        overflow: visible;
        padding-bottom: 0;
        scrollbar-width: none;
        border-bottom: 2px solid rgba(20, 36, 81, 0.15);
    }

    .fdlm-product-tabs .fdlm-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .fdlm-product-tabs .fdlm-tab-btn {
        font-size: 17px;
        padding: 12px 14px;
    }

    .fdlm-product-tabs .fdlm-tab-btn.active {
        box-shadow: 0 2px 0 #142451;
    }
}

/* ============================================
   CONTENU DES ONGLETS
   ============================================ */

.fdlm-tabs-content {
    position: relative;
}

.fdlm-tab-panel {
    display: none;
    animation: fdlm-fadeIn 0.4s ease;
}

.fdlm-tab-panel.active {
    display: block;
}

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

/* ============================================
   SLIDER WRAPPER
   ============================================ */

.fdlm-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.fdlm-slider-track {
    flex: 1;
    overflow: hidden;
    padding-top: 30px;
    padding-left: 25px;
    margin-left: -25px;
}

.fdlm-slider-inner {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
}

/* ============================================
   FLECHES DE NAVIGATION
   ============================================ */

.fdlm-slider-arrow {
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.fdlm-slider-arrow:hover {
    opacity: 0.7;
    background-color: transparent;
}
/* Neutralise le rose du thème Hello au survol des boutons SANS imposer de
   fond (26/10) : en !important, cette règle annulait le survol prévu de tous
   les boutons du site (ex. croix de fermeture bleu marine sur bleu marine,
   devenue invisible). Chaque bouton garde désormais son propre survol. */
[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
    background-color: transparent;
    text-decoration: none;
}
.fdlm-slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.fdlm-slider-arrow:disabled:hover {
    opacity: 0.3;
}

.fdlm-slider-arrow svg {
    width: 40px;
    height: 40px;
    stroke: #142451;
    transition: all 0.3s ease;
}

/* Icônes flèches personnalisées */
.fdlm-arrow-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Flèche gauche - retournée horizontalement */
.fdlm-arrow-icon-left {
    transform: scaleX(-1);
}

.fdlm-slider-arrow:hover .fdlm-arrow-icon {
    transform: scale(1.1);
}

.fdlm-slider-arrow:hover .fdlm-arrow-icon-left {
    transform: scaleX(-1) scale(1.1);
}

/* ============================================
   CARTE PRODUIT SLIDER - NOUVEAU DESIGN
   ============================================ */

.fdlm-slider-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 280px;
    background: transparent;
    overflow: visible;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.fdlm-slider-card:hover {
    transform: none;
}

/* Image */
.fdlm-slider-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: visible;
}

.fdlm-slider-card-image a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fdlm-slider-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Zoom par défaut - seulement si pas dans le wrapper swap */
.fdlm-slider-card:hover .fdlm-slider-card-image img:not(.fdlm-primary-image):not(.fdlm-secondary-image) {
    transform: scale(1.05);
}

/* ============================================
   HOVER SWAP - Slider
   ============================================ */

.fdlm-slider-card-image .fdlm-image-swap-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.fdlm-slider-card-image .fdlm-image-swap-wrapper .fdlm-primary-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fdlm-slider-card-image .fdlm-image-swap-wrapper .fdlm-secondary-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Au hover : afficher la seconde image */
.fdlm-slider-card:hover .fdlm-image-swap-wrapper .fdlm-secondary-image {
    opacity: 1;
}

/* Zoom sur les deux images au hover */
.fdlm-slider-card:hover .fdlm-image-swap-wrapper .fdlm-primary-image,
.fdlm-slider-card:hover .fdlm-image-swap-wrapper .fdlm-secondary-image {
    transform: scale(1.05);
}

/* Badges / Étiquettes - En haut à gauche avec débordement */
.fdlm-slider-badges {
    position: absolute;
    top: -19px;
    left: -25px;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 10;
}

.fdlm-badge-icon {
    width: 55px;
    height: auto;
    max-width: 55px;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    transition: transform 0.2s ease;
    display: block;
    margin-bottom: -18px;
}

.fdlm-badge-icon:last-child {
    margin-bottom: 0;
}

/* Logo « bio » (Logo-AB) : PNG rectangulaire dont le contenu touche les bords,
   contrairement aux pastilles rondes (bord transparent).
   Les badges s'empilent avec un chevauchement vertical de -18px, pensé pour des
   pastilles rondes : le badge suivant remonte et recouvre le bas du précédent.
   Sur le logo bio, ce bas recouvert = la ligne « BIOLOGIQUE » → texte coupé dès
   qu'une autre étiquette le suit dans la pile.
   Correctif : on le sort du chevauchement (marges positives) ET on le force
   AU-DESSUS de ses voisins (position + z-index) pour qu'aucun badge ne le couvre.
   La règle cible AUSSI l'image par son src, pour s'appliquer même si le HTML
   servi n'a pas (encore) la classe --logo. */
.fdlm-badge-icon--logo,
.fdlm-badge-icon[src*="Logo-AB"] {
    margin-top: 6px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.fdlm-badge-icon:hover {
    transform: scale(1.1);
}

/* Wishlist - Bouton avec contour rouge */
.fdlm-slider-wishlist {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 5;
}

.fdlm-slider-wishlist button,
.fdlm-slider-wishlist .yith-wcwl-add-to-wishlist a,
.fdlm-slider-wishlist .yith-wcwl-add-to-wishlist-button,
.fdlm-slider-wishlist .tinvwl_add_to_wishlist_button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #E53935;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.2);
    transition: all 0.25s ease;
    text-decoration: none;
}

.fdlm-slider-wishlist button:hover,
.fdlm-slider-wishlist .yith-wcwl-add-to-wishlist-button:hover {
    background: #E53935;
    transform: scale(1.1);
    border-color: #E53935;
}

/* Masquer le SVG YITH, afficher l'icône custom */
.fdlm-slider-wishlist .yith-wcwl-add-to-wishlist-button svg {
    display: none !important;
}

.fdlm-slider-wishlist .yith-wcwl-add-to-wishlist-button::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    background-image: url('../../../uploads/2025/11/boutique-de-la-memee-Favoris.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.25s ease;
}

.fdlm-slider-wishlist .yith-wcwl-add-to-wishlist-button:hover::before {
    filter: brightness(0) invert(1);
}

/* Fallback SVG natif (si pas YITH) */
.fdlm-slider-wishlist svg {
    width: 22px;
    height: 22px;
    stroke: #E53935;
    fill: none;
    transition: all 0.25s ease;
}

.fdlm-slider-wishlist button:hover svg {
    stroke: #fff;
    fill: #fff;
}

/* Masquer le label texte YITH */
.fdlm-slider-wishlist .yith-wcwl-add-to-wishlist-button__label {
    display: none !important;
}

/* YITH nouveau markup (block) */
.fdlm-slider-wishlist .yith-add-to-wishlist-button-block {
    margin: 0 !important;
    padding: 0 !important;
}

/* Coeur YITH rempli quand ajouté → fond rouge, coeur blanc */
.fdlm-slider-wishlist .yith-wcwl-add-to-wishlist-button--added {
    background: #E53935 !important;
    border-color: #E53935 !important;
}

.fdlm-slider-wishlist .yith-wcwl-add-to-wishlist-button--added::before {
    filter: brightness(0) invert(1);
}

/* Icône coeur personnalisée (fallback) */
.fdlm-slider-wishlist .fdlm-heart-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.fdlm-slider-wishlist button:hover .fdlm-heart-icon {
    transform: scale(1.1);
}

/* ============================================
   INFOS PRODUIT
   ============================================ */

.fdlm-slider-card-info {
    padding: 18px 18px 10px;
}

.fdlm-slider-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.fdlm-slider-title a {
    color: #142451;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: "Decoy";
}



.fdlm-slider-desc {
    margin: 0;
    font-size: 13px;
    color: #142451;
    line-height: 1.4;
}

/* ============================================
   ZONE D'ACTION - NOUVEAU DESIGN MAQUETTE
   Layout: Gauche (2 lignes) + Droite (prix)
   ============================================ */

.fdlm-slider-card-actions {
    padding: 0 16px 16px;
    margin-top: auto;
    background: transparent;
}

/* Wrapper principal : gauche + droite */
.fdlm-slider-actions-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* Colonne gauche : variation/quantité + bouton */
.fdlm-slider-actions-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Ligne variation + quantité */
.fdlm-slider-variation-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
}

/* Select variation - Bordure bleu foncé sans arrondi */
.fdlm-slider-variation-select {
    flex: 1;
    padding: 8px 10px;
    height: 40px;
    border: 1px solid #142451;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    color: #142451;
    background: transparent;
    cursor: pointer;
    min-width: 0;
    transition: all 0.2s ease;
}

.fdlm-slider-variation-select:focus {
    outline: none;
    background: transparent;
}

/* ⭐ GRAMMAGE + QUANTITÉ SUR UNE SEULE LIGNE (disposition d'origine conservée).
   Le select était `flex: 1; min-width: 0` à côté d'une quantité de largeur FIXE
   (~80 px) : sur une carte étroite il ne lui restait que ~45 px et le libellé
   était rogné (« Gr… »). Il faut ~85 px pour afficher « Grammage » + sa flèche.
   On libère donc ~45 px en compactant les trois éléments de la zone d'achat,
   sans changer la mise en page. Le select est prioritaire : c'est la quantité
   qui cède si la place venait à manquer (flex-shrink), jamais le libellé. */
.fdlm-slider-variation-row {
    gap: 6px;
}

.fdlm-slider-variation-select {
    flex: 1 1 auto;
    min-width: 88px;          /* garantit l'affichage de « Grammage » + flèche */
    padding: 8px 6px;         /* was 8px 10px */
    font-size: 11.5px;
    text-overflow: ellipsis;
}

/* Quantité compactée : c'est elle qui absorbe le manque de place, pas le
   libellé du grammage.
   :not(.fdlm-slider-simple-row) — les produits SANS variation utilisent la
   même classe .fdlm-slider-variation-row pour leur ligne quantité. Sans cette
   exclusion, ces règles (spécificité 0,2,0) écrasaient le `flex: 1` de
   .fdlm-slider-qty-full (0,1,0) : la quantité ne remplissait plus la largeur
   et laissait un vide disgracieux avant le bloc prix. */
.fdlm-slider-variation-row:not(.fdlm-slider-simple-row) .fdlm-slider-qty {
    flex: 0 1 auto;
    min-width: 0;
}

.fdlm-slider-variation-row:not(.fdlm-slider-simple-row) .fdlm-slider-qty-btn {
    width: 20px;              /* was 26px */
}

.fdlm-slider-variation-row:not(.fdlm-slider-simple-row) .fdlm-slider-qty-input {
    width: 20px;              /* was 24px */
}

/* L'option placeholder est volontairement non sélectionnable : on la grise
   pour qu'elle se lise comme une invite et non comme un choix possible. */
.fdlm-slider-variation-select option[value=""] {
    color: #8a92a6;
}

/* Signalement quand le client clique « Au panier » sans avoir choisi de
   format : bordure rose Mémée + léger pulse, sans bloquer la navigation. */
.fdlm-slider-variation-select.fdlm-variation-missing {
    border-color: #E53935;
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.15);
    animation: fdlm-variation-shake 0.35s ease;
}

@keyframes fdlm-variation-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-3px); }
    75%      { transform: translateX(3px); }
}

/* Mention « dès » devant le prix mini d'un produit à variations. */
.fdlm-price-from {
    font-size: 0.6em;
    font-weight: 500;
    color: #5a6275;
    text-transform: lowercase;
}

/* Poids pour produit simple */
.fdlm-slider-weight {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #142451;
    padding: 10px 12px;
    border: 2px solid #142451;
    border-radius: 0;
    background: transparent;
}

/* Quantité - Plus compact pour laisser place aux variations */
.fdlm-slider-qty {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid #142451;
    border-radius: 0;
    overflow: hidden;
    color: #142451;
    flex-shrink: 0;
}

.fdlm-slider-qty-btn {
    width: 26px;
    height: 36px;
    border: none;
    background: transparent;
    color: #142451;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.fdlm-slider-qty input[type=number] {
    border: 0px !important;
}
.fdlm-slider-qty-btn:hover {
    background: rgba(20, 36, 81, 0.1);
}

.fdlm-slider-qty-input {
    width: 24px;
    height: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #142451;
    -moz-appearance: textfield;
    padding: 0!important;
}

.fdlm-slider-qty-input::-webkit-outer-spin-button,
.fdlm-slider-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Quantité pleine largeur (produit simple) */
.fdlm-slider-qty-full {
    flex: 1;
    justify-content: center;
}

.fdlm-slider-qty-full .fdlm-slider-qty-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.fdlm-slider-qty-full .fdlm-slider-qty-input {
    width: 50px;
    height: 40px;
    font-size: 16px;
}

/* Ligne bouton */
.fdlm-slider-buy-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    margin-top: 5px;
}

/* Bouton ajouter au panier - Style "Au panier!" sans arrondi */
.fdlm-slider-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 16px;
    border: none;
    border-radius: 0;
    background: #142451;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
}

.fdlm-slider-add-btn:hover {
    background: #C67969!important;
    color: white!important;
}

.fdlm-slider-add-btn svg {
    width: 40px;
    height: 34px;
    flex-shrink: 0;
    position: relative;
    top: -5px;
}

.fdlm-slider-add-btn.adding {
    background: #888;
    pointer-events: none;
}

.fdlm-slider-add-btn.added {
    background: #28a745;
}

/* Prix - Colonne droite (hauteur totale des 2 lignes) */
.fdlm-slider-price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    /* Compacté (was 12px 14px / min-width 85px) : rend ~20 px à la colonne de
       gauche pour que le sélecteur de grammage ne soit plus rogné. */
    padding: 12px 10px;
    min-width: 70px;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid #1e3a6d;
    margin-left: 5px;
}

.fdlm-price-old {
    font-size: 18px;
    font-weight: 700;
    color: #142451;
    text-decoration: line-through;
    line-height: 1.2;
    margin-bottom: 2px;
}

.fdlm-price-current {
    font-size: 18px;
    font-weight: 700;
    color: #142451;
    line-height: 1.2;
}

/* Prix au kilo (ou "à l'unité") sous le prix principal — discret */
.fdlm-price-kilo {
    font-size: 11px;
    font-weight: 500;
    color: #777;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
}
.fdlm-price-unit {
    font-style: italic;
}

.fdlm-price-old + .fdlm-price-current,
.fdlm-price-old + .fdlm-price-current .fdlm-price-ttc {
    color: #E53935;
    font-weight: 700;
}

.fdlm-price-current del {
    font-size: 10px;
    color: #142451;
    opacity: 0.6;
    font-weight: 400;
    display: block;
    text-decoration: line-through;
}

.fdlm-price-current ins {
    text-decoration: none;
}

/* TTC label */
.fdlm-price-ttc {
    font-size: 9px;
    font-weight: 500;
    color: #142451;
    text-transform: uppercase;
    vertical-align: super;
    margin-left: 2px;
}

/* Rupture de stock */
.fdlm-slider-outofstock {
    text-align: center;
    padding: 16px;
    background: rgba(20, 36, 81, 0.03);
    border-radius: 10px;
}

.fdlm-slider-outofstock span {
    display: block;
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
}

.fdlm-slider-view-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #142451;
    border-radius: 10px;
    color: #142451;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fdlm-slider-view-btn:hover {
    background: #142451;
    color: #fff;
}

/* ============================================
   FOOTER ONGLET (BOUTON DECOUVRIR)
   ============================================ */

.fdlm-tab-footer {
    text-align: center;
    margin-top: 40px;
}

.fdlm-discover-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #FDF0E3;
    color: #142451;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fdlm-discover-btn:hover {
    background: #142451;
    color: #fff;
}

/* Flèche personnalisée dans le bouton découvrir */
.fdlm-discover-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.fdlm-discover-btn:hover .fdlm-discover-arrow {
    transform: translateX(4px);
    filter: brightness(0) invert(1);
}

/* ============================================
   BESTSELLERS SLIDER (sans onglets)
   ============================================ */

.fdlm-bestsellers-slider {
    padding-top: 20px;
}

.fdlm-bestsellers-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #142451;
    margin: 0 0 30px;
    font-family: 'Decoy', sans-serif;
}

/* ============================================
   GRILLE BOUTIQUE (page archive/shop)
   ============================================ */

/* Reset du style WooCommerce par défaut */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px 0;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* Carte boutique - utilise le même style que slider */
.fdlm-shop-card {
    list-style: none;
}

.fdlm-shop-card .fdlm-slider-card {
    height: 100%;
    min-width: unset;
    flex: none;
}

/* Responsive grille boutique */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

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

@media (max-width: 1024px) {
    .fdlm-slider-card {
        flex: 0 0 calc(50% - 12px);
        min-width: 260px;
    }

    .fdlm-tabs-nav {
        gap: 0;
    }

    .fdlm-tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .fdlm-product-tabs {
        padding: 30px 15px;
    }

    .fdlm-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding-bottom: 10px;
    }

    .fdlm-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .fdlm-tab-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .fdlm-tab-btn:not(:first-child)::before {
        display: none;
    }

    .fdlm-slider-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .fdlm-slider-arrow {
        display: none;
    }

    .fdlm-slider-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 10px;
    }

    .fdlm-slider-inner::-webkit-scrollbar {
        display: none;
    }

    .fdlm-slider-card {
        flex: 0 0 85%;
        min-width: 260px;
        scroll-snap-align: start;
    }

    .fdlm-slider-actions-wrapper {
        flex-direction: column;
    }

    .fdlm-slider-variation-row {
        flex-wrap: wrap;
        padding: 0;
        gap: 6px;
    }

    .fdlm-slider-variation-select {
        /* Mobile : la carte est large (85 % de l'écran), la place ne manque
           pas — on garde le select et la quantité sur une ligne, avec le
           même plancher qu'en desktop pour ne jamais rogner « Grammage ». */
        flex: 1 1 auto;
        min-width: 88px;
        padding: 8px 10px;
    }

    .fdlm-slider-qty {
        min-width: auto;
    }

    .fdlm-slider-qty-btn {
        width: 32px;
        height: 36px;
    }

    .fdlm-slider-qty-input {
        width: 36px;
        height: 36px;
    }

    .fdlm-slider-buy-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        padding: 0;
    }

    .fdlm-slider-price {
        width: 100%;
        align-items: center;
        padding: 10px;
        background: transparent!important;
    }

    .fdlm-slider-add-btn {
        padding: 4px 16px;
        font-size: 14px;
    }

    .fdlm-price-current {
        font-size: 18px;
    }

    .fdlm-discover-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .fdlm-slider-card {
        flex: 0 0 90%;
    }

    .fdlm-slider-title {
        font-size: 15px;
    }

    .fdlm-price-current {
        font-size: 16px;
    }

    .fdlm-slider-variation-row {
        padding: 8px 10px;
    }

    .fdlm-slider-add-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ============================================
   NO PRODUCTS MESSAGE
   ============================================ */

.fdlm-no-products {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

/* ============================================
   CARTES PRODUIT — retours 26/10
   - image alignée sur le contenu : titre, description et zone d'achat
     reprennent exactement les bords de l'image (retrait de 16-18 px supprimé) ;
   - bords arrondis (image, champs, prix, bouton) ;
   - badges : 52 px, 6 px d'écart, posés dans l'image (avant : 55-87 px empilés
     avec chevauchement et débordant de 25 px → logo AB coupé en bas) ;
   - zone d'achat aérée, en 3 lignes : grammage (pleine largeur) / quantité +
     prix / « Au panier ! » (pleine largeur) ; produit simple : quantité + prix
     puis bouton ;
   - grilles produits : colonnes d'au moins 260 px, nombre de colonnes selon la
     largeur disponible (avant : 4 colonnes imposées sur certaines pages).
   ============================================ */
.woocommerce ul.products {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
}

.fdlm-slider-card .fdlm-slider-card-info {
    padding: 16px 0 10px !important;
}
.fdlm-slider-card .fdlm-slider-card-actions {
    padding: 0 0 4px !important;
}
.fdlm-slider-card .fdlm-slider-card-image > a,
.fdlm-slider-card .fdlm-slider-image-link {
    border-radius: 14px;
    overflow: hidden;
}

.fdlm-slider-card .fdlm-slider-badges {
    top: 10px !important;
    left: 10px !important;
    gap: 6px !important;
    align-items: flex-start;
}
.fdlm-slider-card .fdlm-badge-icon,
.fdlm-slider-card .fdlm-badge-icon--logo,
.fdlm-slider-card .fdlm-badge-icon[src*="Logo-AB"] {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    margin: 0 !important;
    object-fit: contain;
}
.fdlm-slider-card .fdlm-badge-icon--logo,
.fdlm-slider-card .fdlm-badge-icon[src*="Logo-AB"] {
    background: #fff;
    border-radius: 8px;
    padding: 3px;
    box-sizing: border-box;
}

.fdlm-slider-card .fdlm-slider-actions-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}
.fdlm-slider-card .fdlm-slider-actions-left,
.fdlm-slider-card .fdlm-slider-variation-row {
    display: contents !important;
}
.fdlm-slider-card .fdlm-slider-variation-select {
    order: 1;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
}
.fdlm-slider-card .fdlm-slider-qty {
    order: 2;
    grid-column: 1;
    justify-content: space-between;
    min-height: 38px;
    height: 38px;
    border-radius: 10px;
}
.fdlm-slider-card .fdlm-slider-qty .fdlm-slider-qty-btn {
    width: 38px !important;
    height: auto !important;
    align-self: stretch;
    font-size: 18px;
}
.fdlm-slider-card .fdlm-slider-qty .fdlm-slider-qty-input {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 32px;
    height: auto !important;
    font-size: 16px;
}
.fdlm-slider-card .fdlm-slider-price {
    order: 3;
    grid-column: 2;
    min-width: 96px;
    margin: 0;
    padding: 2px 10px;
    border-radius: 10px;
}
.fdlm-slider-card .fdlm-slider-buy-row {
    order: 4;
    grid-column: 1 / -1;
    margin: 0;
}
.fdlm-slider-card .fdlm-slider-add-btn {
    min-height: 42px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .fdlm-slider-card .fdlm-badge-icon,
    .fdlm-slider-card .fdlm-badge-icon--logo,
    .fdlm-slider-card .fdlm-badge-icon[src*="Logo-AB"] {
        width: 44px !important;
        height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
    }
}

/* États (26/10) : la règle globale « button:hover / :focus » donnait au texte
   la couleur crème sur fond clair (1,2 à 1,5). */
.fdlm-slider-card .fdlm-slider-qty .fdlm-slider-qty-btn:hover,
.fdlm-slider-card .fdlm-slider-qty .fdlm-slider-qty-btn:focus,
.fdlm-slider-card .fdlm-slider-qty .fdlm-slider-qty-btn:active {
    background: rgba(20, 36, 81, 0.1);
    color: #142451;
}
.fdlm-slider-card .fdlm-slider-qty .fdlm-slider-qty-btn:focus-visible {
    outline: 2px solid #142451;
    outline-offset: -2px;
}
.fdlm-slider-card .fdlm-slider-add-btn:focus:not(:focus-visible):not(:hover) {
    background: #142451 !important;
    color: #fff !important;
}

/* 27/10 (demande cliente) : cartes produit à bords CARRÉS (image, grammage,
   quantité, prix, bouton) et rectangle prix plus aéré. */
.fdlm-slider-card .fdlm-slider-card-image > a,
.fdlm-slider-card .fdlm-slider-image-link,
.fdlm-slider-card .fdlm-slider-variation-select,
.fdlm-slider-card .fdlm-slider-qty,
.fdlm-slider-card .fdlm-slider-price,
.fdlm-slider-card .fdlm-slider-add-btn {
    border-radius: 0 !important;
}
.fdlm-slider-card .fdlm-slider-price {
    padding: 4px 16px;
    min-width: 108px;
}
.fdlm-slider-card .fdlm-slider-price .fdlm-price-current,
.fdlm-slider-card .fdlm-slider-price .fdlm-price-kilo,
.fdlm-slider-card .fdlm-slider-price .fdlm-price-old {
    line-height: 1.15;
}
/* La quantité prend la hauteur de la ligne (même hauteur que le prix). */
.fdlm-slider-card .fdlm-slider-qty {
    height: auto;
    min-height: 38px;
    align-self: stretch;
}

/* 27/10 (demande cliente) : rectangle prix sur deux lignes, à droite de la
   quantité ET du bouton « Au panier » (le bouton passe sous la quantité).
   Produit à variations : grammage pleine largeur au-dessus. Écrans très
   étroits (≤ 360 px) : bouton de nouveau pleine largeur sous le prix. */
.fdlm-slider-card .fdlm-slider-price {
    grid-column: 2;
    grid-row: span 2;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
}
.fdlm-slider-card .fdlm-slider-buy-row {
    grid-column: 1;
}
.fdlm-slider-card .fdlm-slider-qty {
    height: 38px;
    min-height: 38px;
    align-self: start;
}
@media (max-width: 360px) {
    .fdlm-slider-card .fdlm-slider-price {
        grid-row: auto;
    }
    .fdlm-slider-card .fdlm-slider-qty {
        height: auto;
        align-self: stretch;
    }
    .fdlm-slider-card .fdlm-slider-buy-row {
        grid-column: 1 / -1;
    }
}
