/* CS Theme 0.14.0 — pages/product-details
 * Ordre de cascade conservé depuis la 0.13.0. Voir docs/CSS-0.14.0.md.
 */

.cs-product-main
.product-variant {
    display: flex;
    align-items: center;

    gap: 16px;

    margin: 0;
    padding: 0;

    border: 0;
}

.cs-product-main
.product-variant__legend {
    flex: 0 0 auto;

    min-width: 74px;

    margin: 0;
    padding: 0;

    color: var(--cs-text);

    font-size: 12px;
    font-weight: 500;

    line-height: 1;

    text-transform: uppercase;
}

.cs-product-main
.product-variant__selected {
    display: none !important;
}

.cs-product-main
.product-variant__attributes {
    flex: 1 1 auto;
    min-width: 0;
    margin-block-start: 0;
}

.cs-product-main
.product-variant__colors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 9px;
}

.cs-product-main
.input-color__label {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 4px;

    margin: 0;

    border: 1px solid transparent;
    border-radius: 50%;

    cursor: pointer;
}

.cs-product-main
.input-color__label--active,
.cs-product-main
.input-color__input:checked
+ .input-color__label {
    border-color: var(--cs-brown);

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.16);
}

.cs-product-main
.input-color__label
.color {
    width: 24px;
    height: 24px;

    display: block;

    border-radius: 50%;

    background-position: center;
    background-size: cover;
}

.cs-product-main
.product-variant__radios {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 10px;
}

.cs-product-main
.product-variant__radio {
    margin: 0;
}

.cs-product-main
.product-variant__radio
.btn {
    min-width: 50px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 4px 10px;

    border:
        1px solid
        transparent;

    border-radius: 0;

    background: #ffffff;
    color: var(--cs-text);

    box-shadow:
        0 3px 10px
        rgba(0, 0, 0, 0.08);

    font-size: 18px;
    font-weight: bold;
}

.cs-product-main
.product-variant__radio
.btn-check:checked
+ .btn {
    border-color: #111111;

    background: #ffffff;
    color: #111111;

    box-shadow:
        0 3px 10px
        rgba(0, 0, 0, 0.16);
}

@media (max-width: 767.98px) {

    .cs-product-main
    .product-variant {
        align-items: flex-start;

        gap: 10px;
    }

    .cs-product-main
    .product-variant__legend {
        min-width: 68px;

        padding-top: 13px;

        font-size: 11px;
    }

    .cs-product-main
    .product-variant__radios {
        gap: 7px;
    }

    .cs-product-main
    .product-variant__radio
    .btn {
        min-width: 44px;
        height: 38px;
    }

}

.cs-product-main__additional-info {
    margin-top: 20px;
}

.cs-product-main__additional-info
.product__additional-info {
    margin: 0;
}

.cs-product-main__add-to-cart {
    margin-top: 22px;
}

.cs-product-main
.product__actions-qty-add {
    display: flex;

    gap: 10px;
}

.cs-product-main
.product__add-to-cart {
    flex:
        1
        1
        auto;
}

.cs-product-main
.product__add-to-cart-button {
    width: 100%;
    min-height: 50px;

    border: 0;
    border-radius: 0;

    background: var(--cs-beige);
    color: var(--cs-text);

    font-size: 13px;
    font-weight: 500;

    text-transform: uppercase;
}

.cs-product-main
.product__add-to-cart-button:hover {
    background: var(--cs-brown);
    color: #ffffff;
}

.cs-product-reassurance {
    margin-top: 24px;
}

.cs-product-reassurance
.cs-reassurance__list {
    display: grid;

    grid-template-columns: 1fr;

    gap: 8px;
}

.cs-product-reassurance
.cs-reassurance__item,
.cs-product-reassurance
.cs-reassurance__item
+ .cs-reassurance__item {
    min-height: 58px;

    padding:
        10px
        14px;

    border:
        1px solid
        var(--cs-border);

    border-left:
        3px solid
        var(--cs-brown);

    background: #ffffff;
}

.cs-product-reassurance
.cs-reassurance__content {
    justify-content: flex-start;

    gap: 12px;

    text-align: left;
}

.cs-product-reassurance
.cs-reassurance__icon {
    flex-basis: 30px;

    width: 30px;
    height: 30px;
}

.cs-product-reassurance
.cs-reassurance__icon img {
    width: 27px;
    height: 27px;
}

.cs-product-reassurance
.cs-reassurance__title {
    font-size: 12px;
}

.cs-product-reassurance
.cs-reassurance__description {
    font-size: 10px;
}

.cs-product-gallery {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        82px;

    gap: 14px;

    align-items: stretch;
}

.cs-product-gallery__carousel {
    position: relative;

    grid-column: 1;

    min-width: 0;

    background: #f7f5f2;
}

.cs-product-gallery__slides,
.cs-product-gallery__slide {
    width: 100%;

    aspect-ratio: 1 / 1;
}

.cs-product-gallery__open {
    width: 100%;
    height: 100%;

    display: block;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: zoom-in;
}

.cs-product-gallery__open picture {
    display: block;

    width: 100%;
    height: 100%;
}

.cs-product-gallery__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cs-product-gallery__thumbnails {
    grid-column: 2;

    height: 100%;

    min-height: 0;

    overflow: hidden;

    margin-block-start: 0;
}

.cs-product-gallery__thumbnail-list {
    height: 100%;
    max-height: 650px;

    display: flex;
    flex-direction: column;

    gap: 8px;

    margin: 0;
    padding:
        0
        4px
        0
        0;

    overflow-y: auto;

    list-style: none;

    scrollbar-width: thin;
}

.cs-product-gallery__thumbnail {
    /*width: 72px;
    height: 72px;*/
    width: 100%;
    aspect-ratio: 1;

    display: block;

    padding: 0;

    border:
        1px solid
        transparent;

    background: #ffffff;

    opacity: 0.72;

    cursor: pointer;
}

.cs-product-gallery__thumbnail:hover,
.cs-product-gallery__thumbnail.active {
    border-color: var(--cs-brown);

    opacity: 1;
}

.cs-product-gallery__thumbnail-image {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cs-product-gallery__control {
    display: none;
}

.cs-product-gallery__dots {
    display: none;
}

.cs-product-modal {
    z-index: 2000;
}

.cs-product-modal__dialog {
    width: min(
        94vw,
        1500px
    );

    max-width: 1500px;

    height: min(
        94vh,
        1000px
    );

    margin:
        auto;
}

.cs-product-modal__content {
    height: 100%;

    border: 0;
    border-radius: 0;

    background: #ffffff;
}

.cs-product-modal__header {
    position: absolute;

    top: 0;
    right: 0;

    z-index: 20;

    padding: 18px;

    border: 0;

    background: transparent;
}

.cs-product-modal__close {
    width: 34px;
    height: 34px;

    background-color:
        rgba(
            255,
            255,
            255,
            0.88
        );
}

.cs-product-modal__body {
    height: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        110px;

    gap: 18px;

    padding: 20px;
}

.cs-product-modal__main,
.cs-product-modal__carousel,
.cs-product-modal__slides,
.cs-product-modal__slide {
    height: 100%;
    min-height: 0;
}

.cs-product-modal__slide picture {
    display: flex;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;
}

.cs-product-modal__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.cs-product-modal__thumbnails {
    display: flex;
    flex-direction: column;

    gap: 8px;

    min-height: 0;

    padding-right: 4px;

    overflow-y: auto;

    scrollbar-width: thin;
}

.cs-product-modal__thumbnail {
    flex:
        0
        0
        auto;

    width: 90px;
    height: 90px;

    padding: 0;

    border:
        1px solid
        transparent;

    background: #ffffff;

    opacity: 0.65;
}

.cs-product-modal__thumbnail:hover,
.cs-product-modal__thumbnail.is-active {
    border-color: var(--cs-brown);

    opacity: 1;
}

.cs-product-modal__thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cs-product-modal__control {
    width: 60px;

    opacity: 0.65;
}

#product .product__bottom {
    width: min(
        calc(100% - 48px),
        var(--cs-container-max)
    );

    margin:
        0
        auto
        60px;
}

#product .product__bottom-left {
    width: 100%;
}

@media (max-width: 767.98px) {

    #product .cs-product-main {
        width: 100%;

        margin:
            0
            auto
            42px;

        display: block;
    }


    

    .cs-product-gallery {
        display: block;
    }

    .cs-product-gallery__carousel {
        width: 100%;
    }

    .cs-product-gallery__slides,
    .cs-product-gallery__slide {
        aspect-ratio: 1 / 1;
    }

    .cs-product-gallery__thumbnails {
        display: none;
    }

    .cs-product-gallery__control {
        display: flex;

        width: 42px;

        opacity: 0;
    }


    

    .cs-product-gallery__dots {
        position: absolute;

        left: 50%;
        bottom: 12px;

        z-index: 10;

        display: flex;

        gap: 6px;

        transform: translateX(-50%);
    }

    .cs-product-gallery__dot {
        width: 8px;
        height: 8px;

        padding: 0;

        border: 0;
        border-radius: 50%;

        background:
            rgba(
                50,
                35,
                26,
                0.30
            );
    }

    .cs-product-gallery__dot.active {
        background:
            var(--cs-brown);
    }


    

    .cs-product-main__info {
        padding:
            24px
            16px
            0;
    }

    .cs-product-main__title {
        font-size: 19px;
    }

    .cs-product-main__prices
    .product__price {
        font-size: 23px;
    }


    

    .cs-product-main
    .product-variant__radio
    .btn {
        min-width: 44px;
        height: 40px;
    }


    

    .cs-product-main
.cs-product-add {
    width: 100%;

    display: block;
}

.cs-product-main
.cs-product-add__button {
    width: 100%;
}

.cs-product-main
.product__add-to-cart {
    width: 100%;
}

.cs-product-main
.product__add-to-cart-button {
    width: 100%;
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        12px
        24px;

    border: 0;
    border-radius: 0;

    background: var(--cs-beige);
    color: var(--cs-text);

    font-size: 13px;
    font-weight: 500;

    text-transform: uppercase;
}

.cs-product-main
.product__add-to-cart-button:hover {
    background: var(--cs-brown);
    color: #ffffff;
}

    

    .cs-product-modal__dialog {
        width: 100vw;
        height: 100dvh;

        max-width: none;

        margin: 0;
    }

    .cs-product-modal__content {
        height: 100dvh;
    }

    .cs-product-modal__body {
        display: block;

        padding: 0;
    }

    .cs-product-modal__main,
    .cs-product-modal__carousel,
    .cs-product-modal__slides,
    .cs-product-modal__slide {
        height: 100%;
    }

    .cs-product-modal__image {
        object-fit: contain;

        padding: 20px;
    }

    .cs-product-modal__thumbnails {
        display: none;
    }

    .cs-product-modal__header {
        padding: 14px;
    }


    

    #product .product__bottom {
        width: 100%;

        padding:
            0
            16px;

        margin-bottom: 40px;
    }

}

/* taille / couleur selectionné en outline marron comme la banière haute du site */
.input-color .color.active, .input-color .color:focus-visible, .input-color .color:hover {
    outline-color: #32231a;
}
.cs-product-main .product-variant__radio .btn-check:checked + .btn {
    border-color: #32231a;
}


#product .cs-product-gallery__open {
touch-action: pan-y pinch-zoom;
user-select: none;
}

#product .cs-product-gallery__image {
-webkit-user-drag: none;
}


@layer ps-pages {
    .page-product .product__thumbnail.active .product__thumbnail-image {
        outline: .125rem solid var(--cs-brown);
        outline-offset: -.125rem;
    }
}

