/* =========================================================
   PURESCREEN - WOOCOMMERCE
========================================================= */

.woocommerce,
.woocommerce-page {
    background: var(--ps-black);
    color: var(--ps-text);
}

/* =========================================================
   CLEAN WORDPRESS / WOOCOMMERCE DEFAULT LAYOUT
========================================================= */

body.woocommerce-page #secondary,
body.woocommerce #secondary,
body.woocommerce-page .widget-area,
body.woocommerce .widget-area,
body.woocommerce-page aside,
body.woocommerce aside,
body.single-product #secondary,
body.single-product .widget-area,
body.single-product aside,
body.tax-product_cat #secondary,
body.tax-product_cat .widget-area,
body.tax-product_cat aside {
    display: none !important;
}

body.woocommerce-page #primary,
body.woocommerce #primary,
body.single-product #primary,
body.tax-product_cat #primary,
body.woocommerce-page .content-area,
body.woocommerce .content-area,
body.single-product .content-area,
body.tax-product_cat .content-area,
body.woocommerce-page .site-main,
body.woocommerce .site-main,
body.single-product .site-main,
body.tax-product_cat .site-main,
body.woocommerce-page main,
body.woocommerce main,
body.single-product main,
body.tax-product_cat main {
    width: 100% !important;
    max-width: 1500px;
    margin: 0 auto;
    padding: 70px 40px 90px;
}

/* Masque les blocs widgets WordPress qui apparaissent après WooCommerce */
body.woocommerce-page .wp-block-search,
body.woocommerce-page .wp-block-group,
body.woocommerce-page .wp-block-heading,
body.woocommerce-page .wp-block-archives,
body.woocommerce-page .wp-block-categories,
body.woocommerce-page .wp-block-page-list,
body.woocommerce .wp-block-search,
body.woocommerce .wp-block-group,
body.woocommerce .wp-block-heading,
body.woocommerce .wp-block-archives,
body.woocommerce .wp-block-categories,
body.woocommerce .wp-block-page-list,
body.single-product .wp-block-search,
body.single-product .wp-block-group,
body.single-product .wp-block-heading,
body.single-product .wp-block-archives,
body.single-product .wp-block-categories,
body.single-product .wp-block-page-list,
body.tax-product_cat .wp-block-search,
body.tax-product_cat .wp-block-group,
body.tax-product_cat .wp-block-heading,
body.tax-product_cat .wp-block-archives,
body.tax-product_cat .wp-block-categories,
body.tax-product_cat .wp-block-page-list {
    display: none !important;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.woocommerce-breadcrumb {
    color: var(--ps-muted) !important;
    font-size: 14px;
    margin-bottom: 30px !important;
}

.woocommerce-breadcrumb a {
    color: var(--ps-white) !important;
}

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

/* =========================================================
   CATEGORY / SHOP TITLES
========================================================= */

.woocommerce-products-header__title,
.woocommerce .page-title {
    color: var(--ps-white);
    font-size: clamp(38px, 4vw, 58px);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 18px;
}

.woocommerce-products-header__title::after,
.woocommerce .page-title::after {
    content: "";
    display: block;
    width: 82px;
    height: 4px;
    background: var(--ps-red);
    margin: 22px auto 0;
}

/* =========================================================
   RESULT COUNT + ORDERING
========================================================= */

.woocommerce-result-count {
    color: var(--ps-muted);
    font-size: 16px;
    margin: 0 0 35px !important;
}

.woocommerce-ordering {
    margin-bottom: 35px !important;
}

.woocommerce-ordering select {
    background: #111;
    color: var(--ps-white);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 14px;
}

/* =========================================================
   PRODUCT GRID
========================================================= */

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    margin: 40px 0 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 14px;
    overflow: hidden;
    padding: 0 0 26px !important;
    text-align: center;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    border-color: var(--ps-red);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55);
}

.woocommerce ul.products li.product a img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: #f2f2f2;
    margin: 0 0 24px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--ps-white);
    font-size: 20px;
    font-weight: 900;
    padding: 0 22px !important;
    margin-bottom: 12px;
}

.woocommerce ul.products li.product .price {
    color: var(--ps-red) !important;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 20px;
}

.woocommerce ul.products li.product .button {
    background: var(--ps-red) !important;
    color: var(--ps-white) !important;
    border-radius: 4px;
    padding: 14px 26px !important;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.25s ease;
}

.woocommerce ul.products li.product .button:hover {
    background: #ff0000 !important;
    transform: translateY(-2px);
}

/* =========================================================
   WOOCOMMERCE MESSAGES
========================================================= */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: #1f1f1f;
    color: var(--ps-white);
    border-top-color: var(--ps-red);
}

/* =========================================================
   SINGLE PRODUCT
========================================================= */

.woocommerce div.product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 100px;
}

.woocommerce div.product div.images {
    width: 48% !important;
}

.woocommerce div.product div.summary {
    width: 48% !important;
    color: var(--ps-white);
}

.woocommerce div.product .product_title {
    color: var(--ps-white);
    font-size: clamp(30px, 2.2vw, 38px);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 18px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--ps-red) !important;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 22px;
}

.woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0;
}

.woocommerce .quantity .qty {
    width: 80px;
    height: 48px;
    background: #111;
    color: var(--ps-white);
    border: 1px solid #333;
    border-radius: 6px;
    text-align: center;
    font-weight: 800;
}

.woocommerce div.product form.cart .button {
    height: 48px;
    background: var(--ps-red) !important;
    color: var(--ps-white) !important;
    border-radius: 6px;
    padding: 0 28px !important;
    font-weight: 900;
    text-transform: uppercase;
    transition: all .25s ease;
}

.woocommerce div.product form.cart .button:hover {
    background: #ff0000 !important;
    transform: translateY(-2px);
}

.woocommerce div.product_meta {
    color: var(--ps-muted);
    margin-top: 25px;
}

.woocommerce div.product_meta a {
    color: var(--ps-white);
}

.woocommerce div.product_meta a:hover {
    color: var(--ps-red);
}

/* =========================================================
   PRODUCT IMAGE
========================================================= */

.woocommerce div.product div.images img {
    background: #f2f2f2;
    border-radius: 14px;
    border: none !important;
    box-shadow: none !important;
}

/* =========================================================
   TABS DESCRIPTION / AVIS
========================================================= */

.woocommerce div.product .woocommerce-tabs {
    clear: both;
    padding-top: 60px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0 !important;
    margin: 0 0 30px !important;
    border-bottom: 1px solid #333;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: #1f1f1f !important;
    border: 1px solid #333 !important;
    border-radius: 8px 8px 0 0 !important;
    margin: 0 8px 0 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: var(--ps-red) !important;
    border-color: var(--ps-red) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--ps-white) !important;
    font-weight: 900 !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
    color: #d5d5d5;
    line-height: 1.8;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
    color: var(--ps-white);
    font-size: 30px;
    margin-bottom: 18px;
}

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

.woocommerce div.product div.images {
    padding-right: 40px;
}

/* =========================================================
   HIDE EXPRESS PAYMENT BUTTONS TEMPORARILY
========================================================= */

.wc-stripe-product-checkout-container,
.wc-stripe-cart-checkout-container,
.wc-stripe-checkout-banner-gateway,
#wc-stripe-payment-request-wrapper,
#wc-stripe-payment-request-button-separator,
#wc-stripe-payment-request-button,
.wc-stripe-payment-request-button,
.payment_method_stripe_googlepay,
.payment_method_stripe_applepay,
.payment_method_stripe_link,
.payment_method_stripe_amazon_pay,
.stripe-link-button,
.amazon-pay-button,
.amazonpay-button-container {
    display: none !important;
}

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

@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        width: 100% !important;
        float: none !important;
    }
}

@media (max-width: 768px) {
    body.woocommerce-page #primary,
    body.woocommerce #primary,
    body.single-product #primary,
    body.tax-product_cat #primary,
    body.woocommerce-page .content-area,
    body.woocommerce .content-area,
    body.single-product .content-area,
    body.tax-product_cat .content-area,
    body.woocommerce-page .site-main,
    body.woocommerce .site-main,
    body.single-product .site-main,
    body.tax-product_cat .site-main,
    body.woocommerce-page main,
    body.woocommerce main,
    body.single-product main,
    body.tax-product_cat main {
        padding: 50px 24px 70px;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .woocommerce ul.products li.product a img {
        height: 260px;
    }

    .woocommerce div.product {
        padding: 50px 24px 80px;
    }

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

    .woocommerce .quantity .qty,
    .woocommerce div.product form.cart .button {
        width: 100%;
    }
}

/* =========================================================
   FORCE HIDE DEFAULT SIDEBAR
========================================================= */

body.woocommerce-page #sidebar,
body.woocommerce #sidebar,
body.single-product #sidebar,
body.tax-product_cat #sidebar,
body.post-type-archive-product #sidebar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* =========================================================
   FORCE REMOVE PRODUCT IMAGE BORDER / OUTLINE
========================================================= */

.woocommerce div.product div.images,
.woocommerce div.product div.images *,
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image a,
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image {
    background: transparent !important;
}

.woocommerce div.product div.images img {
    border-radius: 14px !important;
}

/* =========================================================
   WOOCOMMERCE - BRAND CATEGORY CARDS
========================================================= */

/* Carte catégorie marque */
.woocommerce ul.products li.product-category {
    background: #1f1f1f !important;
    border: 1px solid #333 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    padding: 0 0 28px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

.woocommerce ul.products li.product-category:hover {
    transform: translateY(-8px);
    border-color: var(--ps-red) !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55);
}

/* Image/logo marque */
.woocommerce ul.products li.product-category a img {
    width: 100% !important;
    height: 260px !important;
    object-fit: contain !important;
    background: #f2f2f2 !important;
    padding: 55px !important;
    margin: 0 0 26px !important;
}

/* Nom de la marque */
.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
    color: var(--ps-white) !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 0 20px !important;
    margin: 0 !important;
}

/* Supprimer le compteur jaune moche */
.woocommerce ul.products li.product-category mark.count {
    display: block !important;
    background: transparent !important;
    color: var(--ps-muted) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-top: 10px !important;
}

/* Ajouter un bouton visuel sous la marque */
.woocommerce ul.products li.product-category a::after {
    content: "Voir les modèles";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    background: var(--ps-red);
    color: var(--ps-white);
    padding: 13px 26px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(213, 0, 0, 0.35);
    transition: all 0.25s ease;
}

.woocommerce ul.products li.product-category:hover a::after {
    background: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(213, 0, 0, 0.55);
}

/* =========================================================
   SINGLE PRODUCT - PREMIUM PURESCREEN
========================================================= */

/*
 * IMPORTANT :
 * L'ancien texte "Film de protection écran" accroché directement
 * au H1 a été supprimé. Le libellé rouge est désormais géré
 * uniquement par .summary::before plus bas dans ce fichier.
 *
 * Le pseudo-élément ::before du H1 est réservé exclusivement
 * au logo dynamique de la catégorie marque WooCommerce.
 */

.woocommerce div.product form.cart {
    margin-bottom: 24px;
}

.ps-product-reassurance {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 26px 0 28px;
}

.ps-product-reassurance div {
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 14px;
}

.ps-product-reassurance strong {
    font-weight: 900;
}

.woocommerce div.product .woocommerce-product-gallery__image img {
    transition: transform .35s ease;
}

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

.woocommerce div.product div.images .flex-control-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px !important;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    width: 82px !important;
}

.woocommerce div.product div.images .flex-control-thumbs img {
    border-radius: 8px !important;
    opacity: .65;
    transition: all .25s ease;
}

.woocommerce div.product div.images .flex-control-thumbs img:hover,
.woocommerce div.product div.images .flex-control-thumbs img.flex-active {
    opacity: 1;
    transform: translateY(-3px);
}

.woocommerce div.product .woocommerce-tabs .panel {
    background: #111111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 32px;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
    color: var(--ps-white);
    text-transform: uppercase;
}

.related.products,
.upsells.products {
    margin-top: 70px;
}

.related.products h2,
.upsells.products h2 {
    color: var(--ps-white);
    text-align: center;
    text-transform: uppercase;
    font-size: 34px;
    margin-bottom: 45px;
}

.related.products h2::after,
.upsells.products h2::after {
    content: "";
    display: block;
    width: 82px;
    height: 4px;
    background: var(--ps-red);
    margin: 18px auto 0;
}

.ps-red-icon {
    color: #ff0000;
    font-size: 18px;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(255,0,0,.5);
}

.woocommerce div.product p.price {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.ps-stock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    background: #008f2d;
    color: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.woocommerce-product-details__short-description {
    text-align: justify;
    line-height: 1.8;
}

.woocommerce-Tabs-panel p {
    text-align: justify;
    line-height: 1.9;
}

.woocommerce div.product div.images .flex-control-thumbs {
    display: flex !important;
    gap: 18px !important;
    margin-top: 22px !important;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    width: 92px !important;
    margin: 0 !important;
}

.woocommerce div.product div.images .flex-control-thumbs img {
    width: 92px !important;
    height: 92px !important;
    object-fit: cover !important;
}

.pswp__bg {
    background: rgba(0, 0, 0, 0.65) !important;
}

/* TITRES DES ONGlets PRODUIT */

.woocommerce div.product .woocommerce-tabs .panel h2::after {
    content: "";
    display: block;
    width: 82px;
    height: 4px;
    background: var(--ps-red);
    margin-top: 16px;
    margin-bottom: 26px;
}

/* QUANTITÉ : FLÈCHES PLUS LISIBLES */

.woocommerce .quantity .qty {
    width: 88px;
    height: 54px;
    font-size: 18px;
    font-weight: 900;
}

/* =========================================================
   BOUTIQUE : BANDEAU CATEGORIE AUTOS / MOTOS
========================================================= */

.ps-category-banner {
    width: 100%;
    overflow: hidden;
    margin-bottom: 1rem;
}

.ps-category-banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: unset;
    object-position: center;
}

/* Réduction espace sous le bandeau avant fil d'Ariane */

body.tax-product_cat #primary,
body.tax-product_cat .content-area,
body.tax-product_cat .site-main,
body.tax-product_cat main {
    padding-top: 0 !important;
}

body.tax-product_cat .woocommerce-breadcrumb {
    margin-top: 12rem !important;
}

.ps-shop-hero {
    position: relative;
    overflow: hidden;
}

.ps-shop-hero::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 60px;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0),
        rgba(0,0,0,0.85)
    );

    pointer-events: none;
}

/* =========================================================
   FIX ESPACE + SHADOW SOUS BANDEAU ESHOP
========================================================= */

.ps-category-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0 !important;
}

.ps-category-banner::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0),
        rgba(17, 17, 17, 1)
    );
    pointer-events: none;
}

.ps-category-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* Réduit l'espace entre bandeau et fil d'Ariane sur catégories + produits */

body.tax-product_cat #primary,
body.tax-product_cat .content-area,
body.tax-product_cat .site-main,
body.tax-product_cat main,
body.single-product #primary,
body.single-product .content-area,
body.single-product .site-main,
body.single-product main {
    padding-top: 0rem !important;
}

body.tax-product_cat .woocommerce-breadcrumb,
body.single-product .woocommerce-breadcrumb {
    margin-top: 12px !important;
}

/* =========================================================
   REDUCTION ESPACE SOUS BANDEAU ESHOP
========================================================= */

body.tax-product_cat .site-main,
body.single-product .site-main,
body.tax-product_cat main,
body.single-product main,
body.tax-product_cat #primary,
body.single-product #primary {
    padding-top: 24px !important;
}

body.tax-product_cat .woocommerce-breadcrumb,
body.single-product .woocommerce-breadcrumb {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}

body.tax-product_cat .woocommerce-products-header__title,
body.single-product .woocommerce-breadcrumb + div.product {
    margin-top: 0 !important;
}

/* =========================================================
   CARTES MARQUES
========================================================= */

.ps-brand-card,
.product-category {
    width: 280px !important;
    max-width: 280px !important;
    margin: 0 auto !important;
}

.ps-brand-card__image,
.product-category .woocommerce-loop-category__link img {
    background: #ffffff !important;
    padding: 30px !important;
    box-sizing: border-box;
}

.woocommerce ul.products li.product-category a {
    overflow: hidden !important;
}

.woocommerce ul.products li.product-category a img {
    background: #ffffff !important;
}

.ps-brand-card,
.product-category {
    transition: all 0.35s ease !important;
}

.ps-brand-card:hover,
.product-category:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 20px rgba(255,0,0,0.35),
        0 0 40px rgba(255,0,0,0.15) !important;
}

.ps-brand-card:hover,
.product-category:hover {
    border-color: #ff0000 !important;
}

/* =========================================================
   PRODUIT LISTE : SHADOW ROUGE AU HOVER
========================================================= */

.woocommerce ul.products li.product:hover {
    border-color: #ff0000 !important;
    box-shadow:
        0 0 20px rgba(255, 0, 0, .35),
        0 0 42px rgba(255, 0, 0, .18) !important;
}

/* ==========================================================
   PURESCREEN - LOGO MARQUE DYNAMIQUE + TITRES PRODUITS
========================================================== */

/*
 * La variable --ps-brand-logo est injectée par functions.php
 * depuis l’image de la catégorie marque WooCommerce.
 * Elle fonctionne donc pour Auto ET Moto sans logo codé en dur.
 */

body.ps-has-brand-logo.tax-product_cat .woocommerce-products-header {
    display: block !important;
    text-align: center !important;
}

body.ps-has-brand-logo.tax-product_cat .woocommerce-products-header::after {
    display: none !important;
    content: none !important;
}

body.ps-has-brand-logo.tax-product_cat
.woocommerce-products-header__title.page-title {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    width: auto !important;
    margin: 0 auto 28px !important;
    padding-bottom: 12px !important;
}

body.ps-has-brand-logo.tax-product_cat
.woocommerce-products-header__title.page-title::before {
    content: "";
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    background: #ffffff var(--ps-brand-logo) center center / 52px auto no-repeat;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(255, 0, 0, .25);
}

body.ps-has-brand-logo.tax-product_cat
.woocommerce-products-header__title.page-title::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: calc(70px + 18px + ((100% - 88px) / 2)) !important;
    bottom: 0 !important;
    width: 60px !important;
    height: 4px !important;
    margin: 0 !important;
    background: #ff0000 !important;
    border-radius: 20px !important;
    transform: translateX(-50%) !important;
}

/* ==========================================================
   PURESCREEN - FICHE PRODUIT : IDENTITÉ MARQUE CENTRÉE
========================================================== */

/*
 * Le bloc marque est injecté AVANT la galerie et le résumé produit.
 * Il occupe donc toute la largeur de la fiche, comme sur la page
 * catégorie de la marque :
 *
 *        [ LOGO ]  APRILIA
 *                  ------
 *
 * Puis seulement en dessous :
 * galerie à gauche / informations produit à droite.
 */
.ps-product-brand-heading {
    width: 100%;
    clear: both;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 54px;
    text-align: center;
}

.ps-product-brand-heading__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    min-width: 62px;
    flex: 0 0 62px;
    padding: 8px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(255, 0, 0, .24);
    overflow: hidden;
}

.ps-product-brand-heading__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ps-product-brand-heading__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.ps-product-brand-heading__name {
    color: #ffffff;
    font-size: clamp(32px, 3vw, 46px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.ps-product-brand-heading__line {
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 14px;
    background: #ff0000;
    border-radius: 20px;
}

/* Petit libellé rouge juste au-dessus du H1 produit */
.ps-product-eyebrow {
    margin: 0 0 10px;
    color: var(--ps-red);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/*
 * Le H1 produit reste seul dans la colonne droite et bénéficie
 * de toute la largeur disponible.
 */
.woocommerce div.product .summary .product_title {
    display: block !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    color: var(--ps-white) !important;
    font-size: clamp(28px, 2vw, 34px) !important;
    line-height: 1.08 !important;
    font-weight: 900 !important;
}

.woocommerce div.product .summary .product_title::before,
.woocommerce div.product .summary .product_title::after,
.woocommerce div.product .summary::before {
    content: none !important;
    display: none !important;
}

@media (max-width: 768px) {
    .ps-product-brand-heading {
        gap: 12px;
        margin-bottom: 38px;
    }

    .ps-product-brand-heading__logo {
        width: 54px;
        height: 54px;
        min-width: 54px;
        flex-basis: 54px;
    }

    .ps-product-brand-heading__name {
        font-size: 30px;
    }

    .ps-product-brand-heading__line {
        width: 46px;
        margin-top: 11px;
    }

    .ps-product-eyebrow {
        font-size: 12px;
        letter-spacing: 1.6px;
    }

    .woocommerce div.product .summary .product_title {
        font-size: 27px !important;
    }
}

/* ==========================================================
   PURESCREEN - ALIGNEMENT DES CARTES MARQUES / MODELES
========================================================== */

/* Cartes catégories (Aprilia, BMW, Harley-Davidson, etc.) */
.woocommerce ul.products li.product-category {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.woocommerce ul.products li.product-category > a {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
}

.woocommerce ul.products li.product-category
.woocommerce-loop-category__title {
    display: flex !important;
    min-height: 72px !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce ul.products li.product-category mark.count {
    flex: 0 0 auto !important;
}

.woocommerce ul.products li.product-category a::after {
    margin-top: auto !important;
}

/* Cartes produits / modèles : boutons Ajouter au panier alignés */
.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.woocommerce ul.products li.product
.woocommerce-LoopProduct-link {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
}

.woocommerce ul.products li.product
.woocommerce-loop-product__title {
    min-height: 58px;
}

.woocommerce ul.products li.product .price {
    margin-top: auto;
}

.woocommerce ul.products li.product > .button {
    align-self: center !important;
    margin-top: 0 !important;
}

/* Produits similaires : une ligne de 3 cartes maximum */
.single-product .related.products ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 768px) {
    .woocommerce div.product .summary .product_title {
        font-size: 28px !important;
    }

    .single-product .related.products ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================
   BOUTIQUE - CENTRAGE DES CARDS CATEGORIES + PRODUITS
========================================================== */

.woocommerce ul.products {
    justify-content: center !important;
}

.woocommerce ul.products li.product,
.woocommerce ul.products li.product-category {
    justify-self: center !important;
}

/* ==========================================================
   FICHE PRODUIT - LIGNE QUANTITE / PANIER / PAIEMENT FINAL
========================================================== */

.woocommerce div.product form.cart {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 23px !important;
    flex-wrap: nowrap !important;
    margin: 28px 0 22px !important;
    max-width: 100% !important;
}

.woocommerce div.product form.cart .quantity {
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    margin: 0 !important;
    flex: 0 0 78px !important;
}

.woocommerce div.product form.cart .quantity .qty {
    width: 78px !important;
    height: 48px !important;
    margin: 0 !important;
}

.woocommerce div.product form.cart .button {
    width: 215px !important;
    min-width: 215px !important;
    max-width: 215px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    flex: 0 0 215px !important;
}

.woocommerce div.product form.cart::after {
    content: "🔒 Paiement sécurisé";
    width: 155px !important;
    min-width: 155px !important;
    max-width: 155px !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #1f1f1f;
    color: #ffffff;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    flex: 0 0 155px !important;
}

.wc-stripe-product-checkout-container,
.wc-stripe-cart-checkout-container,
.wc-stripe-checkout-banner-gateway,
.wc-stripe-express-checkout-element,
.wc-stripe-express-checkout,
#wc-stripe-payment-request-wrapper,
#wc-stripe-payment-request-button-separator,
#wc-stripe-payment-request-button,
.wc-stripe-payment-request-button,
.payment_method_stripe_googlepay,
.payment_method_stripe_applepay,
.payment_method_stripe_link,
.stripe-link-button,
.amazon-pay-button,
.amazonpay-button-container {
    display: none !important;
}

/* Responsive ligne achat fiche produit */
@media (max-width: 768px) {
    .woocommerce div.product form.cart {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .woocommerce div.product form.cart .quantity,
    .woocommerce div.product form.cart .quantity .qty,
    .woocommerce div.product form.cart .button,
    .woocommerce div.product form.cart::after {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex-basis: auto !important;
    }
}

/* ==========================================================
   FICHE PRODUIT - ONGLET TUTO POSE FILM
========================================================== */

.ps-product-video-tab p {
    text-align: justify;
    color: #d5d5d5;
    line-height: 1.9;
    margin-bottom: 28px;
}

.ps-product-video-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #000000;
    border: 1px solid #333;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.45);
}

.ps-product-video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

/* ==========================================================
   FICHE PRODUIT - INFORMATIONS COMPLEMENTAIRES
   Alignement des libellés à droite
========================================================== */

.woocommerce table.shop_attributes th,
.woocommerce-product-attributes th,
.woocommerce-product-attributes-item__label {
    text-align: right !important;
    padding-right: 32px !important;
    width: 220px !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    vertical-align: top !important;
}

.woocommerce table.shop_attributes td,
.woocommerce-product-attributes td,
.woocommerce-product-attributes-item__value {
    text-align: left !important;
    padding-left: 0 !important;
    color: #d5d5d5 !important;
    vertical-align: top !important;
}

.woocommerce table.shop_attributes {
    border: none !important;
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
    border: none !important;
    background: transparent !important;
}


/* ==========================================================
   FICHE PRODUIT - ONGLET AVIS
========================================================== */
.ps-review-login-required {
    background: #1f1f1f;
    border: 1px solid #333;
    border-left: 4px solid #ff0000;
    border-radius: 8px;
    color: #ffffff;
    padding: 18px 22px;
    font-weight: 700;
}

/* ==========================================================
   PURESCREEN - PRODUITS SIMILAIRES
   ESPACEMENT PRIX / BADGE EN STOCK
========================================================== */

.woocommerce .related.products ul.products li.product .price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* ==========================================================
   PURESCREEN - PLACEHOLDER IMAGE FICHE PRODUIT
========================================================== */

.single-product
.woocommerce-product-gallery__image--placeholder {
    overflow: hidden;
    background: #ffffff;
    border-radius: 14px;
}

.single-product
.woocommerce-product-gallery__image--placeholder img {
    display: block;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    background: #ffffff !important;
}