/**
 * Neo WooCommerce - Styles pour Tickets d'événement
 * Design épuré et minimaliste pour billetterie
 */

/* ============================================================================
   VARIABLES
   ============================================================================ */

:root {
    --neo-black: #111111;
    --neo-white: #ffffff;
    --neo-gray-light: #f8f8f8;
    --neo-gray: #BEBEBB;
    --neo-gray-dark: #666666;
    --neo-accent: #00A686;
    --neo-spacing-xs: 8px;
    --neo-spacing-sm: 16px;
    --neo-spacing-md: 24px;
    --neo-spacing-lg: 40px;
    --neo-spacing-xl: 60px;
    --neo-border-radius: 8px;
    --neo-transition: 0.3s ease;
}

/* ============================================================================
   RESET WOOCOMMERCE - FORCER NOS STYLES
   ============================================================================ */

.woocommerce,
.woocommerce-page {
    font-family: 'DM Sans', sans-serif !important;
}

.woocommerce div.product,
.woocommerce #content div.product {
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================================================
   LAYOUT PRINCIPAL
   ============================================================================ */

.neo-woo-main {
    padding: 60px 0 80px !important;
    min-height: 70vh !important;
    background: var(--neo-white) !important;
}

.neo-woo-container {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

/* ============================================================================
   PAGE TICKET UNIQUE - LAYOUT 2 COLONNES
   ============================================================================ */

.single-product .neo-woo-container {
    max-width: 1000px !important;
}

/* FORCER LE GRID 2 COLONNES */
.woocommerce div.product,
.woocommerce #content div.product,
.woocommerce-page div.product,
.single-product div.product {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    align-items: start !important;
    max-width: 100% !important;
}

@media (min-width: 768px) {
    .woocommerce div.product,
    .woocommerce #content div.product,
    .woocommerce-page div.product,
    .single-product div.product {
        grid-template-columns: 1fr 1fr !important;
        gap: 60px !important;
    }
}

/* ============================================================================
   IMAGE DU TICKET - GRANDE ET VISIBLE
   ============================================================================ */

/* Forcer la galerie à prendre toute la largeur de sa colonne */
.woocommerce div.product div.images,
.woocommerce #content div.product div.images,
.woocommerce-product-gallery,
.single-product .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* L'image elle-même */
.woocommerce div.product div.images img,
.woocommerce #content div.product div.images img,
.woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery img,
.single-product .woocommerce-product-gallery__wrapper img,
.single-product .woocommerce-product-gallery__image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Wrapper de l'image */
.woocommerce-product-gallery__wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-product-gallery__image {
    margin: 0 !important;
    padding: 0 !important;
}

/* Masquer le zoom */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger,
.woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Masquer les miniatures */
.woocommerce div.product div.images .flex-control-thumbs,
.flex-control-thumbs,
.woocommerce-product-gallery .flex-control-thumbs {
    display: none !important;
}

/* ============================================================================
   RÉSUMÉ DU TICKET (COLONNE DROITE)
   ============================================================================ */

.woocommerce div.product div.summary,
.woocommerce #content div.product div.summary,
.single-product .summary,
.single-product div.summary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Titre du ticket - FORCER L'AFFICHAGE (surcharge .entry-title display:none) */
.woocommerce div.product .product_title,
.woocommerce div.product h1.product_title,
.woocommerce .product_title,
.single-product .product_title,
.single-product .summary .product_title,
.single-product h1.product_title,
.single-product .entry-title,
.single-product h1.entry-title,
h1.product_title,
.entry-summary .product_title,
.woocommerce-page .product_title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: 'neue-haas-grotesk-display', 'DM Sans', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 500 !important;
    color: var(--neo-black) !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    height: auto !important;
    width: auto !important;
    position: static !important;
    clip: auto !important;
    overflow: visible !important;
}

@media (min-width: 768px) {
    .woocommerce div.product .product_title,
    .single-product .product_title,
    h1.product_title {
        font-size: 2.5rem !important;
    }
}

/* Prix */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.single-product .price,
.single-product p.price {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    color: var(--neo-accent) !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

.woocommerce div.product p.price del,
.single-product .price del {
    color: var(--neo-gray) !important;
    font-weight: 400 !important;
    font-size: 1.25rem !important;
    opacity: 0.7 !important;
}

.woocommerce div.product p.price ins,
.single-product .price ins {
    text-decoration: none !important;
}

/* Stock */
.woocommerce div.product .stock,
.single-product .stock,
.stock {
    display: inline-block !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.9rem !important;
    color: var(--neo-accent) !important;
    background: rgba(0, 166, 134, 0.1) !important;
    padding: 8px 16px !important;
    border-radius: 30px !important;
    margin: 0 0 24px 0 !important;
    font-weight: 500 !important;
}

.stock.out-of-stock {
    color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.1) !important;
}

/* Description */
.woocommerce div.product .woocommerce-product-details__short-description,
.single-product .woocommerce-product-details__short-description,
.single-product .neo-product-description {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: var(--neo-gray-dark) !important;
    margin: 0 0 24px 0 !important;
}

/* ============================================================================
   FORMULAIRE AJOUT AU PANIER
   ============================================================================ */

.woocommerce div.product form.cart,
.single-product form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    align-items: stretch !important;
    margin: 24px 0 0 0 !important;
    padding: 24px 0 0 0 !important;
    border-top: 1px solid #e5e5e5 !important;
}

/* Quantité */
.woocommerce div.product form.cart .quantity,
.single-product .quantity {
    display: flex !important;
    align-items: center !important;
    border: 2px solid #e5e5e5 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: var(--neo-white) !important;
}

.woocommerce div.product form.cart .quantity .qty,
.single-product .quantity .qty {
    width: 70px !important;
    height: 56px !important;
    text-align: center !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    border: none !important;
    background: transparent !important;
    -moz-appearance: textfield !important;
}

.single-product .quantity .qty::-webkit-outer-spin-button,
.single-product .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Bouton Ajouter au panier */
.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart .single_add_to_cart_button,
.single-product .single_add_to_cart_button,
button.single_add_to_cart_button {
    flex: 1 !important;
    min-width: 200px !important;
    height: 56px !important;
    background: var(--neo-black) !important;
    color: var(--neo-white) !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    text-transform: none !important;
}

.woocommerce div.product form.cart .button:hover,
.single-product .single_add_to_cart_button:hover,
button.single_add_to_cart_button:hover {
    background: var(--neo-accent) !important;
}

/* ============================================================================
   MASQUER TOUT LE SUPERFLU
   ============================================================================ */

/* Onglets, avis, produits liés, etc. */
.woocommerce-tabs,
.woocommerce div.product .woocommerce-tabs,
#reviews,
.woocommerce-Reviews,
.related.products,
.woocommerce div.product .related,
.upsells.products,
.woocommerce div.product .upsells,
.woocommerce-product-rating,
.woocommerce div.product .woocommerce-product-rating,
.product_meta,
.woocommerce div.product .product_meta,
.single-product .product_meta {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ============================================================================
   MESSAGES & NOTICES
   ============================================================================ */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 16px 24px !important;
    margin: 0 0 24px 0 !important;
    border-radius: 8px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.woocommerce-message {
    background: rgba(0, 166, 134, 0.1) !important;
    border: none !important;
    border-left: 4px solid var(--neo-accent) !important;
    color: #155724 !important;
}

.woocommerce-message::before {
    display: none !important;
}

.woocommerce-message a.button {
    margin-left: auto !important;
    background: var(--neo-accent) !important;
    color: var(--neo-white) !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

/* ============================================================================
   LISTE DES TICKETS (ARCHIVE/SHOP)
   ============================================================================ */

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

.woocommerce-products-header__title {
    font-family: 'neue-haas-grotesk-display', 'DM Sans', sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 500 !important;
    color: var(--neo-black) !important;
    margin: 0 !important;
}

/* Masquer le tri */
.woocommerce-ordering,
.woocommerce-result-count {
    display: none !important;
}

/* Grille de tickets */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

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

/* Carte ticket dans la liste - Sans bordure */
.neo-product-card {
    display: flex !important;
    flex-direction: column !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    transition: opacity 0.3s ease !important;
}

.neo-product-card:hover {
    opacity: 0.85 !important;
}

@media (min-width: 600px) {
    .neo-product-card {
        flex-direction: row !important;
        align-items: center !important;
        gap: 24px !important;
    }
}

.neo-product-link {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit !important;
    flex: 1 !important;
}

@media (min-width: 600px) {
    .neo-product-link {
        flex-direction: row !important;
        align-items: center !important;
        gap: 24px !important;
    }
}

/* Zone contenu (titre + prix) dans la liste */
.neo-product-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

/* Image dans la liste - Affichage complet sans recadrage */
.neo-product-card .neo-product-link img,
.woocommerce ul.products li.product a img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: unset !important;
    display: block !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
}

@media (min-width: 600px) {
    .neo-product-card .neo-product-link img,
    .woocommerce ul.products li.product a img {
        width: auto !important;
        max-width: 200px !important;
        height: auto !important;
        max-height: none !important;
    }
}

/* Titre dans la liste */
.neo-product-card .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'neue-haas-grotesk-display', 'DM Sans', sans-serif !important;
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    color: var(--neo-black) !important;
    margin: 0 !important;
    padding: 12px 12px 0 !important;
}

@media (min-width: 600px) {
    .neo-product-card .woocommerce-loop-product__title,
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        padding: 0 !important;
        font-size: 1.25rem !important;
    }
}

/* Prix dans la liste */
.neo-product-card .price,
.woocommerce ul.products li.product .price {
    display: block !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: var(--neo-accent) !important;
    margin: 0 !important;
    padding: 4px 12px 12px !important;
}

@media (min-width: 600px) {
    .neo-product-card .price,
    .woocommerce ul.products li.product .price {
        padding: 0 !important;
        font-size: 1.25rem !important;
    }
}

/* Zone de contenu dans la carte */
.neo-ticket-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    flex: 1;
}

/* Wrapper des boutons */
.neo-product-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;
    flex-shrink: 0 !important;
}

@media (min-width: 600px) {
    .neo-product-buttons {
        flex-direction: row !important;
        align-items: center !important;
    }
}

/* Bouton Informations */
.neo-btn-info {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 20px !important;
    height: auto !important;
    background: transparent !important;
    color: var(--neo-black) !important;
    border: 2px solid var(--neo-black) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
}

.neo-btn-info:hover {
    background: var(--neo-black) !important;
    color: var(--neo-white) !important;
}

/* Bouton Réserver dans la liste */
.neo-product-buttons .button,
.neo-product-buttons .add_to_cart_button,
.neo-product-card .neo-product-buttons .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 20px !important;
    height: auto !important;
    background: var(--neo-black) !important;
    color: var(--neo-white) !important;
    border: 2px solid var(--neo-black) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-radius: 6px !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.neo-product-buttons .button:hover,
.neo-product-buttons .add_to_cart_button:hover {
    background: var(--neo-accent) !important;
    border-color: var(--neo-accent) !important;
}

/* Badge promo */
.woocommerce span.onsale {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    background: var(--neo-accent) !important;
    color: var(--neo-white) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    z-index: 10 !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1 !important;
}

/* Masquer stock dans la liste */
.woocommerce ul.products li.product .stock {
    display: none !important;
}

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

.woocommerce-pagination {
    margin-top: 40px !important;
    text-align: center !important;
}

.woocommerce-pagination ul {
    display: inline-flex !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-pagination ul li {
    margin: 0 !important;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    height: 44px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.9rem !important;
    color: var(--neo-black) !important;
    background: var(--neo-white) !important;
    border: 2px solid #e5e5e5 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.woocommerce-pagination ul li a:hover {
    background: var(--neo-black) !important;
    color: var(--neo-white) !important;
    border-color: var(--neo-black) !important;
}

.woocommerce-pagination ul li span.current {
    background: var(--neo-black) !important;
    color: var(--neo-white) !important;
    border-color: var(--neo-black) !important;
}

/* ============================================================================
   ACCESSIBILITÉ
   ============================================================================ */

.woocommerce a:focus,
.woocommerce button:focus,
.woocommerce input:focus {
    outline: 2px solid var(--neo-accent) !important;
    outline-offset: 2px !important;
}

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

@media (max-width: 767px) {
    .single-product div.product,
    .woocommerce div.product {
        gap: 30px !important;
    }

    .woocommerce div.product .product_title,
    h1.product_title {
        font-size: 1.75rem !important;
    }

    .woocommerce div.product p.price,
    .single-product .price {
        font-size: 1.75rem !important;
    }
}

/* ============================================================================
   PAGE PANIER
   ============================================================================ */

/* Container principal du panier */
.woocommerce-cart .neo-woo-container {
    max-width: 900px !important;
}

/* Titre de la page panier */
.woocommerce-cart .entry-title,
.woocommerce-cart h1 {
    font-family: 'neue-haas-grotesk-display', 'DM Sans', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 500 !important;
    color: var(--neo-black) !important;
    margin-bottom: 40px !important;
    text-align: center !important;
}

/* Masquer le titre par défaut si doublon */
.woocommerce-cart .woocommerce > h2:first-child {
    display: none !important;
}

/* Table du panier - Reset */
.woocommerce-cart table.shop_table {
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 16px !important;
    width: 100% !important;
    margin-bottom: 32px !important;
}

.woocommerce-cart table.shop_table thead {
    display: none !important;
}

.woocommerce-cart table.shop_table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* Chaque ligne de produit */
.woocommerce-cart table.shop_table tbody tr.cart_item {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 20px !important;
    background: var(--neo-white) !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
}

.woocommerce-cart table.shop_table tbody tr.cart_item:hover {
    border-color: var(--neo-gray) !important;
}

/* Reset des cellules */
.woocommerce-cart table.shop_table td {
    padding: 0 !important;
    border: none !important;
    vertical-align: middle !important;
}

/* Image du produit */
.woocommerce-cart table.shop_table td.product-thumbnail {
    width: 80px !important;
    flex-shrink: 0 !important;
}

.woocommerce-cart table.shop_table td.product-thumbnail a {
    display: block !important;
}

.woocommerce-cart table.shop_table td.product-thumbnail img {
    width: 80px !important;
    height: auto !important;
    border-radius: 8px !important;
    display: block !important;
}

/* Nom du produit */
.woocommerce-cart table.shop_table td.product-name {
    flex: 1 !important;
    min-width: 150px !important;
}

.woocommerce-cart table.shop_table td.product-name a {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--neo-black) !important;
    text-decoration: none !important;
}

.woocommerce-cart table.shop_table td.product-name a:hover {
    color: var(--neo-accent) !important;
}

/* Variation et autres infos sous le nom */
.woocommerce-cart table.shop_table td.product-name dl.variation {
    margin: 8px 0 0 !important;
    font-size: 0.875rem !important;
    color: var(--neo-gray-dark) !important;
}

.woocommerce-cart table.shop_table td.product-name dl.variation dt,
.woocommerce-cart table.shop_table td.product-name dl.variation dd {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Prix unitaire */
.woocommerce-cart table.shop_table td.product-price {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.9rem !important;
    color: var(--neo-gray-dark) !important;
    white-space: nowrap !important;
}

/* Quantité */
.woocommerce-cart table.shop_table td.product-quantity {
    display: flex !important;
    align-items: center !important;
}

.woocommerce-cart table.shop_table td.product-quantity .quantity {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.woocommerce-cart table.shop_table td.product-quantity .quantity .qty {
    width: 50px !important;
    height: 36px !important;
    text-align: center !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border: none !important;
    background: var(--neo-white) !important;
    -moz-appearance: textfield !important;
}

.woocommerce-cart table.shop_table td.product-quantity .quantity .qty::-webkit-outer-spin-button,
.woocommerce-cart table.shop_table td.product-quantity .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Sous-total */
.woocommerce-cart table.shop_table td.product-subtotal {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--neo-black) !important;
    white-space: nowrap !important;
}

/* Bouton supprimer */
.woocommerce-cart table.shop_table td.product-remove {
    order: -1 !important;
}

.woocommerce-cart table.shop_table td.product-remove a.remove {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background: #f5f5f5 !important;
    color: var(--neo-gray-dark) !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.woocommerce-cart table.shop_table td.product-remove a.remove:hover {
    background: #dc3545 !important;
    color: var(--neo-white) !important;
}

/* Actions du panier (coupon + mettre à jour) */
.woocommerce-cart table.shop_table td.actions {
    width: 100% !important;
    padding-top: 24px !important;
    border-top: 1px solid #e5e5e5 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Champ coupon */
.woocommerce-cart .coupon {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.woocommerce-cart .coupon label {
    display: none !important;
}

.woocommerce-cart .coupon #coupon_code {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.875rem !important;
    padding: 10px 16px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px !important;
    min-width: 180px !important;
}

.woocommerce-cart .coupon #coupon_code:focus {
    border-color: var(--neo-accent) !important;
    outline: none !important;
}

.woocommerce-cart .coupon button {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    background: transparent !important;
    color: var(--neo-black) !important;
    border: 1px solid var(--neo-black) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.woocommerce-cart .coupon button:hover {
    background: var(--neo-black) !important;
    color: var(--neo-white) !important;
}

/* Bouton mettre à jour */
.woocommerce-cart button[name="update_cart"] {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    background: transparent !important;
    color: var(--neo-black) !important;
    border: 1px solid var(--neo-black) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-left: auto !important;
}

.woocommerce-cart button[name="update_cart"]:hover {
    background: var(--neo-black) !important;
    color: var(--neo-white) !important;
}

.woocommerce-cart button[name="update_cart"]:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Totaux du panier */
.woocommerce-cart .cart_totals {
    width: 100% !important;
    max-width: 400px !important;
    margin-left: auto !important;
    float: none !important;
}

.woocommerce-cart .cart_totals > h2 {
    font-family: 'neue-haas-grotesk-display', 'DM Sans', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    color: var(--neo-black) !important;
    margin-bottom: 20px !important;
}

.woocommerce-cart .cart_totals table {
    border: none !important;
    width: 100% !important;
}

.woocommerce-cart .cart_totals table tr {
    border: none !important;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
    padding: 12px 0 !important;
    border: none !important;
    border-bottom: 1px solid #e5e5e5 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.9rem !important;
}

.woocommerce-cart .cart_totals table th {
    color: var(--neo-gray-dark) !important;
    font-weight: 500 !important;
    text-align: left !important;
}

.woocommerce-cart .cart_totals table td {
    color: var(--neo-black) !important;
    font-weight: 600 !important;
    text-align: right !important;
}

.woocommerce-cart .cart_totals table tr.order-total th,
.woocommerce-cart .cart_totals table tr.order-total td {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    border-bottom: none !important;
    padding-top: 16px !important;
}

.woocommerce-cart .cart_totals table tr.order-total td {
    color: var(--neo-accent) !important;
}

/* Bouton valider la commande */
.woocommerce-cart .wc-proceed-to-checkout {
    padding: 0 !important;
    margin-top: 24px !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    width: 100% !important;
    padding: 16px 24px !important;
    background: var(--neo-black) !important;
    color: var(--neo-white) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--neo-accent) !important;
}

/* Message panier vide */
.woocommerce-cart .cart-empty {
    text-align: center !important;
    padding: 60px 20px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1rem !important;
    color: var(--neo-gray-dark) !important;
}

.woocommerce-cart .return-to-shop a {
    display: inline-block !important;
    padding: 12px 24px !important;
    background: var(--neo-black) !important;
    color: var(--neo-white) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: background 0.3s ease !important;
}

.woocommerce-cart .return-to-shop a:hover {
    background: var(--neo-accent) !important;
}

/* Responsive panier (ancien) */
@media (max-width: 600px) {
    .woocommerce-cart table.shop_table tbody tr.cart_item {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .woocommerce-cart table.shop_table td.product-thumbnail {
        width: 60px !important;
    }

    .woocommerce-cart table.shop_table td.product-thumbnail img {
        width: 60px !important;
    }

    .woocommerce-cart table.shop_table td.product-remove {
        order: 0 !important;
        position: absolute !important;
        right: 16px !important;
        top: 16px !important;
    }

    .woocommerce-cart table.shop_table tbody tr.cart_item {
        position: relative !important;
    }

    .woocommerce-cart table.shop_table td.product-price,
    .woocommerce-cart table.shop_table td.product-quantity,
    .woocommerce-cart table.shop_table td.product-subtotal {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        padding-top: 8px !important;
    }

    .woocommerce-cart table.shop_table td.product-price::before {
        content: "Prix: " !important;
        color: var(--neo-gray-dark) !important;
        font-weight: 400 !important;
    }

    .woocommerce-cart table.shop_table td.product-subtotal::before {
        content: "Total: " !important;
        color: var(--neo-gray-dark) !important;
        font-weight: 400 !important;
    }

    .woocommerce-cart .cart_totals {
        max-width: 100% !important;
    }
}

/* =====================================================
   NOUVEAU TEMPLATE PANIER PERSONNALISÉ
   ===================================================== */

.neo-cart-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.neo-cart-title {
    font-family: 'neue-haas-grotesk-display', 'DM Sans', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 500 !important;
    color: var(--neo-black) !important;
    margin-bottom: 32px !important;
    display: block !important;
}

/* Container des articles */
.neo-cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

/* Article individuel */
.neo-cart-item {
    display: grid;
    grid-template-columns: 40px 100px 1fr 120px 100px;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: var(--neo-white);
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

/* Bouton supprimer */
.neo-cart-item__remove {
    display: flex;
    align-items: center;
    justify-content: center;
}

.neo-remove-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    background: #f5f5f5 !important;
    color: #999 !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.neo-remove-btn:hover {
    background: #dc3545 !important;
    color: var(--neo-white) !important;
}

/* Image du produit */
.neo-cart-item__image {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    background: #f9f9f9;
}

.neo-cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.neo-cart-item__image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Info produit */
.neo-cart-item__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.neo-cart-item__name {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--neo-black);
}

.neo-cart-item__name a {
    color: inherit;
    text-decoration: none;
}

.neo-cart-item__name a:hover {
    color: var(--neo-accent);
}

.neo-cart-item__price {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--neo-gray-dark);
}

.neo-cart-item__price .woocommerce-Price-amount {
    color: var(--neo-gray-dark);
}

/* Quantité */
.neo-cart-item__quantity {
    display: flex;
    align-items: center;
    justify-content: center;
}

.neo-cart-item__quantity .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.neo-cart-item__quantity .quantity input.qty {
    width: 50px !important;
    height: 40px !important;
    text-align: center !important;
    border: none !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--neo-black) !important;
    background: var(--neo-white) !important;
    -moz-appearance: textfield !important;
}

.neo-cart-item__quantity .quantity input.qty::-webkit-outer-spin-button,
.neo-cart-item__quantity .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Sous-total */
.neo-cart-item__subtotal {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--neo-black);
    text-align: right;
}

.neo-cart-item__subtotal .woocommerce-Price-amount {
    color: var(--neo-black);
}

/* Actions panier (coupon + mettre à jour) */
.neo-cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
    margin-top: 8px;
}

.neo-coupon {
    display: flex;
    gap: 8px;
}

.neo-coupon-input {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.875rem !important;
    padding: 10px 16px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px !important;
    min-width: 180px !important;
    outline: none !important;
}

.neo-coupon-input:focus {
    border-color: var(--neo-accent) !important;
}

.neo-btn-outline {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    background: transparent !important;
    color: var(--neo-black) !important;
    border: 1px solid var(--neo-black) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.neo-btn-outline:hover {
    background: var(--neo-black) !important;
    color: var(--neo-white) !important;
}

.neo-btn-outline:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Totaux du panier */
.neo-cart-totals {
    margin-top: 32px;
}

.neo-cart-totals .cart-collaterals {
    display: flex;
    justify-content: flex-end;
}

.neo-cart-totals .cart_totals {
    width: 100%;
    max-width: 400px;
    background: #f9f9f9;
    padding: 24px;
    border-radius: 12px;
}

.neo-cart-totals .cart_totals > h2 {
    font-family: 'neue-haas-grotesk-display', 'DM Sans', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    color: var(--neo-black) !important;
    margin-bottom: 20px !important;
}

.neo-cart-totals .cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.neo-cart-totals .cart_totals table tr {
    border: none;
}

.neo-cart-totals .cart_totals table th,
.neo-cart-totals .cart_totals table td {
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
}

.neo-cart-totals .cart_totals table th {
    color: var(--neo-gray-dark);
    font-weight: 500;
    text-align: left;
}

.neo-cart-totals .cart_totals table td {
    color: var(--neo-black);
    font-weight: 600;
    text-align: right;
}

.neo-cart-totals .cart_totals table tr.order-total th,
.neo-cart-totals .cart_totals table tr.order-total td {
    font-size: 1.125rem;
    font-weight: 700;
    border-bottom: none;
    padding-top: 16px;
}

.neo-cart-totals .cart_totals table tr.order-total td {
    color: var(--neo-accent);
}

/* Bouton commander */
.neo-cart-totals .wc-proceed-to-checkout {
    padding: 0;
    margin-top: 24px;
}

.neo-cart-totals .wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    width: 100% !important;
    padding: 16px 24px !important;
    background: var(--neo-black) !important;
    color: var(--neo-white) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

.neo-cart-totals .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--neo-accent) !important;
}

/* Responsive nouveau panier */
@media (max-width: 768px) {
    .neo-cart-item {
        grid-template-columns: 1fr;
        gap: 16px;
        position: relative;
        padding: 20px;
    }

    .neo-cart-item__remove {
        position: absolute;
        top: 12px;
        right: 12px;
    }

    .neo-cart-item__image {
        width: 80px;
        height: 80px;
    }

    .neo-cart-item__info {
        padding-right: 40px;
    }

    .neo-cart-item__quantity {
        justify-content: flex-start;
    }

    .neo-cart-item__subtotal {
        text-align: left;
        font-size: 1.125rem;
    }

    .neo-cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .neo-coupon {
        flex-direction: column;
    }

    .neo-coupon-input {
        min-width: 100% !important;
    }

    .neo-cart-totals .cart-collaterals {
        justify-content: stretch;
    }

    .neo-cart-totals .cart_totals {
        max-width: 100%;
    }
}

/* =====================================================
   WOOCOMMERCE BLOCKS - PANIER (Gutenberg)
   ===================================================== */

/* PAGE LEVEL - Centrer le contenu */
body.woocommerce-cart .entry-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 !important;
}

body.woocommerce-cart article,
body.woocommerce-cart main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Container du cart block - centré */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-cart.alignwide {
    max-width: 900px !important;
    width: 100% !important;
    margin: 40px auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

/* FORCER la largeur sur is-medium et autres classes responsive */
.wc-block-components-sidebar-layout,
.wc-block-components-sidebar-layout.is-medium,
.wc-block-components-sidebar-layout.is-small,
.wc-block-components-sidebar-layout.is-large,
.wc-block-cart.is-medium,
.wc-block-cart.is-small,
.wc-block-cart.is-large {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wc-block-components-main {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Masquer tous les headers de table */
.wc-block-cart table thead,
.wc-block-cart-items thead,
.wc-block-cart th {
    display: none !important;
}

/* Container articles */
.wc-block-cart-items,
table.wc-block-cart-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 16px !important;
    width: 100% !important;
}

/* Ligne produit */
.wc-block-cart-items__row,
.wc-block-cart-items tr {
    display: flex !important;
    align-items: center !important;
    gap: 32px !important;
    padding: 24px !important;
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-cart-items__row:hover,
.wc-block-cart-items tr:hover {
    border-color: #ccc !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

/* Supprimer les bordures internes des lignes produit */
.wc-block-cart-items__row *,
.wc-block-cart-item__product *,
.wc-block-cart-item__product::after,
.wc-block-cart-item__product::before {
    border-top: none !important;
    border-bottom: none !important;
}

/* Image - Plus grande */
.wc-block-cart-item__image,
.wc-block-cart-items td.wc-block-cart-item__image {
    flex-shrink: 0 !important;
    width: 200px !important;
    max-width: 200px !important;
    padding: 0 !important;
    border: none !important;
}

.wc-block-cart-item__image img {
    width: 200px !important;
    max-width: 200px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 8px !important;
}

/* Infos produit */
.wc-block-cart-item__product {
    flex: 1 !important;
    min-width: 0 !important;
}

.wc-block-components-product-name {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #111 !important;
    text-decoration: none !important;
    display: block !important;
    margin-bottom: 4px !important;
}

.wc-block-components-product-name:hover {
    color: #00A686 !important;
}

.wc-block-cart-item__product .wc-block-components-product-price {
    font-size: 0.9rem !important;
    color: #666 !important;
}

/* Masquer description/metadata */
.wc-block-components-product-metadata,
.wc-block-components-product-details {
    display: none !important;
}

/* Quantité - FORCER AFFICHAGE */
.wc-block-cart-item__quantity {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.wc-block-components-quantity-selector {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    visibility: visible !important;
}

.wc-block-components-quantity-selector__button {
    width: 32px !important;
    height: 32px !important;
    background: #f5f5f5 !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    color: #111 !important;
}

.wc-block-components-quantity-selector__button:hover {
    background: #e0e0e0 !important;
}

.wc-block-components-quantity-selector__input {
    width: 40px !important;
    height: 32px !important;
    text-align: center !important;
    border: none !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    -moz-appearance: textfield !important;
}

.wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
.wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
}

/* Lien supprimer */
.wc-block-cart-item__remove-link {
    font-size: 0.8rem !important;
    color: #999 !important;
    text-decoration: underline !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
}

.wc-block-cart-item__remove-link:hover {
    color: #dc3545 !important;
}

/* Total ligne */
.wc-block-cart-item__total {
    min-width: 100px !important;
    text-align: right !important;
    flex-shrink: 0 !important;
}

.wc-block-cart-item__total .wc-block-components-product-price {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #111 !important;
}

/* =====================================================
   TOTAUX - UN SEUL CONTAINER GRIS
   ===================================================== */

/* Sidebar = container des totaux - centré */
.wc-block-components-sidebar {
    width: 100% !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 24px !important;
    background: #f9f9f9 !important;
    border-radius: 12px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* TOUS les wrappers de totaux - transparent car le parent a le fond gris */
.wc-block-components-totals-wrapper {
    background: transparent !important;
    padding: 8px 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Séparateur entre sous-total et total */
.wc-block-components-totals-wrapper + .wc-block-components-totals-wrapper {
    border-top: 1px solid #e0e0e0 !important;
    padding-top: 16px !important;
    margin-top: 8px !important;
}

/* Masquer titre "Total panier" */
.wc-block-cart__totals-title {
    display: none !important;
}

/* Lignes totaux - sans bordures */
.wc-block-components-totals-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

.wc-block-components-totals-item * {
    border: none !important;
}

.wc-block-components-totals-item__label {
    color: #666 !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
}

.wc-block-components-totals-item__value {
    color: #111 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

/* Total final - style fort */
.wc-block-components-totals-footer-item {
    padding-top: 12px !important;
    margin-top: 8px !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #111 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #00A686 !important;
}

/* Bouton Commander */
.wc-block-cart__submit-container {
    margin-top: 16px !important;
    padding: 0 !important;
}

.wc-block-cart__submit-button {
    display: block !important;
    width: 100% !important;
    padding: 14px 24px !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

.wc-block-cart__submit-button:hover {
    background: #00A686 !important;
}

/* Coupon */
.wc-block-components-totals-coupon {
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid #e5e5e5 !important;
}

.wc-block-components-totals-coupon__button {
    font-size: 0.875rem !important;
    color: #00A686 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: underline !important;
}

.wc-block-components-totals-coupon__form {
    display: flex !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.wc-block-components-totals-coupon__input {
    flex: 1 !important;
    font-size: 0.875rem !important;
    padding: 10px 14px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px !important;
}

.wc-block-components-totals-coupon__input:focus {
    border-color: #00A686 !important;
    outline: none !important;
}

.wc-block-components-totals-coupon button[type="submit"] {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding: 10px 16px !important;
    background: transparent !important;
    color: #111 !important;
    border: 1px solid #111 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}

.wc-block-components-totals-coupon button[type="submit"]:hover {
    background: #111 !important;
    color: #fff !important;
}

/* Masquer cross-sells */
.wc-block-cart__cross-sells,
.wp-block-woocommerce-cart-cross-sells-block {
    display: none !important;
}

/* Responsive Cart */
@media (max-width: 768px) {
    .wc-block-cart {
        padding: 20px 16px !important;
    }

    .wc-block-cart-items__row {
        flex-wrap: wrap !important;
        gap: 12px !important;
        padding: 16px !important;
    }

    .wc-block-cart-item__image {
        width: 80px !important;
    }

    .wc-block-cart-item__total {
        width: 100% !important;
        text-align: left !important;
        padding-top: 8px !important;
        border-top: 1px solid #f0f0f0 !important;
        min-width: auto !important;
    }

    .wc-block-cart .wc-block-components-sidebar {
        max-width: 100% !important;
    }

    .wc-block-cart__submit-container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* ============================================
   PAGE CHECKOUT (WooCommerce Blocks)
   ============================================ */

/* PAGE LEVEL - Centrer le contenu */
body.woocommerce-checkout .entry-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

/* Container principal du checkout */
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-checkout.alignwide,
.wc-block-checkout {
    max-width: 1000px !important;
    width: 100% !important;
    margin: 40px auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Layout sidebar - deux colonnes sur desktop */
.wc-block-checkout .wc-block-components-sidebar-layout {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 48px !important;
    max-width: 100% !important;
    width: 100% !important;
    align-items: start !important;
}

/* Section principale (formulaire) */
.wc-block-checkout__main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* Sidebar (résumé commande) */
.wc-block-checkout__sidebar {
    width: 100% !important;
    max-width: 380px !important;
    background: #f9f9f9 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    position: sticky !important;
    top: 100px !important;
}

/* Titres des sections */
.wc-block-checkout h2,
.wc-block-components-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--neo-black, #111) !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Champs de formulaire */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-text-input textarea,
.wc-block-checkout .wc-block-components-combobox input,
.wc-block-checkout select {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    transition: border-color 0.2s !important;
    background: #fff !important;
}

.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-combobox input:focus,
.wc-block-checkout select:focus {
    border-color: var(--neo-accent, #00A686) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 166, 134, 0.1) !important;
}

/* Labels des champs */
.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout .wc-block-components-combobox label {
    font-size: 0.875rem !important;
    color: #666 !important;
    font-weight: 500 !important;
}

/* Inputs - hauteur et centrage du texte */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-text-input textarea {
    height: 52px !important;
    padding: 20px 16px 8px 16px !important;
    line-height: 1.2 !important;
}

/* Combobox/Dropdown - centrage du texte */
.wc-block-checkout .wc-block-components-combobox .components-combobox-control__suggestions-container,
.wc-block-checkout .wc-block-components-combobox input {
    height: 52px !important;
    padding: 20px 16px 8px 16px !important;
    line-height: 1.2 !important;
}

.wc-block-checkout .wc-block-components-combobox .components-combobox-control {
    height: 52px !important;
}

/* Espacement des champs */
.wc-block-checkout .wc-block-components-address-form__address_1,
.wc-block-checkout .wc-block-components-address-form__city,
.wc-block-checkout .wc-block-components-address-form__postcode,
.wc-block-checkout .wc-block-components-address-form__country,
.wc-block-checkout .wc-block-components-text-input {
    margin-bottom: 16px !important;
}

/* Espacement entre les sections du formulaire */
.wc-block-checkout .wc-block-components-form > div {
    margin-bottom: 32px !important;
}

.wc-block-checkout .wc-block-components-form > div:last-child {
    margin-bottom: 0 !important;
}

/* Sections principales avec plus d'espace */
.wp-block-woocommerce-checkout-contact-information-block,
.wp-block-woocommerce-checkout-billing-address-block,
.wp-block-woocommerce-checkout-shipping-address-block,
.wp-block-woocommerce-checkout-payment-block {
    margin-bottom: 40px !important;
    padding-bottom: 24px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* Dernier bloc sans bordure */
.wc-block-checkout__actions {
    margin-top: 24px !important;
    padding-top: 24px !important;
    border-top: 1px solid #e0e0e0 !important;
}

/* Terms & conditions spacing */
.wc-block-checkout__terms {
    margin-top: 0 !important;
    padding-top: 24px !important;
}

/* Résumé de commande - Articles */
.wc-block-checkout__sidebar .wc-block-components-order-summary {
    margin-bottom: 16px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #e8e8e8 !important;
}

.wc-block-checkout__sidebar .wc-block-components-order-summary-item {
    display: flex !important;
    gap: 16px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #e8e8e8 !important;
}

.wc-block-checkout__sidebar .wc-block-components-order-summary-item:last-child {
    border-bottom: none !important;
}

/* Image des articles dans résumé */
.wc-block-checkout__sidebar .wc-block-components-order-summary-item__image img {
    width: 60px !important;
    height: auto !important;
    border-radius: 6px !important;
    object-fit: contain !important;
}

/* Totaux du checkout */
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
    background: transparent !important;
    padding: 8px 0 !important;
    border: none !important;
    margin: 0 !important;
}

/* Masquer les wrappers vides */
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper:empty,
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper:not(:has(*:not(:empty))) {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
}

.wc-block-checkout__sidebar .wc-block-components-totals-item {
    display: flex !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
}

.wc-block-checkout__sidebar .wc-block-components-totals-footer-item {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 16px !important;
    margin-top: 8px !important;
    border-top: 2px solid #111 !important;
}

.wc-block-checkout__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: var(--neo-accent, #00A686) !important;
}

/* Bouton Commander */
.wc-block-checkout__actions button,
.wc-block-components-checkout-place-order-button {
    width: 100% !important;
    background: var(--neo-black, #111) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 16px 24px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.1s !important;
}

.wc-block-checkout__actions button:hover,
.wc-block-components-checkout-place-order-button:hover {
    background: #333 !important;
    transform: translateY(-1px) !important;
}

/* Container des actions */
.wc-block-checkout__actions_row {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
}

/* Lien retour au panier */
.wc-block-checkout__actions .wc-block-components-checkout-return-to-cart-button {
    background: transparent !important;
    color: #666 !important;
    border: none !important;
    font-size: 0.9rem !important;
    padding: 12px 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    width: auto !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.wc-block-checkout__actions .wc-block-components-checkout-return-to-cart-button svg {
    position: relative !important;
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
    vertical-align: middle !important;
    margin-top: 2px !important;
}

.wc-block-checkout__actions .wc-block-components-checkout-return-to-cart-button:hover {
    color: var(--neo-accent, #00A686) !important;
    transform: none !important;
}

/* Message d'erreur paiement */
.wc-block-checkout .wc-block-components-notice-banner.is-error {
    background: #fef2f2 !important;
    border: 1px solid #fee2e2 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    color: #dc2626 !important;
}

/* Checkbox styles */
.wc-block-checkout .wc-block-components-checkbox {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin: 16px 0 !important;
}

.wc-block-checkout .wc-block-components-checkbox input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--neo-accent, #00A686) !important;
}

/* Collapsible résumé mobile */
.wc-block-checkout__sidebar-mobile {
    display: none !important;
}

/* Supprimer bordures inutiles */
.wc-block-checkout__main > div,
.wc-block-checkout .wc-block-components-form > div {
    border: none !important;
}

/* Responsive Checkout */
@media (max-width: 900px) {
    .wc-block-checkout .wc-block-components-sidebar-layout {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .wc-block-checkout__sidebar {
        max-width: 100% !important;
        position: static !important;
        order: -1 !important;
    }

    .wc-block-checkout__sidebar-mobile {
        display: block !important;
    }
}

@media (max-width: 600px) {
    body.woocommerce-checkout .entry-content {
        padding: 0 16px !important;
    }

    .wp-block-woocommerce-checkout {
        margin: 24px auto !important;
    }

    .wc-block-checkout__sidebar {
        padding: 16px !important;
    }
}
