body.single-product #primary {
    width: 100%;
}

body.single-product #primary #main {}

:is(body.single-product #primary #main .product, .bs-pdetail) {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    position: relative;
    width: calc(50% - 200px);
    gap: 0;
    float: none;
    margin: 0 0 0 200px;
    padding-right: 5px;
    background-color: var(--bs-cream);
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image.flex-active-slide a img {
    width: 100%;
    margin: auto;
}

/* Image agrandie au survol (jquery.zoom) : fond blanc, sinon les visuels en PNG
   transparent laissent voir l'image en dessous. */
:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery .zoomImg {
    background-color: #FFF;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
    order: 1;
    flex: 0 0 210px;
    width: 210px;
    max-height: 830px;
    overflow: hidden auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 0 0 -200px;
    padding: 0;
    gap: 10px;
    list-style: none;
    display: flex;
    flex-direction: column;
    border-right: 10px solid #FFF;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs::-webkit-scrollbar {
    display: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs::before,
:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs::after {
    content: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li {
    width: 200px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    margin: 0;
    float: none;
    cursor: pointer;
    overflow: hidden;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.2s ease-in-out;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li img.flex-active,
:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li img:hover {
    opacity: 1;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery .flex-viewport {
    order: 2;
    flex: 1 1 auto;
    align-self: center;
    min-width: 0;
    /*background-color: var(--bs-cream);*/
    margin-bottom: 0;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    display: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary {
    width: 50%;
    float: none;
    padding: 25px 50px 0 55px;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .product_title {
    font: 500 45px/48px "ABC Prophet";
    color: #1F1F1F;
    margin-bottom: 10px;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .bs-product-tags {
    margin: 0 0 10px 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .bs-product-tags .bs-product-tag {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px;
    background-color: #9EF7A369;
    color: var(--bs-green);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    border-radius: 5px;
    white-space: nowrap;
}

:is(body.single-product #primary #main .product, .bs-pdetail) :is(.summary, .bs-trustpilot-reviews) .bs-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0 20px 0;
}

:is(body.single-product #primary #main .product, .bs-pdetail) :is(.summary, .bs-trustpilot-reviews) .bs-product-rating__stars {
    position: relative;
    display: inline-block;
    width: calc(5 * 22px + 4 * 4px);
    height: 22px;
    line-height: 0;
}

:is(body.single-product #primary #main .product, .bs-pdetail) :is(.summary, .bs-trustpilot-reviews) .bs-product-rating__stars-empty,
:is(body.single-product #primary #main .product, .bs-pdetail) :is(.summary, .bs-trustpilot-reviews) .bs-product-rating__stars-full {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-repeat: repeat-x;
    background-size: 26px 22px;
    background-position: 0 0;
}

:is(body.single-product #primary #main .product, .bs-pdetail) :is(.summary, .bs-trustpilot-reviews) .bs-product-rating__stars-empty {
    width: 100%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22' width='26' height='22'><path d='M11 1 L13.47 6.91 L19.82 7.47 L14.99 11.68 L16.44 18 L11 14.64 L5.56 18 L7.01 11.68 L2.18 7.47 L8.53 6.91 Z' fill='none' stroke='%231F5D3A' stroke-width='1.3' stroke-linejoin='round'/></svg>");
}

:is(body.single-product #primary #main .product, .bs-pdetail) :is(.summary, .bs-trustpilot-reviews) .bs-product-rating__stars-full {
    width: var(--bs-rating-percent, 0%);
    overflow: hidden;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22' width='26' height='22'><path d='M11 1 L13.47 6.91 L19.82 7.47 L14.99 11.68 L16.44 18 L11 14.64 L5.56 18 L7.01 11.68 L2.18 7.47 L8.53 6.91 Z' fill='%231F5D3A' stroke='%231F5D3A' stroke-width='1.3' stroke-linejoin='round'/></svg>");
}

:is(body.single-product #primary #main .product, .bs-pdetail) :is(.summary, .bs-trustpilot-reviews) .bs-product-rating__text {
    color: #1F1F1F;
    font: 500 14px/100% "Inter";
}

:is(body.single-product #primary #main .product, .bs-pdetail) .bs-trustpilot-reviews {
    width: 100%;
    padding: 50px;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .bs-trustpilot-reviews .bs-trustpilot-reviews__title {
    margin: 0;
    font: 500 30px/35px "ABC Prophet";
    color: var(--bs-ink);
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .bs-product-description {
    margin: 25px 0 20px 0;
    color: #1F1F1F;
    font: 300 15px/1.55 "Inter";
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .bs-product-description p:last-child {
    margin-bottom: 0;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .price.bs-price {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
    margin: 20px 0 0 0;
    padding: 0;
    color: inherit;
    font: inherit;
    width: 100%;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .price.bs-price .bs-price__block {
    position: relative;
    flex: 0 0 33.3333%;
    width: 33.3333%;
    max-width: 33.3333%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 30px;
    box-sizing: border-box;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .price.bs-price .bs-price__block:first-child {
    padding-left: 0;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .price.bs-price .bs-price__block--public:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 1px;
    background-color: #E5E3DC;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .price.bs-price .bs-price__label {
    color: #757575;
    font: 400 13px/1 "Inter";
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .price.bs-price .bs-price__values {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .price.bs-price .bs-price__amount {
    color: #1F1F1F;
    font: 400 16px/1 "Inter";
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .price.bs-price .bs-price__amount--old {
    color: #9E9E9E;
    font: 300 20px/35px "ABC Prophet";
    text-decoration: line-through;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .price.bs-price .bs-price__amount--current {
    color: #1F1F1F;
    font: 500 30px/35px "ABC Prophet";
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .price.bs-price .bs-price__amount .woocommerce-Price-amount,
:is(body.single-product #primary #main .product, .bs-pdetail) .summary .price.bs-price .bs-price__amount bdi {
    color: inherit;
    font: inherit;
    text-decoration: inherit;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .price.bs-price .bs-price__unit {
    color: #757575;
    font: 400 12px/1.3 "Inter";
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .price.bs-price .bs-price__unit-old {
    color: #9E9E9E;
    text-decoration: line-through;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .price.bs-price .bs-price__unit-current {
    color: #1F1F1F;
    font-weight: 600;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart:not(.variations_form),
:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.variations_form.cart .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin: 25px 0 0 0;
}

body.single-product div.product .variations_button::before,
body.single-product div.product .variations_button::after {
    content: none;
}

/* Le bouton B+ occupe seul la ligne sous "quantité + Ajouter au panier". */
:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .wcsatt-add-to-subscription-wrapper {
    flex: 1 0 100%;
    width: 100%;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart.variations_form .variations tr th label {
    font: 400 16px/24px "Inter";
    color: #1F1F1F;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart.variations_form .variations tr th span.woo-selected-variation-item-name {
    font: 600 15px/100% "Inter";
    color: #1F1F1F;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart.variations_form .variations ul.variable-items-wrapper li.variable-item {
    height: auto;
    border-radius: 10px;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart.variations_form .variations ul.variable-items-wrapper li.variable-item.selected {
    background-color: var(--bs-ink);
}

/* Déclinaisons indisponibles : on les masque entièrement plutôt que de les
   afficher en disabled. Le plugin woo-variation-swatches ajoute/retire la
   classe .disabled dynamiquement, le masquage se met donc à jour à chaque
   sélection. */
:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart.variations_form .variations ul.variable-items-wrapper li.variable-item.disabled {
    display: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart.variations_form .variations ul.variable-items-wrapper li.variable-item div span {
    font: 400 16px/20px "Inter";
    color: var(--bs-ink);
    padding: 30px 45px;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart.variations_form .variations ul.variable-items-wrapper li.variable-item.selected div span {
    color: #FFF;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart.variations_form .variations .reset_variations {
    font: 400 12px / 100% "Inter";
    color: #1F1F1F;
    padding: 8px 0;
}

/* Options de schéma natives (radios "achat unique / abonnement") : masquées,
   la refonte gère son propre prix via .bs-price. On les garde dans le DOM car le
   bouton B+ s'appuie dessus pour activer un schéma avant de charger les abonnements. */
:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .wcsatt-options-wrapper {
    display: none !important;
}

/* Bouton "Ajouter à un abonnement B+ existant" : masqué par défaut. */
:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .wcsatt-add-to-subscription-wrapper {
    display: none !important;
}

/* Affiché si l'utilisateur a un abonnement actif (classe body posée en AJAX par dynamic-data).
   - Produit simple : dès l'arrivée sur la page.
   - Produit variable : seulement après sélection d'une variation (classe .bs-variation-selected posée en JS). */
body.single-product.user-has-subscription :is(#primary #main .product, .bs-pdetail) .summary form.cart:not(.variations_form) .wcsatt-add-to-subscription-wrapper,
body.single-product.user-has-subscription :is(#primary #main .product, .bs-pdetail) .summary form.variations_form.cart.bs-variation-selected .wcsatt-add-to-subscription-wrapper {
    display: block !important;
}

body.single-product.user-has-subscription :is(#primary #main .product, .bs-pdetail) .summary form.cart:not(.variations_form) .wcsatt-add-to-subscription-wrapper:before,
body.single-product.user-has-subscription :is(#primary #main .product, .bs-pdetail) .summary form.variations_form.cart.bs-variation-selected .wcsatt-add-to-subscription-wrapper:before {
    content: none;
}

/* Bouton déclencheur (le markup est un <label> enveloppant une checkbox masquée). */
:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .wcsatt-add-to-subscription-wrapper .wcsatt-add-to-subscription-action-label {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #000;
    border-radius: 10px;
    background: #FFF;
    font: 600 15px/20px "Inter";
    color: #000;
    text-align: center;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .wcsatt-add-to-subscription-wrapper .wcsatt-add-to-subscription-action-label:hover {
    color: #FFF;
    background: #000;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .wcsatt-add-to-subscription-wrapper .wcsatt-add-to-subscription-action {
    pointer-events: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .wcsatt-add-to-subscription-wrapper .wcsatt-add-to-subscription-action-input {
    display: none;
}

/* Panneau ouvert : on masque le déclencheur (la liste prend sa place)... */
:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .wcsatt-add-to-subscription-wrapper.open .wcsatt-add-to-subscription-action-label {
    display: none;
}

/* ...et le bouton d'achat principal, pour éviter la confusion avec son libellé "Abonnement". */
:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart:has(.wcsatt-add-to-subscription-wrapper.open) .single_add_to_cart_button {
    display: none !important;
}

/* En-tête de la liste ("Add the product to a B+"). */
:is(body.single-product #primary #main .product, .bs-pdetail) .summary .wcsatt-add-to-subscription-wrapper .add_to_bplus_label {
    font: 600 16px/20px "Inter";
    color: #1F1F1F;
    margin: 0 0 16px;
}

/* Spinner de chargement de la liste. */
:is(body.single-product #primary #main .product, .bs-pdetail) .wcsatt-add-to-subscription-table-wrapper.loading {
    position: relative;
    min-height: 60px;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .wcsatt-add-to-subscription-table-wrapper.loading:before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .wcsatt-add-to-subscription-table-wrapper.loading:after {
    content: '';
    width: 20px;
    height: 20px;
    border: 4px solid #37D894;
    border-top-color: transparent;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    z-index: 2;
    animation: bs-bplus-spin 1s linear infinite;
}

@keyframes bs-bplus-spin {
    to { transform: rotate(360deg); }
}

/* Tableau des abonnements existants. */
:is(body.single-product #primary #main .product, .bs-pdetail) .summary .woocommerce_account_subscriptions table tbody tr td {
    padding: 15px 20px;
    background-color: var(--bs-cream);
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .woocommerce_account_subscriptions table tbody tr td.subscription-id a {
    color: #37D894;
}

/* Bouton "Add to subscription #xxx". */
:is(body.single-product #primary #main .product, .bs-pdetail) .summary .subscription-actions button.wcsatt-add-to-subscription-button {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 6px 0 0;
    font: 600 14px/18px "Inter";
    color: #FFF;
    background: var(--bs-green);
    cursor: pointer;
    transition: background .2s ease;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .subscription-actions button.wcsatt-add-to-subscription-button:hover {
    background: var(--bs-ink);
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.variations_form.cart .woocommerce-variation-price {
    display: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .quantity {
    position: relative;
    flex: 0 0 140px;
    width: 140px;
    height: 56px;
    margin: 0;
    padding: 0;
    border: 1px solid #1F1F1F;
    border-radius: 10px;
    background-color: #FFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .quantity .quantity_less,
:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .quantity .quantity_more {
    flex: 0 0 auto;
    width: 40px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #1F1F1F;
    font: 400 20px/1 "Inter";
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: opacity 0.2s ease;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .quantity .quantity_less:hover,
:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .quantity .quantity_more:hover,
:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .quantity .quantity_less:focus,
:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .quantity .quantity_more:focus {
    opacity: 0.6;
    outline: none;
    background: transparent;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .quantity input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    flex: 1 1 auto;
    width: auto;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    text-align: center;
    font: 500 15px/1 "Inter";
    color: #1F1F1F;
    box-shadow: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .quantity input[type="number"]::-webkit-outer-spin-button,
:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .quantity input[type="number"]:focus {
    outline: none;
    box-shadow: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .single_add_to_cart_button {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    margin: 0;
    padding: 0 30px;
    background-color: #1F1F1F;
    color: #FFF;
    border: none;
    border-radius: 10px;
    font: 500 15px/1 "Inter";
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .single_add_to_cart_button:hover,
:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .single_add_to_cart_button:focus {
    background-color: #000;
    color: #FFF;
}

/* Loading : positionner le spinner ::after juste après le texte (au lieu de l'absolu de WC) */
:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .single_add_to_cart_button.loading {
    padding: 0 30px;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary form.cart .single_add_to_cart_button.loading::after {
    position: static;
    top: auto;
    right: auto;
    margin: 0;
    line-height: 1;
    vertical-align: middle;
    colo: #FFF;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .manager_share_link_container {
    margin: 25px 0 0 0;
    text-align: right;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .manager_share_link_container .manager_share_link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1F1F1F;
    font: 400 12px/100% "Inter";
    text-decoration: none;
    transition: color 0.2s ease;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .manager_share_link_container .manager_share_link:hover {
    color: #000;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .manager_share_link_container .manager_share_link > i {
    display: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .manager_share_link_container .manager_share_link .success {
    position: absolute;
    top: auto;
    right: auto;
    bottom: calc(100% + 10px);
    left: 0;
    margin: 0;
    padding: 7px 14px;
    background-color: #1F5D3A;
    color: #FFF;
    border-radius: 999px;
    font: 500 12px/1 "Inter";
    font-style: normal;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(31, 93, 58, 0.25);
    transform: none;
    pointer-events: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .summary .manager_share_link_container .manager_share_link .success::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 18px;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: #1F5D3A;
    border-bottom: 0;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
        "title content"
        "tabs  content"
        ".     content";
    column-gap: 25px;
    row-gap: 10px;
    padding: 160px 50px;
    background-color: var(--bs-cream);
    margin-top: 50px;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .bs-product-tabs-title {
    grid-area: title;
    align-self: start;
    margin: 0;
    font: 500 32px/1.1 "ABC Prophet";
    color: #1F1F1F;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs {
    grid-area: tabs;
    align-self: start;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs.is-dragging {
    cursor: grabbing;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs.is-dragging a {
    pointer-events: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs::-webkit-scrollbar {
    display: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs::before,
:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs::after {
    content: none;
    display: none;
    width: 0;
    height: 0;
    border: none;
    background: none;
    position: static;
    transform: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs li {
    flex: 0 0 auto;
    position: static;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs li::before,
:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs li::after {
    content: none;
    display: none;
    width: 0;
    height: 0;
    background: none;
    border: none;
    position: static;
    transform: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs li a {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    background-color: #FFF;
    color: #1F1F1F;
    border: 1px solid #E5E3DC;
    border-radius: 10px;
    font: 400 14px/1 "Inter";
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs li:hover a {
    border-color: #1F1F1F;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs li.active a {
    background-color: #1F1F1F;
    color: #FFF;
    border-color: #1F1F1F;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel {
    grid-area: content;
    align-self: start;
    width: auto;
    margin: 0;
    padding: 0;
    max-height: 500px;
    overflow: auto;
    border: none;
    color: #1F1F1F;
    font: 300 14px/1.6 "Inter";
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel::before,
:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel::after {
    content: none;
    display: none;
    width: 0;
    height: 0;
    border: none;
    background: none;
    position: static;
    transform: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel h2 {
    margin: 0 0 15px 0;
    font: 500 20px/1.3 "ABC Prophet";
    color: #1F1F1F;
    text-align: left;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel p {
    font: 400 15px/20px "Inter";
    color: var(--bs-ink);
    margin: 0 0 15px 0;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel table {
    width: 100%;
    margin: 0 0 15px 0;
    border-collapse: collapse;
    background: transparent;
    font: 400 15px/20px "Inter";
    color: #1F1F1F;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel table th,
:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel table td {
    padding: 8px 12px;
    background: transparent;
    border: none;
    text-align: left;
    vertical-align: middle;
    font: 400 15px/20px "Inter";
    color: #1F1F1F;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel table thead th,
:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel table thead td,
:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel table tr:first-child th,
:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel table tr:first-child td,
:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel table tr th:first-child,
:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel table tr td:first-child {
    font-weight: 700;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel table tr:nth-child(even) {
    background-color: rgba(31, 31, 31, 0.04);
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel .bs-product-faq {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #E5E3DC;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel .bs-product-faq__item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #E5E3DC;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel .bs-product-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 18px 0;
    background: transparent;
    border: none;
    color: #1F1F1F;
    font: 500 16px/1.3 "Inter";
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel .bs-product-faq__question:hover,
:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel .bs-product-faq__question:focus {
    color: #000;
    outline: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel .bs-product-faq__question-text {
    flex: 1 1 auto;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel .bs-product-faq__toggle {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel .bs-product-faq__toggle::before,
:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel .bs-product-faq__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1.5px;
    background-color: #1F1F1F;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.2s ease;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel .bs-product-faq__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel .bs-product-faq__item.is-open .bs-product-faq__toggle::after {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel .bs-product-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel .bs-product-faq__answer-inner {
    padding: 0 0 18px 0;
    color: #1F1F1F;
    font: 400 15px/1.55 "Inter";
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel .bs-product-faq__answer-inner p:last-child {
    margin-bottom: 0;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel .bs-product-faq__item.is-open .bs-product-faq__answer {
    max-height: 2000px;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel p:last-child {
    margin-bottom: 0;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .related.products {
    width: 100%;
    padding: 0 50px;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .related.products > h2 {
    color: var(--bs-ink);
    font: 500 30px/35px "ABC Prophet";
}

:is(body.single-product #primary #main .product, .bs-pdetail) .related.products ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

:is(body.single-product #primary #main .product, .bs-pdetail) .related.products ul.products li.product {
    width: calc(25% - 18.75px);
    margin-right: 0;
}

@media (max-width: 1365px) {
    /* Galerie en colonne : image principale en haut (100%), miniatures dessous */
    :is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery {
        flex-direction: column;
        flex-wrap: wrap;
        width: 50%;
        margin: 0;
        padding-right: 0;
    }

    :is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery .flex-viewport {
        order: 1;
        flex: 0 0 auto;
        width: 100%;
        align-self: stretch;
    }

    :is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image.flex-active-slide a img {
        width: 100%;
    }

    :is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
        order: 2;
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        max-height: none;
        margin: 0;
        padding: 10px 0 0 0;
        border-right: 0;
        overflow: visible;
    }

    :is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li {
        width: 90px;
    }
}

@media (max-width: 991px) {
    :is(body.single-product #primary #main .product, .bs-pdetail) .summary {
        padding: 10px 10px 0 10px;
    }

    /* Onglets et panneau en pleine largeur (grille passée en 1 colonne) */
    :is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "title"
            "tabs"
            "content";
    }

    :is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs {
        width: 100%;
    }

    :is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel {
        width: 100%;
    }
}

@media (max-width: 767px) {
    /* Galerie pleine largeur en haut, contenu pleine largeur dessous */
    :is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-product-gallery {
        width: 100%;
    }

    :is(body.single-product #primary #main .product, .bs-pdetail) .summary {
        width: 100%;
    }

    :is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "title"
            "tabs"
            "content";
        padding: 30px 20px;
    }

    :is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs {
        flex-wrap: nowrap;
    }

    :is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs li {
        width: auto;
    }

    :is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs li.active {
        background-color: transparent;
    }

    :is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs li a {
        padding: 14px 24px;
    }

    :is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel {
        padding: 0;
    }
}

@media (max-width: 575px) {
    :is(body.single-product #primary #main .product, .bs-pdetail) .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs li {
        width: auto;
    }
}
