/* =========================================================================
 * 501st French Garrison — Style boutique WC
 * Refonte propre 2026-05-25
 *
 * Structure :
 *   1. Variables
 *   2. Reset body + typographie
 *   3. Containers (site-main, override Elementor)
 *   4. Boutons (chanfrein rouge plein, hover blanc)
 *   5. Forms & inputs (selects, text)
 *   6. Messages WC
 *   7. Breadcrumb
 *   8. Archive boutique
 *   9. Fiche produit single
 *   10. Panier (override widget Elementor)
 *   11. Checkout (override widget Elementor)
 *   12. Identity recap + checkbox custom
 *   13. Panier flottant + popup mobile
 *   14. Responsive
 *
 * Conventions :
 *   - Sélecteurs préfixés par body.woocommerce* ou ._501fg-*
 *   - !important utilisé uniquement pour battre Elementor Pro / WC defaults
 *   - 2 typos : Orbitron (h1/h2/prix), Oswald (corps)
 *   - 2 couleurs : noir #0b0a0e + rouge #FF0000
 * ========================================================================= */

/* === 1. VARIABLES ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;900&family=Oswald:wght@300;400;500;600&display=swap');

:root {
    --_501fg-bg:         #0b0a0e;
    --_501fg-card:       #1a1820;
    --_501fg-line:       #2c2935;
    --_501fg-red:        #FF0000;
    --_501fg-red-deep:   #cc0000;
    --_501fg-white:      #f7f4f4;
    --_501fg-gray:       #8d8a93;
    --_501fg-font-title: 'Orbitron', sans-serif;
    --_501fg-font-body:  'Oswald', sans-serif;
    --_501fg-chamfer: polygon(
        0 0,
        calc(100% - 14px) 0,
        100% 14px,
        100% 100%,
        14px 100%,
        0 calc(100% - 14px)
    );
}


/* === 2. BODY + TYPOGRAPHIE ============================================== */

body.woocommerce.archive,
body.post-type-archive-product,
body.tax-product_cat,
body.single-product,
body.woocommerce-cart,
body.woocommerce-checkout {
    background: var(--_501fg-bg) !important;
    color: var(--_501fg-white);
    font-family: var(--_501fg-font-body);
    font-weight: 300;
    font-size: 18px;
    line-height: 28px;
}

/* Typographie scoped au site-main des pages WC :
   tout en Oswald, sauf h1/h2/titres-produit/prix en Orbitron */
body.woocommerce .site-main,
body.woocommerce .site-main *,
body.single-product .site-main,
body.single-product .site-main *,
body.woocommerce-cart .site-main,
body.woocommerce-cart .site-main *,
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .site-main * {
    font-family: var(--_501fg-font-body) !important;
}

body.woocommerce .site-main h1,
body.woocommerce .site-main h2,
body.single-product .site-main h1,
body.single-product .site-main h2,
body.single-product .site-main .product_title,
body.single-product .site-main .price,
body.single-product .site-main .price *,
body.woocommerce-cart .site-main h1,
body.woocommerce-cart .site-main h2,
body.woocommerce-cart .site-main .order-total .woocommerce-Price-amount,
body.woocommerce-cart .site-main .order-total .woocommerce-Price-amount *,
body.woocommerce-checkout .site-main h1,
body.woocommerce-checkout .site-main h2,
body.woocommerce-checkout .site-main #order_review .order-total .woocommerce-Price-amount,
body.woocommerce-checkout .site-main #order_review .order-total .woocommerce-Price-amount *,
body.woocommerce .site-main .woocommerce-loop-product__title {
    font-family: var(--_501fg-font-title) !important;
}


/* === 3. CONTAINERS ====================================================== */

body.woocommerce.archive .site-main,
body.post-type-archive-product .site-main,
body.single-product .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main {
    padding: 140px 40px 80px;   /* 140 = ~header sticky + air */
    max-width: 1840px;
    width: 100% !important;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    background: transparent;
}

/* Override containers Elementor / WC qui limitent la largeur (~1140px par défaut) */
body.woocommerce .site-main .elementor-container,
body.woocommerce .site-main .entry-content,
body.woocommerce .site-main .entry-content-wrapper,
body.woocommerce .site-main main,
body.woocommerce .site-main article,
body.single-product .site-main .elementor-container,
body.single-product .site-main .entry-content,
body.single-product .site-main .entry-content-wrapper,
body.single-product .site-main main,
body.single-product .site-main article,
body.woocommerce-cart .site-main .elementor-container,
body.woocommerce-cart .site-main .entry-content,
body.woocommerce-cart .site-main .entry-content-wrapper,
body.woocommerce-cart .site-main main,
body.woocommerce-cart .site-main article,
body.woocommerce-checkout .site-main .elementor-container,
body.woocommerce-checkout .site-main .entry-content,
body.woocommerce-checkout .site-main .entry-content-wrapper,
body.woocommerce-checkout .site-main main,
body.woocommerce-checkout .site-main article {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}


/* === 4. BOUTONS (chanfrein rouge plein, hover blanc texte noir) ========= */

/* Style autonome : ne dépend PAS d'un wrapper `.woocommerce` parent.
   Couvre boutons WC + nos boutons custom + boutons floating-cart. */
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce-checkout #place_order,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
._501fg-floating-cart__view,
._501fg-floating-cart__checkout,
a._501fg-floating-cart__view,
a._501fg-floating-cart__checkout {
    font-family: var(--_501fg-font-body) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.14em !important;
    background: var(--_501fg-red) !important;
    background-color: var(--_501fg-red) !important;
    color: var(--_501fg-white) !important;
    text-decoration: none !important;
    padding: 14px 26px !important;
    border: 0 !important;
    border-radius: 0 !important;
    clip-path: var(--_501fg-chamfer) !important;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    display: inline-block;
    line-height: 1.2;
    box-shadow: none !important;
    text-shadow: none !important;
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover,
.woocommerce-checkout #place_order:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
._501fg-floating-cart__view:hover,
._501fg-floating-cart__checkout:hover {
    background: var(--_501fg-white) !important;
    background-color: var(--_501fg-white) !important;
    color: var(--_501fg-bg) !important;
    transform: translateY(-2px);
}

.woocommerce .button:active,
.woocommerce a.button:active {
    transform: translateY(0);
}

/* Bouton "Continuer mes achats" du panier : variante blanche outline */
.woocommerce ._501fg-continue-shopping,
.woocommerce a._501fg-continue-shopping,
a._501fg-continue-shopping,
._501fg-continue-shopping {
    background: var(--_501fg-white) !important;
    background-color: var(--_501fg-white) !important;
    color: var(--_501fg-bg) !important;
    margin-right: 12px !important;
}

._501fg-continue-shopping:hover {
    background: var(--_501fg-red) !important;
    background-color: var(--_501fg-red) !important;
    color: var(--_501fg-white) !important;
    transform: translateY(-2px);
}

/* Bouton "Mettre à jour le panier" : outline gris discret */
body.woocommerce-cart button[name="update_cart"],
body.woocommerce-cart input[name="update_cart"] {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--_501fg-white) !important;
    border: 1px solid var(--_501fg-line) !important;
    clip-path: none !important;
    border-radius: 4px !important;
    padding: 12px 22px !important;
    font-size: 12px !important;
}

body.woocommerce-cart button[name="update_cart"]:hover,
body.woocommerce-cart input[name="update_cart"]:hover {
    background: var(--_501fg-red) !important;
    border-color: var(--_501fg-red) !important;
    color: var(--_501fg-white) !important;
    transform: none;
}

/* "En savoir plus" sur les cartes produit : lien sobre */
._501fg-loop-view-details {
    margin: 0 22px 22px !important;
    text-align: left;
}

._501fg-loop-view-details .button,
._501fg-loop-details {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--_501fg-gray) !important;
    padding: 6px 0 !important;
    font-family: var(--_501fg-font-body) !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    letter-spacing: 0.2em !important;
    border-bottom: 1px solid var(--_501fg-line) !important;
    border: 0;
    border-bottom: 1px solid var(--_501fg-line) !important;
    clip-path: none !important;
    text-transform: uppercase;
}

._501fg-loop-view-details .button::after,
._501fg-loop-details::after {
    content: ' →';
    margin-left: 6px;
    transition: transform 0.2s ease;
    display: inline-block;
}

._501fg-loop-view-details .button:hover,
._501fg-loop-details:hover {
    color: var(--_501fg-white) !important;
    background: transparent !important;
    border-color: var(--_501fg-red) !important;
    transform: none;
}

._501fg-loop-view-details .button:hover::after {
    transform: translateX(5px);
}


/* === 5. FORMS & INPUTS ================================================== */

body.woocommerce input[type="text"],
body.woocommerce input[type="email"],
body.woocommerce input[type="tel"],
body.woocommerce input[type="number"],
body.woocommerce input[type="password"],
body.woocommerce select,
body.woocommerce textarea,
body.woocommerce-cart input[type="text"],
body.woocommerce-cart input.input-text,
body.woocommerce-checkout input[type="text"],
body.woocommerce-checkout input[type="email"],
body.woocommerce-checkout input[type="tel"],
body.woocommerce-checkout input[type="number"],
body.woocommerce-checkout input[type="password"],
body.woocommerce-checkout select,
body.woocommerce-checkout textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--_501fg-white) !important;
    border: 1px solid var(--_501fg-line) !important;
    border-radius: 4px !important;
    padding: 12px 16px !important;
    font-family: var(--_501fg-font-body) !important;
    font-weight: 300 !important;
    font-size: 15px !important;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.woocommerce input:focus,
body.woocommerce select:focus,
body.woocommerce textarea:focus,
body.woocommerce-cart input:focus,
body.woocommerce-checkout input:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout textarea:focus {
    border-color: var(--_501fg-red) !important;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15) !important;
    outline: 0 !important;
}

body.woocommerce input::placeholder,
body.woocommerce-cart input::placeholder,
body.woocommerce-checkout input::placeholder,
body.woocommerce-checkout textarea::placeholder {
    color: var(--_501fg-gray);
    opacity: 1;
}

body.woocommerce label,
body.woocommerce-checkout label {
    color: var(--_501fg-white) !important;
    font-family: var(--_501fg-font-body) !important;
    font-weight: 400;
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
}

body.woocommerce-checkout abbr.required {
    color: var(--_501fg-red) !important;
    border: 0;
    text-decoration: none;
}

/* Select2 (Pays / Région) */
body.woocommerce-checkout .select2-selection {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--_501fg-line) !important;
    border-radius: 4px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center;
    padding: 0 14px !important;
}

body.woocommerce-checkout .select2-selection__rendered {
    color: var(--_501fg-white) !important;
    line-height: 26px !important;
    padding: 0 !important;
}

body.woocommerce-checkout .select2-selection__arrow b {
    border-color: var(--_501fg-gray) transparent transparent !important;
}

.select2-dropdown {
    background: var(--_501fg-card) !important;
    border: 1px solid var(--_501fg-line) !important;
    border-radius: 4px !important;
    color: var(--_501fg-white);
}

.select2-results__option {
    color: var(--_501fg-white) !important;
    padding: 10px 16px !important;
}

.select2-results__option--highlighted {
    background: var(--_501fg-red) !important;
    color: var(--_501fg-white) !important;
}

/* Options du select de tri (browser native) */
.woocommerce select option,
body.woocommerce select option {
    background-color: var(--_501fg-bg) !important;
    color: var(--_501fg-white) !important;
}


/* === 6. MESSAGES WC (warning, info, error) ============================= */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: var(--_501fg-card) !important;
    color: var(--_501fg-white) !important;
    border: 0 !important;
    border-left: 4px solid var(--_501fg-red) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    padding: 16px 20px 16px 56px !important;
    margin-bottom: 20px;
    list-style: none;
    position: relative;
    font-family: var(--_501fg-font-body);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    color: var(--_501fg-red) !important;
}

.woocommerce-error li {
    color: var(--_501fg-white) !important;
}


/* === 7. BREADCRUMB ====================================================== */

.woocommerce-breadcrumb {
    margin: 0 0 24px !important;
    padding: 0 !important;
    color: var(--_501fg-gray) !important;
    font-family: var(--_501fg-font-body) !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    letter-spacing: 0.04em;
}

.woocommerce-breadcrumb a {
    color: var(--_501fg-gray) !important;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    color: var(--_501fg-red) !important;
}


/* === 8. ARCHIVE BOUTIQUE (grille produits) ============================= */

body.woocommerce.archive .page-title,
body.post-type-archive-product .page-title {
    font-size: clamp(36px, 4.5vw, 52px);
    line-height: 1.05;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--_501fg-white);
}

.woocommerce .woocommerce-result-count {
    color: var(--_501fg-gray);
    font-size: 14px;
    margin: 0 0 24px;
}

.woocommerce .woocommerce-ordering {
    margin: 0 0 30px;
}

.woocommerce .woocommerce-ordering select {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--_501fg-white) !important;
    border: 1px solid var(--_501fg-line) !important;
    padding: 10px 16px !important;
    border-radius: 4px !important;
    font-family: var(--_501fg-font-body) !important;
    font-size: 14px !important;
    cursor: pointer;
}

/* Grille produits */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product {
    background: var(--_501fg-card);
    color: var(--_501fg-white);
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    float: none !important;
    border: 1px solid var(--_501fg-line);
    clip-path: var(--_501fg-chamfer);
    display: flex !important;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, background 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    background: linear-gradient(135deg, var(--_501fg-red) 0%, var(--_501fg-red-deep) 100%);
}

.woocommerce ul.products li.product a {
    color: inherit;
    text-decoration: none;
}

.woocommerce ul.products li.product > a:first-of-type {
    display: block;
    padding: 22px 22px 0;
}

.woocommerce ul.products li.product img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0;
    background: transparent;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 18px !important;
    line-height: 22px !important;
    font-weight: 700 !important;
    margin: 20px 22px 8px !important;
    color: var(--_501fg-white) !important;
    min-height: 44px;
}

.woocommerce ul.products li.product .price {
    font-family: var(--_501fg-font-title) !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    color: var(--_501fg-white) !important;
    margin: 0 22px 16px !important;
    display: block;
}

.woocommerce ul.products li.product .price ins {
    background: transparent;
    text-decoration: none;
    color: var(--_501fg-white) !important;
}

.woocommerce ul.products li.product .price del {
    color: var(--_501fg-gray) !important;
    font-size: 0.65em;
    margin-right: 8px;
    opacity: 0.7;
}

.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product > .button {
    margin: 0 22px 14px !important;
    align-self: center !important;
    text-align: center;
    display: inline-block;
}

._501fg-loop-view-details {
    text-align: center !important;
    align-self: center;
}

/* Cards en hover (donc rouge) : tous les textes en blanc, boutons en blanc */
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title,
.woocommerce ul.products li.product:hover .price,
.woocommerce ul.products li.product:hover .price * {
    color: var(--_501fg-white) !important;
}

.woocommerce ul.products li.product:hover .add_to_cart_button,
.woocommerce ul.products li.product:hover ._501fg-loop-view-details .button,
.woocommerce ul.products li.product:hover ._501fg-loop-details {
    background: var(--_501fg-white) !important;
    background-color: var(--_501fg-white) !important;
    color: var(--_501fg-bg) !important;
    border-color: transparent !important;
}

.woocommerce ul.products li.product:hover ._501fg-loop-view-details .button::after,
.woocommerce ul.products li.product:hover ._501fg-loop-details::after {
    color: var(--_501fg-bg) !important;
}

/* Sale flash */
.woocommerce span.onsale {
    background: var(--_501fg-red) !important;
    color: var(--_501fg-white) !important;
    font-family: var(--_501fg-font-title) !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 16px !important;
    min-height: 0 !important;
    min-width: 0 !important;
    line-height: 1.2 !important;
    top: 20px !important;
    left: 20px !important;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
    margin-top: 48px;
}

.woocommerce nav.woocommerce-pagination ul {
    border: 0 !important;
    gap: 8px;
    display: flex;
    justify-content: center;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: 0 !important;
    overflow: visible !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--_501fg-white) !important;
    padding: 0 !important;
    font-family: var(--_501fg-font-title);
    font-weight: 600;
    font-size: 14px;
    width: 44px;
    height: 44px;
    border: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--_501fg-red) !important;
    color: var(--_501fg-white) !important;
}


/* === 9. FICHE PRODUIT SINGLE =========================================== */

body.single-product .product {
    background: transparent;
    padding: 0;
    box-shadow: none;
    position: relative;
    display: grid;
    grid-template-columns: 30% minmax(0, 1fr);
    gap: 60px;
    align-items: start;
    margin: 20px 0;
}

/* Galerie image */
body.single-product .woocommerce-product-gallery {
    background: transparent;
    padding: 0;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    position: relative;
}

body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image {
    background: transparent;
    margin-bottom: 16px;
    overflow: hidden;
}

body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 20px;
    box-sizing: border-box;
}

body.single-product .woocommerce-product-gallery__trigger {
    top: 16px !important;
    right: 16px !important;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6) !important;
    border-radius: 50%;
    color: var(--_501fg-white) !important;
    text-indent: 0 !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Miniatures : grid horizontal régulier */
body.single-product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
    list-style: none !important;
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s ease;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    opacity: 0.75;
    margin: 0 !important;
    transition: opacity 0.15s ease;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs li:hover,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active + * {
    border-color: var(--_501fg-red);
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs li:hover img,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1;
}

/* Summary (colonne droite) */
body.single-product .summary.entry-summary,
body.single-product .summary {
    background: transparent;
    padding: 0;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    position: relative;
    min-width: 0;
}

body.single-product .summary .product_title {
    font-size: clamp(32px, 3.5vw, 48px) !important;
    line-height: 1.05 !important;
    margin: 0 0 18px !important;
    color: var(--_501fg-white) !important;
    text-transform: uppercase;
    font-weight: 700 !important;
}

body.single-product .summary .price,
body.single-product .summary .price *,
body.single-product .summary .woocommerce-Price-amount,
body.single-product .summary .woocommerce-Price-amount * {
    font-size: 32px !important;
    color: var(--_501fg-white) !important;
    font-weight: 700 !important;
    margin: 0 0 20px !important;
    display: block;
}

body.single-product .summary .price del {
    font-size: 0.55em;
    color: var(--_501fg-gray) !important;
    margin-right: 10px;
}

/* Stock chip */
body.single-product .summary .stock,
body.single-product .summary .in-stock,
body.single-product .summary .out-of-stock {
    color: var(--_501fg-white) !important;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 22px !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

body.single-product .summary .stock.in-stock::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

body.single-product .summary .stock.out-of-stock::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--_501fg-red);
    box-shadow: 0 0 8px var(--_501fg-red);
}

/* Form cart : quantité stepper + add-to-cart en ligne, alignés à gauche */
body.single-product form.cart {
    display: flex !important;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 24px !important;
    padding: 0 !important;
}

body.single-product form.cart .quantity {
    margin: 0 !important;
    padding: 0 !important;
}

/* Quantity stepper [- N +] */
.quantity._501fg-stepper {
    display: inline-flex !important;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
}

.quantity._501fg-stepper button.qty-btn {
    background: transparent !important;
    color: var(--_501fg-white) !important;
    border: 0 !important;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    clip-path: none !important;
    padding: 0 !important;
    cursor: pointer;
    font-size: 16px !important;
    font-weight: 400 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s ease;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.quantity._501fg-stepper button.qty-btn:hover {
    background: var(--_501fg-red) !important;
    transform: none !important;
}

.quantity._501fg-stepper button.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quantity._501fg-stepper button.qty-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.quantity._501fg-stepper input.qty,
body.woocommerce-cart .quantity._501fg-stepper input.qty,
body.woocommerce-cart .shop_table .quantity._501fg-stepper input.qty {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--_501fg-white) !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 44px !important;
    min-width: 44px !important;
    font-family: var(--_501fg-font-title) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-align: center !important;
    -moz-appearance: textfield;
    box-shadow: none !important;
    line-height: 1 !important;
}

.quantity._501fg-stepper input.qty::-webkit-outer-spin-button,
.quantity._501fg-stepper input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Catégorie / meta produit */
body.single-product .product_meta {
    border-top: 1px solid var(--_501fg-line);
    padding-top: 20px;
    margin: 28px 0 0;
    font-size: 13px;
    color: var(--_501fg-white);
}

body.single-product .product_meta > span {
    display: block;
    margin-bottom: 6px;
    color: var(--_501fg-white);
}

body.single-product .product_meta a {
    color: var(--_501fg-red);
    text-decoration: none;
}

/* Description complète déplacée dans le summary (via PHP hook priority 45) */
body.single-product ._501fg-product-description {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--_501fg-line);
    color: var(--_501fg-white);
    font-size: 16px;
    line-height: 26px;
}

body.single-product ._501fg-product-description p {
    margin: 0 0 12px;
}

body.single-product ._501fg-product-description strong {
    color: var(--_501fg-red);
    font-weight: 500;
}

body.single-product ._501fg-product-description a {
    color: var(--_501fg-red);
    text-decoration: underline;
}

/* Onglets : restent en place mais discrets (rappel : tabs Avis / Description / Infos
   sont supprimés via filter PHP woocommerce_product_tabs — voir inc/shop-ux.php) */
body.single-product .woocommerce-tabs {
    grid-column: 1 / -1;
    margin-top: 40px;
    background: transparent;
}

body.single-product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid var(--_501fg-line) !important;
    padding: 0 !important;
    margin: 0 0 24px !important;
    display: flex;
    gap: 6px;
}

body.single-product .woocommerce-tabs ul.tabs::before {
    border: 0 !important;
}

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

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

body.single-product .woocommerce-tabs ul.tabs li a {
    color: var(--_501fg-gray) !important;
    font-family: var(--_501fg-font-body) !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px !important;
    padding: 12px 22px !important;
    border-radius: 999px;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
    color: var(--_501fg-white) !important;
    background: var(--_501fg-red) !important;
}


/* === 10. PANIER (override widget Elementor + table) ==================== */

/* Tuer les wrappers Elementor qui mettent du blanc */
.elementor-widget-woocommerce-cart,
.elementor-widget-woocommerce-cart > .elementor-widget-container,
.elementor-widget-woocommerce-cart .e-shop-table-wrapper,
.elementor-widget-woocommerce-cart .e-cart-section,
.elementor-widget-woocommerce-cart [class*="e-cart"],
.elementor-widget-woocommerce-cart .woocommerce {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.woocommerce-cart h1.entry-title,
body.woocommerce-cart h1.page-title {
    font-size: clamp(36px, 4.5vw, 56px);
    text-transform: uppercase;
    margin: 0 0 32px;
    color: var(--_501fg-white);
}

/* Le widget Elementor Pro "WooCommerce Cart" (classe .e-cart-layout-two-column)
   gère DÉJÀ le layout 2 colonnes en interne. On NE force PAS de display/grid/flex
   sur le wrapper .woocommerce — on laisse Elementor s'en occuper.
   On ne fait que purger les fonds blancs et styler les cards (table + totaux). */
body.woocommerce-cart .woocommerce,
body.woocommerce-cart form.woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.woocommerce-cart .shop_table {
    table-layout: auto;
    max-width: 100%;
}

body.woocommerce-cart .cart-collaterals > * {
    width: auto !important;
    float: none !important;
}

/* Table panier */
body.woocommerce-cart .shop_table,
body.woocommerce-cart table.shop_table {
    background: var(--_501fg-card) !important;
    background-color: var(--_501fg-card) !important;
    color: var(--_501fg-white) !important;
    border: 0 !important;
    border-radius: 0 !important;
    /* Chanfrein parallélogramme cohérent avec les boutons */
    clip-path: var(--_501fg-chamfer);
    overflow: hidden;
    box-shadow: none !important;
    border-collapse: collapse;
    width: 100%;
}

body.woocommerce-cart .shop_table th,
body.woocommerce-cart table.shop_table th,
.elementor-widget-woocommerce-cart .shop_table th {
    font-family: var(--_501fg-font-body) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.16em;
    background: rgba(0, 0, 0, 0.3) !important;
    color: var(--_501fg-white) !important;
    padding: 30px 32px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--_501fg-line) !important;
    text-align: left;
}

body.woocommerce-cart .shop_table td,
body.woocommerce-cart table.shop_table td,
.elementor-widget-woocommerce-cart .shop_table td {
    padding: 38px 32px !important;
    border-top: 1px solid var(--_501fg-line) !important;
    background: transparent !important;
    color: var(--_501fg-white) !important;
    vertical-align: middle;
}

/* Ligne actions (Continuer / Mettre à jour) : plus d'air aussi */
body.woocommerce-cart .shop_table .actions,
body.woocommerce-cart table.shop_table .actions,
.elementor-widget-woocommerce-cart .shop_table .actions {
    padding: 28px 32px !important;
}

body.woocommerce-cart .shop_table tbody tr:first-child td {
    border-top: 0;
}

body.woocommerce-cart .shop_table .product-name a {
    color: var(--_501fg-white) !important;
    font-weight: 400;
    font-size: 15px;
}

body.woocommerce-cart .shop_table .product-name a:hover {
    color: var(--_501fg-red) !important;
}

/* Orbitron uniquement pour les cellules <td> (valeurs des prix), pas les <th> */
body.woocommerce-cart .shop_table td.product-price,
body.woocommerce-cart .shop_table td.product-price *,
body.woocommerce-cart .shop_table td.product-price bdi,
body.woocommerce-cart .shop_table td.product-price .woocommerce-Price-amount,
body.woocommerce-cart .shop_table td.product-subtotal,
body.woocommerce-cart .shop_table td.product-subtotal *,
body.woocommerce-cart .shop_table td.product-subtotal bdi,
body.woocommerce-cart .shop_table td.product-subtotal .woocommerce-Price-amount,
body.woocommerce-cart .shop_table td .woocommerce-Price-currencySymbol {
    color: var(--_501fg-white) !important;
    font-family: var(--_501fg-font-title) !important;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}

/* Force tous les <th> du panier en Oswald (uniformité des headers de colonnes) */
body.woocommerce-cart .shop_table thead th,
body.woocommerce-cart .shop_table thead th.product-price,
body.woocommerce-cart .shop_table thead th.product-subtotal,
body.woocommerce-cart .shop_table thead th.product-name,
body.woocommerce-cart .shop_table thead th.product-quantity {
    font-family: var(--_501fg-font-body) !important;
}

body.woocommerce-cart .shop_table .product-thumbnail {
    width: 80px;
}

body.woocommerce-cart .shop_table .product-thumbnail img {
    border-radius: 4px;
    max-width: 60px;
    width: 60px;
    height: 60px;
    object-fit: contain;
}

body.woocommerce-cart .shop_table .product-remove {
    width: 36px;
    text-align: center;
}

body.woocommerce-cart .shop_table .remove {
    background: transparent !important;
    color: var(--_501fg-red) !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    line-height: 1;
    transition: background 0.15s ease;
}

body.woocommerce-cart .shop_table .remove:hover {
    background: rgba(255, 0, 0, 0.15) !important;
}

/* Ligne actions (coupon + update) */
body.woocommerce-cart .shop_table .actions {
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 16px !important;
    border-top: 1px solid var(--_501fg-line);
}

body.woocommerce-cart .shop_table .actions::after {
    content: '';
    display: block;
    clear: both;
}

body.woocommerce-cart .coupon {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 0 12px 0 0;
}

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

body.woocommerce-cart .coupon input.input-text {
    min-width: 200px;
    font-size: 14px !important;
}

body.woocommerce-cart .coupon button {
    padding: 11px 22px !important;
    font-size: 12px !important;
}

/* Totaux : panneau chanfreiné comme la table panier (pas de sticky qui foire
   avec les wrappers Elementor) */
body.woocommerce-cart .cart_totals {
    background: var(--_501fg-card) !important;
    background-color: var(--_501fg-card) !important;
    color: var(--_501fg-white) !important;
    padding: 32px !important;
    border: 0 !important;
    border-radius: 0 !important;
    clip-path: var(--_501fg-chamfer);
    box-shadow: none !important;
    margin: 0 !important;
}

body.woocommerce-cart .cart_totals h2 {
    color: var(--_501fg-white) !important;
    font-family: var(--_501fg-font-title) !important;
    font-size: 20px !important;
    margin: 0 0 20px !important;
    padding: 0 0 16px !important;
    text-transform: uppercase;
    border-bottom: 1px solid var(--_501fg-line);
    background: transparent !important;
}

body.woocommerce-cart .cart_totals table {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    width: 100%;
    border-collapse: collapse;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
    background: transparent !important;
    color: var(--_501fg-white) !important;
    padding: 12px 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--_501fg-line) !important;
    font-family: var(--_501fg-font-body) !important;
    font-size: 14px;
}

body.woocommerce-cart .cart_totals table tr:first-child th,
body.woocommerce-cart .cart_totals table tr:first-child td {
    border-top: 0 !important;
    padding-top: 0 !important;
}

body.woocommerce-cart .cart_totals table th {
    color: var(--_501fg-white) !important;
    text-transform: uppercase;
    font-size: 12px !important;
    letter-spacing: 0.08em;
    font-weight: 500 !important;
}

body.woocommerce-cart .cart_totals table td {
    text-align: right;
    color: var(--_501fg-white) !important;
}

body.woocommerce-cart .cart_totals .order-total th {
    color: var(--_501fg-white) !important;
    font-family: var(--_501fg-font-title) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

body.woocommerce-cart .cart_totals .order-total td,
body.woocommerce-cart .cart_totals .order-total .woocommerce-Price-amount,
body.woocommerce-cart .cart_totals .order-total .woocommerce-Price-amount * {
    color: var(--_501fg-red) !important;
    font-family: var(--_501fg-font-title) !important;
    font-weight: 700 !important;
    font-size: 24px;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
body.woocommerce-cart .cart_totals .woocommerce-shipping-destination strong,
body.woocommerce-cart .cart_totals .shipping label,
body.woocommerce-cart .cart_totals .shipping span,
body.woocommerce-cart .cart_totals .shipping ul li {
    color: var(--_501fg-white) !important;
}

body.woocommerce-cart .cart_totals a,
body.woocommerce-cart .shipping-calculator-button {
    color: var(--_501fg-red) !important;
}

body.woocommerce-cart .cart_totals a:hover {
    color: var(--_501fg-white) !important;
}

body.woocommerce-cart .wc-proceed-to-checkout {
    padding: 20px 0 0 !important;
    margin: 0 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: block !important;
    text-align: center;
    width: 100%;
    margin: 0 !important;
}


/* === 11. CHECKOUT (override widget Elementor) ========================== */

/* PURGE TOTALE des fonds blancs sur le widget Elementor Checkout :
   chaque wrapper et sous-élément du widget rend du blanc par défaut.
   On les passe TOUS en transparent, puis on redonne du fond sombre
   uniquement sur nos cards explicites (billing, shipping, order_review). */
body.woocommerce-checkout .elementor-widget-woocommerce-checkout-page,
body.woocommerce-checkout .elementor-widget-woocommerce-checkout-page *:not(input):not(select):not(textarea):not(button):not(.button):not(.shop_table):not(.shop_table *):not(.woocommerce-billing-fields):not(.woocommerce-billing-fields *):not(.woocommerce-shipping-fields):not(.woocommerce-shipping-fields *):not(#order_review):not(#order_review *):not(.woocommerce-form-coupon-toggle):not(.woocommerce-form-coupon-toggle *):not(._501fg-identity-recap):not(._501fg-identity-recap *):not(._501fg-confirm-identity):not(._501fg-confirm-identity *):not(.select2-selection):not(.select2-selection *) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.elementor-widget-woocommerce-checkout-page,
.elementor-widget-woocommerce-checkout-page > .elementor-widget-container,
.elementor-widget-woocommerce-checkout-page [class*="e-checkout"],
body.woocommerce-checkout .e-checkout-page,
body.woocommerce-checkout .e-checkout-page-wrapper,
body.woocommerce-checkout .e-checkout__order-review,
body.woocommerce-checkout [class*="e-checkout__"] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.woocommerce-checkout h1.entry-title {
    font-size: clamp(36px, 4.5vw, 56px);
    text-transform: uppercase;
    margin: 0 0 32px;
}

/* Checkout layout : 2 colonnes (billing | votre commande + paiement) */
body.woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* Billing + shipping = colonne gauche */
body.woocommerce-checkout form.checkout .col2-set,
body.woocommerce-checkout form.checkout #customer_details {
    grid-column: 1 / 2;
    width: 100% !important;
    float: none !important;
    margin-bottom: 0;
    min-width: 0;
}

body.woocommerce-checkout .col-1,
body.woocommerce-checkout .col-2 {
    width: 100% !important;
    float: none !important;
    margin-bottom: 20px;
}

/* On cache le <h3 id="order_review_heading"> et on l'intègre comme ::before
   du #order_review → ainsi le grid n'a que 2 enfants (billing | review),
   pas de gap intermédiaire dû à un 3ème enfant qui force une row vide. */
body.woocommerce-checkout form.checkout #order_review_heading {
    display: none !important;
}

body.woocommerce-checkout form.checkout #order_review {
    grid-column: 2 / 3 !important;
    min-width: 0;
    width: auto !important;
    float: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.woocommerce-checkout form.checkout #order_review::before {
    content: 'Votre commande';
    display: block;
    color: var(--_501fg-white);
    font-family: var(--_501fg-font-title);
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 20px;
    padding: 0;
}

/* Coupon notice (au-dessus du formulaire) : pleine largeur, pas dans une colonne */
body.woocommerce-checkout form.checkout > .woocommerce-form-coupon-toggle,
body.woocommerce-checkout form.checkout > .checkout_coupon,
body.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup,
body.woocommerce-checkout form.checkout > .woocommerce-error,
body.woocommerce-checkout form.checkout > .woocommerce-message {
    grid-column: 1 / -1;
}

body.woocommerce-checkout h3,
body.woocommerce-checkout #order_review_heading {
    color: var(--_501fg-white) !important;
    font-family: var(--_501fg-font-title) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    text-transform: uppercase;
    margin: 0 0 20px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields {
    background: var(--_501fg-card) !important;
    color: var(--_501fg-white) !important;
    padding: 32px !important;
    border: 0 !important;
    border-radius: 0 !important;
    clip-path: var(--_501fg-chamfer);
    margin-bottom: 20px !important;
    box-shadow: none !important;
}

body.woocommerce-checkout #order_review {
    background: var(--_501fg-card) !important;
    color: var(--_501fg-white) !important;
    padding: 32px !important;
    border: 0 !important;
    border-radius: 0 !important;
    clip-path: var(--_501fg-chamfer);
    box-shadow: none !important;
    position: sticky;
    top: 140px;
}

body.woocommerce-checkout #order_review .shop_table {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100%;
}

body.woocommerce-checkout #order_review .shop_table th,
body.woocommerce-checkout #order_review .shop_table td {
    background: transparent !important;
    color: var(--_501fg-white) !important;
    border-bottom: 1px solid var(--_501fg-line) !important;
    padding: 12px 0 !important;
    font-family: var(--_501fg-font-body) !important;
    font-size: 14px !important;
}

body.woocommerce-checkout #order_review .shop_table thead th {
    color: var(--_501fg-white) !important;
    text-transform: uppercase;
    font-size: 11px !important;
    letter-spacing: 0.1em;
    font-weight: 500;
}

body.woocommerce-checkout #order_review .shop_table tfoot th {
    color: var(--_501fg-white) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px !important;
    letter-spacing: 0.08em;
}

body.woocommerce-checkout #order_review .shop_table tfoot td {
    text-align: right;
    white-space: nowrap;
}

body.woocommerce-checkout #order_review .shop_table tfoot .order-total th,
body.woocommerce-checkout #order_review .shop_table tfoot .order-total td {
    color: var(--_501fg-white) !important;
    font-family: var(--_501fg-font-title) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

body.woocommerce-checkout #order_review .shop_table tfoot .order-total .woocommerce-Price-amount,
body.woocommerce-checkout #order_review .shop_table tfoot .order-total .woocommerce-Price-amount * {
    color: var(--_501fg-red) !important;
    font-family: var(--_501fg-font-title) !important;
    font-size: 22px !important;
    font-weight: 700;
}

/* Payment methods */
body.woocommerce-checkout #payment {
    background: transparent !important;
    border-radius: 0;
    border: 0 !important;
}

body.woocommerce-checkout #payment ul.payment_methods {
    background: rgba(255, 255, 255, 0.04);
    padding: 14px;
    border-radius: 4px;
    border: 0 !important;
}

body.woocommerce-checkout #payment ul.payment_methods li {
    background: transparent;
    border-bottom: 1px solid var(--_501fg-line);
    padding: 10px 0;
    list-style: none;
}

body.woocommerce-checkout #payment ul.payment_methods li:last-child {
    border-bottom: 0;
}

body.woocommerce-checkout #payment ul.payment_methods li label {
    color: var(--_501fg-white) !important;
    text-transform: none;
    letter-spacing: 0;
    font-size: 15px;
    font-weight: 400;
}

body.woocommerce-checkout #payment div.payment_box {
    background: rgba(0, 0, 0, 0.3) !important;
    color: var(--_501fg-white);
    border-radius: 4px;
}

body.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: rgba(0, 0, 0, 0.3) !important;
}

body.woocommerce-checkout #place_order {
    width: 100%;
    padding: 16px 24px !important;
    font-size: 14px !important;
    margin-top: 20px;
}

/* Coupon notice (form-coupon-toggle) */
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
body.woocommerce-checkout .checkout_coupon {
    background: var(--_501fg-card) !important;
    background-color: var(--_501fg-card) !important;
    border: 1px solid var(--_501fg-line) !important;
    border-left: 4px solid var(--_501fg-red) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    padding: 14px 20px 14px 50px !important;
    color: var(--_501fg-white) !important;
    margin-bottom: 20px !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle * {
    color: var(--_501fg-white) !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon,
body.woocommerce-checkout .woocommerce-form-coupon-toggle a {
    color: var(--_501fg-red) !important;
    font-weight: 500;
}

/* Stripe / payment box : fonds sombres */
body.woocommerce-checkout .wc-stripe-credit-card-form-fields,
body.woocommerce-checkout .StripeElement,
body.woocommerce-checkout .wc-stripe-elements-field,
body.woocommerce-checkout .wc-stripe-iban-element-field {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--_501fg-line) !important;
    border-radius: 4px !important;
    padding: 12px 14px !important;
    color: var(--_501fg-white) !important;
}

body.woocommerce-checkout #payment .payment_box label,
body.woocommerce-checkout #payment .payment_box p {
    color: var(--_501fg-white) !important;
}


/* === 11.b BLOC COTISATION (custom : .tk-id-field) ====================== *
 * Injecté dans le form.cart de la fiche produit "Cotisation annuelle".
 * Wrapper Elementor parent mettait du blanc → on force sombre + textes blancs.
 */

body.single-product .tk-id-field {
    background: var(--_501fg-card) !important;
    background-color: var(--_501fg-card) !important;
    border: 1px solid var(--_501fg-line) !important;
    border-radius: 6px !important;
    padding: 22px 24px !important;
    margin: 0 0 20px !important;
    color: var(--_501fg-white) !important;
    box-shadow: none !important;
    width: 100%;
    box-sizing: border-box;
}

body.single-product .tk-id-field .field-group {
    margin: 0 0 16px;
}

body.single-product .tk-id-field .field-group:last-child {
    margin-bottom: 0;
}

body.single-product .tk-id-field label,
body.single-product .tk-id-field .field-group label {
    color: var(--_501fg-white) !important;
    font-family: var(--_501fg-font-body) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin: 0 0 8px !important;
    display: block;
}

body.single-product .tk-id-field .required,
body.single-product .tk-id-field span.required {
    color: var(--_501fg-red) !important;
    margin-left: 4px;
    border: 0;
    text-decoration: none;
}

body.single-product .tk-id-field input[type="text"] {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--_501fg-white) !important;
    border: 1px solid var(--_501fg-line) !important;
    border-radius: 4px !important;
    padding: 12px 16px !important;
    font-family: var(--_501fg-font-body) !important;
    font-size: 15px !important;
    width: 100%;
    box-sizing: border-box;
}

body.single-product .tk-id-field input[type="text"]:focus {
    border-color: var(--_501fg-red) !important;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15) !important;
    outline: 0 !important;
}

body.single-product .tk-id-field input[type="text"]::placeholder {
    color: var(--_501fg-gray) !important;
    opacity: 1;
}

body.single-product .tk-id-field .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--_501fg-line);
    border-radius: 4px;
    padding: 12px 16px;
}

body.single-product .tk-id-field .checkbox-group input[type="checkbox"] {
    accent-color: var(--_501fg-red);
    width: 18px;
    height: 18px;
    margin: 0 !important;
    flex-shrink: 0;
}

body.single-product .tk-id-field .checkbox-group label {
    color: var(--_501fg-white) !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    flex: 1;
}


/* === 12. IDENTITY RECAP + CHECKBOX (custom 501FG) ====================== */

._501fg-identity-recap {
    background: linear-gradient(135deg, var(--_501fg-red) 0%, var(--_501fg-red-deep) 100%) !important;
    background-color: var(--_501fg-red) !important;
    border: 0 !important;
    color: var(--_501fg-white) !important;
    clip-path: var(--_501fg-chamfer);
    padding: 22px 26px !important;
    margin: 0 0 24px !important;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.25);
}

._501fg-identity-recap h3 {
    font-family: var(--_501fg-font-title) !important;
    font-weight: 700 !important;
    color: var(--_501fg-white) !important;
    margin: 0 0 10px !important;
    font-size: 17px !important;
    text-transform: uppercase;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

._501fg-identity-recap h3::before {
    content: '⚠ ';
    margin-right: 4px;
}

._501fg-identity-recap p {
    color: var(--_501fg-white) !important;
    margin: 0 0 6px !important;
    font-size: 14px;
    line-height: 22px;
}

._501fg-identity-recap p:last-child {
    margin-bottom: 0 !important;
}

._501fg-identity-recap strong {
    color: var(--_501fg-white) !important;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 600;
}

._501fg-identity-recap__note {
    font-size: 13px !important;
    opacity: 0.92;
}

._501fg-confirm-identity {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--_501fg-line) !important;
    border-radius: 4px !important;
    padding: 16px 20px !important;
    margin: 16px 0 !important;
    color: var(--_501fg-white) !important;
}

._501fg-confirm-identity label {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    color: var(--_501fg-white) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    line-height: 20px;
    cursor: pointer;
    margin: 0 !important;
}

._501fg-confirm-identity input[type="checkbox"] {
    accent-color: var(--_501fg-red);
    width: 18px;
    height: 18px;
    margin: 2px 0 0 !important;
    flex-shrink: 0;
}

._501fg-confirm-identity span {
    flex: 1;
}

._501fg-required {
    color: var(--_501fg-red) !important;
    font-weight: 600;
    margin-left: 4px;
}


/* === 13. PANIER FLOTTANT + POPUP MOBILE ================================ */

._501fg-floating-cart {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    max-width: 760px;
    width: calc(100% - 40px);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

._501fg-floating-cart--hidden {
    transform: translate(-50%, 140%);
    opacity: 0;
    pointer-events: none;
}

._501fg-floating-cart__inner {
    background: var(--_501fg-card);
    color: var(--_501fg-white);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 22px;
    clip-path: var(--_501fg-chamfer);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--_501fg-line);
}

._501fg-floating-cart__info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

._501fg-floating-cart__icon {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--_501fg-red);
    color: var(--_501fg-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

._501fg-floating-cart__count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--_501fg-white);
    color: var(--_501fg-bg);
    font-family: var(--_501fg-font-title);
    font-weight: 700;
    font-size: 11px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}

._501fg-floating-cart__labels {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

._501fg-floating-cart__label {
    font-family: var(--_501fg-font-body);
    font-weight: 300;
    font-size: 12px;
    color: var(--_501fg-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

._501fg-floating-cart__total {
    font-family: var(--_501fg-font-title);
    font-weight: 700;
    font-size: 17px;
    color: var(--_501fg-white);
    margin-top: 4px;
}

._501fg-floating-cart__total .woocommerce-Price-amount {
    font-family: inherit !important;
    color: inherit !important;
}

._501fg-floating-cart__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

._501fg-floating-cart__view,
._501fg-floating-cart__checkout {
    padding: 10px 22px !important;
    font-size: 11px !important;
}

/* FAB mobile (caché en desktop) */
._501fg-floating-cart__fab {
    display: none;
}

/* Popup détail panier (caché en desktop) */
._501fg-cart-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    pointer-events: none;
}

._501fg-cart-popup.is-open {
    display: block;
    pointer-events: auto;
}

._501fg-cart-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: _501fg-fade-in 0.25s ease;
}

._501fg-cart-popup__panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: var(--_501fg-card);
    color: var(--_501fg-white);
    border-top: 2px solid var(--_501fg-red);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    animation: _501fg-slide-up 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

@keyframes _501fg-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes _501fg-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

._501fg-cart-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--_501fg-line);
    flex-shrink: 0;
}

._501fg-cart-popup__header h3 {
    margin: 0;
    font-family: var(--_501fg-font-title);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--_501fg-white);
}

._501fg-cart-popup__close {
    background: transparent !important;
    border: 0 !important;
    color: var(--_501fg-white) !important;
    font-size: 28px !important;
    line-height: 1 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    clip-path: none !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    padding: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

._501fg-cart-popup__close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: none !important;
    color: var(--_501fg-white) !important;
}

._501fg-cart-popup__body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 20px 20px;
    color: var(--_501fg-white);
}

._501fg-cart-popup__body ul.cart_list,
._501fg-cart-popup__body ul.product_list_widget {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

._501fg-cart-popup__body ul.cart_list li,
._501fg-cart-popup__body ul.product_list_widget li {
    padding: 12px 0;
    border-bottom: 1px solid var(--_501fg-line);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--_501fg-white);
}

._501fg-cart-popup__body img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    object-fit: contain;
    border-radius: 4px;
    margin: 0 !important;
    float: none !important;
    flex-shrink: 0;
}

._501fg-cart-popup__body ul.cart_list li a {
    color: var(--_501fg-white);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
}

._501fg-cart-popup__body ul.cart_list li a:hover {
    color: var(--_501fg-red);
}

._501fg-cart-popup__body .remove,
._501fg-cart-popup__body .remove_from_cart_button {
    background: transparent !important;
    color: var(--_501fg-red) !important;
    font-size: 22px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    margin-left: auto !important;
    flex-shrink: 0;
    line-height: 1;
}

._501fg-cart-popup__body .quantity {
    font-size: 13px;
    color: var(--_501fg-gray);
    margin: 0 8px;
}

._501fg-cart-popup__body p.total,
._501fg-cart-popup__body .total {
    padding: 12px 0;
    border-top: 1px solid var(--_501fg-line);
    font-family: var(--_501fg-font-title);
    font-weight: 700;
    font-size: 16px;
    color: var(--_501fg-white);
    text-align: right;
    margin: 12px 0 0;
}

._501fg-cart-popup__body .total .woocommerce-Price-amount {
    color: var(--_501fg-red);
    font-family: var(--_501fg-font-title) !important;
    font-weight: 700;
    font-size: 20px;
    margin-left: 8px;
}

._501fg-cart-popup__body p.buttons {
    display: flex;
    gap: 10px;
    margin: 14px 0 0;
}

._501fg-cart-popup__body p.buttons a.button {
    flex: 1;
    text-align: center;
    padding: 12px 14px !important;
    font-size: 11px !important;
}

._501fg-cart-popup__body .woocommerce-mini-cart__empty-message {
    text-align: center;
    color: var(--_501fg-gray);
    padding: 28px 0;
    font-style: italic;
}

body._501fg-cart-popup-open {
    overflow: hidden;
}


/* === 14. RESPONSIVE ===================================================== */

@media (max-width: 1024px) {
    /* Fiche produit : stack en mobile */
    body.single-product .product {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Panier + checkout : stack */
    body.woocommerce-cart .woocommerce {
        flex-direction: column;
    }
    body.woocommerce-cart .cart_totals,
    body.woocommerce-checkout #order_review {
        position: static;
    }
    body.woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.woocommerce.archive .site-main,
    body.post-type-archive-product .site-main,
    body.single-product .site-main,
    body.woocommerce-cart .site-main,
    body.woocommerce-checkout .site-main {
        padding: 120px 20px 60px;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 14px !important;
        line-height: 18px !important;
        margin: 14px 14px 4px !important;
        min-height: 36px;
    }

    .woocommerce ul.products li.product .price {
        font-size: 18px !important;
        margin: 0 14px 12px !important;
    }

    .woocommerce ul.products li.product .add_to_cart_button {
        margin: 0 14px 14px !important;
        padding: 10px 18px !important;
        font-size: 11px !important;
    }

    ._501fg-loop-view-details {
        margin: 0 14px 14px !important;
    }

    /* Panier flottant : transformer la barre en FAB */
    ._501fg-floating-cart {
        bottom: auto;
        left: auto;
        top: auto;
        right: 18px;
        bottom: 18px;
        transform: none;
        width: auto;
        max-width: none;
    }
    ._501fg-floating-cart--hidden {
        transform: scale(0);
        opacity: 0;
    }
    ._501fg-floating-cart__inner {
        display: none;
    }
    ._501fg-floating-cart__fab {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 58px !important;
        height: 58px !important;
        border-radius: 50% !important;
        clip-path: none !important;
        background: var(--_501fg-red) !important;
        color: var(--_501fg-white) !important;
        border: 0 !important;
        padding: 0 !important;
        cursor: pointer;
        position: relative;
        box-shadow: 0 12px 28px rgba(255, 0, 0, 0.45), 0 6px 14px rgba(0, 0, 0, 0.5);
        transition: transform 0.2s ease;
        font-size: 0;
        line-height: 0;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }
    ._501fg-floating-cart__fab:hover,
    ._501fg-floating-cart__fab:active {
        transform: scale(1.06);
        background: var(--_501fg-red) !important;
        color: var(--_501fg-white) !important;
    }
    ._501fg-floating-cart__fab svg {
        width: 24px !important;
        height: 24px !important;
        display: block;
        fill: var(--_501fg-white);
    }
    ._501fg-floating-cart__fab-count {
        position: absolute;
        top: -4px;
        right: -4px;
        background: var(--_501fg-white);
        color: var(--_501fg-bg);
        font-family: var(--_501fg-font-title);
        font-weight: 700;
        font-size: 11px;
        min-width: 20px;
        height: 20px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        line-height: 1;
    }

    /* Coupon panier : stack */
    body.woocommerce-cart .coupon {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        margin: 0 0 12px;
    }
    body.woocommerce-cart .coupon input.input-text {
        min-width: 0;
        width: 100%;
    }
}
