/* ==========================================================================
   L'AMPHORE - OVERRIDES CSS v1.1
   
   Ce fichier est chargé APRÈS Elementor pour garantir la spécificité.
   Il corrige les problèmes d'affichage des fiches produit et du catalogue.
   ========================================================================== */

/* ==========================================================================
   FICHE PRODUIT - LAYOUT PRINCIPAL
   Force le layout côte-à-côte image / infos même quand WooCommerce 
   layout.css est écrasé par Elementor
   ========================================================================== */

body.single-product div.product,
body.single-product .woocommerce div.product {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2rem;
    align-items: flex-start;
}

body.single-product div.product .woocommerce-product-gallery,
body.single-product .woocommerce div.product .woocommerce-product-gallery {
    flex: 0 0 48% !important;
    max-width: 48% !important;
    width: 48% !important;
}

body.single-product div.product .summary.entry-summary,
body.single-product .woocommerce div.product .summary.entry-summary {
    flex: 0 0 48% !important;
    max-width: 48% !important;
    width: 48% !important;
}

body.single-product div.product .woocommerce-tabs,
body.single-product .woocommerce div.product .woocommerce-tabs {
    flex: 0 0 100% !important;
    width: 100% !important;
    clear: both;
}

body.single-product div.product .related.products,
body.single-product .woocommerce div.product .related.products,
body.single-product div.product .upsells.products,
body.single-product .woocommerce div.product .upsells.products {
    flex: 0 0 100% !important;
    width: 100% !important;
    clear: both;
}

/* ==========================================================================
   SCORE VIN (style Vivino)
   ========================================================================== */

body.single-product .amphore-wine-score {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin: 1rem 0 !important;
    padding: 0.75rem 0 !important;
}

body.single-product .amphore-wine-score-number {
    font-family: var(--amphore-font-titre, 'Cormorant Garamond', Georgia, serif) !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--amphore-bordeaux, #722F37) !important;
    line-height: 1 !important;
}

body.single-product .amphore-wine-score-stars {
    color: var(--amphore-or, #C9A84C) !important;
    font-size: 1.25rem !important;
}

body.single-product .amphore-wine-score-count {
    font-size: 0.85rem !important;
    color: var(--amphore-gris, #6B6B6B) !important;
}

/* ==========================================================================
   BADGES TYPE / COULEUR
   ========================================================================== */

body.single-product .amphore-wine-badges,
body .amphore-wine-badges {
    display: flex !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    margin-bottom: 0.75rem !important;
}

body .amphore-wine-type-badge {
    display: inline-block !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 100px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    line-height: 1.4 !important;
}

body .amphore-wine-type-badge.rouge {
    background: rgba(139, 26, 43, 0.1) !important;
    color: #8B1A2B !important;
}

body .amphore-wine-type-badge.blanc {
    background: rgba(201, 168, 76, 0.15) !important;
    color: #8B6F47 !important;
}

body .amphore-wine-type-badge.rose {
    background: rgba(219, 143, 157, 0.2) !important;
    color: #9B4D5E !important;
}

body .amphore-wine-type-badge.champagne {
    background: rgba(201, 168, 76, 0.2) !important;
    color: #C9A84C !important;
}

body .amphore-wine-type-badge.biere,
body .amphore-wine-type-badge.biere {
    background: rgba(139, 111, 71, 0.15) !important;
    color: #8B6F47 !important;
}

/* ==========================================================================
   INFOS RAPIDES (Millésime, Alcool, Contenance, Appellation...)
   ========================================================================== */

body.single-product .amphore-wine-quick-info {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    margin: 1rem 0 !important;
    padding: 1rem 0 !important;
    border-top: 1px solid var(--amphore-gris-clair, #E8E4DE) !important;
    border-bottom: 1px solid var(--amphore-gris-clair, #E8E4DE) !important;
}

body.single-product .amphore-wine-quick-info > div {
    flex: 1 1 120px !important;
    min-width: 100px !important;
}

/* ==========================================================================
   FICHE TECHNIQUE - GRILLE DE DÉTAILS
   ========================================================================== */

body .amphore-wine-details {
    background: var(--amphore-sable, #F0E8DA) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
}

body .amphore-wine-details h3 {
    font-family: var(--amphore-font-titre, 'Cormorant Garamond', Georgia, serif) !important;
    color: var(--amphore-bordeaux, #722F37) !important;
    margin-bottom: 1rem !important;
    font-size: 1.5rem !important;
}

body .amphore-wine-details-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 0.75rem !important;
}

body .amphore-wine-detail-item {
    padding: 0.75rem !important;
    background: var(--amphore-blanc, #FFFFFF) !important;
    border-radius: 4px !important;
    border-left: 3px solid var(--amphore-or, #C9A84C) !important;
    transition: transform 0.2s ease !important;
}

body .amphore-wine-detail-item:hover {
    transform: translateX(4px) !important;
}

body .amphore-wine-detail-item .detail-label {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--amphore-gris, #6B6B6B) !important;
    margin-bottom: 0.25rem !important;
    display: block !important;
}

body .amphore-wine-detail-item .detail-value {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--amphore-anthracite, #2C2C2C) !important;
    display: block !important;
}

/* ==========================================================================
   ONGLETS PRODUIT
   ========================================================================== */

body.single-product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid var(--amphore-gris-clair, #E8E4DE) !important;
    padding: 0 !important;
    margin: 0 0 1.5rem 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs::before {
    display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
    font-family: var(--amphore-font-corps, 'Inter', sans-serif) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: var(--amphore-gris, #6B6B6B) !important;
    padding: 0.75rem 1.25rem !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -2px !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--amphore-bordeaux, #722F37) !important;
    border-bottom-color: var(--amphore-bordeaux, #722F37) !important;
}

/* ==========================================================================
   NOTES DE DÉGUSTATION (arômes tags)
   ========================================================================== */

body .amphore-tasting-notes {
    display: flex !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    margin-top: 0.75rem !important;
}

body .amphore-tasting-note {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.4rem 0.8rem !important;
    background: var(--amphore-blanc, #FFF) !important;
    border-radius: 100px !important;
    font-size: 0.85rem !important;
    color: var(--amphore-gris, #6B6B6B) !important;
    border: 1px solid var(--amphore-gris-clair, #E8E4DE) !important;
}

/* ==========================================================================
   GRILLE TARIFS DÉGRESSIFS
   ========================================================================== */

body.single-product div[style*="Tarifs dégressifs"],
body.single-product div[style*="background: #FAF6F0"] {
    border-radius: 8px !important;
}

/* ==========================================================================
   BOUTONS WOO (haute spécificité)
   ========================================================================== */

body.woocommerce .button,
body.woocommerce a.button,
body.woocommerce button.button,
body.woocommerce input.button,
body .woocommerce a.button,
body .woocommerce button.button {
    font-family: var(--amphore-font-corps, 'Inter', sans-serif) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    background-color: var(--amphore-bordeaux, #722F37) !important;
    color: #FFFFFF !important;
    border: 2px solid var(--amphore-bordeaux, #722F37) !important;
    border-radius: 4px !important;
    padding: 0.7rem 1.8rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

body.woocommerce .button:hover,
body.woocommerce a.button:hover,
body.woocommerce button.button:hover,
body .woocommerce a.button:hover,
body .woocommerce button.button:hover {
    background-color: var(--amphore-bordeaux-dark, #4A1E23) !important;
    border-color: var(--amphore-bordeaux-dark, #4A1E23) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

body.woocommerce a.button.alt,
body.woocommerce button.button.alt,
body .woocommerce a.button.alt,
body .woocommerce button.button.alt {
    background-color: var(--amphore-or, #C9A84C) !important;
    border-color: var(--amphore-or, #C9A84C) !important;
}

body.woocommerce a.button.alt:hover,
body.woocommerce button.button.alt:hover {
    background-color: var(--amphore-or-clair, #D4B96A) !important;
    border-color: var(--amphore-or-clair, #D4B96A) !important;
}

/* ==========================================================================
   PRODUIT UNIQUE - TITRE & PRIX
   ========================================================================== */

body.single-product .product_title,
body.single-product div.product .product_title,
body.single-product .woocommerce div.product .product_title {
    font-family: var(--amphore-font-titre, 'Cormorant Garamond', Georgia, serif) !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--amphore-bordeaux, #722F37) !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
}

body.single-product div.product p.price,
body.single-product .woocommerce div.product p.price {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--amphore-bordeaux, #722F37) !important;
}

body.single-product div.product p.price del {
    color: var(--amphore-gris, #6B6B6B) !important;
    font-weight: 400 !important;
    font-size: 1.1rem !important;
}

body.single-product div.product p.price ins {
    text-decoration: none !important;
    color: var(--amphore-rouge-vin, #8B1A2B) !important;
}

/* ==========================================================================
   BADGE PROMO
   ========================================================================== */

body .woocommerce span.onsale,
body.woocommerce span.onsale {
    background-color: var(--amphore-rouge-vin, #8B1A2B) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    border-radius: 4px !important;
    padding: 0.4rem 0.8rem !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1.4 !important;
}

/* ==========================================================================
   ÉTOILES / AVIS
   ========================================================================== */

body .woocommerce .star-rating,
body.woocommerce .star-rating {
    color: var(--amphore-or, #C9A84C) !important;
}

/* ==========================================================================
   MESSAGES WOOCOMMERCE
   ========================================================================== */

body .woocommerce-message {
    border-top-color: var(--amphore-vert, #4A7C59) !important;
}

body .woocommerce-info {
    border-top-color: var(--amphore-or, #C9A84C) !important;
}

body .woocommerce-error {
    border-top-color: var(--amphore-rouge-vin, #8B1A2B) !important;
}

/* ==========================================================================
   CATALOGUE / GRILLE PRODUITS
   ========================================================================== */

/* Reset crucial : supprimer les puces et fixer la grille */
body .woocommerce ul.products,
body.woocommerce ul.products,
.woocommerce ul.products,
ul.products {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* CRUCIAL : supprimer les pseudo-éléments de WooCommerce layout 
   qui créent des cellules vides dans la grille CSS grid */
body .woocommerce ul.products::before,
body .woocommerce ul.products::after,
body.woocommerce ul.products::before,
body.woocommerce ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
    display: none !important;
    content: none !important;
}

/* S'assurer que le compteur de résultats ne casse pas la grille */
body .woocommerce .woocommerce-result-count,
body.woocommerce .woocommerce-result-count,
.woocommerce-result-count {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin-bottom: 1rem !important;
    font-size: 0.85rem !important;
    color: var(--amphore-gris, #6B6B6B) !important;
}

/* Masquer le tri par défaut WooCommerce (on a le nôtre dans les filtres) */
body .woocommerce .woocommerce-ordering,
body.woocommerce .woocommerce-ordering,
.woocommerce-ordering {
    display: none !important;
}

body .woocommerce ul.products li.product,
body.woocommerce ul.products li.product {
    position: relative !important;
    overflow: hidden !important;
    background: #FFFFFF !important;
    border-radius: 12px !important;
    border: 1px solid var(--amphore-gris-clair, #E8E4DE) !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
}

body .woocommerce ul.products li.product:hover,
body.woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-4px) !important;
    border-color: var(--amphore-or, #C9A84C) !important;
}

body .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--amphore-font-titre, 'Cormorant Garamond', Georgia, serif) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: var(--amphore-anthracite, #2C2C2C) !important;
    padding: 0.75rem 1.25rem 0.25rem !important;
}

body .woocommerce ul.products li.product .price,
body.woocommerce ul.products li.product .price {
    font-weight: 700 !important;
    color: var(--amphore-bordeaux, #722F37) !important;
    padding: 0 1.25rem 0.5rem !important;
    font-size: 1.1rem !important;
}

/* ==========================================================================
   QUANTITÉ INPUT + LABEL "BOUTEILLE(S)"
   ========================================================================== */

body .woocommerce .quantity .qty {
    border: 2px solid var(--amphore-gris-clair, #E8E4DE) !important;
    border-radius: 4px !important;
    padding: 0.5rem !important;
    font-weight: 600 !important;
    width: 80px !important;
    text-align: center !important;
}

/* Le wrapper .quantity doit permettre l'affichage du suffix en ligne */
body.single-product .quantity,
body .woocommerce .quantity {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
}

/* Suffix "bouteille(s)" ajouté en JS */
.amphore-qty-suffix {
    white-space: nowrap;
}

/* Bouton grille boutique : texte "Ajouter 6 bouteilles" */
body .woocommerce ul.products li.product .button,
body.woocommerce ul.products li.product .button,
body .woocommerce ul.products li.product a.add_to_cart_button,
body.woocommerce ul.products li.product a.add_to_cart_button {
    font-size: 0.7rem !important;
    letter-spacing: 0.04em !important;
    padding: 0.6rem 1rem !important;
}

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

@media (max-width: 768px) {
    body.single-product div.product,
    body.single-product .woocommerce div.product {
        flex-direction: column !important;
    }

    body.single-product div.product .woocommerce-product-gallery,
    body.single-product .woocommerce div.product .woocommerce-product-gallery,
    body.single-product div.product .summary.entry-summary,
    body.single-product .woocommerce div.product .summary.entry-summary {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body .amphore-wine-details-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    body.single-product .amphore-wine-quick-info {
        flex-direction: column !important;
    }

    body.single-product .amphore-wine-score {
        flex-direction: column !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    body .amphore-wine-details-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   FIX v1.2 - ZOOM IMAGE PRODUIT DÉSACTIVÉ
   Affichage qualité d'origine, pas de zoom au survol
   ========================================================================== */

body.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    display: none !important;
}

body.single-product div.product .woocommerce-product-gallery .zoomImg,
body.single-product div.product .woocommerce-product-gallery .zoomContainer,
body.single-product div.product .woocommerce-product-gallery img.zoomImg {
    display: none !important;
}

body.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image {
    pointer-events: auto !important;
}

body.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image a {
    cursor: default !important;
}

body.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    transform: none !important;
    transition: none !important;
}

/* Image produit en qualité d'origine, pas de redimensionnement flou */
body.single-product div.product .woocommerce-product-gallery__image img,
body.single-product .woocommerce div.product .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    image-rendering: auto !important;
}

/* ==========================================================================
   FIX v1.2 - BOUTON AJOUTER AU PANIER + QUANTITÉ SUR LA MÊME LIGNE
   Sélecteurs ultra-spécifiques pour surcharger Elementor
   ========================================================================== */

/* Produits simples : form.cart direct */
body.single-product div.product form.cart,
body.single-product .woocommerce div.product form.cart,
.woocommerce.single-product form.cart,
.single-product .entry-summary form.cart,
.single-product .summary form.cart {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

body.single-product form.cart > .quantity,
body.single-product div.product form.cart .quantity,
.single-product .summary form.cart .quantity {
    margin: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

body.single-product form.cart > .single_add_to_cart_button,
body.single-product div.product form.cart .single_add_to_cart_button,
body.single-product div.product form.cart button.single_add_to_cart_button,
.single-product .summary form.cart .single_add_to_cart_button {
    margin: 0 !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Produits variables : dropdown prend toute la largeur, bouton + qty en ligne */
body.single-product div.product form.cart .variations,
body.single-product form.cart .variations,
.single-product .summary form.cart .variations {
    width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 0.75rem !important;
}

body.single-product form.cart .single_variation_wrap,
body.single-product div.product form.cart .single_variation_wrap {
    width: 100% !important;
    flex: 0 0 100% !important;
}

body.single-product form.cart .woocommerce-variation-add-to-cart,
body.single-product div.product form.cart .woocommerce-variation-add-to-cart,
.single-product .summary form.cart .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-wrap: nowrap !important;
}

body.single-product form.cart .woocommerce-variation-add-to-cart .quantity {
    margin: 0 !important;
}

body.single-product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   FIX v1.2 - MASQUER LA CATÉGORIE SUR LA PAGE PRODUIT
   ========================================================================== */

body.single-product div.product .product_meta,
body.single-product .woocommerce div.product .product_meta {
    display: none !important;
}

/* ==========================================================================
   FIX v1.2 - ONGLET DÉGUSTATION : PROFIL AROMATIQUE À DROITE
   Layout 2 colonnes : texte dégustation à gauche, profil aromatique à droite
   ========================================================================== */

body.single-product .amphore-tasting-section {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
}

/* Colonne gauche : notes textuelles */
body.single-product .amphore-tasting-section .amphore-tasting-text {
    flex: 1 1 50% !important;
    min-width: 280px !important;
}

/* Colonne droite : profil aromatique */
body.single-product .amphore-tasting-section .amphore-tasting-profil {
    flex: 0 0 40% !important;
    min-width: 280px !important;
    margin-left: auto !important;
}

/* Arômes : pleine largeur en dessous */
body.single-product .amphore-tasting-section > h4:last-of-type,
body.single-product .amphore-tasting-section > .amphore-tasting-notes {
    flex: 0 0 100% !important;
}

@media (max-width: 768px) {
    body.single-product .amphore-tasting-section {
        flex-direction: column !important;
    }
    body.single-product .amphore-tasting-section .amphore-tasting-profil {
        margin-left: 0 !important;
        flex: 0 0 100% !important;
    }
}

/* ==========================================================================
   FIX v1.2 - BADGE COULEUR EN HAUT À GAUCHE SUR LA GRILLE BOUTIQUE
   ========================================================================== */

/* Container de la carte produit : position relative pour les badges absolus */
body .woocommerce ul.products li.product,
body.woocommerce ul.products li.product {
    position: relative !important;
    overflow: visible !important;
}

/* Container image : position relative et overflow visible */
body .woocommerce ul.products li.product .woocommerce-LoopProduct-link,
body.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
body .woocommerce ul.products li.product a:first-child {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
}

/* Badge couleur : forcer position en haut à gauche */
body .woocommerce ul.products li.product .amphore-wine-type-badge,
body.woocommerce ul.products li.product .amphore-wine-type-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    bottom: auto !important;
    right: auto !important;
    z-index: 5 !important;
    margin: 0 !important;
}

/* Si le badge est HORS du lien image (après l'image), forcer la position */
body .woocommerce ul.products li.product > .amphore-wine-type-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 5 !important;
}

/* Badge promo (Solde!) : en haut à droite pour ne pas chevaucher */
body .woocommerce ul.products li.product span.onsale,
body.woocommerce ul.products li.product span.onsale {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 5 !important;
}

/* ==========================================================================
   FIX v1.2 - QUALITÉ IMAGES BOUTIQUE (pas de flou ni compression)
   ========================================================================== */

/* Images grille boutique : qualité originale, pas de redimensionnement CSS flou */
body .woocommerce ul.products li.product a img,
body.woocommerce ul.products li.product a img,
body .woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
body.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
    image-rendering: auto !important;
    image-rendering: -webkit-optimize-contrast !important;
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
    max-height: 350px !important;
    background: #FFFFFF !important;
}

/* Empêcher le scale CSS sur hover qui floute */
body .woocommerce ul.products li.product:hover a img,
body.woocommerce ul.products li.product:hover a img {
    transform: none !important;
}

/* ==========================================================================
   FIX v1.3 - TASTING SECTION PLUS AGRESSIF
   Cible les wrappers .amphore-tasting-text et .amphore-tasting-profil
   même si Elementor ou WooCommerce ajoute des conteneurs
   ========================================================================== */

.amphore-tasting-section {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
    align-items: flex-start !important;
}

.amphore-tasting-section > .amphore-tasting-text {
    flex: 1 1 50% !important;
    min-width: 250px !important;
    max-width: 55% !important;
}

.amphore-tasting-section > .amphore-tasting-profil {
    flex: 1 1 38% !important;
    min-width: 280px !important;
    max-width: 45% !important;
}

.amphore-tasting-section > h4,
.amphore-tasting-section > .amphore-tasting-notes {
    flex: 0 0 100% !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .amphore-tasting-section > .amphore-tasting-text,
    .amphore-tasting-section > .amphore-tasting-profil {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}
