/**
 * FDLM - Styles des cartes produit personnalisées
 * Couleurs: #142451 (bleu), #F0B9F0 (rose), #F2E2D0 (crème)
 */

/* ============================================
   RESET WooCommerce par défaut
   ============================================ */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    margin: 0;
    padding: 0;
    float: none;
    width: 100%;
    clear: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce ul.products li.product .woocommerce-loop-category__link {
    display: block;
}

/* Masquer les éléments WooCommerce par défaut */
.woocommerce ul.products li.product .onsale,
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .button.add_to_cart_button,
.woocommerce ul.products li.product .added_to_cart {
    display: none !important;
}

/* ============================================
   GRILLE DES PRODUITS
   ============================================ */

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================
   CARTE PRODUIT
   ============================================ */

.fdlm-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(20, 36, 81, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.fdlm-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(20, 36, 81, 0.15);
}

.fdlm-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ============================================
   ZONE IMAGE
   ============================================ */

.fdlm-card-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #F2E2D0;
}

.fdlm-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.fdlm-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fdlm-product-card:hover .fdlm-card-image {
    transform: scale(1.05);
}

/* ============================================
   HOVER SWAP - Seconde image au survol
   ============================================ */

.fdlm-image-swap-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fdlm-image-swap-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Image principale */
.fdlm-primary-image {
    position: relative;
    z-index: 1;
}

/* Image secondaire (hover) */
.fdlm-secondary-image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
}

/* Au hover : afficher la seconde image */
.fdlm-product-image-wrapper:hover .fdlm-secondary-image,
.woocommerce ul.products li.product:hover .fdlm-secondary-image,
.product:hover .fdlm-secondary-image {
    opacity: 1;
}

/* Léger zoom sur les deux images au hover */
.fdlm-product-image-wrapper:hover .fdlm-image-swap-wrapper img,
.woocommerce ul.products li.product:hover .fdlm-image-swap-wrapper img,
.product:hover .fdlm-image-swap-wrapper img {
    transform: scale(1.05);
}

/* Pas de transition si pas de seconde image */
.fdlm-image-swap-wrapper:not(.has-secondary) .fdlm-primary-image {
    transition: transform 0.4s ease;
}

/* ============================================
   BADGES
   ============================================ */

.fdlm-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

.fdlm-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    color: #fff;
    background: #142451;
    white-space: nowrap;
}

.fdlm-badge-sale {
    background: #E53935;
}

.fdlm-badge-outofstock {
    background: #9E9E9E;
}

.fdlm-badge-nouveau {
    background: #F0B9F0;
    color: #142451;
}

.fdlm-badge-bestseller {
    background: #142451;
}

.fdlm-badge-bio {
    background: #4CAF50;
}

/* ============================================
   BOUTON WISHLIST
   ============================================ */

.fdlm-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}

.fdlm-wishlist-btn button,
.fdlm-wishlist-btn .yith-wcwl-add-to-wishlist,
.fdlm-wishlist-btn .yith-wcwl-add-to-wishlist-button,
.fdlm-wishlist-btn .tinvwl_add_to_wishlist_button {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 2px solid #E53935;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.15);
    text-decoration: none;
}

.fdlm-wishlist-btn button:hover,
.fdlm-wishlist-btn .yith-wcwl-add-to-wishlist:hover,
.fdlm-wishlist-btn .yith-wcwl-add-to-wishlist-button:hover,
.fdlm-wishlist-btn .tinvwl_add_to_wishlist_button:hover {
    background: #E53935;
    transform: scale(1.1);
    border-color: #E53935;
}

.fdlm-wishlist-btn svg {
    width: 18px;
    height: 18px;
    stroke: #E53935;
    fill: none;
}

.fdlm-wishlist-placeholder:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   CONTENU DE LA CARTE
   ============================================ */

.fdlm-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Titre */
.fdlm-card-title-link {
    text-decoration: none;
    color: inherit;
}

.fdlm-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #142451;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.fdlm-card-title-link:hover .fdlm-card-title {
    color: #F0B9F0;
}

/* Prix */
.fdlm-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #142451;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fdlm-price-strikethrough {
    font-size: 13px;
    font-weight: 400;
    color: #9E9E9E;
    text-decoration: line-through;
}

.fdlm-price-sale {
    color: #E53935;
}

.fdlm-price-range {
    font-size: 14px;
}

/* Poids */
.fdlm-card-weight {
    font-size: 12px;
    color: #666;
}

.fdlm-weight-value {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   ZONE D'ACTIONS
   ============================================ */

.fdlm-card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================
   SELECTEUR DE VARIATIONS
   ============================================ */

.fdlm-variations-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fdlm-variation-select {
    position: relative;
}

.fdlm-select-variation {
    width: 100%;
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #142451;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23142451' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s ease;
}

.fdlm-select-variation:hover,
.fdlm-select-variation:focus {
    border-color: #142451;
    outline: none;
}

.fdlm-variation-price {
    font-size: 14px;
    font-weight: 600;
    color: #142451;
    text-align: center;
    padding: 4px 0;
}

/* ============================================
   SELECTEUR DE QUANTITE
   ============================================ */

.fdlm-quantity-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.fdlm-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #142451;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fdlm-qty-btn:hover {
    background: #e0e0e0;
}

.fdlm-qty-btn:active {
    background: #d0d0d0;
}

.fdlm-qty-input {
    width: 50px;
    height: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #142451;
    -moz-appearance: textfield;
}

.fdlm-qty-input::-webkit-outer-spin-button,
.fdlm-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fdlm-qty-input:focus {
    outline: none;
}

/* ============================================
   BOUTON AJOUTER AU PANIER
   ============================================ */

.fdlm-add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: #142451;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fdlm-add-to-cart-btn:hover {
    background: #1e3a6d;
    transform: translateY(-1px);
}

.fdlm-add-to-cart-btn:active {
    transform: translateY(0);
}

.fdlm-add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.fdlm-add-to-cart-btn.fdlm-adding {
    background: #666;
    pointer-events: none;
}

.fdlm-add-to-cart-btn.fdlm-added {
    background: #4CAF50;
}

.fdlm-add-to-cart-btn.fdlm-error {
    background: #E53935;
}

.fdlm-btn-icon {
    display: flex;
    align-items: center;
}

.fdlm-btn-icon svg {
    width: 18px;
    height: 18px;
}

/* Produit variable : désactivé sans variation sélectionnée */
.fdlm-add-variable:not([data-variation-id]),
.fdlm-add-variable[data-variation-id="0"] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   PRODUIT EN RUPTURE
   ============================================ */

.fdlm-out-of-stock-notice {
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
    font-size: 13px;
}

.fdlm-view-product-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #142451;
    border-radius: 8px;
    background: transparent;
    color: #142451;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fdlm-view-product-btn:hover {
    background: #142451;
    color: #fff;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fdlm-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fdlm-add-to-cart-btn.fdlm-added {
    animation: fdlm-pulse 0.3s ease;
}

/* ============================================
   STYLES YITH/TI WISHLIST OVERRIDE
   ============================================ */

.fdlm-wishlist-btn .yith-wcwl-add-to-wishlist,
.fdlm-wishlist-btn .yith-add-to-wishlist-button-block {
    margin: 0 !important;
    padding: 0 !important;
}

.fdlm-wishlist-btn .yith-wcwl-add-to-wishlist .yith-wcwl-add-button a,
.fdlm-wishlist-btn .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a,
.fdlm-wishlist-btn .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a,
.fdlm-wishlist-btn .yith-wcwl-add-to-wishlist-button {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border: 2px solid #E53935 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

/* Masquer le SVG YITH, afficher l'icône custom */
.fdlm-wishlist-btn .yith-wcwl-add-to-wishlist-button svg {
    display: none !important;
}

.fdlm-wishlist-btn .yith-wcwl-add-to-wishlist-button::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    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-wishlist-btn .yith-wcwl-add-to-wishlist-button:hover::before {
    filter: brightness(0) invert(1);
}

.fdlm-wishlist-btn .yith-wcwl-add-to-wishlist .yith-wcwl-add-button a span,
.fdlm-wishlist-btn .yith-wcwl-add-to-wishlist a span,
.fdlm-wishlist-btn .yith-wcwl-add-to-wishlist-button__label {
    display: none !important;
}

/* Coeur rempli quand ajouté → fond rouge, coeur blanc */
.fdlm-wishlist-btn .yith-wcwl-add-to-wishlist-button--added {
    background: #E53935 !important;
    border-color: #E53935 !important;
}

.fdlm-wishlist-btn .yith-wcwl-add-to-wishlist-button--added::before {
    filter: brightness(0) invert(1);
}

/* TI Wishlist */
.fdlm-wishlist-btn .tinvwl_add_to_wishlist_button {
    min-width: auto !important;
    padding: 0 !important;
}

.fdlm-wishlist-btn .tinvwl_add_to_wishlist_button span {
    display: none !important;
}

/* ============================================
   RESPONSIVE AJUSTEMENTS
   ============================================ */

@media (max-width: 768px) {
    .fdlm-card-content {
        padding: 12px;
    }

    .fdlm-card-title {
        font-size: 14px;
    }

    .fdlm-card-price {
        font-size: 15px;
    }

    .fdlm-qty-btn {
        width: 32px;
        height: 32px;
    }

    .fdlm-qty-input {
        width: 40px;
        height: 32px;
    }

    .fdlm-add-to-cart-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .fdlm-badges {
        top: 8px;
        left: 8px;
    }

    .fdlm-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .fdlm-wishlist-btn {
        top: 8px;
        right: 8px;
    }

    .fdlm-wishlist-btn button {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   STYLES POUR ELEMENTOR PRO (Hooks WooCommerce)
   Ces styles ciblent les éléments injectés via hooks
   ============================================ */

/* Wrapper image avec position relative pour overlays */
.fdlm-product-image-wrapper {
    position: relative;
    overflow: hidden;
}

/* Badges overlay (via hook) */
.fdlm-badges-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

/* Wishlist overlay (via hook) */
.fdlm-wishlist-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.fdlm-wishlist-overlay button,
.fdlm-wishlist-overlay .yith-wcwl-add-to-wishlist,
.fdlm-wishlist-overlay .yith-wcwl-add-to-wishlist-button,
.fdlm-wishlist-overlay .tinvwl_add_to_wishlist_button {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 2px solid #E53935;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.15);
    text-decoration: none;
}

.fdlm-wishlist-overlay button:hover,
.fdlm-wishlist-overlay .yith-wcwl-add-to-wishlist-button:hover {
    background: #E53935;
    transform: scale(1.1);
    border-color: #E53935;
}

.fdlm-wishlist-overlay svg {
    width: 18px;
    height: 18px;
    stroke: #E53935;
    fill: none;
}

/* Masquer le SVG YITH, afficher l'icône custom */
.fdlm-wishlist-overlay .yith-wcwl-add-to-wishlist-button svg {
    display: none !important;
}

.fdlm-wishlist-overlay .yith-wcwl-add-to-wishlist-button::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    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-wishlist-overlay .yith-wcwl-add-to-wishlist-button:hover::before {
    filter: brightness(0) invert(1);
}

.fdlm-wishlist-overlay .yith-wcwl-add-to-wishlist-button__label {
    display: none !important;
}

.fdlm-wishlist-overlay .yith-add-to-wishlist-button-block {
    margin: 0 !important;
    padding: 0 !important;
}

/* Coeur rempli quand ajouté → fond rouge, coeur blanc */
.fdlm-wishlist-overlay .yith-wcwl-add-to-wishlist-button--added {
    background: #E53935 !important;
    border-color: #E53935 !important;
}

.fdlm-wishlist-overlay .yith-wcwl-add-to-wishlist-button--added::before {
    filter: brightness(0) invert(1);
}

/* Poids produit (via hook) */
.fdlm-product-weight {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Wrapper bouton ajouter au panier (via hook) */
.fdlm-add-to-cart-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

/* Bouton lien variable */
.fdlm-add-variable-link {
    text-decoration: none;
}

/* ============================================
   ELEMENTOR PRODUCTS WIDGET OVERRIDES
   ============================================ */

/* Cibler les widgets Elementor Products */
.elementor-widget-woocommerce-products .product,
.elementor-widget-wc-products .product,
.elementor-widget-loop-grid .product,
.elementor-loop-item {
    position: relative;
}

/* Image wrapper dans Elementor */
.elementor-widget-woocommerce-products .fdlm-product-image-wrapper,
.elementor-widget-wc-products .fdlm-product-image-wrapper,
.elementor-widget-loop-grid .fdlm-product-image-wrapper {
    position: relative;
}

/* S'assurer que l'image Elementor a un conteneur relatif */
.elementor-widget-woocommerce-products .attachment-woocommerce_thumbnail,
.elementor-widget-wc-products .attachment-woocommerce_thumbnail {
    position: relative;
}

/* Masquer le badge WooCommerce par défaut dans Elementor */
.elementor-widget-woocommerce-products .onsale,
.elementor-widget-wc-products .onsale,
.elementor-widget-loop-grid .onsale {
    display: none !important;
}

/* Masquer le bouton ajouter au panier par défaut d'Elementor */
.elementor-widget-woocommerce-products .add_to_cart_button,
.elementor-widget-wc-products .add_to_cart_button,
.elementor-widget-loop-grid .add_to_cart_button,
.elementor-widget-woocommerce-products .added_to_cart,
.elementor-widget-wc-products .added_to_cart {
    display: none !important;
}

/* Fix pour que les overlays soient visibles */
.woocommerce-loop-product__link {
    position: relative;
    display: block;
}

/* ============================================
   WOOCOMMERCE ARCHIVE PAGE OVERRIDES
   ============================================ */

/* Appliquer position relative aux cartes WooCommerce */
.woocommerce ul.products li.product {
    position: relative;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    position: relative;
    display: block;
}

/* Masquer les éléments par défaut */
.woocommerce ul.products li.product > .onsale {
    display: none !important;
}

/* ============================================
   STYLES SPECIFIQUES ELEMENTOR LOOP BUILDER
   ============================================ */

/* Si tu utilises le Loop Builder d'Elementor Pro */
.e-loop-item .fdlm-product-image-wrapper {
    position: relative;
}

.e-loop-item .fdlm-badges-overlay,
.e-loop-item .fdlm-wishlist-overlay {
    pointer-events: auto;
}

/* Fix z-index pour les overlays dans Elementor */
.elementor-widget-woocommerce-products .fdlm-badges-overlay,
.elementor-widget-woocommerce-products .fdlm-wishlist-overlay {
    z-index: 20;
}

/* ============================================
   RESPONSIVE POUR ELEMENTOR
   ============================================ */

@media (max-width: 768px) {
    .fdlm-badges-overlay {
        top: 8px;
        left: 8px;
    }

    .fdlm-wishlist-overlay {
        top: 8px;
        right: 8px;
    }

    .fdlm-wishlist-overlay button {
        width: 32px;
        height: 32px;
    }

    .fdlm-add-to-cart-wrapper {
        gap: 8px;
    }
}

/* ==================== PACK / COFFRETS ==================== */

.fdlm-pack-products {
    margin: 30px 0;
}

/* Grille avec séparateurs + */
.fdlm-pack-grid {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.fdlm-pack-item {
    flex: 1;
    min-width: 0;
    background: #F2E2D0;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* Séparateur + entre les items */
.fdlm-pack-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    flex-shrink: 0;
}

.fdlm-pack-separator span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #142451;
    color: #C67969;
    font-family: 'Decoy', cursive;
    font-size: 35px;
    padding-bottom:7px;
    font-weight: 700;
    line-height: 1;
}

/* Image produit */
.fdlm-pack-item-image {
    display: block;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.fdlm-pack-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fdlm-pack-item:hover .fdlm-pack-item-image img {
    transform: scale(1.05);
}

/* Badge quantité */
.fdlm-pack-item-qty {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #142451;
    color: #F2E2D0;
    font-family: 'Decoy', cursive;
    font-size: 14px;
    font-weight: 700;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Infos sous l'image */
.fdlm-pack-item-info {
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.fdlm-pack-item-name {
    font-family: 'Decoy', cursive;
    font-size: 21px;
    font-weight: 700;
    color: #142451;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.fdlm-pack-item-variation {
    font-family: 'hoss-sharp', sans-serif;
    font-size: 13px;
    color: #142451;
    margin: 0 0 10px 0;
    font-weight: 400;
}

/* Bouton "Voir le produit" */
.fdlm-pack-item-link {
    display: inline-block;
    margin-top: auto;
    padding: 8px 20px;
    font-family: 'hoss-sharp', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #142451;
    border: 1px solid #142451;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fdlm-pack-item-link:hover {
    background: #142451;
    color: #F2E2D0;
}

/* Pack responsive - tablette */
@media (max-width: 768px) {
    .fdlm-pack-grid {
        flex-wrap: wrap;
        gap: 15px;
    }

    .fdlm-pack-item {
        flex: 0 0 calc(50% - 20px);
    }

    .fdlm-pack-separator {
        font-size: 22px;
        padding: 0;
        flex: 0 0 auto;
    }
}

/* Pack responsive - mobile */
@media (max-width: 480px) {
    .fdlm-pack-grid {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .fdlm-pack-item {
        flex: 0 0 100%;
        width: 100%;
        max-width: 280px;
    }

    .fdlm-pack-separator {
        padding: 8px 0;
    }
}
