/* Theme Name: Saison Sultan
Template: saison
Description: Thème enfant du thème Saison
Version: 1.0.0
Author: Votre nom
Text Domain: saison-sultan */

/* ==================== PALETTE DE COULEURS - LE SULTAN ==================== */

/* Variables CSS pour la nouvelle palette */
:root {
  --bleu-nuit: #0B132B;
  --bleu-carte: #121E36;
  --blanc-chaud: #F5F4EF;
  --beige-dore: #BFB5A3;
  --or-patine: #C1A05F;
  --or-antique: #9A7C45;
  --ligne-subtile: rgba(255, 255, 255, 0.08);
  --degrade-bouton: linear-gradient(135deg, #C1A05F 0%, #9A7C45 100%);
  --degrade-carte: linear-gradient(135deg, #121E36 0%, #1A2845 100%);
  --ombre-profonde: rgba(11, 19, 43, 0.8);

  /* Nouvelles variables pour la navigation */
  --couleur-menu: var(--blanc-chaud);
  --couleur-menu-hover: var(--or-patine);
  --couleur-menu-actif: var(--or-patine);
}

/* ==================== STYLES GÉNÉRAUX ==================== */
.cm-date-time-input {
    margin: 0 0 20px 0;
    padding: 0;
    width: 100%;
}

body {
  background-color: var(--bleu-nuit) !important;
  color: var(--blanc-chaud) !important;
  font-family: "Segoe UI", "Playfair Display", Roboto, serif;
  line-height: 1.6;
}

/* ==================== NOM DU SITE EN DORÉ ==================== */

/* Pour le nom du site dans l'en-tête */
.site-title,
.site-title a,
.wp-block-site-title,
.wp-block-site-title a {
    color: var(--or-patine) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.site-title a:hover,
.wp-block-site-title a:hover {
    color: var(--beige-dore) !important;
    text-shadow: 0 0 10px rgba(193, 160, 95, 0.3) !important;
}

/* ==================== BARRE DE NAVIGATION - ÉLÉMENTS EN DORÉ AU HOVER ==================== */

/* Pour le menu principal de navigation */
.main-navigation ul li a,
.primary-menu ul li a,
.wp-block-navigation ul li a,
.header-nav ul li a {
    color: var(--blanc-chaud) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    position: relative;
}

/* Effet hover doré */
.main-navigation ul li a:hover,
.primary-menu ul li a:hover,
.wp-block-navigation ul li a:hover,
.header-nav ul li a:hover {
    color: var(--or-patine) !important;
}

/* Ligne animée sous les liens au hover */
.main-navigation ul li a::after,
.primary-menu ul li a::after,
.wp-block-navigation ul li a::after,
.header-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--or-patine);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation ul li a:hover::after,
.primary-menu ul li a:hover::after,
.wp-block-navigation ul li a:hover::after,
.header-nav ul li a:hover::after {
    width: 100%;
}

/* Élément actif du menu */
.main-navigation ul li.current-menu-item a,
.primary-menu ul li.current-menu-item a,
.wp-block-navigation ul li.current-menu-item a,
.header-nav ul li.current-menu-item a {
    color: var(--or-patine) !important;
    font-weight: 600;
}

/* ==================== BARRE DE CATÉGORIES - 2 LIGNES ==================== */

.horizontal-category-filter-container {
    width: 100%;
    margin-bottom: 30px;
    padding: 0 15px;
    display: block !important;
}

.horizontal-category-filter {
    overflow: visible;
    -webkit-overflow-scrolling: auto;
}

.horizontal-filter-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    justify-content: center;
}

.horizontal-filter-item {
    flex-shrink: 0;
    margin-bottom: 8px;
}

.horizontal-filter-link {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--blanc-chaud) !important;
    background-color: transparent;
    border: 1px solid var(--ligne-subtile);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.horizontal-filter-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(193, 160, 95, 0.1), transparent);
    transition: left 0.5s ease;
}

.horizontal-filter-link:hover::before {
    left: 100%;
}

.horizontal-filter-link:hover {
    background-color: rgba(193, 160, 95, 0.1) !important;
    color: var(--or-patine) !important;
    border-color: var(--or-patine);
    transform: translateY(-2px);
}

.horizontal-filter-item.active .horizontal-filter-link {
    background: rgba(193, 160, 95, 0.15) !important;
    color: var(--or-patine) !important;
    border-color: var(--or-patine);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(193, 160, 95, 0.2);
}

.horizontal-filter-count {
    font-size: 11px;
    opacity: 0.7;
    margin-left: 4px;
    font-weight: 600;
    color: var(--beige-dore);
}

/* ==================== RESPONSIVE 2 LIGNES ==================== */

@media (max-width: 768px) {
    .horizontal-category-filter-container {
        padding: 0 10px;
        margin-bottom: 25px;
    }

    .horizontal-filter-list {
        gap: 6px;
    }

    .horizontal-filter-item {
        margin-bottom: 6px;
    }

    .horizontal-filter-link {
        padding: 8px 14px;
        font-size: 13px;
    }

    .horizontal-filter-count {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .horizontal-filter-link {
        padding: 7px 12px;
        font-size: 12px;
    }

    .horizontal-filter-list {
        gap: 5px;
    }

    .horizontal-filter-item {
        margin-bottom: 5px;
    }
}

/* ==================== COMPORTEMENT FILTRAGE SIMPLIFIÉ ==================== */

body.ajax-filter-active .woocommerce-products-header,
body.ajax-filter-active .woocommerce-breadcrumb,
body.ajax-filter-active .woocommerce-ordering,
body.ajax-filter-active .woocommerce-result-count {
    display: none !important;
}

.products-container {
    transition: opacity 0.3s ease;
}

.products-container.loading {
    opacity: 0.6;
}

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

.products-container .products {
    animation: fadeIn 0.4s ease;
}

.products-container:not(:empty) + .woocommerce .products {
    display: none !important;
}

/* ==================== SYSTÈME DE FILTRAGE AJAX ==================== */

.products-container {
    position: relative;
    min-height: 200px;
    width: 100%;
}

.products-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: var(--or-patine);
    font-size: 16px;
    font-weight: 500;
}

.loading-spinner:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--or-patine);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--or-patine);
    font-size: 16px;
    font-style: italic;
}

/* ==================== CARTES DE PRODUITS - ALIGNEMENT PARFAIT ==================== */

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 40px 0 !important;
}

.woocommerce ul.products li.product {
    background: var(--bleu-carte) !important;
    border: 1px solid var(--ligne-subtile) !important;
    border-radius: 16px !important;
    padding: 0 !important;
    box-shadow: 0 8px 32px var(--ombre-profonde) !important;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    position: relative;
    overflow: hidden;
}

/* Effet de brillance subtil au survol */
.woocommerce ul.products li.product::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(193, 160, 95, 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.woocommerce ul.products li.product:hover::before {
    animation: shine 1.5s ease-in-out;
    opacity: 1;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 15px 40px rgba(11, 19, 43, 0.9) !important;
    border-color: var(--or-patine) !important;
}

/* Images des produits - PLUS GRANDES */
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    border-radius: 16px 16px 0 0 !important;
    margin-bottom: 0 !important;
    transition: all 0.4s ease;
    border: none !important;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Conteneur du contenu texte avec hauteur fixe pour la section titre */
.woocommerce ul.products li.product .product-content {
    padding: 20px 20px 15px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    min-height: 180px !important;
}

/* Titres des produits avec hauteur fixe */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--blanc-chaud) !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    font-family: "Playfair Display", "Times New Roman", serif !important;
    text-align: center !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
    position: relative;
    padding-bottom: 10px !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* SUPPRIMER LA BARRE SOUS LE TITRE */
.woocommerce ul.products li.product .woocommerce-loop-product__title::after {
    content: none !important;
}

/* Conteneur pour le prix et le bouton alignés en bas */
.woocommerce ul.products li.product .product-bottom {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Prix des produits */
.woocommerce ul.products li.product .price {
    color: var(--or-patine) !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    text-align: center;
    display: block;
    font-family: "Playfair Display", serif;
    font-style: italic;
    order: 1 !important;
}

/* BOUTONS AJOUTER AU PANIER - MÊME LARGEUR QUE LA CARTE */
.woocommerce ul.products li.product .button {
    background: var(--degrade-bouton) !important;
    color: var(--blanc-chaud) !important;
    border-radius: 12px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
    text-align: center;
    width: 100% !important;
    max-width: none !important;
    font-size: 14px !important;
    position: relative;
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
    letter-spacing: 0.3px;
    order: 2 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.woocommerce ul.products li.product .button:hover::before {
    left: 100%;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--bleu-nuit) !important;
    color: var(--or-patine) !important;
    border-color: var(--or-patine) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(193, 160, 95, 0.3);
}

/* ==================== WOOCOMMERCE BLOCKS - ALIGNEMENT PARFAIT ==================== */

.wc-block-product-template,
.wc-block-product-template__responsive,
[data-block-name="woocommerce/product-template"],
.products-container ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 40px 0 !important;
}

.wc-block-product-template .wc-block-product,
.wc-block-product-template__responsive .wc-block-product,
[data-block-name="woocommerce/product-template"] .wc-block-product {
    background: var(--bleu-carte) !important;
    border: 1px solid var(--ligne-subtile) !important;
    border-radius: 16px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    margin: 0 !important;
    transition: all 0.3s ease;
    height: auto !important;
    box-shadow: 0 8px 32px var(--ombre-profonde) !important;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.wc-block-product-template .wc-block-product::before,
.wc-block-product-template__responsive .wc-block-product::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(193, 160, 95, 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.wc-block-product-template .wc-block-product:hover::before,
.wc-block-product-template__responsive .wc-block-product:hover::before {
    animation: shine 1.5s ease-in-out;
    opacity: 1;
}

.wc-block-product-template .wc-block-product:hover,
.wc-block-product-template__responsive .wc-block-product:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 15px 40px rgba(11, 19, 43, 0.9) !important;
    border-color: var(--or-patine) !important;
}

/* Images pour WooCommerce Blocks - PLUS GRANDES */
.wc-block-product .wc-block-components-product-image img,
.wc-block-product .wp-block-woocommerce-product-image img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    border-radius: 16px 16px 0 0 !important;
    margin-bottom: 0 !important;
    transition: all 0.3s ease;
    border: none !important;
}

.wc-block-product:hover .wc-block-components-product-image img,
.wc-block-product:hover .wp-block-woocommerce-product-image img {
    transform: scale(1.05);
}

/* Conteneur du contenu pour les blocks */
.wc-block-product .wc-block-components-product-image + div,
.wc-block-product .wp-block-woocommerce-product-image + div {
    padding: 20px 20px 15px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    min-height: 180px !important;
}

/* Titres pour WooCommerce Blocks avec hauteur fixe */
.wc-block-product .wp-block-post-title,
.wc-block-product .wp-block-post-title a {
    color: var(--blanc-chaud) !important;
    font-weight: 500 !important;
    font-size: 1.2rem !important;
    font-family: "Playfair Display", "Times New Roman", serif !important;
    margin-bottom: 8px !important;
    text-align: center !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    position: relative;
    padding-bottom: 10px !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* SUPPRIMER LA BARRE SOUS LE TITRE */
.wc-block-product .wp-block-post-title::after,
.wc-block-product .wp-block-post-title a::after {
    content: none !important;
}

.wc-block-product .wp-block-post-title a:hover {
    color: var(--or-patine) !important;
}

/* Conteneur pour le prix et le bouton alignés en bas pour les blocks */
.wc-block-product .wc-block-components-product-image + div > :last-child,
.wc-block-product .wp-block-woocommerce-product-image + div > :last-child {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Prix pour WooCommerce Blocks */
.wc-block-product .wc-block-components-product-price,
.wc-block-product .wp-block-woocommerce-product-price,
.wc-block-product .woocommerce-Price-amount {
    color: var(--or-patine) !important;
    font-weight: 600 !important;
    font-size: 1.3rem !important;
    font-family: "Playfair Display", serif !important;
    margin: 0 !important;
    text-align: center !important;
    font-style: italic;
}

/* BOUTONS POUR WOOCOMMERCE BLOCKS - MÊME LARGEUR QUE LA CARTE */
.wc-block-product .wc-block-components-product-button__button,
.wc-block-product .wp-block-button__link,
.wc-block-product .add_to_cart_button {
    background: var(--degrade-bouton) !important;
    color: var(--blanc-chaud) !important;
    border-radius: 12px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    border: 1px solid transparent !important;
    text-align: center;
    width: 100% !important;
    max-width: none !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    text-decoration: none !important;
    display: block !important;
    position: relative;
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.wc-block-product .wc-block-components-product-button__button::before,
.wc-block-product .wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.wc-block-product .wc-block-components-product-button__button:hover::before,
.wc-block-product .wp-block-button__link:hover::before {
    left: 100%;
}

.wc-block-product .wc-block-components-product-button__button:hover,
.wc-block-product .wp-block-button__link:hover,
.wc-block-product .add_to_cart_button:hover {
    background: var(--bleu-nuit) !important;
    color: var(--or-patine) !important;
    border-color: var(--or-patine) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(193, 160, 95, 0.3);
}

/* ==================== RESPONSIVE MOBILE - 2 COLONNES ==================== */

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .woocommerce ul.products li.product {
        border-radius: 14px !important;
    }

    .woocommerce ul.products li.product img {
        height: 200px !important;
    }

    /* Ajustement des hauteurs minimales pour mobile */
    .woocommerce ul.products li.product .product-content {
        min-height: 160px !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: 50px !important;
        font-size: 1.1rem !important;
    }

    .woocommerce ul.products li.product .price {
        font-size: 1.2rem !important;
    }

    .woocommerce ul.products li.product .button {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }

    .wc-block-product-template,
    .wc-block-product-template__responsive,
    [data-block-name="woocommerce/product-template"],
    .products-container ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .wc-block-product-template .wc-block-product,
    .wc-block-product-template__responsive .wc-block-product {
        border-radius: 14px !important;
    }

    .wc-block-product .wc-block-components-product-image img,
    .wc-block-product .wp-block-woocommerce-product-image img {
        height: 200px !important;
    }

    .wc-block-product .wp-block-post-title,
    .wc-block-product .wp-block-post-title a {
        min-height: 50px !important;
        font-size: 1.1rem !important;
    }

    .wc-block-product .wc-block-components-product-price {
        font-size: 1.2rem !important;
    }

    .wc-block-product .wc-block-components-product-button__button,
    .wc-block-product .wp-block-button__link,
    .wc-block-product .add_to_cart_button {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }

    /* Ajustement des hauteurs pour les blocks sur mobile */
    .wc-block-product .wc-block-components-product-image + div,
    .wc-block-product .wp-block-woocommerce-product-image + div {
        min-height: 160px !important;
    }
}

/* ==================== CORRECTION PRODUITS FILTRÉS AJAX ==================== */

.products-container ul.products,
.ajax-products-container ul.products,
[data-block-name="woocommerce/product-template"] ul.products,
.wc-block-product-template ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 30px 0 !important;
}

.products-container .product,
.ajax-products-container .product,
.products-container li.product,
.ajax-products-container li.product {
    background: var(--bleu-carte) !important;
    border: 1px solid var(--ligne-subtile) !important;
    border-radius: 16px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    margin: 0 !important;
    transition: all 0.3s ease;
    height: auto !important;
    box-shadow: 0 8px 32px var(--ombre-profonde) !important;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.products-container .product::before,
.ajax-products-container .product::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(193, 160, 95, 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.products-container .product:hover::before,
.ajax-products-container .product:hover::before {
    animation: shine 1.5s ease-in-out;
    opacity: 1;
}

.products-container .product:hover,
.ajax-products-container .product:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 15px 40px rgba(11, 19, 43, 0.9) !important;
    border-color: var(--or-patine) !important;
}

.products-container .product img,
.ajax-products-container .product img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 16px 16px 0 0 !important;
    margin-bottom: 0 !important;
    transition: all 0.3s ease;
    border: none !important;
}

.products-container .product:hover img,
.ajax-products-container .product:hover img {
    transform: scale(1.05);
}

/* Conteneur contenu pour AJAX */
.products-container .product > *:not(img),
.ajax-products-container .product > *:not(img) {
    padding: 15px 15px 10px 15px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    min-height: 160px !important;
}

.products-container .woocommerce-loop-product__title,
.ajax-products-container .woocommerce-loop-product__title,
.products-container .wp-block-post-title,
.ajax-products-container .wp-block-post-title {
    color: var(--blanc-chaud) !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
    font-family: "Playfair Display", serif !important;
    margin-bottom: 6px !important;
    text-align: center !important;
    line-height: 1.3 !important;
    position: relative;
    padding-bottom: 8px !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* SUPPRIMER LA BARRE SOUS LE TITRE POUR AJAX */
.products-container .woocommerce-loop-product__title::after,
.ajax-products-container .woocommerce-loop-product__title::after {
    content: none !important;
}

.products-container .price,
.ajax-products-container .price,
.products-container .wc-block-components-product-price,
.ajax-products-container .wc-block-components-product-price {
    color: var(--or-patine) !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    font-family: "Playfair Display", serif !important;
    margin: 0 !important;
    text-align: center !important;
    font-style: italic;
}

/* BOUTONS AJAX - MÊME LARGEUR QUE LA CARTE */
.products-container .button,
.ajax-products-container .button,
.products-container .wc-block-components-product-button__button,
.ajax-products-container .wc-block-components-product-button__button {
    background: var(--degrade-bouton) !important;
    color: var(--blanc-chaud) !important;
    border-radius: 12px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    border: 1px solid transparent !important;
    text-align: center;
    width: 100% !important;
    max-width: none !important;
    transition: all 0.3s ease !important;
    font-size: 13px !important;
    position: relative;
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.products-container .button:hover,
.ajax-products-container .button:hover {
    background: var(--bleu-nuit) !important;
    color: var(--or-patine) !important;
    border-color: var(--or-patine) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(193, 160, 95, 0.3);
}

/* Conteneur pour aligner prix et bouton en bas pour AJAX */
.products-container .product > *:not(img) > :last-child,
.ajax-products-container .product > *:not(img) > :last-child {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
}

/* ==================== RESPONSIVE PRODUITS FILTRÉS AJAX ==================== */

@media (max-width: 768px) {
    .products-container ul.products,
    .ajax-products-container ul.products,
    [data-block-name="woocommerce/product-template"] ul.products,
    .wc-block-product-template ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .products-container .product,
    .ajax-products-container .product {
        border-radius: 14px !important;
    }

    .products-container .product img,
    .ajax-products-container .product img {
        height: 160px !important;
    }

    .products-container .woocommerce-loop-product__title,
    .ajax-products-container .woocommerce-loop-product__title {
        min-height: 45px !important;
        font-size: 1rem !important;
    }

    .products-container .price,
    .ajax-products-container .price {
        font-size: 1.1rem !important;
    }

    .products-container .button,
    .ajax-products-container .button {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }

    .products-container .product > *:not(img),
    .ajax-products-container .product > *:not(img) {
        min-height: 140px !important;
    }
}

/* ==================== BOUTONS GÉNÉRAUX ==================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--degrade-bouton) !important;
    color: var(--blanc-chaud) !important;
    border-radius: 20px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
    position: relative;
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--bleu-nuit) !important;
    color: var(--or-patine) !important;
    border-color: var(--or-patine) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(193, 160, 95, 0.3);
}

/* ==================== MINI-CART FLOTTANT ==================== */
.floating-cart {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    background: var(--bleu-nuit);
    border: 1px solid var(--ligne-subtile);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(11, 19, 43, 0.8);
    padding: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.floating-cart[style*="display: none"] {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) scale(0.8);
}

.floating-cart:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 12px 30px rgba(193, 160, 95, 0.3);
    border-color: var(--or-patine);
}

.floating-cart .wc-block-mini-cart__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--degrade-bouton);
    color: var(--blanc-chaud) !important;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.floating-cart .wc-block-mini-cart__quantity-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cart .wc-block-mini-cart__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--degrade-bouton);
    color: var(--blanc-chaud) !important;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--bleu-nuit);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.floating-cart .wc-block-mini-cart__badge.update {
    animation: pulse 0.5s ease;
}

/* ==================== MASQUER LE CONTENU DU PANIER FLOTTANT ==================== */
#floating-mini-cart .wc-block-mini-cart__drawer {
    display: none !important;
}
#floating-mini-cart .wc-block-components-drawer__screen-overlay {
    display: none !important;
}
#floating-mini-cart {
    overflow: visible !important;
}
#floating-mini-cart > *:not(button) {
    display: none !important;
}
#floating-mini-cart .wc-block-mini-cart__button {
    display: flex !important;
}

/* ==================== CHAMPS DATE/HEURE ==================== */
.cm-date-time-input .dlabel-modified {
    all: unset !important;
    display: block !important;
    font: 500 14px/1.5 "Segoe UI", Roboto, sans-serif !important;
    color: var(--blanc-chaud) !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border: none !important;
}

#wccdp-custom-date-picker,
#wccdp-custom-time-picker {
    padding: 10px 12px !important;
    border: 1px solid var(--ligne-subtile) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    width: 100% !important;
    max-width: 200px !important;
    background-color: var(--bleu-carte) !important;
    color: var(--blanc-chaud) !important;
    box-shadow: 0 4px 15px rgba(11, 19, 43, 0.5) !important;
    transition: all 0.3s ease;
}

#wccdp-custom-date-picker:focus,
#wccdp-custom-time-picker:focus {
    border-color: var(--or-patine) !important;
    outline: none !important;
    box-shadow: 0 0 0 1px rgba(193, 160, 95, 0.3) !important;
}

#wccdp-custom-time-picker {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23C1A05F" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/><path d="M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    padding-right: 35px !important;
}

#wccdp-custom-date-picker {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23C1A05F" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11z"/><path d="M0 0h24v24H0z" fill="none"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    padding-right: 35px !important;
}

/* ==================== PROTECTION DES AUTRES ÉLÉMENTS ==================== */
.woocommerce-checkout .form-row label:not(.dlabel-modified) {
    all: revert !important;
}

/* ==================== CACHE LES FRAIS DE LIVRAISON ==================== */
tr.fee {
    display: none !important;
}

/* ==================== STYLES DU TIMEPICKER ==================== */
.ui-timepicker-wrapper {
    z-index: 999999 !important;
    width: 150px !important;
    max-height: 150px !important;
    overflow-y: auto !important;
    background: var(--bleu-carte) !important;
    border: 1px solid var(--ligne-subtile) !important;
    box-shadow: 0 8px 25px rgba(11, 19, 43, 0.8) !important;
    border-radius: 8px !important;
}

.ui-timepicker-list li {
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: var(--blanc-chaud) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.ui-timepicker-list li:hover {
    background-color: rgba(193, 160, 95, 0.1) !important;
    color: var(--or-patine) !important;
}

.ui-timepicker-seconds,
.ui-timepicker-millisec,
.ui-timepicker-microsec,
.ui-timepicker-timezone {
    display: none !important;
}

/* ==================== CHAMPS DE LIVRAISON - STYLES CORRIGÉS ==================== */

/* FORCER l'affichage du conteneur principal */
.wccpd-custom-container {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: var(--bleu-carte) !important;
    border: 1px solid var(--ligne-subtile) !important;
    border-radius: 16px !important;
    padding: 25px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 20px var(--ombre-profonde) !important;
    position: relative !important;
    z-index: 10 !important;
}

/* FORCER l'affichage des champs date/heure */
.cm-date-time-input {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
}

/* S'assurer que tous les éléments enfants sont visibles */
.cm-date-time-input > * {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative !important;
}

/* Styles pour les labels */
.cm-store-date-label,
.cm-store-time-label {
    color: var(--blanc-chaud) !important;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    font-size: 14px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Styles pour les champs de saisie */
#wccdp-custom-date-picker,
#wccdp-custom-time-picker {
    padding: 12px 15px !important;
    border: 1px solid var(--ligne-subtile) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background-color: var(--bleu-nuit) !important;
    color: var(--blanc-chaud) !important;
    box-shadow: 0 4px 15px rgba(11, 19, 43, 0.5) !important;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
}

#wccdp-custom-date-picker:focus,
#wccdp-custom-time-picker:focus {
    border-color: var(--or-patine) !important;
    outline: none !important;
    box-shadow: 0 0 0 1px rgba(193, 160, 95, 0.3) !important;
}

/* Titre de section */
.cm-main-label-checkout {
    color: var(--or-patine) !important;
    font-family: "Playfair Display", serif;
    font-size: 1.3rem !important;
    margin-bottom: 20px !important;
    text-align: center;
    border-bottom: 2px solid var(--or-patine);
    padding-bottom: 10px;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Sélecteur de type de commande */
.wc-blocks-components-select__container {
    grid-column: 1 / -1;
    margin-bottom: 15px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.wc-blocks-components-select__select.cm-store-options {
    background: var(--bleu-nuit) !important;
    color: var(--blanc-chaud) !important;
    border: 1px solid var(--ligne-subtile) !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    width: 100% !important;
    font-size: 14px;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Masquer UNIQUEMENT les éléments vraiment inutiles */
.cm-address-checkout-fee,
.wccpd-custom-container .wc-block-components-address-form__state,
#map {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .cm-date-time-input {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .wccpd-custom-container {
        padding: 20px !important;
    }

    #wccdp-custom-date-picker,
    #wccdp-custom-time-picker {
        max-width: 100% !important;
    }
}

/* ==================== AMÉLIORATIONS SUPPLÉMENTAIRES ==================== */

a {
    color: var(--or-patine);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--beige-dore);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--blanc-chaud);
    font-family: "Playfair Display", serif;
    font-weight: 500;
}

hr {
    border-color: var(--ligne-subtile);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    background-color: var(--bleu-carte);
    border: 1px solid var(--ligne-subtile);
    color: var(--blanc-chaud);
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--or-patine);
    outline: none;
    box-shadow: 0 0 0 1px rgba(193, 160, 95, 0.3);
}

/* ==================== CORRECTION PAGINATION - ALIGNEMENT PARFAIT ==================== */

.woocommerce-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 40px 0 20px 0 !important;
    padding: 0 !important;
}

.woocommerce-pagination ul.page-numbers {
    display: flex !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.woocommerce-pagination .page-numbers li {
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 16px !important;
    border: 1px solid var(--ligne-subtile) !important;
    border-radius: 8px !important;
    color: var(--beige-dore) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    background: var(--bleu-carte) !important;
    font-size: 14px !important;
}

.woocommerce-pagination .page-numbers li a:hover {
    background: rgba(193, 160, 95, 0.1) !important;
    color: var(--or-patine) !important;
    border-color: var(--or-patine) !important;
    transform: translateY(-2px);
}

.woocommerce-pagination .page-numbers li span.current {
    background: rgba(193, 160, 95, 0.15) !important;
    color: var(--or-patine) !important;
    font-weight: 600 !important;
    border-color: var(--or-patine) !important;
}

.woocommerce-pagination .page-numbers li .next,
.woocommerce-pagination .page-numbers li .prev {
    font-weight: 600 !important;
    position: relative !important;
}

.woocommerce-pagination .page-numbers li .next:hover,
.woocommerce-pagination .page-numbers li .prev:hover {
    background: var(--degrade-bouton) !important;
    color: var(--blanc-chaud) !important;
    border-color: transparent !important;
}

/* ==================== PAGINATION AJAX ==================== */

.ajax-pagination {
    margin-top: 40px !important;
}

.products-container + .woocommerce-pagination {
    display: none !important;
}

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

@media (max-width: 768px) {
    .woocommerce-pagination {
        margin: 30px 0 15px 0 !important;
    }

    .woocommerce-pagination .page-numbers li a,
    .woocommerce-pagination .page-numbers li span {
        min-width: 40px !important;
        height: 40px !important;
        padding: 0 12px !important;
        font-size: 13px !important;
    }

    .woocommerce-pagination ul.page-numbers {
        gap: 6px !important;
    }
}

@media (max-width: 480px) {
    .woocommerce-pagination .page-numbers li a,
    .woocommerce-pagination .page-numbers li span {
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    .woocommerce-pagination ul.page-numbers {
        gap: 4px !important;
    }
}

/* ==================== CORRECTIONS SPÉCIFIQUES POUR L'AJAX ==================== */

.products-container:not(:empty) ~ .woocommerce .products,
.products-container:not(:empty) ~ .woocommerce .woocommerce-result-count,
.products-container:not(:empty) ~ .woocommerce .woocommerce-ordering {
    display: none !important;
}

.woocommerce-page .woocommerce ul.products {
    display: grid !important;
}

.woocommerce-products-header {
    text-align: center;
    margin-bottom: 40px;
}

.woocommerce-products-header h1 {
    color: var(--blanc-chaud) !important;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-family: "Playfair Display", serif;
    font-weight: 500;
}

/* ==================== COMPORTEMENT FILTRAGE SUR MENU EXISTANT ==================== */

body.ajax-loading .woocommerce ul.products,
body.ajax-loading .woocommerce-pagination {
    opacity: 0.3;
    pointer-events: none;
}

.ajax-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 43, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: var(--or-patine);
    font-size: 18px;
    font-family: "Playfair Display", serif;
}

.ajax-loading-overlay:before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--or-patine);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

.woocommerce ul.products {
    transition: opacity 0.3s ease;
}

.woocommerce .products {
    animation: fadeIn 0.5s ease-in-out;
}

.ajax-products-container:empty {
    display: none;
}

/* ==================== MASQUAGE ÉLÉMENTS SPÉCIFIQUES ==================== */

[data-block-name="woocommerce/product-results-count"] {
    display: none !important;
}

[data-block-name="woocommerce/catalog-sorting"] {
    display: none !important;
}

.wp-block-group.alignwide.is-content-justification-space-between.is-nowrap.is-layout-flex {
    display: none !important;
}

/* ==================== EFFETS DE LUXE SUBTILS ==================== */

/* Effet de scintillement très subtil sur les cartes */
@keyframes subtleGlow {
    0%, 100% { box-shadow: 0 8px 32px var(--ombre-profonde); }
    50% { box-shadow: 0 8px 32px rgba(11, 19, 43, 0.9); }
}

.woocommerce ul.products li.product,
.wc-block-product-template .wc-block-product {
    animation: subtleGlow 6s ease-in-out infinite;
}

/* Amélioration des transitions pour plus de douceur */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Style pour les textes de description supplémentaires */
.product-description {
    color: var(--beige-dore);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    font-style: italic;
    margin-bottom: 15px;
    opacity: 0.8;
}

/* Badge "Spécialité" optionnel */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(193, 160, 95, 0.9);
    color: var(--bleu-nuit);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* ==================== EFFETS DE LUXE POUR LA NAVIGATION ==================== */

/* Effet de brillance subtil sur les liens du menu */
@keyframes linkGlow {
    0%, 100% { text-shadow: 0 0 0 transparent; }
    50% { text-shadow: 0 0 8px rgba(193, 160, 95, 0.4); }
}

.main-navigation ul li a:hover,
.primary-menu ul li a:hover {
    animation: linkGlow 2s ease-in-out;
}

/* Transition douce pour tous les éléments de navigation */
.main-navigation,
.primary-menu,
.wp-block-navigation,
.header-nav {
    transition: all 0.3s ease;
}

/* ==================== STYLES RESPONSIVE POUR LA NAVIGATION ==================== */

@media (max-width: 768px) {
    .site-title,
    .wp-block-site-title {
        text-align: center;
    }

    .main-navigation ul li a,
    .primary-menu ul li a {
        padding: 10px 15px;
        text-align: center;
    }
}

/* ==================== CHECKOUT CORRIGÉ - URGENT ==================== */

/* RÉINITIALISATION COMPLÈTE DU LAYOUT CHECKOUT */
.woocommerce-checkout .col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

/* FORCER les sections à prendre toute la hauteur */
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
    display: flex !important;
    flex-direction: column !important;
}

/* STYLES UNIFIÉS POUR TOUTES LES SECTIONS */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.wccpd-custom-container,
.payment-section-unified {
    background: var(--bleu-carte) !important;
    border: 1px solid var(--ligne-subtile) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 4px 20px var(--ombre-profonde) !important;
    flex: 1 !important;
    display: block !important;
}

/* TITRES UNIFIÉS */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.checkout-section-title {
    color: var(--or-patine) !important;
    font-family: "Playfair Display", serif !important;
    font-size: 1.5rem !important;
    margin-bottom: 25px !important;
    text-align: center !important;
    border-bottom: 2px solid var(--or-patine) !important;
    padding-bottom: 15px !important;
    font-weight: 600 !important;
}

/* CHAMPS COMPACTS */
.compact-fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    width: 100% !important;
}

.compact-fields .cm-delivery-options {
    grid-column: 1 / -1 !important;
    margin-top: 5px !important;
}

/* STYLES DES CHAMPS */
.field-label {
    display: block !important;
    color: var(--blanc-chaud) !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
}

.field-input {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid var(--ligne-subtile) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: var(--bleu-nuit) !important;
    color: var(--blanc-chaud) !important;
    box-sizing: border-box !important;
}

/* CORRECTION ULTIME Z-INDEX TIMEPICKER */
#wccdp-custom-time-picker {
    position: relative;
    z-index: 100000 !important;
}

input[type="time"] {
    position: relative !important;
    z-index: 100001 !important;
}

/* Style pour forcer l'affichage du timepicker */
.timepicker-fixed {
    z-index: 100002 !important;
    position: relative !important;
}

/* SUPPRESSION DÉFINITIVE DES RADIOS BOUTONS */
#payment_methods_container input[name="shipping_method[0]"],
#payment_methods_container .shipping-methods,
#payment_methods_container .woocommerce-shipping-methods,
#payment_methods_container li[class*="shipping"],
#payment_methods_container .shipping_method,
#payment_methods_container .wc-shipping-method {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* SECTION PAIEMENT */
.payment-section-unified {
    margin-top: 0 !important;
    border-top: none !important;
}

#payment_methods_container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

#payment_methods_container .wc_payment_method {
    background: var(--bleu-nuit) !important;
    border: 1px solid var(--ligne-subtile) !important;
    border-radius: 12px !important;
    margin-bottom: 15px !important;
    padding: 20px !important;
}

#unified_payment_button {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 25px !important;
}

#unified_payment_button #place_order {
    background: var(--degrade-bouton) !important;
    color: var(--blanc-chaud) !important;
    border-radius: 12px !important;
    padding: 18px 30px !important;
    font-weight: 600 !important;
    width: 100% !important;
    font-size: 18px !important;
    border: none !important;
}

/* CACHER LES ÉLÉMENTS INUTILES */
.woocommerce-additional-fields {
    display: none !important;
}

/* RESPONSIVE CHECKOUT */
@media (max-width: 768px) {
    .woocommerce-checkout .col2-set {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .compact-fields {
        grid-template-columns: 1fr !important;
    }

    .woocommerce-billing-fields,
    .woocommerce-shipping-fields,
    .wccpd-custom-container,
    .payment-section-unified {
        padding: 20px !important;
    }
}

/* ==================== STYLES SPÉCIFIQUES POUR LA FACTURE ==================== */

#order_review_heading {
    color: var(--bleu-nuit) !important;
    background: var(--blanc-chaud);
    padding: 20px;
    margin: 0;
    border-radius: 16px 16px 0 0;
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

#order_review {
    background: var(--blanc-chaud) !important;
    border: 2px solid var(--or-patine) !important;
    border-radius: 0 0 16px 16px !important;
    padding: 25px !important;
    margin-top: 0 !important;
    box-shadow: 0 8px 32px var(--ombre-profonde) !important;
}

.woocommerce-checkout-review-order-table {
    background: transparent !important;
    border: none !important;
}

.woocommerce-checkout-review-order-table th {
    background: var(--bleu-nuit) !important;
    color: var(--blanc-chaud) !important;
    border: none !important;
    padding: 15px !important;
    font-weight: 600;
    text-align: center;
}

.woocommerce-checkout-review-order-table td {
    background: transparent !important;
    border-bottom: 1px solid var(--ligne-subtile) !important;
    padding: 12px !important;
    color: var(--bleu-nuit) !important;
}

.woocommerce-checkout-review-order-table tfoot tr:last-child td {
    border-bottom: 2px solid var(--or-patine) !important;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ==================== STYLES PAYPAL ==================== */

#payment_methods_container .wcppec-checkout-buttons,
#payment_methods_container div[class*="paypal"],
#payment_methods_container .paypal-buttons,
#payment_methods_container #ppcp-button {
    text-align: center !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    display: block !important;
    min-height: 60px;
    position: relative;
}

#payment_methods_container .wcppec-checkout-buttons__button,
#payment_methods_container .paypal-button,
#payment_methods_container .ppcp-button,
#payment_methods_container .paypal-button-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
    border-radius: 12px !important;
    padding: 15px !important;
    background: #0070BA !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    min-height: 60px;
    box-sizing: border-box !important;
}

#payment_methods_container .wcppec-checkout-buttons__button:hover,
#payment_methods_container .paypal-button:hover,
#payment_methods_container .ppcp-button:hover {
    background: #005EA6 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 112, 186, 0.3);
}

/* ==================== CORRECTIONS URGENTES CHECKOUT ==================== */

/* FORCER le layout deux colonnes */
.woocommerce-checkout .woocommerce {
    display: block !important;
    width: 100% !important;
}

.woocommerce-checkout .col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
}

.woocommerce-checkout .col2-set::before,
.woocommerce-checkout .col2-set::after {
    display: none !important;
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    display: block !important;
}

/* SUPPRIMER LES POINTS DES LISTES DE PAIEMENT */
#payment_methods_container ul,
#payment_methods_container li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#payment_methods_container .wc_payment_methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#payment_methods_container .wc_payment_method {
    list-style: none !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    background: none !important;
}

#payment_methods_container .wc_payment_method label {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 15px !important;
    background: var(--bleu-nuit) !important;
    border: 1px solid var(--ligne-subtile) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#payment_methods_container .wc_payment_method label:hover {
    border-color: var(--or-patine) !important;
    background: rgba(193, 160, 95, 0.05) !important;
}

#payment_methods_container .wc_payment_method input[type="radio"] {
    margin: 0 12px 0 0 !important;
    transform: scale(1.2) !important;
}

.add_gift_card_form h4 {
    display: none !important;
}

/* ==================== CORRECTION TIMEPICKER Z-INDEX ==================== */

/* FORCER LE TIMEPICKER AU PREMIER PLAN */
.cm-time-field {
    position: relative;
    z-index: 1000 !important;
}

#wccdp-custom-time-picker {
    position: relative;
    z-index: 1001 !important;
}

/* QUAND LE TIMEPICKER EST OUVERT */
#wccdp-custom-time-picker:focus {
    z-index: 1002 !important;
}

/* FORCER LE TIMEPICKER NATIF EN PREMIER PLAN */
input[type="time"] {
    position: relative !important;
    z-index: 10000 !important;
}

/* SUR MOBILE - SOLUTION RADICALE */
@media (max-width: 768px) {
    .cm-time-field input[type="time"] {
        z-index: 99999 !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 80% !important;
        max-width: 250px !important;
        background: var(--bleu-nuit) !important;
    }
}

/* Appliquer le même style que payment-section-unified à order_review */
.woocommerce-checkout-review-order {
    background: #f8f8f8 !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    clear: both !important;
}

/* Style pour le tableau de commande */
.woocommerce-checkout-review-order .shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.woocommerce-checkout-review-order .shop_table th {
    text-align: left;
    padding: 15px;
    background: #e8e8e8;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.woocommerce-checkout-review-order .shop_table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: white;
}

.woocommerce-checkout-review-order .shop_table tfoot tr:first-child th,
.woocommerce-checkout-review-order .shop_table tfoot tr:first-child td {
    border-top: 2px solid #ddd;
}

.woocommerce-checkout-review-order .shop_table tfoot tr:last-child td,
.woocommerce-checkout-review-order .shop_table tfoot tr:last-child th {
    border-bottom: none;
    background: #e8e8e8;
    font-weight: bold;
    font-size: 18px;
}

/* Style pour la section carte cadeau - même style que les autres sections */
.woocommerce-checkout-review-order .add_gift_card_form {
    background: white !important;
    padding: 20px !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    margin-bottom: 20px !important;
}

.woocommerce-checkout-review-order .add_gift_card_form h4 {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    color: #333 !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

.woocommerce-checkout-review-order .add_gift_card_form input {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
}

.woocommerce-checkout-review-order .add_gift_card_form button {
    width: 100% !important;
    padding: 12px !important;
    background: #007cba !important;
    color: white !important;
    border: none !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: bold !important;
}

.woocommerce-checkout-review-order .add_gift_card_form button:hover {
    background: #005a87 !important;
}

/* Style pour les messages PayPal */
.woocommerce-checkout-review-order .ppcp-messages {
    background: white !important;
    padding: 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    margin-bottom: 20px !important;
}

/* Style pour les méthodes de livraison */
.woocommerce-checkout-review-order .woocommerce-shipping-methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout-review-order .woocommerce-shipping-methods li {
    margin-bottom: 10px !important;
    padding: 12px !important;
    background: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
}

.woocommerce-checkout-review-order .woocommerce-shipping-methods li:last-child {
    margin-bottom: 0 !important;
}

.woocommerce-checkout-review-order .woocommerce-shipping-methods label {
    font-weight: bold !important;
    color: #333 !important;
}

.woocommerce-checkout-review-order .shipping-method-description {
    margin: 5px 0 0 0 !important;
    font-size: 12px !important;
    color: #666 !important;
    font-style: italic !important;
}

/* Style pour le wrapper des boutons PayPal */
.woocommerce-checkout-review-order .ppc-button-wrapper {
    background: white !important;
    padding: 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
}


/* Responsive */
@media (max-width: 768px) {
    .woocommerce-checkout-review-order {
        padding: 15px !important;
    }

    .woocommerce-checkout-review-order .shop_table {
        font-size: 14px;
    }

    .woocommerce-checkout-review-order .shop_table th,
    .woocommerce-checkout-review-order .shop_table td {
        padding: 10px;
    }

    .woocommerce-checkout-review-order .add_gift_card_form {
        padding: 15px !important;
    }
}
/* RÉINITIALISATION COMPLÈTE du style order_review */
#order_review {
    background: #f8f8f8 !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    clear: both !important;
    box-shadow: none !important;
}

/* Supprimer TOUS les styles de fond conflictuels */
#order_review * {
    box-sizing: border-box !important;
}

/* Forcer le style du tableau */
#order_review table.shop_table {
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    border-collapse: collapse !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

#order_review table.shop_table th {
    background: #e8e8e8 !important;
    border-bottom: 1px solid #ddd !important;
    padding: 15px !important;
    text-align: left !important;
    font-weight: bold !important;
    color: #333 !important;
}

#order_review table.shop_table td {
    background: white !important;
    border-bottom: 1px solid #eee !important;
    padding: 15px !important;
}

#order_review table.shop_table tfoot tr:last-child th,
#order_review table.shop_table tfoot tr:last-child td {
    background: #e8e8e8 !important;
    font-weight: bold !important;
    border-bottom: none !important;
}

/* Style pour la carte cadeau */
#order_review .add_gift_card_form {
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

/* Style pour les méthodes de livraison */
#order_review .woocommerce-shipping-methods {
    background: transparent !important;
}

#order_review .woocommerce-shipping-methods li {
    background: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    padding: 12px !important;
    margin-bottom: 10px !important;
}

/* Style pour PayPal */
#order_review .ppcp-messages {
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
}

/* SUPPRIMER la section carte cadeau */
#order_review .add_gift_card_form {
    display: none !important;
}

/* SUPPRIMER les messages PayPal */
#order_review .ppcp-messages {
    display: none !important;
}

/* SUPPRIMER le bloc code promo */
.woocommerce-form-coupon-toggle {
    display: none !important;
}

/* SUPPRIMER le wrapper des boutons PayPal */
.ppc-button-wrapper {
    display: none !important;
}

/* ==================== CORRECTION AFFICHAGE MOBILE EXPÉDITION ==================== */

/* FORCER L'AFFICHAGE COMPLET DES OPTIONS DE LIVRAISON SUR MOBILE */
.woocommerce-shipping-totals .woocommerce-shipping-methods {
    display: block !important;
    width: 100% !important;
}

.woocommerce-shipping-totals .woocommerce-shipping-methods li {
    display: block !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

/* GARANTIR QUE TOUS LES ÉLÉMENTS SONT VISIBLES */
.woocommerce-shipping-totals .shipping_method {
    display: inline-block !important;
    margin-right: 8px !important;
}

.woocommerce-shipping-totals label {
    display: inline !important;
}

.shipping-method-description {
    display: block !important;
    margin-top: 5px !important;
    font-size: 0.9em !important;
    color: var(--blanc-chaud) !important;
    opacity: 0.8 !important;
}

/* CORRECTION SPÉCIFIQUE PUR MOBILE */
@media (max-width: 768px) {
    .woocommerce-shipping-totals td {
        display: block !important;
        width: 100% !important;
    }

    .woocommerce-shipping-totals .woocommerce-shipping-methods {
        padding: 10px !important;
    }

    .woocommerce-shipping-totals .woocommerce-shipping-methods li {
        padding: 10px !important;
        margin-bottom: 8px !important;
    }
}

/* ==================== RELATED PRODUCTS - CLEAN FIX ==================== */

/* Reset de base */
.wc-block-product-template.is-flex-container.columns-5 {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.wc-block-product-template.is-flex-container.columns-5 .wc-block-product {
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* === DESKTOP FIRST APPROACH === */

/* Par défaut (Desktop) - 5 colonnes */
.wc-block-product-template.is-flex-container.columns-5 {
    gap: 20px !important;
    justify-content: flex-start !important;
}

.wc-block-product-template.is-flex-container.columns-5 .wc-block-product {
    flex: 0 0 calc(20% - 16px) !important;
    width: calc(20% - 16px) !important;
}

/* Tablet - 3 colonnes */
@media (max-width: 1024px) and (min-width: 768px) {
    .wc-block-product-template.is-flex-container.columns-5 .wc-block-product {
        flex: 0 0 calc(33.333% - 14px) !important;
        width: calc(33.333% - 14px) !important;
    }
}

/* Mobile - 2 colonnes (écrase le style desktop) */
@media (max-width: 767px) {
    .wc-block-product-template.is-flex-container.columns-5 {
        gap: 10px !important;
        justify-content: space-between !important;
    }

    .wc-block-product-template.is-flex-container.columns-5 .wc-block-product {
        flex: 0 0 calc(50% - 5px) !important;
        width: calc(50% - 5px) !important;
    }
}

/* Very small mobile - 1 colonne */
@media (max-width: 480px) {
    .wc-block-product-template.is-flex-container.columns-5 .wc-block-product {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* ==================== STYLES POUR LA PAGE DE CONFIRMATION ==================== */

.sultan-order-summary-container table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 15px 0 !important;
}

.sultan-order-summary-container table th {
    background: #f8f8f8 !important;
    color: #555 !important;
    font-weight: 600 !important;
    padding: 12px !important;
    text-align: left !important;
    border-bottom: 2px solid #ddd !important;
}

.sultan-order-summary-container table td {
    padding: 12px !important;
    border-bottom: 1px solid #eee !important;
    vertical-align: top !important;
    background: white !important;
}

.sultan-order-summary-container .product-quantity {
    color: #9A7C45 !important;
    font-weight: 600 !important;
}

.sultan-order-summary-container .wc-item-meta {
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.sultan-order-summary-container .wc-item-meta li {
    display: block !important;
    padding: 5px 0 !important;
    border-bottom: none !important;
}

.sultan-order-summary-container .wc-item-meta-label {
    color: #9A7C45 !important;
    font-weight: 600 !important;
    display: inline-block !important;
    min-width: 120px !important;
}

.sultan-order-summary-container .wc-item-meta p {
    display: inline !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sultan-order-summary-container .woocommerce-Price-amount {
    color: #9A7C45 !important;
    font-weight: 600 !important;
}

/* ==================== STYLES POUR LE CHECKOUT ==================== */

.woocommerce-additional-fields,
.woocommerce-additional-fields h3,
.woocommerce-additional-fields__field-wrapper {
    display: none !important;
}

/* ==================== SUPPRESSION DESCRIPTION PRODUIT ==================== */

.wc-tabs li.description_tab,
li[aria-controls="tab-description"],
a[href="#tab-description"],
.woocommerce-Tabs-panel--description,
#tab-description,
.woocommerce-tabs .panel:first-child,
.wc-tab[role="tabpanel"],
#tab-description h2,
.woocommerce-Tabs-panel h2:contains("Description") {
    display: none !important;
}

/* ==================== CHECKOUT CLEANUP STYLES ==================== */
/* Ces styles garantissent la suppression même si JS est désactivé */

/* MailPoet Checkbox - Suppression complète */
.woocommerce-form__label[data-automation-id="woo-commerce-subscription-opt-in"],
.woocommerce-form__label-for-checkbox.checkbox[data-automation-id="woo-commerce-subscription-opt-in"],
#mailpoet_woocommerce_checkout_optin,
input[name="mailpoet_woocommerce_checkout_optin"],
input#mailpoet_woocommerce_checkout_optin + span,
label:has(#mailpoet_woocommerce_checkout_optin) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

/* Garantir que les éléments parents n'affichent pas de contenu vide */
body:has(#mailpoet_woocommerce_checkout_optin) .woocommerce-checkout,

/* ==================== SECTION PAIEMENT STYLISÉE ==================== */

/* Conteneur principal de la section paiement */
.payment-section-style {
    background: var(--bleu-carte) !important;
    border: 1px solid var(--ligne-subtile) !important;
    border-radius: 16px !important;
    padding: 25px !important;
    margin-top: 25px !important;
    box-shadow: 0 4px 20px var(--ombre-profonde) !important;
}

/* Titre de la section */
.payment-section-style .checkout-section-title {
    color: var(--or-patine) !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 1.3rem !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    border-bottom: 2px solid var(--or-patine) !important;
    padding-bottom: 10px !important;
}

/* Liste des méthodes de paiement */
.payment-section-style .wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}

/* Chaque méthode de paiement */
.payment-section-style .wc_payment_method {
    background: var(--bleu-nuit) !important;
    border: 1px solid var(--ligne-subtile) !important;
    border-radius: 12px !important;
    margin-bottom: 15px !important;
    padding: 20px !important;
    transition: all 0.3s ease !important;
}

.payment-section-style .wc_payment_method:hover {
    border-color: var(--or-patine) !important;
    box-shadow: 0 4px 15px rgba(193, 160, 95, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* Label des méthodes */
.payment-section-style .wc_payment_method label {
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    color: var(--blanc-chaud) !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Conteneur des logos de cartes */
.payment-section-style .payment-methods--logos {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
}


.payment-section-style .payment-methods--logos-count {
    background: var(--or-patine) !important;
    color: var(--bleu-nuit) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    margin-left: 8px !important;
}

/* Box de description (PayPal) */
.payment-section-style .payment_box {
    margin-top: 15px !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    border: 1px solid var(--ligne-subtile) !important;
    color: var(--blanc-chaud) !important;
    font-size: 14px !important;
}


/* Section "Enregistrer les informations" */
.payment-section-style .woocommerce-SavedPaymentMethods-saveNew {
    margin-top: 15px !important;
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    border: 1px solid var(--ligne-subtile) !important;
}

.payment-section-style .woocommerce-SavedPaymentMethods-saveNew label {
    color: var(--blanc-chaud) !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
}

/* Section de commande */
.payment-section-style .place-order {
    margin-top: 25px !important;
    padding-top: 25px !important;
    border-top: 1px solid var(--ligne-subtile) !important;
}

/* Bouton Commander */
.payment-section-style #place_order {
    background: var(--degrade-bouton) !important;
    color: var(--blanc-chaud) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 18px 30px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.payment-section-style #place_order:hover {
    background: var(--bleu-nuit) !important;
    color: var(--or-patine) !important;
    border: 1px solid var(--or-patine) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(193, 160, 95, 0.3) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-section-style {
        padding: 20px !important;
        margin-top: 20px !important;
    }

    .payment-section-style .wc_payment_method {
        padding: 15px !important;
    }

    .payment-section-style .payment-methods--logos {
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
    }

    .payment-section-style .payment-methods--logos img {
        height: 20px !important;
        margin: 2px !important;
    }

    .payment-section-style #place_order {
        padding: 16px 20px !important;
        font-size: 16px !important;
    }
}

/* Cacher les éléments inutiles */
.payment-section-style label[for="wc-woocommerce_payments-new-payment-method"],
.payment-section-style .woocommerce-SavedPaymentMethods-saveNew {
    display: none !important;
}

/* Style pour le bouton PayPal */
.payment-section-style .wc_payment_method.payment_method_ppcp-gateway {
    position: relative !important;
}

.payment-section-style .wc_payment_method.payment_method_ppcp-gateway::after {
    content: "🔒";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.7;
}

/* Style pour Ticket Restaurant */
.payment-section-style .wc_payment_method.payment_method_paygreen_payment {
    background: linear-gradient(135deg, var(--bleu-nuit), #2a3b5f) !important;
}

.payment-section-style .wc_payment_method.payment_method_paygreen_payment:hover {
    background: linear-gradient(135deg, #2a3b5f, var(--bleu-nuit)) !important;
}

/* ==================== PRÉVENTION BOUCLE DE CHARGEMENT ==================== */

/* Limiter la durée d'affichage du bloc de chargement */
.blockUI.blockOverlay {
    animation: autoOverlayHide 8s forwards !important;
    pointer-events: none !important;
}

@keyframes autoOverlayHide {
    0% { opacity: 0.6; }
    95% { opacity: 0.6; }
    100% { opacity: 0; visibility: hidden; display: none !important; }
}

/* Désactiver les animations de chargement après un certain temps */
.woocommerce-checkout .blockUI {
    transition: opacity 0.5s ease !important;
}

/* Style pour indiquer que le chargement est terminé */
.blockUI.blockOverlay.loading-done {
    opacity: 0 !important;
    display: none !important;
}

/* ==================== STYLES PAIEMENT STYLISÉ ==================== */

.payment-section-style {
    animation: slideInUp 0.5s ease-out !important;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Correction de l'affichage checkout */
.woocommerce-checkout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.col2-set {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.col2-set .col-1,
.col2-set .col-2 {
    flex: 1;
    min-width: 300px;
    box-sizing: border-box
}

.order-review-wrapper {
    margin-top: 40px;
    border-top: 2px solid #eee;
    padding-top: 30px;
}

/* Style pour les champs de paiement */
.woocommerce-checkout .payment_methods {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle {
    margin-bottom: 20px;
}

/* ==================== CHECKOUT MOBILE - VERSION SIMPLIFIÉE ==================== */

@media (max-width: 768px) {
    
    /* FORCER UNE COLONNE UNIQUE */
    .woocommerce-checkout .col2-set {
        display: block !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
    }
    
    .woocommerce-checkout .col-1,
    .woocommerce-checkout .col-2 {
        width: 100% !important;
        float: none !important;
        display: block !important;
        margin: 0 0 20px 0 !important;
        padding: 0 !important;
    }
    
    /* FORCER LES SECTIONS PLEINE LARGEUR */
    .woocommerce-billing-fields,
    .woocommerce-shipping-fields,
    .wccpd-custom-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }
    
    /* CHAMPS DATE/HEURE EN COLONNE */
    .cm-date-time-input {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 15px !important;
    }
    
    /* TABLEAU RÉCAPITULATIF PLEINE LARGEUR */
    .order-review-wrapper {
        width: 100% !important;
        margin-top: 20px !important;
    }
    
    #order_review {
        width: 100% !important;
        padding: 15px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* SECTION PAIEMENT PLEINE LARGEUR */
    #payment.woocommerce-checkout-payment {
        width: 100% !important;
        margin: 20px 0 0 0 !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }
    
    /* BOUTON COMMANDER PLEINE LARGEUR */
    #place_order {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* TRÈS PETITS ÉCRANS */
@media (max-width: 480px) {
    .woocommerce-checkout-review-order-table {
        font-size: 13px !important;
    }
    
    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td {
        padding: 8px 5px !important;
    }
    
    #place_order {
        padding: 12px !important;
        font-size: 15px !important;
    }
}

/* Cache les éléments PayPal */
.message__container.locale--FR,
.paypal-messaging-container,
[data-pp-id],
[class*="paypal"],
[class*="pp-message"],
.paypal-button-container,
.pp-message,
div[style*="paypal"],
div[class*="paypal"],
.paylater-message,
.paypal-credit-promo {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    overflow: hidden !important;
}

/* Cache les avis produits */
[data-block-name="woocommerce/product-details"],
.woocommerce-tabs,
.wc-tabs-wrapper,
.wc-tabs,
#reviews,
#comments,
#review_form_wrapper,
.woocommerce-Reviews,
.comment-respond,
#tab-title-reviews,
#tab-reviews,
.woocommerce-Reviews-title,
.woocommerce-noreviews,
#review_form,
.comment-form,
.stars,
.star-1,
.star-2,
.star-3,
.star-4,
.star-5,
#rating,
.comment-form-rating {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    opacity: 0 !important;
    overflow: hidden !important;
}

/* Nettoie l'espace après suppression */
div:empty,
span:empty,
p:empty {
    display: none !important;
}

/* Cache les iframes PayPal */
iframe[src*="paypal"],
iframe[src*="pp."],
iframe[src*="message"] {
    display: none !important;
    visibility: hidden !important;
}

@media (max-width: 768px) {
    /* Garde tout sur la même ligne comme avant */
    #shipping_method label[for*="shipping_method_0_flexible_shipping_single23"] {
        display: flex !important;
        align-items: center !important;
        white-space: nowrap !important; /* Empêche le retour à la ligne */
        color: black !important; /* Remet le texte visible */
    }

    /* Cache spécifiquement "Livraison à domicile:" */
    #shipping_method label[for*="shipping_method_0_flexible_shipping_single23"] {
        font-size: 0 !important; /* Cache tout le texte */
    }

    /* Réaffiche juste le prix en inline */
    #shipping_method label[for*="shipping_method_0_flexible_shipping_single23"] .woocommerce-Price-amount {
        font-size: 14px !important;
        color: black !important;
        display: inline !important;
        font-weight: bold !important;
        margin-left: 0 !important;
    }

    /* Optionnel: Ajoute "Livraison" avant le prix */
    #shipping_method label[for*="shipping_method_0_flexible_shipping_single23"]::before {
        content: "Livraison " !important;
        font-size: 14px !important;
        color: black !important;
        margin-right: 5px !important;
    }

    /* Point de vente inchangé */
    #shipping_method label[for*="local_pickup"] {
        font-size: 14px !important;
        color: black !important;
    }
}

/* Cacher la description dans le mini-panier */
.wc-block-mini-cart .wc-block-components-product-metadata__description,
.wc-block-mini-cart [data-tilda-quill],
.wc-block-mini-cart__drawer .wc-block-components-product-metadata__description,
[data-wp-watch="callbacks.itemShortDescription"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
}

/* Cacher aussi le conteneur parent si vide */
.wc-block-mini-cart .wc-block-components-product-metadata:has(.wc-block-components-product-metadata__description:only-child) {
    display: none !important;
}

/* ========== ALIGNEMENT BOUTON EXPRESS ========== */
}

/* ========== SOLUTION BOUTON EXPRESS ========== */

/* ========== AJUSTEMENTS ESPACEMENT CHAMPS CARTE ========== */
/* Container principal - Plus d'espace */
.wcpay-upe-form {
    padding: 20px !important; /* Augmenté de 15px à 20px */
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--ligne-subtile) !important;
    border-radius: 10px !important; /* Augmenté de 8px à 10px */
    margin-top: 15px !important;
}

/* Grid - Plus d'espace entre les champs */
.wcpay-upe-form .p-Grid {
    gap: 20px !important; /* Augmenté de 15px à 20px */
    margin-bottom: 10px !important;
}

/* Champs individuels - Plus de hauteur */
.p-FieldsetCell {
    min-height: 85px !important; /* Hauteur minimale pour éviter le débordement */
}

/* Inputs - Plus de padding en hauteur */
.p-Input-input {
    padding: 14px 15px !important; /* Augmenté de 12px à 14px en hauteur */
    height: 52px !important; /* Hauteur fixe */
    box-sizing: border-box !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

/* Labels - Plus d'espace en dessous */
.p-FieldLabel {
    margin-bottom: 12px !important; /* Augmenté de 8px à 12px */
    font-size: 14px !important;
    font-weight: 600 !important;
    display: block !important;
}

/* Container des icônes (Visa/Mastercard) */
.p-CardBrandIcons,
.p-CardCvcIcons {
    margin-top: 8px !important;
}

/* Ajustement spécifique pour Date et CVC */
.p-FieldsetCell[data-field="expiry"],
.p-FieldsetCell[data-field="cvc"] {
    position: relative !important;
}

/* Placeholder plus visible */
.p-Input-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 0.7 !important;
}

/* ========== CORRECTION SPÉCIFIQUE POUR MOBILE ========== */
@media (max-width: 768px) {
    .wcpay-upe-form {
        padding: 18px !important;
    }

    .wcpay-upe-form .p-Grid {
        gap: 18px !important;
    }

    .p-Input-input {
        height: 56px !important; /* Plus grand sur mobile pour faciliter le tap */
        padding: 16px 15px !important;
        font-size: 17px !important; /* Standard iOS */
    }

    .p-FieldLabel {
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }

    .p-FieldsetCell {
        min-height: 95px !important; /* Plus d'espace sur mobile */
    }
}

/* ========== CORRECTION FOCUS STATES ========== */
.p-Input-input:focus {
    border-color: var(--or-patine) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(193, 160, 95, 0.15) !important; /* Ombre plus visible */
    transform: translateY(-1px); /* Légère élévation */
    transition: all 0.2s ease;
}

/* ========== ÉTATS DE VALIDATION ========== */
.p-Input-input.Input--valid {
    border-color: #34c759 !important;
    background: rgba(52, 199, 89, 0.05) !important;
}

.p-Input-input.Input--invalid {
    border-color: #ff3b30 !important;
    background: rgba(255, 59, 48, 0.05) !important;
}

/* ========== ESPACEMENT SUPPLÉMENTAIRE POUR LES BOUTONS RADIO ========== */
/* S'assurer que les radios ne chevauchent pas les champs */
#payment .wc_payment_method {
    margin-bottom: 15px !important;
}

/* Espace entre la section carte et le bouton commander */
#payment .place-order {
    margin-top: 25px !important;
    padding-top: 25px !important;
    border-top: 1px solid var(--ligne-subtile) !important;
}

/* ========== ÉLARGISSEMENT DES CHAMPS INDIVIDUELS ========== */
@media (max-width: 768px) {
    /* Container principal - garder normal */
    .wcpay-upe-form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px 0 !important;
        padding: 25px 15px !important;
        min-height: 420px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid var(--ligne-subtile) !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }
    
    /* Container Stripe - forcer une taille carrée pour encourager les champs larges */
    .wcpay-upe-form .StripeElement,
    .wcpay-upe-form .__PrivateStripeElement {
        width: 100% !important;
        min-width: 100% !important;
        height: 380px !important;
        min-height: 380px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        display: block !important;
        /* Forcer un ratio qui encourage les champs larges */
        aspect-ratio: 1 / 1.3 !important;
    }
    
    /* L'iframe - taille normale mais avec astuces */
    .wcpay-upe-form iframe {
        width: 100% !important;
        min-width: 100% !important;
        height: 380px !important;
        min-height: 380px !important;
        border: 1px solid var(--ligne-subtile) !important;
        border-radius: 8px !important;
        background: white !important;
        display: block !important;
        margin: 0 !important;
        /* Astuce: réduire le padding interne de Stripe */
        padding: 5px !important;
        box-sizing: border-box !important;
    }
    
    /* ASTUCE 1: Augmenter légèrement la taille de police */
    /* Cela force Stripe à agrandir les champs */
    .wcpay-upe-form {
        font-size: 18px !important;
    }
    
    /* ASTUCE 2: Réduire l'espace entre les champs */
    .wcpay-upe-form .__PrivateStripeElement {
        --stripe-field-gap: 8px !important;
    }
}

/* ========== VERSION CHAMPS PLUS LARGES ========== */
/* Augmenter la largeur INTERNE des champs */
@media (max-width: 768px) {
    .wcpay-upe-form-larger-fields {
        padding: 25px 10px !important;
    }
    
    .wcpay-upe-form-larger-fields .__PrivateStripeElement {
        width: 105% !important; /* Très léger élargissement */
        min-width: 105% !important;
        margin: 0 -2.5% !important;
        height: 400px !important;
        min-height: 400px !important;
        /* Forcer un ratio plus carré = champs plus larges */
        aspect-ratio: 1 / 1.2 !important;
    }
    
    .wcpay-upe-form-larger-fields iframe {
        width: 105% !important;
        min-width: 105% !important;
        height: 400px !important;
        min-height: 400px !important;
        margin: 0 auto !important;
        /* Plus de padding interne pour réduire les marges Stripe */
        padding: 8px !important;
    }
}

/* ========== VERSION CHAMPS TRÈS LARGES ========== */
/* Maximum sans casser le layout colonne */
@media (max-width: 768px) {
    .wcpay-upe-form-extra-wide-fields {
        padding: 25px 5px !important; /* Minimum de padding */
    }
    
    .wcpay-upe-form-extra-wide-fields .__PrivateStripeElement {
        width: 110% !important; /* 10% plus large */
        min-width: 110% !important;
        margin: 0 -5% !important;
        height: 420px !important;
        min-height: 420px !important;
        /* Ratio encore plus carré */
        aspect-ratio: 1 / 1.15 !important;
        /* Légère mise à l'échelle horizontale */
        transform: scaleX(1.05) !important;
        transform-origin: center top !important;
    }
    
    .wcpay-upe-form-extra-wide-fields iframe {
        width: 110% !important;
        min-width: 110% !important;
        height: 420px !important;
        min-height: 420px !important;
        margin: 0 auto !important;
        padding: 10px !important;
        border: 1px solid var(--or-patine) !important;
    }
}

/* ========== ASTUCES SPÉCIFIQUES POUR STRIPE ========== */
/* Ces propriétés CSS custom peuvent influencer Stripe */
@media (max-width: 768px) {
    .wcpay-upe-form {
        /* Variables CSS que Stripe pourrait utiliser */
        --stripe-field-min-width: 95% !important;
        --stripe-input-width: 100% !important;
        --stripe-field-margin: 2px !important;
    }
    
    /* Forcer un conteneur avec moins de contraintes */
    .payment_method_woocommerce_payments .payment_box {
        min-width: 100% !important;
        max-width: none !important;
    }
}

/* ========== STYLE MINIMAL POUR BOUTON EXPRESS ========== */
/* Ne rien forcer - laisser Stripe/WooCommerce Payments faire son travail */

/* S'assurer que le bouton est visible dans les méthodes de paiement */
#payment .wc_payment_methods .wcpay-express-checkout-wrapper {
    order: -1; /* Premier élément */
    margin-bottom: 20px;
    border: 1px solid var(--ligne-subtile);
    border-radius: 8px;
    padding: 15px;
    background: var(--bleu-nuit);
}

/* Séparateur */
#wcpay-express-checkout-button-separator {
    display: block;
    margin: 15px auto;
    text-align: center;
    color: var(--blanc-chaud);
    font-size: 14px;
    opacity: 0.7;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    #payment .wc_payment_methods .wcpay-express-checkout-wrapper {
        padding: 12px;
        margin-bottom: 15px;
    }
}

/* ========== DÉPLACEMENT BOUTON EXPRESS CHECKOUT ========== */
/* Sur TOUS les appareils (mobile et PC) */

/* 1. Sortir le bouton Express de son conteneur actuel */
.wcpay-express-checkout-wrapper {
    order: -1 !important; /* Placer en premier */
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto 30px auto !important;
    padding: 0 !important;
    display: block !important;
    position: relative !important;
}

/* 2. Le déplacer AVANT la section #payment */
.checkout.woocommerce-checkout .woocommerce-checkout-payment {
    position: relative !important;
}

/* 3. Insérer le bouton Express au début de #payment */
.checkout.woocommerce-checkout #payment {
    display: flex !important;
    flex-direction: column !important;
}

.checkout.woocommerce-checkout #payment .wcpay-express-checkout-wrapper {
    order: 0 !important; /* Premier élément */
    margin-bottom: 25px !important;
}

/* 4. Séparateur Express */
#wcpay-express-checkout-button-separator {
    display: block !important;
    margin: 20px auto !important;
    text-align: center !important;
    color: var(--blanc-chaud) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    opacity: 0.7 !important;
    width: 100% !important;
}

/* 5. Ajustement pour mobile */
@media (max-width: 768px) {
    .wcpay-express-checkout-wrapper {
        max-width: 100% !important;
        margin: 0 0 25px 0 !important;
        padding: 0 10px !important;
    }
    
    .wcpay-express-checkout-wrapper iframe {
        height: 48px !important;
        min-height: 48px !important;
        width: 100% !important;
        border-radius: 8px !important;
        background: white !important;
    }
    
    #wcpay-express-checkout-button-separator {
        margin: 15px auto !important;
        font-size: 13px !important;
    }
}

/* 6. Pour PC */
@media (min-width: 769px) {
    .wcpay-express-checkout-wrapper {
        max-width: 400px !important;
        margin: 0 auto 30px auto !important;
    }
    
    .wcpay-express-checkout-wrapper iframe {
        height: 48px !important;
        min-height: 48px !important;
        width: 100% !important;
        max-width: 400px !important;
        border-radius: 8px !important;
        background: white !important;
    }
}
/* ========== CORRECTION URGENTE BOUTON EXPRESS ========== */

/* 1. FORCER une hauteur minimale pour le wrapper */
.wcpay-express-checkout-wrapper {
    min-height: 50px !important;
    height: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 25px !important;
}

/* 2. FORCER une hauteur pour l'iframe de Stripe */
.wcpay-express-checkout-wrapper iframe {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    width: 100% !important;
    min-width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: none !important;
    border-radius: 8px !important;
    background: white !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

/* 3. Override les styles inline de Stripe */
.__PrivateStripeElement {
    height: 48px !important;
    min-height: 48px !important;
}

/* 4. S'assurer que l'élément Stripe a une taille correcte */
.StripeElement.is-ready {
    height: 48px !important;
    min-height: 48px !important;
}

/* 5. Déplacer le bouton dans les méthodes de paiement */
#payment {
    position: relative !important;
}

/* Le bouton Express DOIT être le premier élément dans #payment */
.checkout.woocommerce-checkout #payment .wcpay-express-checkout-wrapper {
    order: -9999 !important;
    margin-bottom: 25px !important;
    padding: 15px !important;
    background: var(--bleu-nuit) !important;
    border: 1px solid var(--ligne-subtile) !important;
    border-radius: 12px !important;
}

/* 6. Corriger le séparateur */
#wcpay-express-checkout-button-separator {
    display: block !important;
    margin: 15px auto !important;
    text-align: center !important;
    color: var(--blanc-chaud) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    opacity: 0.7 !important;
    width: 100% !important;
}

/* 7. Responsive */
@media (max-width: 768px) {
    .wcpay-express-checkout-wrapper {
        min-height: 56px !important;
        margin-bottom: 20px !important;
        padding: 12px !important;
    }
    
    .wcpay-express-checkout-wrapper iframe {
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
    }
    
    .__PrivateStripeElement {
        height: 52px !important;
        min-height: 52px !important;
    }
    
    .StripeElement.is-ready {
        height: 52px !important;
        min-height: 52px !important;
    }
}

/* 8. Override radical pour les styles inline problématiques */
.wcpay-express-checkout-wrapper iframe[style*="height: 7.98611px"],
.wcpay-express-checkout-wrapper iframe[style*="height: 8px"] {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
}

/* 9. Ajouter un indicateur visuel pendant le chargement */
.wcpay-express-checkout-wrapper.loading::after {
    content: "Chargement des méthodes de paiement rapides...";
    display: block;
    text-align: center;
    color: var(--blanc-chaud);
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

.wc-block-product.out-of-stock::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.05);
    z-index: 1;
    border-radius: 8px;
}


/* Style pour le bouton "Rupture de stock" */
.wc-block-product.out-of-stock .wp-block-button__link {
    background-color: #ff4444 !important;
    color: white !important;
    border: 2px solid #ff4444 !important;
    font-weight: bold !important;
    cursor: not-allowed !important;
    opacity: 0.9 !important;
}

.wc-block-product.out-of-stock .wp-block-button__link:hover {
    background-color: #ff4444 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Badge "Rupture de stock" optionnel */
.wc-block-product.out-of-stock .out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

/* Assurer que le texte de rupture de stock est bien affiché */
.wc-block-product.out-of-stock .wp-block-button__link span {
    color: white !important;
}

