/**
 * Fiche produit — design dédié.
 * Layout 2 colonnes sticky, pills de variations, qty stepper, animations.
 */

/* ============================================================
 * Cadre général
 * ============================================================ */
.sfc-product-page {
    background: var(--color-cream);
    color: var(--color-text);
    padding-bottom: 80px;
}

.sfc-product-page .sfc-container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 48px);
    width: 100%;
}

/* On désactive le wrapper shop générique sur les pages produit */
.single-product .sfc-shop-wrap {
    padding-block: 0;
    background: transparent;
}

/* ============================================================
 * Hero (breadcrumb + catégorie eyebrow)
 * ============================================================ */
.sfc-product-page__hero {
    padding: 32px 0 16px;
    position: relative;
    overflow: hidden;
}

.sfc-product-page__hero::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(248, 152, 80, 0.12), transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: sfc-float-soft 14s ease-in-out infinite;
}

.sfc-product-page__hero > * {
    position: relative;
    z-index: 1;
}

.sfc-product-page__hero .sfc-breadcrumb,
.sfc-product-page__hero .woocommerce-breadcrumb {
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
}

.sfc-product-page__hero .storefront-breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.sfc-product-page__hero .storefront-breadcrumb > .col-full {
    margin: 0;
    padding: 0;
    max-width: none;
}

.sfc-product-page__hero .woocommerce-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-base);
}

.sfc-product-page__hero .woocommerce-breadcrumb a:hover {
    color: var(--color-primary);
}

.sfc-product-page__hero .breadcrumb-separator {
    color: var(--color-gold);
    margin: 0 8px;
}

.sfc-product-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.sfc-product-page__eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--color-gold);
}

/* ============================================================
 * Grille 2 colonnes
 * ============================================================ */
.sfc-product-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 72px);
    padding: 32px 0 64px;
    align-items: start;
}

/* ============================================================
 * Colonne média (galerie)
 * ============================================================ */
.sfc-product-page__media {
    position: sticky;
    top: 110px;
    align-self: start;
}

.woocommerce div.product .woocommerce-product-gallery {
    position: relative;
    margin: 0;
    float: none;
    width: 100% !important;
}

.woocommerce div.product .woocommerce-product-gallery__wrapper {
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-white);
    box-shadow:
        0 1px 2px rgba(34, 34, 34, 0.06),
        0 20px 50px -20px rgba(34, 34, 34, 0.18);
    transition: box-shadow 400ms ease, transform 400ms ease;
}

.woocommerce div.product .woocommerce-product-gallery__wrapper:hover {
    box-shadow:
        0 1px 2px rgba(34, 34, 34, 0.06),
        0 30px 70px -20px rgba(34, 34, 34, 0.28);
}

.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    border-radius: 0;
    background: var(--color-white);
    display: block;
    width: 100%;
    height: auto;
    transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.woocommerce div.product .woocommerce-product-gallery__wrapper:hover .woocommerce-product-gallery__image img {
    transform: scale(1.04);
}

/* Trigger zoom (loupe en haut à droite) */
.woocommerce div.product .woocommerce-product-gallery__trigger {
    top: 16px;
    right: 16px;
    background: var(--color-white);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(34, 34, 34, 0.18);
    font-size: 0;
    text-indent: 0;
    color: var(--color-primary);
    transition: var(--transition-base);
    z-index: 5;
}

.woocommerce div.product .woocommerce-product-gallery__trigger::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.woocommerce div.product .woocommerce-product-gallery__trigger::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
    top: calc(50% + 6px);
    left: calc(50% + 4px);
    border-radius: 2px;
}

.woocommerce div.product .woocommerce-product-gallery__trigger:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: scale(1.06);
}

/* Sale flash repositionné */
.woocommerce span.onsale,
.sfc-badge--selection {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 4;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 100px;
    min-height: auto;
    min-width: auto;
    line-height: 1;
    margin: 0;
    box-shadow: 0 6px 18px rgba(247, 99, 9, 0.35);
}

/* Thumbnails sous la galerie */
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding: 0;
    list-style: none;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li {
    width: calc((100% - 30px) / 4) !important;
    margin: 0 !important;
    float: none !important;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img {
    border-radius: 8px;
    opacity: 0.55;
    border: 2px solid transparent;
    transition: var(--transition-base);
    cursor: pointer;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img:hover {
    opacity: 1;
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

/* ============================================================
 * Colonne résumé
 * ============================================================ */
.sfc-product-page__summary {
    position: sticky;
    top: 110px;
    align-self: start;
}

.woocommerce div.product .summary {
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
    background: var(--color-white);
    border-radius: 12px;
    padding: clamp(24px, 3vw, 40px);
    box-shadow:
        0 1px 2px rgba(34, 34, 34, 0.06),
        0 20px 40px -24px rgba(34, 34, 34, 0.16);
    position: relative;
}

.woocommerce div.product .summary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    border-radius: 100px;
}

/* Titre */
.woocommerce div.product .product_title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.15;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

/* Prix */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce-variation-price .price {
    font-family: var(--font-heading);
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 600;
    color: var(--color-accent);
    margin: 0 0 20px;
    display: block;
    transition: transform 250ms ease, color 250ms ease;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    background: transparent;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
    opacity: 0.5;
    font-size: 0.7em;
    margin-right: 10px;
    color: var(--color-text-muted);
}

/* Animation prix au changement de variation */
.is-flashing {
    animation: sfc-price-flash 500ms ease;
}

@keyframes sfc-price-flash {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.06); color: var(--color-gold); }
    100% { transform: scale(1); }
}

/* Excerpt */
.woocommerce div.product .woocommerce-product-details__short-description {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text-muted);
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(34, 34, 34, 0.08);
}

.woocommerce div.product .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0;
}

/* ============================================================
 * Table de variations → pills (via JS)
 * ============================================================ */
.woocommerce div.product form.variations_form {
    margin: 0 0 8px;
}

.woocommerce div.product form.cart .variations {
    margin: 0 0 20px;
    border: 0;
    table-layout: fixed;
    width: 100%;
}

.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations td {
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
}

.woocommerce div.product form.cart .variations label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 0 0 10px;
    display: block;
}

.woocommerce div.product form.cart .variations .value {
    padding: 0;
}

.woocommerce div.product form.cart .reset_variations {
    display: inline-block;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 10px;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.2);
    text-underline-offset: 3px;
    transition: var(--transition-base);
}

.woocommerce div.product form.cart .reset_variations:hover {
    color: var(--color-accent);
    text-decoration-color: currentColor;
}

/* Pills */
.sfc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sfc-pill {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background: var(--color-cream);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 10px 18px;
    border: 1.5px solid transparent;
    border-radius: 100px;
    transition:
        transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 220ms ease,
        color 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
    position: relative;
    overflow: hidden;
    min-width: 64px;
    text-align: center;
}

.sfc-pill:hover:not(:disabled) {
    background: var(--color-white);
    border-color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -4px rgba(248, 152, 80, 0.4);
}

.sfc-pill.is-active {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
    box-shadow:
        0 0 0 4px rgba(247, 99, 9, 0.15),
        0 8px 20px -6px rgba(247, 99, 9, 0.35);
}

.sfc-pill.is-active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(248, 152, 80, 0.25) 50%, transparent 70%);
    animation: sfc-pill-shine 1.4s ease;
    pointer-events: none;
}

@keyframes sfc-pill-shine {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.sfc-pill:disabled,
.sfc-pill[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.sfc-pill:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

/* WC variation price block (apparait après sélection) */
.woocommerce-variation {
    margin-bottom: 16px;
}

.woocommerce-variation-availability {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-forest);
    margin-top: 8px;
}

.woocommerce-variation-availability .stock.out-of-stock {
    color: var(--color-accent);
}

/* ============================================================
 * Quantity stepper + bouton ATC
 * ============================================================ */
.woocommerce div.product form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    margin: 4px 0 24px;
}

.woocommerce div.product form.cart .quantity {
    margin: 0;
    display: inline-flex;
    align-items: stretch;
    background: var(--color-cream);
    border-radius: 100px;
    overflow: hidden;
    height: 52px;
}

.woocommerce div.product form.cart .quantity .qty {
    width: 46px;
    height: 100%;
    background: transparent;
    border: 0;
    text-align: center;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    padding: 0;
    -moz-appearance: textfield;
}

.woocommerce div.product form.cart .quantity .qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sfc-qty-btn {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 40px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary);
    transition: var(--transition-base);
    user-select: none;
}

.sfc-qty-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.sfc-qty-btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: -4px;
}

/* Bouton "Ajouter au panier" */
.woocommerce div.product form.cart .single_add_to_cart_button {
    flex: 1;
    min-width: 220px;
    height: 52px;
    padding: 0 32px !important;
    font-family: var(--font-body) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    border-radius: 100px !important;
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
    border: 0 !important;
    transition: transform 250ms ease, box-shadow 250ms ease, background-color 250ms ease !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 24px -8px rgba(248, 152, 80, 0.5);
}

.woocommerce div.product form.cart .single_add_to_cart_button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 600ms ease;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: var(--color-accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -8px rgba(247, 99, 9, 0.45);
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover::before {
    left: 125%;
}

.woocommerce div.product form.cart .single_add_to_cart_button:active {
    transform: translateY(0);
}

.woocommerce div.product form.cart .single_add_to_cart_button.disabled,
.woocommerce div.product form.cart .single_add_to_cart_button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* ============================================================
 * Bandeau garanties (sfc-trust)
 * ============================================================ */
.sfc-trust {
    list-style: none;
    margin: 24px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(34, 34, 34, 0.08);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 18px;
}

.sfc-trust li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.sfc-trust .sfc-trust__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    transition: var(--transition-base);
}

.sfc-trust li:hover .sfc-trust__icon {
    background: var(--color-accent);
    color: var(--color-white);
    transform: rotate(-6deg) scale(1.06);
}

.sfc-trust .sfc-trust__icon svg {
    width: 18px;
    height: 18px;
}

.sfc-trust strong {
    display: block;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

/* Meta (SKU, catégorie) */
.woocommerce div.product .product_meta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(34, 34, 34, 0.08);
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
}

.woocommerce div.product .product_meta > span {
    display: block;
    padding: 4px 0;
}

/* Masquer la ligne « Catégorie(s) » du bloc meta produit (FR + EN). */
.woocommerce div.product .product_meta .posted_in {
    display: none;
}

.woocommerce div.product .product_meta a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-base);
}

.woocommerce div.product .product_meta a:hover {
    border-bottom-color: var(--color-gold);
}

/* ============================================================
 * Bloc « points forts » (sfc-highlights)
 * ============================================================ */
.sfc-highlights {
    background: var(--color-cream);
    color: var(--color-primary);
    padding: 64px 0;
    margin: 32px 0 64px;
    position: relative;
    overflow: hidden;
}

.sfc-highlights::before,
.sfc-highlights::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(248, 152, 80, 0.18), transparent 65%);
    pointer-events: none;
}

.sfc-highlights::before {
    top: -120px;
    left: -120px;
    animation: sfc-float-soft 12s ease-in-out infinite;
}

.sfc-highlights::after {
    bottom: -120px;
    right: -120px;
    animation: sfc-float-soft 16s ease-in-out infinite reverse;
}

.sfc-highlights__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sfc-highlight {
    text-align: center;
    padding: 24px 16px;
    border-radius: 12px;
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), background-color 300ms ease;
    position: relative;
}

.sfc-highlight + .sfc-highlight::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(248, 152, 80, 0.3), transparent);
}

.sfc-highlight:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.4);
}

.sfc-highlight__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(248, 152, 80, 0.12);
    color: var(--color-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.sfc-highlight:hover .sfc-highlight__icon {
    background: var(--color-accent);
    color: var(--color-white);
    transform: scale(1.08) rotate(-4deg);
}

.sfc-highlight__icon svg {
    width: 24px;
    height: 24px;
}

.sfc-highlight__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 6px;
}

.sfc-highlight__text {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(34, 34, 34, 0.7);
    line-height: 1.55;
    margin: 0;
}

/* ============================================================
 * Onglets — surcharges spécifiques (les bases sont dans woocommerce.css)
 * ============================================================ */
.sfc-product-page__after .woocommerce-tabs {
    margin-top: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    justify-content: center;
    margin-bottom: 24px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    position: relative;
    padding: 16px 28px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transform: translateX(-50%);
    transition: width 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover::after {
    width: 60%;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    border-bottom-color: transparent;
}

.woocommerce div.product .woocommerce-tabs .panel {
    background: var(--color-white);
    border-radius: 12px;
    padding: 40px clamp(24px, 4vw, 56px) !important;
    box-shadow: 0 1px 2px rgba(34, 34, 34, 0.05);
    max-width: 920px;
    margin: 0 auto;
    animation: sfc-tab-fade 400ms ease;
}

@keyframes sfc-tab-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 16px;
}

.woocommerce div.product .woocommerce-tabs .panel h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--color-gold);
}

/* ============================================================
 * Related & upsells
 * ============================================================ */
.sfc-product-page__after .related,
.sfc-product-page__after .upsells {
    margin-top: 80px;
}

.sfc-product-page__after .related > h2,
.sfc-product-page__after .upsells > h2 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
}

.sfc-product-page__after .related > h2::after,
.sfc-product-page__after .upsells > h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    background: var(--color-gold);
}

/* ============================================================
 * Reveal animations
 * ============================================================ */
.sfc-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sfc-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes sfc-float-soft {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(20px, -10px) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    .sfc-reveal { opacity: 1; transform: none; transition: none; }
    .sfc-product-page__hero::before,
    .sfc-highlights::before,
    .sfc-highlights::after { animation: none; }
    .sfc-pill.is-active::after { animation: none; }
    .is-flashing { animation: none; }
}

/* ============================================================
 * Responsive
 * ============================================================ */
@media (max-width: 1024px) {
    .sfc-product-page__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sfc-product-page__media,
    .sfc-product-page__summary {
        position: static;
    }

    .sfc-product-page__media {
        max-width: 640px;
        margin-inline: auto;
    }

    .sfc-highlights__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .sfc-highlight + .sfc-highlight::before { display: none; }
}

@media (max-width: 640px) {
    .sfc-product-page { padding-bottom: 48px; }
    .sfc-product-page__hero { padding: 20px 0 8px; }
    .sfc-product-page__grid { padding: 24px 0 40px; }

    .woocommerce div.product .summary { padding: 24px 20px; }
    .woocommerce div.product .product_title { font-size: 26px; }

    .sfc-trust { grid-template-columns: 1fr; gap: 12px; }

    .sfc-highlights { padding: 48px 0; margin: 24px 0 48px; }
    .sfc-highlights__inner { grid-template-columns: 1fr; gap: 12px; }

    .woocommerce div.product form.cart {
        flex-direction: column;
        align-items: stretch;
    }

    .woocommerce div.product form.cart .single_add_to_cart_button {
        width: 100%;
        flex: none;
    }
}

/* =============================================================
 * Accordéons fiche produit (remplacent les onglets WC standards)
 * ============================================================= */
.sfc-accordions { max-width: 820px; margin: 0 auto; }

.sfc-accordion { border-bottom: 1px solid var(--color-border-taupe); }

.sfc-accordion__summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 4px;
	font-family: var(--font-heading);
	font-size: 17px;
	color: var(--color-text-main);
}

.sfc-accordion__summary::-webkit-details-marker { display: none; }

.sfc-accordion__summary::after {
	content: "+";
	font-family: var(--font-body);
	font-size: 22px;
	line-height: 1;
	color: var(--color-cta-orange);
	transition: transform 250ms ease;
}

.sfc-accordion[open] .sfc-accordion__summary::after { content: "–"; }

.sfc-accordion__summary:focus-visible {
	outline: 2px solid var(--color-cta-orange);
	outline-offset: 2px;
}

.sfc-accordion__content {
	padding: 0 4px 22px;
	font-size: 14px;
	line-height: 1.75;
	color: var(--color-text);
}

.sfc-accordion__content p { margin: 0 0 12px; }
.sfc-accordion__content p:last-child { margin-bottom: 0; }

/* ============ Animations fiche produit (DA Pocket Blush) ============ */

/* Cascade du résumé : titre → prix → description → panier → confiance → meta.
   Complète le reveal du bloc parent (.sfc-product-page__summary). */
html.sfc-js .sfc-product-page__summary.sfc-reveal .summary > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 550ms ease-out, transform 550ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

html.sfc-js .sfc-product-page__summary.sfc-reveal .summary > .price {
    transform: translateY(14px) scale(0.92);
    transform-origin: left center;
}

html.sfc-js .sfc-product-page__summary.sfc-reveal.is-visible .summary > * {
    opacity: 1;
    transform: none;
}

html.sfc-js .sfc-product-page__summary.sfc-reveal.is-visible .summary > *:nth-child(1) { transition-delay: 60ms; }
html.sfc-js .sfc-product-page__summary.sfc-reveal.is-visible .summary > *:nth-child(2) { transition-delay: 140ms; }
html.sfc-js .sfc-product-page__summary.sfc-reveal.is-visible .summary > *:nth-child(3) { transition-delay: 220ms; }
html.sfc-js .sfc-product-page__summary.sfc-reveal.is-visible .summary > *:nth-child(4) { transition-delay: 300ms; }
html.sfc-js .sfc-product-page__summary.sfc-reveal.is-visible .summary > *:nth-child(5) { transition-delay: 380ms; }
html.sfc-js .sfc-product-page__summary.sfc-reveal.is-visible .summary > *:nth-child(6) { transition-delay: 460ms; }
html.sfc-js .sfc-product-page__summary.sfc-reveal.is-visible .summary > *:nth-child(7) { transition-delay: 540ms; }
html.sfc-js .sfc-product-page__summary.sfc-reveal.is-visible .summary > *:nth-child(n+8) { transition-delay: 620ms; }

/* Barre de confiance : micro-cascade des points. */
html.sfc-js .sfc-product-page__summary.sfc-reveal .sfc-trust li {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 450ms ease-out, transform 450ms ease-out;
}
html.sfc-js .sfc-product-page__summary.sfc-reveal.is-visible .sfc-trust li { opacity: 1; transform: none; }
html.sfc-js .sfc-product-page__summary.sfc-reveal.is-visible .sfc-trust li:nth-child(1) { transition-delay: 520ms; }
html.sfc-js .sfc-product-page__summary.sfc-reveal.is-visible .sfc-trust li:nth-child(2) { transition-delay: 600ms; }
html.sfc-js .sfc-product-page__summary.sfc-reveal.is-visible .sfc-trust li:nth-child(3) { transition-delay: 680ms; }
html.sfc-js .sfc-product-page__summary.sfc-reveal.is-visible .sfc-trust li:nth-child(4) { transition-delay: 760ms; }

/* Points forts : cascade des 4 cartes + pop de l'icône. */
html.sfc-js .sfc-highlights.sfc-reveal .sfc-highlight {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 550ms ease-out, transform 550ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.sfc-js .sfc-highlights.sfc-reveal.is-visible .sfc-highlight { opacity: 1; transform: none; }
html.sfc-js .sfc-highlights.sfc-reveal.is-visible .sfc-highlight:nth-child(1) { transition-delay: 80ms; }
html.sfc-js .sfc-highlights.sfc-reveal.is-visible .sfc-highlight:nth-child(2) { transition-delay: 190ms; }
html.sfc-js .sfc-highlights.sfc-reveal.is-visible .sfc-highlight:nth-child(3) { transition-delay: 300ms; }
html.sfc-js .sfc-highlights.sfc-reveal.is-visible .sfc-highlight:nth-child(4) { transition-delay: 410ms; }

html.sfc-js .sfc-highlights.sfc-reveal .sfc-highlight__icon {
    display: inline-flex;
    transform: scale(0.4);
    transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
html.sfc-js .sfc-highlights.sfc-reveal.is-visible .sfc-highlight__icon { transform: scale(1); }
html.sfc-js .sfc-highlights.sfc-reveal.is-visible .sfc-highlight:nth-child(1) .sfc-highlight__icon { transition-delay: 200ms; }
html.sfc-js .sfc-highlights.sfc-reveal.is-visible .sfc-highlight:nth-child(2) .sfc-highlight__icon { transition-delay: 310ms; }
html.sfc-js .sfc-highlights.sfc-reveal.is-visible .sfc-highlight:nth-child(3) .sfc-highlight__icon { transition-delay: 420ms; }
html.sfc-js .sfc-highlights.sfc-reveal.is-visible .sfc-highlight:nth-child(4) .sfc-highlight__icon { transition-delay: 530ms; }

/* Onglets : le panneau glisse en fondu à chaque changement (classe posée par single-product.js). */
.woocommerce div.product .woocommerce-Tabs-panel.sfc-tab-anim {
    animation: sfc-tab-in 380ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes sfc-tab-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

/* Vignettes de galerie : bascule 3D au survol. */
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img:hover {
    transform: perspective(500px) rotateX(4deg) translateY(-3px);
}

/* Reduced motion : tout visible, rien ne bouge. */
@media (prefers-reduced-motion: reduce) {
    html.sfc-js .sfc-product-page__summary.sfc-reveal .summary > *,
    html.sfc-js .sfc-product-page__summary.sfc-reveal .sfc-trust li,
    html.sfc-js .sfc-highlights.sfc-reveal .sfc-highlight,
    html.sfc-js .sfc-highlights.sfc-reveal .sfc-highlight__icon {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .woocommerce div.product .woocommerce-Tabs-panel.sfc-tab-anim { animation: none; }
    .woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img:hover { transform: none; }
}
