.site-main {
    padding: 124px 0 0;
}

.site-main > .product {
    position: relative;
}

.single-product-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: -1;
}

.site-main div.product {
    display: flex;
    flex-wrap: wrap;
    gap: 0px 80px;
}

.entry-summary {
    width: 100%;
}

.onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background-color: #000;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
}

.product-tag-wrapper {
    margin-bottom: 6px;
}

.entry-summary .product-tag {
    margin: 0;
    background: #F2785133;
    color: var(--main-color);
}

ul.tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

ul.tabs li a {
    display: block;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #FFF;
    border: 1px solid #ccc;
    border-bottom: none;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    cursor: pointer;
}

ul.tabs li.active a {
    background-color: #ccc;
    color: #000;
}

.product-short-description {
    padding: 16px 0 8px;
}

.summary-links {
    margin-bottom: 32px;
}

.product-short-description h2 {
    font-size: 2.4rem;
}

.product-short-description ul {
    margin: 15px 0;
}

.product-short-description ul li {
    margin: 4px 0;
}

.panel table {
    border-collapse: collapse;
}

.panel table td {
    padding: 8px 12px;
    font-size: 14px;
}

.panel table tbody tr:first-child td,
.panel table tbody tr td:first-child {
    background: var(--light-grey);
}

.panel table thead td:not(:first-child) {
    background: var(--main-color);
    color: var(--white);
    text-align: center;
}

.panel table td:not(:first-child) {
    text-align: center;
}

.panel table tbody td {
    border-bottom: 1px solid var(--black);
}

table.variations,
table.variations tbody,
table.variations tbody tr,
table.variations tbody tr td {
    display: block;
}

.variations select,
.variations .reset_variations,
.woocommerce-variation-availability,
.variations .label,
.product_meta {
    display: none !important;
}

.variations:has(tr:nth-child(2)) .label {
    display: block !important;
    text-align: left;
    font-size: 2.4rem;
    font-family: var(--title-font);
    font-weight: 400;
}

.variations tr:nth-child(2) .label {
    padding-top: 32px;
}

.mahii-variation-radios {
    display: flex;
    gap: 8px;
    position: relative;
}

.mahii-variation-radios input {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0;
}

.mahii-variation-radios label {
    display: block;
    padding: 10px 17px;
    background-color: var(--white);
    border: 1px solid var(--grey);
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--black);
    border-radius: 6px;
    user-select: none;
}

.mahii-variation-radios input:checked + label,
.mahii-variation-radios input:not([disabled]) + label:hover {
    background: linear-gradient(180deg, #2D2D2D 0%, #141414 100%);
    color: var(--white);
    border-color: var(--black);
}

.mahii-variation-radios input[disabled] + label {
    background-color: var(--light-grey);
    color: #959595;
    border-color: var(--light-grey);
    cursor: not-allowed;
}

form.cart:not(.variations_form),
.woocommerce-variation-add-to-cart {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.woocommerce-variation-price {
    margin-bottom: 16px;
}

.woocommerce-variation-price .woocommerce-Price-amount,
.woocommerce-variation-price .woocommerce-price-suffix {
    font-size: 3.2rem;
    font-family: var(--title-font);
    font-weight: 400;
    color: var(--black);
}

.single_add_to_cart_button {
    display: inline-block;
    background: linear-gradient(180deg, var(--main-color) 0%, var(--main-color) 100%);
    padding: 15px 25px;
    color: var(--white);
    font-weight: 400;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.single_add_to_cart_button:not(.disabled):hover {
    background: linear-gradient(180deg, #2D2D2D 0%, #141414 100%);
}

.single_add_to_cart_button.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.quantity {
    background: var(--light-grey);
    border-radius: 6px;
}

.quantity .qty {
    height: 50px;
    border: none;
    background: var(--light-grey);
    text-align: center;
}
.quantity input.qty::-webkit-inner-spin-button,
.quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Cacher les flèches sur Firefox */
.quantity input.qty[type="number"] {
    -moz-appearance: textfield;
}

/* Optionnel : Cacher les flèches sur Internet Explorer et Edge Legacy */
.quantity input.qty::-ms-clear,
.quantity input.qty::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

.quantity button {
    background: var(--light-grey);
    border: none;
    border-radius: 6px;
    padding: 0;
    height: 50px;
    width: 40px;
    color: var(--black);
    font-weight: 500;
    font-size: 2.4rem;
}

.woocommerce-tabs {
    width: 1200px;
    max-width: calc(100% - 40px);
    margin: 80px auto;
}

ul.tabs {
    gap: 32px;
}

ul.tabs li a {
    display: block;
    padding: 0 0 20px;
    border-radius: 0;
    border: none;
    border-bottom: 4px solid transparent;
    background: none;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--black2);
}

ul.tabs li a:hover {
    background: none;
    border-bottom-color: var(--black2);
}

ul.tabs li.active a {
    background: none;
    border-bottom-color: var(--main-color);
    color: var(--main-color);
}

.woocommerce-Tabs-panel h2 {
    display: none;
}

.woocommerce-Tabs-panel {
    padding: 47px 0 0;
}

.woocommerce-Tabs-panel--kit_content ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-gap: 24px;
}

.woocommerce-Tabs-panel--kit_content ul li {
    display: grid;
    grid-template-columns: 42px auto;
    gap: 16px;
}

.woocommerce-Tabs-panel--kit_content ul li strong {
    display: block;
    font-size: 2.4rem;
    font-weight: 100;
    color: var(--main-color);
    font-family: var(--title-font);
    text-transform: uppercase;
}

.schema {
    padding-top: 75px;
}

.centrale-product-block {
    margin: 32px 0 0;
    display: grid;
    grid-template-columns: 38px auto;
    align-items: center;
    gap: 20px;
    background: linear-gradient(180deg, #2D2D2D 0%, #141414 100%);
    padding: 20px 16px;
    text-transform: uppercase;
    color: var(--white);
}

.centrale-product-block svg {
    width: 38px;
    aspect-ratio: 38 / 45;
}

.centrale-product-block a {
    color: var(--white);
}

.centrale-product-logos {
    margin-top: 32px;
}

.partner-map {
    margin-top: 80px;
    min-width: 100%;
    background: linear-gradient(180deg, #2D2D2D 0%, #141414 100%);
    padding: 95px 0;
    color: var(--white);
}

.partner-map-wrapper {
    display: grid;
    gap: 24px;
}

.partner-map-inner {
    display: grid;
    gap: 24px;
}

.partner-map-inner h2 {
    font-size: 3.2rem;
}

.related-products {
    width: 100%;
    padding: 80px 0 250px;
    background: var(--light-grey);
}

.related-products-title {
    text-align: center;
    font-size: 3.2rem;
}

.related-products .products {
    display: flex;
    gap: 20px;
    padding: 42px 0;
}

.related-products .products .product {
    width: calc(33.33% - 13px);
}

.related-products .products .product .woocommerce-loop-product__title {
    max-width: 50%;
    font-size: 2.4rem;
    line-height: 1.3;
}

.glide__slide img {
    cursor: pointer;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="31" height="31" fill="none"><path fill="%23F27851" fill-rule="evenodd" d="M2.986 30.868 30.937 2.917 28.541.52 1.788 29.67l1.198 1.198Z" clip-rule="evenodd"/><path fill="%23F27851" fill-rule="evenodd" d="M28.542 30.868.59 2.917 2.986.52 29.74 29.67l-1.198 1.198Z" clip-rule="evenodd"/></svg>') top 20px right 20px no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 95%;
    max-height: 95%;
}

.woocommerce-notices-wrapper:not(:empty) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: remove-notice 0.3s 5s ease forwards;
}

@keyframes remove-notice {
    from {
        opacity: 1;
        z-index: 1000;
    }
    to {
        opacity: 0;
        z-index: -1;
    }
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error {
    background: var(--white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap:24px;
    width: 750px;
    max-width: 90%;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 3.2rem;
    font-family: var(--title-font);
}

.woocommerce-notices-wrapper .woocommerce-error li {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.woocommerce-notices-wrapper .button {
    background: var(--main-color);
    color: var(--white);
    font-size: 2.4rem;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Gilroy', sans-serif;
    text-decoration: none;
    font-size: 1.6rem;
}

.responsive-table {
    overflow-x: auto;
}

.entry-summary-content:has(.retailer_button) #wc-stripe-express-checkout-element,
.entry-summary-content:has(.retailer_button) .single_variation_wrap {
    display: none !important;
}

.stock.out-of-stock + p:has(a) {
    margin-top: 24px;
}

@media (min-width: 768px) {
    .centrale-product-logos img:last-child {
        display: none;
    }
    .site-main {
        padding: 120px 0 0;
    }
    .product_title {
        font-size: 6.2rem;
    }
    .mahii-product-gallery,
    .entry-summary {
        width: calc(50% - 40px);
    }
    .entry-summary {
        width: 664px;
        padding-right: 24px;
        max-width: calc(50% - 40px);
    }
    .entry-summary-content {
        position: sticky;
        top: 80px;
        padding: 42px 0 0 0;
    }
    form.cart:not(.variations_form),
    .woocommerce-variation-add-to-cart {
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
    .quantity .qty {
        width: 50px;
    }
    .glide__bullets {
        display: none;
    }
    .glide__slides {
        flex-direction: column;
    }
    .glide__slides img {
        width: 100%;
        height: auto;
    }
    .woocommerce-Tabs-panel--kit_content ul {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 42px;
    }

    .centrale-product-block {
        padding: 32px;
    }

    .partner-map-wrapper {
        grid-gap: 75px;
        grid-template-columns: 1fr 1fr;
    }

    .partner-map-inner h2,
    .related-products-title {
        font-size: 4.2rem;
    }
    .woocommerce-notices-wrapper .woocommerce-error, 
    .woocommerce-notices-wrapper .woocommerce-message {
        padding: 50px 64px;
    }
}


@media (max-width: 768px) {
    .centrale-product-logos img:first-child {
        display: none;
    }
    .product_title {
        font-size: 4.2rem;
        word-break: break-word;
    }
    .mahii-variation-radios,
    .tabs.wc-tabs {
        overflow-x: scroll;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        margin: 0 -20px;
        padding: 0 20px;
        white-space: nowrap;
    }
    .related-products .products {
        margin: 0 -24px;
        padding: 32px 24px;
        max-width: 100vw;
        overflow-x: scroll;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        overflow: -moz-scrollbars-none;
        -ms-overflow-style: none;        
    }
    .related-products .products .product {
        min-width: 45vw;
    }
    .entry-summary {
        width: calc(100% - 40px);
        margin: 42px auto 0;
    }
    .quantity {
        display: flex;
    }
    .quantity input.qty[type="number"] {
        flex-grow: 1;
    }
    .glide-mobile,
    .glide__track {
        max-width: 100vw;
        position: relative;
    }
    .glide__slide {
        min-height: calc(100vh - 124px);
        min-height: calc(100dvh - 124px);
        background: var(--light-grey);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .glide__bullets {
        position: absolute;
        z-index: 2;
        bottom: 24px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 10px;
    }
    .glide__bullets .glide__bullet {
        background: var(--grey);
        width: 10vw;
        height: 2px;
        padding: 0;
    }
    .glide__bullets .glide__bullet--active {
        background: var(--black);
    }
    .summary-links {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 0;
    }
    .summary-links a {
        font-size: 1.6rem;
    }
    .single_add_to_cart_button {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .related-products .products .product {
        min-width: 80vw;
    }
}