/* ====================================================================
   OPÉRA BASTIDE — SHOP v2
   Habillage WooCommerce + thème Stachethemes Event Seat Planner
   Architecture : variables CSS, sélecteurs scopés à body.ob-shop,
   zéro !important sauf face à Divi sur les boutons (où c'est inévitable).
   ==================================================================== */

/* ====================================================================
   1. VARIABLES DE THÈME
   ==================================================================== */
body.ob-shop {
    /* Palette Opéra Bastide */
    --obs-mocha:        #A47764;
    --obs-mocha-dark:   #7A5849;
    --obs-mocha-light:  #C19A87;
    --obs-gold:         #C9A227;
    --obs-gold-light:   #E0BC4A;
    --obs-gold-deep:    #A88716;
    --obs-black:        #0A0A0A;
    --obs-dark:         #1A1A1A;
    --obs-gray:         #6B6B6B;
    --obs-gray-soft:    #A8A8A8;
    --obs-gray-line:    #E5E1DC;
    --obs-cream:        #F8F5F0;
    --obs-cream-deep:   #EFE9E0;
    --obs-white:        #FFFFFF;
    --obs-error:        #B23A48;
    --obs-success:      #5C8A4E;

    /* Polices — fallback sur les variables du plugin Fonts si présent */
    --obs-font-title:   var(--ob-font-title, 'Bebas Neue', sans-serif);
    --obs-font-body:    var(--ob-font-body,  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif);
    --obs-font-ui:      var(--ob-font-ui,    'Bebas Neue', sans-serif);
    --obs-font-quote:   'Cormorant Garamond', Georgia, serif;

    --obs-shadow-sm:    0 1px 3px rgba(10,10,10,0.08);
    --obs-shadow-md:    0 8px 24px rgba(10,10,10,0.10);
    --obs-shadow-lg:    0 20px 50px rgba(10,10,10,0.18);

    /* ============================================================
       2. SURCHARGE STACHETHEMES — la clé du remplacement du violet
       ------------------------------------------------------------
       Stachethemes expose ces variables sur :root pour permettre le
       theming. En les redéfinissant sur body.ob-shop, on prend la
       main sur TOUT le widget : bouton, modal, sièges, scrollbar,
       contrôles, etc. — sans aucun !important.
       ============================================================ */
    --stachesepl-surface:                              var(--obs-white);
    --stachesepl-accent-color:                         var(--obs-mocha);
    --stachesepl-accent-color-20:                      rgba(164, 119, 100, 0.20);
    --stachesepl-border-color:                         var(--obs-gray-line);
    --stachesepl-text-color:                           var(--obs-black);
    --stachesepl-text-secondary-color:                 var(--obs-gray);
    --stachesepl-color-error:                          var(--obs-error);
    --stachesepl-radius-sm:                            0px;
    --stachesepl-radius-md:                            0px;
    --stachesepl-radius-lg:                            0px;

    --stachesepl-btn-primary-bg:                       var(--obs-mocha);
    --stachesepl-btn-primary-hover:                    var(--obs-gold);
    --stachesepl-btn-primary-text:                     var(--obs-white);
    --stachesepl-btn-primary-text-hover:               var(--obs-white);
    --stachesepl-btn-secondary-bg:                     rgba(164, 119, 100, 0.10);
    --stachesepl-btn-secondary-hover:                  rgba(164, 119, 100, 0.20);
    --stachesepl-btn-secondary-text:                   var(--obs-mocha);
    --stachesepl-btn-secondary-text-hover:             var(--obs-mocha-dark);
    --stachesepl-btn-transition:                       0.25s ease;

    --stachesepl-select-seat-button-background-color:        var(--obs-mocha);
    --stachesepl-select-seat-button-color:                   var(--obs-white);
    --stachesepl-select-seat-button-hover-background-color:  var(--obs-gold);
    --stachesepl-select-seat-button-hover-color:             var(--obs-white);
    --stachesepl-view-cart-button-background-color:          var(--obs-black);
    --stachesepl-view-cart-button-color:                     var(--obs-white);
    --stachesepl-view-cart-button-hover-background-color:    var(--obs-mocha);
    --stachesepl-view-cart-button-hover-color:               var(--obs-white);

    background: var(--obs-cream);
    font-family: var(--obs-font-body);
    color: var(--obs-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Le portail Stachethemes (modal) s'attache souvent à <body> ;
   on s'assure que ses variables sont aussi disponibles à ce niveau */
body.ob-shop .stachesepl-seat-planner-portal-container,
body.ob-shop ~ .stachesepl-seat-planner-portal-container {
    color: var(--obs-black);
}

/* ====================================================================
   3. TYPOGRAPHIE & ÉLÉMENTS GLOBAUX
   ==================================================================== */
body.ob-shop a {
    transition: color 0.25s ease;
}
body.ob-shop .woocommerce a:not(.button):not(.stachesepl-select-seats-button):not(.obs-btn):hover {
    color: var(--obs-mocha);
}

/* Fil d'Ariane WC */
body.ob-shop .woocommerce-breadcrumb {
    font-family: var(--obs-font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--obs-gray);
    margin-bottom: 3rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--obs-gray-line);
}
body.ob-shop .woocommerce-breadcrumb a {
    color: var(--obs-gray);
    text-decoration: none;
}
body.ob-shop .woocommerce-breadcrumb a:hover { color: var(--obs-mocha); }

/* Notices (success / info / error) */
body.ob-shop .woocommerce-message,
body.ob-shop .woocommerce-info,
body.ob-shop .woocommerce-error {
    background: var(--obs-white);
    border: 1px solid var(--obs-gray-line);
    border-left: 4px solid var(--obs-gold);
    border-radius: 0;
    color: var(--obs-black);
    font-family: var(--obs-font-body);
    font-size: 0.95rem;
    padding: 1.1rem 1.5rem;
    box-shadow: var(--obs-shadow-sm);
    list-style: none;
}
body.ob-shop .woocommerce-error { border-left-color: var(--obs-error); }
body.ob-shop .woocommerce-message::before,
body.ob-shop .woocommerce-info::before { color: var(--obs-gold); }
body.ob-shop .woocommerce-error::before { color: var(--obs-error); }

/* ====================================================================
   4. BOUTONS — base commune
   Note : `!important` sur les boutons est inévitable face à Divi qui
   réinjecte ses styles avec une spécificité monstre.
   ==================================================================== */
body.ob-shop .woocommerce button.button,
body.ob-shop .woocommerce a.button,
body.ob-shop .woocommerce input[type="submit"].button,
body.ob-shop button.single_add_to_cart_button,
body.ob-shop .obs-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    font-family: var(--obs-font-ui) !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 1rem 1.75rem !important;
    border: 2px solid transparent !important;
    border-radius: 0 !important;
    background: var(--obs-mocha) !important;
    background-image: linear-gradient(135deg, var(--obs-mocha) 0%, var(--obs-gold) 100%) !important;
    color: var(--obs-white) !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    isolation: isolate;
}
body.ob-shop .woocommerce button.button:hover,
body.ob-shop .woocommerce a.button:hover,
body.ob-shop .woocommerce input[type="submit"].button:hover,
body.ob-shop button.single_add_to_cart_button:hover,
body.ob-shop .obs-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(164,119,100,0.40) !important;
    color: var(--obs-white) !important;
    background-image: linear-gradient(135deg, var(--obs-gold) 0%, var(--obs-mocha) 100%) !important;
}
body.ob-shop .woocommerce button.button:disabled,
body.ob-shop button.single_add_to_cart_button:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Bouton "retour vers" en outline noir */
body.ob-shop .woocommerce a.button.wc-backward,
body.ob-shop .obs-btn--ghost {
    background: transparent !important;
    background-image: none !important;
    color: var(--obs-black) !important;
    border: 2px solid var(--obs-black) !important;
}
body.ob-shop .woocommerce a.button.wc-backward:hover,
body.ob-shop .obs-btn--ghost:hover {
    background: var(--obs-black) !important;
    background-image: none !important;
    color: var(--obs-white) !important;
    box-shadow: none !important;
}

/* ====================================================================
   5. FICHE PRODUIT — markup contrôlé via template override
   ==================================================================== */

/* Layout général */
body.ob-shop--product .obs-product {
    margin: 2rem auto 0;
    max-width: 1280px;
}
body.ob-shop--product .obs-product__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
}

/* Colonne média (galerie WC) */
body.ob-shop--product .obs-product__media .woocommerce-product-gallery {
    width: 100% !important; /* écrase la largeur fixe que WC applique parfois */
    margin: 0 !important;
}
body.ob-shop--product .woocommerce-product-gallery__image img {
    border: 1px solid var(--obs-gray-line);
    box-shadow: var(--obs-shadow-md);
    border-radius: 0;
}
body.ob-shop--product .woocommerce-product-gallery__trigger {
    background: var(--obs-white);
    border: 1px solid var(--obs-gray-line);
    border-radius: 50%;
    color: var(--obs-black);
}

/* Colonne summary */
body.ob-shop--product .obs-product__summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 1rem 0 0;
    display: flex;
    flex-direction: column;
}

/* Eyebrow (catégorie en label doré au-dessus du titre) */
body.ob-shop--product .obs-product__eyebrow {
    font-family: var(--obs-font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
    line-height: 1;
}
body.ob-shop--product .obs-product__eyebrow a {
    background: linear-gradient(135deg, var(--obs-mocha), var(--obs-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    font-weight: 700;
}
body.ob-shop--product .obs-product__eyebrow a:hover {
    background: linear-gradient(135deg, var(--obs-gold), var(--obs-mocha));
    -webkit-background-clip: text;
    background-clip: text;
}

/* Titre — Bebas Neue + spécificité haute pour battre Divi */
body.ob-shop--product h1.obs-product__title,
body.ob-shop--product .obs-product__title.product_title {
    font-family: var(--obs-font-title) !important;
    font-size: clamp(2.5rem, 5.5vw, 4.5rem) !important;
    font-weight: 900 !important;
    line-height: 1.02 !important;
    letter-spacing: 0.02em !important;
    color: var(--obs-black) !important;
    margin: 0 0 1.5rem !important;
    text-transform: none !important;
    padding: 0 !important;
}

/* Prix — gros chiffres en moka/or, registre affiche */
body.ob-shop--product .obs-product__price {
    margin: 0 0 1.75rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--obs-gray-line);
    border-bottom: 1px solid var(--obs-gray-line);
}
body.ob-shop--product .obs-product__price .price,
body.ob-shop--product .obs-product__price p.price,
body.ob-shop--product .obs-product__price span.price {
    font-family: var(--obs-font-quote);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 500;
    font-style: italic;
    color: var(--obs-mocha);
    line-height: 1;
    margin: 0;
    letter-spacing: 0.01em;
    display: block;
}
body.ob-shop--product .obs-product__price .price del {
    opacity: 0.4;
    margin-right: 0.6em;
}
body.ob-shop--product .obs-product__price .price ins {
    text-decoration: none;
    background: transparent;
}

/* Description courte (chapô éditorial) */
body.ob-shop--product .obs-product__short-desc {
    margin: 0 0 2rem;
    padding-left: 1.25rem;
    border-left: 3px solid var(--obs-gold);
    font-family: var(--obs-font-quote);
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    font-style: italic;
    line-height: 1.65;
    color: var(--obs-dark);
}
body.ob-shop--product .obs-product__short-desc p {
    margin: 0 0 0.75rem;
}
body.ob-shop--product .obs-product__short-desc p:last-child { margin-bottom: 0; }

/* Zone add-to-cart (où Stachethemes s'injecte) */
body.ob-shop--product .obs-product__action {
    margin: 0 0 2rem;
}

/* Métadonnées (catégories supplémentaires, tags, SKU) */
body.ob-shop--product .obs-product__meta {
    border-top: 1px solid var(--obs-gray-line);
    padding-top: 1.5rem;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
body.ob-shop--product .obs-product__meta-row {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    font-size: 0.85rem;
    color: var(--obs-gray);
}
body.ob-shop--product .obs-product__meta-row strong {
    font-family: var(--obs-font-ui);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--obs-gray);
    font-weight: 400;
    min-width: 100px;
}
body.ob-shop--product .obs-product__meta-row a {
    color: var(--obs-mocha);
    text-decoration: none;
}
body.ob-shop--product .obs-product__meta-row a:hover { color: var(--obs-gold-deep); }

/* ====================================================================
   6. ONGLETS PRODUIT (Description, etc.)
   ==================================================================== */
body.ob-shop--product .obs-product__tabs {
    margin: 5rem 0 3rem;
    border-top: 1px solid var(--obs-gray-line);
    padding-top: 4rem;
}
body.ob-shop--product .woocommerce-tabs ul.tabs.wc-tabs {
    border: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    list-style: none;
}
body.ob-shop--product .woocommerce-tabs ul.tabs.wc-tabs::before { display: none; }
body.ob-shop--product .woocommerce-tabs ul.tabs.wc-tabs li {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}
body.ob-shop--product .woocommerce-tabs ul.tabs.wc-tabs li::before,
body.ob-shop--product .woocommerce-tabs ul.tabs.wc-tabs li::after { display: none; }
body.ob-shop--product .woocommerce-tabs ul.tabs.wc-tabs li a {
    font-family: var(--obs-font-ui);
    font-size: 0.95rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--obs-gray);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
    display: inline-block;
}
body.ob-shop--product .woocommerce-tabs ul.tabs.wc-tabs li.active a,
body.ob-shop--product .woocommerce-tabs ul.tabs.wc-tabs li:hover a {
    color: var(--obs-black);
    border-bottom-color: var(--obs-gold);
}
body.ob-shop--product .woocommerce-Tabs-panel h2 {
    font-family: var(--obs-font-title);
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    color: var(--obs-black);
    margin: 0 0 1.5rem;
}
body.ob-shop--product .woocommerce-Tabs-panel p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--obs-dark);
}

/* ====================================================================
   7. PLANIFICATEUR STACHETHEMES
   La majorité du theming passe par les variables CSS définies plus haut.
   Ici on ajoute juste les ajustements typographiques et de wrapper.
   ==================================================================== */

/* Wrapper du widget */
body.ob-shop--product .stachesepl-add-to-cart-button-wrapper {
    margin: 0;
}

/* Skeleton (chargement initial avant que le React kick in) */
body.ob-shop--product .stachesepl-date-time-input-placeholder {
    width: 100%;
    max-width: 100%;
}

/* Le bouton "Select Seats" rendu par React */
body.ob-shop--product .stachesepl-select-seats-button {
    font-family: var(--obs-font-ui) !important;
    font-size: 1rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 1rem 1.75rem !important;
    line-height: 1 !important;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
}
body.ob-shop--product .stachesepl-select-seats-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(164, 119, 100, 0.35);
}

/* Le date-picker rendu par React (input ressemblant à un select) */
body.ob-shop--product .stachesepl-date-time {
    margin-bottom: 1rem;
}
body.ob-shop--product .stachesepl-date-time input,
body.ob-shop--product .stachesepl-date-time-input,
body.ob-shop--product .stachesepl-date-time button {
    font-family: var(--obs-font-body) !important;
    font-size: 0.95rem;
    color: var(--obs-black);
}

/* Bouton "Voir le panier" (qui s'affiche après ajout) */
body.ob-shop--product .stachesepl-view-cart-button {
    font-family: var(--obs-font-ui) !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

/* Modal/portail plein écran du planificateur — petit polish */
.stachesepl-seat-planner-portal-container {
    font-family: 'DM Sans', sans-serif;
}

/* ====================================================================
   8. PANIER
   ==================================================================== */
body.ob-shop--cart .woocommerce { padding: 1rem 0 4rem; }

body.ob-shop--cart h2,
body.ob-shop--cart .cart_totals h2 {
    font-family: var(--obs-font-title);
    font-size: 1.75rem;
    letter-spacing: 0.05em;
    color: var(--obs-black);
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--obs-gold);
    text-transform: uppercase;
}

/* Table panier */
body.ob-shop--cart .woocommerce-cart-form table.shop_table,
body.ob-shop--cart table.shop_table {
    background: var(--obs-white);
    border: 1px solid var(--obs-gray-line);
    border-radius: 0;
    border-collapse: collapse;
    box-shadow: var(--obs-shadow-sm);
}
body.ob-shop--cart table.shop_table th {
    background: var(--obs-black);
    color: var(--obs-white);
    font-family: var(--obs-font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 1.1rem 1.25rem;
    border: none;
}
body.ob-shop--cart table.shop_table td {
    border-top: 1px solid var(--obs-gray-line);
    padding: 1.25rem;
    background: transparent;
    vertical-align: middle;
}
body.ob-shop--cart table.shop_table td.product-name a {
    font-family: var(--obs-font-body);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--obs-black);
    text-decoration: none;
}
body.ob-shop--cart table.shop_table td.product-name a:hover { color: var(--obs-mocha); }
body.ob-shop--cart table.shop_table td.product-price,
body.ob-shop--cart table.shop_table td.product-subtotal {
    font-family: var(--obs-font-quote);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--obs-mocha);
    font-weight: 500;
}

/* Bouton supprimer */
body.ob-shop--cart .woocommerce a.remove {
    color: var(--obs-gray) !important;
    background: transparent !important;
    width: 24px;
    height: 24px;
    border: 1px solid var(--obs-gray-line);
    line-height: 22px;
    font-size: 18px !important;
    transition: all 0.25s;
}
body.ob-shop--cart .woocommerce a.remove:hover {
    color: var(--obs-error) !important;
    border-color: var(--obs-error);
    background: transparent !important;
}

/* Quantités */
body.ob-shop--cart .quantity input.qty,
body.ob-shop--cart input[type="number"].qty {
    font-family: var(--obs-font-body);
    border: 1px solid var(--obs-gray-line);
    border-radius: 0;
    padding: 0.6rem 0.75rem;
    background: var(--obs-cream);
    width: 70px;
    text-align: center;
}

/* Coupon */
body.ob-shop--cart .coupon {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}
body.ob-shop--cart .coupon input#coupon_code {
    font-family: var(--obs-font-body);
    border: 1px solid var(--obs-gray-line);
    padding: 0.9rem 1rem;
    border-radius: 0;
    background: var(--obs-cream);
    flex: 1;
    min-width: 0;
}

/* Totaux */
body.ob-shop--cart .cart_totals,
body.ob-shop--cart .cart-collaterals {
    background: var(--obs-white);
    border: 1px solid var(--obs-gray-line);
    padding: 2rem 2rem 2.25rem;
    box-shadow: var(--obs-shadow-md);
}
body.ob-shop--cart .cart_totals table.shop_table {
    box-shadow: none;
    border: none;
}
body.ob-shop--cart .cart_totals table.shop_table th {
    background: transparent;
    color: var(--obs-gray);
}
body.ob-shop--cart .cart_totals .order-total .amount {
    font-family: var(--obs-font-quote);
    font-style: italic;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--obs-mocha), var(--obs-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ====================================================================
   9. CHECKOUT
   ==================================================================== */
body.ob-shop--checkout #customer_details h3,
body.ob-shop--checkout .woocommerce-checkout h3 {
    font-family: var(--obs-font-title);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--obs-black);
    margin: 0 0 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--obs-gold);
    text-transform: uppercase;
}

/* Labels en petites majuscules grises (registre billet) */
body.ob-shop--checkout .woocommerce form .form-row label,
body.ob-shop--checkout .woocommerce-checkout label {
    font-family: var(--obs-font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--obs-gray);
    margin-bottom: 0.4rem;
    display: block;
}

/* Inputs */
body.ob-shop--checkout .woocommerce form .form-row input.input-text,
body.ob-shop--checkout .woocommerce form .form-row textarea,
body.ob-shop--checkout .woocommerce-checkout input[type="text"],
body.ob-shop--checkout .woocommerce-checkout input[type="email"],
body.ob-shop--checkout .woocommerce-checkout input[type="tel"],
body.ob-shop--checkout .woocommerce-checkout input[type="password"],
body.ob-shop--checkout .woocommerce-checkout textarea,
body.ob-shop--checkout .select2-container--default .select2-selection--single {
    font-family: var(--obs-font-body);
    font-size: 1rem;
    background: var(--obs-white);
    border: 1px solid var(--obs-gray-line);
    border-radius: 0;
    padding: 0.9rem 1rem;
    color: var(--obs-black);
    transition: border-color 0.25s, box-shadow 0.25s;
    width: 100%;
    height: auto;
    line-height: 1.4;
}
body.ob-shop--checkout .woocommerce form .form-row input.input-text:focus,
body.ob-shop--checkout .woocommerce-checkout input:focus,
body.ob-shop--checkout .woocommerce-checkout textarea:focus {
    border-color: var(--obs-mocha);
    outline: none;
    box-shadow: 0 0 0 3px rgba(164, 119, 100, 0.12);
}
body.ob-shop--checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.4;
    padding: 0;
    color: var(--obs-black);
}

/* Récap commande */
body.ob-shop--checkout #order_review,
body.ob-shop--checkout .woocommerce-checkout-review-order {
    background: var(--obs-white);
    border: 1px solid var(--obs-gray-line);
    padding: 2rem;
    box-shadow: var(--obs-shadow-md);
}
body.ob-shop--checkout #order_review_heading {
    font-family: var(--obs-font-title);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--obs-black);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--obs-gold);
    text-transform: uppercase;
}
body.ob-shop--checkout .woocommerce-checkout-review-order-table .order-total .amount,
body.ob-shop--checkout #order_review .order-total .amount {
    font-family: var(--obs-font-quote);
    font-style: italic;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--obs-mocha), var(--obs-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Méthodes de paiement */
body.ob-shop--checkout ul.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    background: var(--obs-cream);
    border: 1px solid var(--obs-gray-line);
}
body.ob-shop--checkout ul.wc_payment_methods li.wc_payment_method {
    background: transparent;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--obs-gray-line);
}
body.ob-shop--checkout ul.wc_payment_methods li.wc_payment_method:last-child { border-bottom: none; }
body.ob-shop--checkout ul.wc_payment_methods li.wc_payment_method label {
    font-family: var(--obs-font-body);
    font-size: 1rem;
    letter-spacing: normal;
    text-transform: none;
    color: var(--obs-black);
    margin: 0;
    cursor: pointer;
}
body.ob-shop--checkout .payment_box {
    background: var(--obs-white);
    border: 1px solid var(--obs-gray-line);
    margin-top: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--obs-dark);
}
body.ob-shop--checkout .payment_box::before { display: none; }

/* Bouton Commander */
body.ob-shop--checkout #place_order {
    width: 100%;
    padding: 1.25rem 2rem !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.18em !important;
    margin-top: 1.5rem !important;
}

body.ob-shop--checkout .woocommerce-terms-and-conditions-wrapper {
    font-size: 0.9rem;
    color: var(--obs-gray);
}

/* ====================================================================
   10. CONFIRMATION (thank you)
   ==================================================================== */
body.ob-shop--thankyou .woocommerce {
    max-width: 880px;
    margin: 0 auto;
    padding: 3rem 1rem 5rem;
}

/* Bannière "Merci, commande reçue" — la pièce maîtresse */
body.ob-shop--thankyou .woocommerce-order > p.woocommerce-thankyou-order-received,
body.ob-shop--thankyou .woocommerce-notice--success {
    background: var(--obs-black);
    color: var(--obs-white);
    padding: 3.5rem 2rem;
    text-align: center;
    margin: 0 0 3rem;
    position: relative;
    overflow: hidden;
    font-family: var(--obs-font-title);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    letter-spacing: 0.04em;
    border: 0;
}
body.ob-shop--thankyou .woocommerce-order > p.woocommerce-thankyou-order-received::before,
body.ob-shop--thankyou .woocommerce-notice--success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--obs-mocha), var(--obs-gold), var(--obs-mocha));
}
body.ob-shop--thankyou .woocommerce-order > p.woocommerce-thankyou-order-received::after,
body.ob-shop--thankyou .woocommerce-notice--success::after {
    content: '★ ★ ★';
    display: block;
    color: var(--obs-gold);
    font-size: 1.5rem;
    margin-top: 0.75rem;
    letter-spacing: 0.4em;
}

/* Détails commande (grille de stats) */
body.ob-shop--thankyou ul.woocommerce-order-overview {
    list-style: none;
    padding: 2rem;
    margin: 0 0 3rem;
    background: var(--obs-white);
    border: 1px solid var(--obs-gray-line);
    box-shadow: var(--obs-shadow-md);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}
body.ob-shop--thankyou .woocommerce-order-overview li {
    border: none;
    border-right: 1px solid var(--obs-gray-line);
    padding: 0 1rem;
    margin: 0;
    text-transform: none;
    font-family: var(--obs-font-body);
    font-size: 0.85rem;
    color: var(--obs-gray);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
body.ob-shop--thankyou .woocommerce-order-overview li:last-child { border-right: none; }
body.ob-shop--thankyou .woocommerce-order-overview li strong {
    font-family: var(--obs-font-title);
    font-size: 1.35rem;
    color: var(--obs-black);
    letter-spacing: 0.02em;
    font-weight: 900;
}
body.ob-shop--thankyou .woocommerce-order-overview li.order .order-number {
    color: var(--obs-mocha);
}

/* Sections "Détails de la commande" + "Coordonnées" */
body.ob-shop--thankyou .woocommerce-order-details,
body.ob-shop--thankyou .woocommerce-customer-details {
    background: var(--obs-white);
    border: 1px solid var(--obs-gray-line);
    padding: 2rem 2.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--obs-shadow-sm);
}
body.ob-shop--thankyou .woocommerce-order-details h2,
body.ob-shop--thankyou .woocommerce-column__title,
body.ob-shop--thankyou .woocommerce-customer-details h2 {
    font-family: var(--obs-font-title);
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: var(--obs-black);
    margin: 0 0 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--obs-gold);
    text-transform: uppercase;
}

/* ====================================================================
   11. CATALOGUE (boutique) — léger habillage pour la cohérence
   ==================================================================== */
body.ob-shop--catalog .woocommerce-products-header__title {
    font-family: var(--obs-font-title);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--obs-black);
    letter-spacing: 0.03em;
    margin: 0 0 2rem;
    text-transform: uppercase;
}
body.ob-shop--catalog ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--obs-font-title);
    font-size: 1.4rem;
    color: var(--obs-black);
    letter-spacing: 0.03em;
}
body.ob-shop--catalog ul.products li.product .price {
    font-family: var(--obs-font-quote);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--obs-mocha);
}

/* ====================================================================
   12. RESPONSIVE
   ==================================================================== */
@media (max-width: 1024px) {
    body.ob-shop--product .obs-product__layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
@media (max-width: 900px) {
    body.ob-shop--product h1.obs-product__title { font-size: clamp(2.2rem, 8vw, 3rem) !important; }
    body.ob-shop--product .obs-product__price .price { font-size: 1.6rem; }
    body.ob-shop--product .woocommerce-tabs ul.tabs.wc-tabs { gap: 1.5rem; }
    body.ob-shop--cart .cart_totals,
    body.ob-shop--checkout #order_review,
    body.ob-shop--thankyou .woocommerce-order-details { padding: 1.5rem; }
}
@media (max-width: 600px) {
    body.ob-shop .woocommerce-breadcrumb { font-size: 0.7rem; margin-bottom: 2rem; }
    body.ob-shop--product .obs-product__short-desc { font-size: 1rem; padding-left: 1rem; }
    body.ob-shop .woocommerce button.button,
    body.ob-shop .woocommerce a.button,
    body.ob-shop button.single_add_to_cart_button,
    body.ob-shop .stachesepl-select-seats-button {
        width: 100%;
        padding: 0.95rem 1.25rem !important;
        font-size: 0.92rem !important;
    }
    body.ob-shop table.shop_table { display: block; overflow-x: auto; }
    body.ob-shop--cart .coupon { flex-direction: column; }
    body.ob-shop--thankyou .woocommerce-order-overview { grid-template-columns: 1fr; }
    body.ob-shop--thankyou .woocommerce-order-overview li {
        border-right: none;
        border-bottom: 1px solid var(--obs-gray-line);
        padding-bottom: 1rem;
    }
    body.ob-shop--thankyou .woocommerce-order-overview li:last-child { border-bottom: none; }
}

/* ====================================================================
   13. IMPRESSION (la confirmation sert souvent de billet)
   ==================================================================== */
@media print {
    body.ob-shop { background: #fff; }
    body.ob-shop--thankyou .woocommerce-order > p.woocommerce-thankyou-order-received {
        background: #000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    body.ob-shop .woocommerce a.button,
    body.ob-shop button.single_add_to_cart_button,
    body.ob-shop .stachesepl-add-to-cart-button-wrapper { display: none !important; }
}
