#product .breadcrumb {
    margin-bottom: 50px;
}

#product .ets_mm_megamenu_content .ets_mm_megamenu_content_content {
    border-bottom: solid 1px #EBEBEB;
}

#product #content-wrapper .product-container .h1 {
    font-size: 40px;
    text-align: left;
    margin-bottom: 15px;
}

#product #content-wrapper .product-container .product-header-reference {
    color: var(--text-color, #323232);
    font-family: var(--secondary-font);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    position: relative;
}

#product #content-wrapper .product-container .product-header-reference .label {
    margin: 0;
}

#product #content-wrapper .product-container .product-header-reference::after {
    content: '';
    position: absolute;
    bottom: -35px;
    left: 0;
    width: 32px;
    height: 3px;
    background-color: var(--main-color);
    border-radius: 10px;
}

#product #content-wrapper .product-container .product-information {
    margin-top: 60px;
}

#product #content-wrapper .product-container .product-information .product-description {
    text-align: justify;
    width: 80%;
}

#product #content-wrapper .product-container .product-information .product-variants span.control-label {
    color: var(--text-color, #323232);
    font-family: var(--secondary-font);
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 10px;
}

#product #content-wrapper .product-container .product-information .product-variants .form-control-select {
    border-radius: 4px;
    background: var(--second-background-color, #F5F5F5);
    outline-color: var(--main-color);
}

#product #content-wrapper .product-container .product-information .product-variants .variation-selector {
    position: relative;
    width: fit-content;
}

#product .product-description {
    font-family: var(--secondary-font);
}

#product #content-wrapper .product-container .product-information .product-variants .variation-selector::after {
    position: absolute;
    content: ">";
    width: 8px;
    height: 15px;
    transform: rotate(90deg);
    flex-shrink: 0;
    color: var(--text-color, #323232);
    font-family: var(--main-font);
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    pointer-events: none;
}

#product #content-wrapper .product-container .product-information .product-variants .product-variants-item--readonly {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: nowrap;
}

#product #content-wrapper .product-container .product-information .product-variants .product-variants-item--readonly .control-label {
    margin-bottom: 0;
    width: auto;
    min-width: 0;
    white-space: nowrap;
}

#product #content-wrapper .product-container .product-information .product-variants .product-variants-item--readonly .readonly-attribute-value {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--text-color, #323232);
    font-family: var(--main-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

/* Refonte visuelle des selecteurs de declinaisons */
#product #content-wrapper .product-container .product-information .product-variants .product-variants-item ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#product #content-wrapper .product-container .product-information .product-variants .product-variants-item ul .input-container {
    float: none;
    margin: 0;
}

#product #content-wrapper .product-container .product-information .product-variants .product-variants-item .input-container label {
    margin: 0;
    cursor: pointer;
}

/* Couleurs / textures */
#product #content-wrapper .product-container .product-information .product-variants .product-variants-item .input-color {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#product #content-wrapper .product-container .product-information .product-variants .product-variants-item .input-color+span.color {
    position: relative;
    display: inline-flex;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #d6d9de;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    background-size: cover;
    background-position: center;
}

#product #content-wrapper .product-container .product-information .product-variants .product-variants-item .input-color+span.color.texture {
    border-radius: 12px;
}

#product #content-wrapper .product-container .product-information .product-variants .product-variants-item .input-color:hover+span.color,
#product #content-wrapper .product-container .product-information .product-variants .product-variants-item .input-color:focus+span.color {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

#product #content-wrapper .product-container .product-information .product-variants .product-variants-item .input-color:checked+span.color {
    border-color: var(--main-color, #9A101D);
    box-shadow: 0 0 0 3px rgba(154, 16, 29, 0.2);
}

/* Radios */
#product #content-wrapper .product-container .product-information .product-variants .product-variants-item .input-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#product #content-wrapper .product-container .product-information .product-variants .product-variants-item .input-radio+.radio-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #d6d9de;
    background: #fff;
    color: var(--text-color, #323232);
    font-family: var(--main-font);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#product #content-wrapper .product-container .product-information .product-variants .product-variants-item .input-radio:hover+.radio-label,
#product #content-wrapper .product-container .product-information .product-variants .product-variants-item .input-radio:focus+.radio-label {
    border-color: var(--main-color, #9A101D);
    transform: translateY(-1px);
}

#product #content-wrapper .product-container .product-information .product-variants .product-variants-item .input-radio:checked+.radio-label {
    background: var(--main-color, #9A101D);
    border-color: var(--main-color, #9A101D);
    color: #fff;
    box-shadow: 0 8px 18px rgba(154, 16, 29, 0.24);
}

#product #content-wrapper .product-container .product-information .product-prices .current-price {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    margin: 0;
}

#product #content-wrapper .product-container .product-information .product-prices {
    margin: 60px 0;
}

#product #content-wrapper .product-container .product-information .product-prices .product-price {
    margin: 0;
}

#product #content-wrapper .product-container .product-information .product-prices .current-price .price {
    color: var(--text-color, #323232);
    font-family: var(--main-font);
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
}

#product #content-wrapper .product-container .product-information .product-prices .current-price .current-price-value,
#product #content-wrapper .product-container .product-information .product-prices .current-price .price-tax {
    color: var(--main-color, #9A101D);
    font-family: var(--main-font);
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    padding-left: 10px;
    margin: 0;
}

/* Blocs modules (Oney, etc.) : séparés de .price-tax pour ne pas casser le prix + TTC sur une ligne */
#product #content-wrapper .product-container .product-information .product-prices .current-price .product-price-block-hooks,
#product #content-wrapper .product-container .product-information .product-prices .current-price .discount-oney {
    flex: 1 1 100%;
    width: 100%;
    order: 10;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    text-transform: none;
    color: var(--text-color, #323232);
    padding-left: 0;
    margin: 0;
}

#product #content-wrapper .product-container .product-information .product-prices .current-price .product-discount {
    align-content: end;
    margin: 0 0 0 30px;
}

#product #content-wrapper .product-container .product-information .product-prices .current-price .discount-tax {
    margin: 0;
}

#product #content-wrapper .product-container .product-information .product-prices .current-price .product-discount .regular-price,
#product #content-wrapper .product-container .product-information .product-prices .current-price .discount-tax {
    color: rgba(173, 173, 173, 0.85);
    font-family: var(--main-font);
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    align-content: end;
}

#product #content-wrapper .product-container .product-information .product-prices .current-price .discount-percentage {
    margin-left: 30px;
    color: var(--Blanc, #FFF);
    text-align: right;
    font-family: var(--main-font);
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    text-transform: uppercase;
    border-radius: 3px;
    background: var(--main-color, #9A101D);
    height: fit-content;
    align-self: center;
    padding: 8px 18px;
}

#product #content-wrapper .product-container .product-information .product-add-to-cart .product-quantity .control-label {
    width: fit-content;
    color: var(--text-color, #323232);
    font-family: var(--secondary-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    height: fit-content;
    margin: 0;
    padding: 10px 0;
}

#product #content-wrapper .product-container .product-information .product-add-to-cart .product-quantity .qty {
    margin: 0 20px;
}

#product #content-wrapper .product-container .product-information .product-add-to-cart .product-quantity .qty #quantity_wanted {
    border-radius: 4px;
    background: var(--Fond-clair, #F5F5F5);
    border: unset;
}

#product #content-wrapper .product-container .product-information .product-add-to-cart .product-quantity .qty button.btn-touchspin {
    border-radius: 4px;
    background: var(--Fond-clair, #F5F5F5);
    border: unset;
}

#product #content-wrapper .product-container .product-information .product-add-to-cart .product-quantity .add button.add-to-cart {
    padding: 10px 35px 10px 10px;
}

#product #content-wrapper .product-container .product-information .product-add-to-cart .product-quantity .wishlist-button-product {
    border-radius: 10px;
    border: 1px solid var(--main-color, #9A101D);
    box-shadow: unset;
    padding: 10px 12px;
}

#product #content-wrapper .product-container .product-information .product-add-to-cart .product-quantity .wishlist-button-product .material-icons {
    color: var(--text-color);
}

#product #content-wrapper .product-container .col-md-6:nth-of-type(2) {
    padding-left: 40px;
}

#product #content-wrapper .product-container .col-md-6:first-of-type .page-content {
    max-width: unset;
}

#product #content-wrapper .product-container .col-md-6 .page-content .product-cover {
    border-radius: 5px;
    border: 1px solid var(--Filets-clairs, #EBEBEB);
    background: var(--Blanc, #FFF);
}

#product #content-wrapper .product-container .col-md-6 .page-content .product-cover img {
    max-height: 625px;
    object-fit: none;
}

#product #content-wrapper .product-container .col-md-6 .page-content .product-flags li.new {
    border-radius: 3px;
    background: var(--secondary-color, #020B49);
    color: var(--Blanc, #FFF);
    text-align: right;
    font-family: var(--main-font);
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    text-transform: initial;
    width: 49px;
    height: 25px;
    text-align: center;
    margin: 5px 0 0 5px;
}

#product #content-wrapper .product-container .col-md-6 .page-content .product-flags li.discount {
    /* display: none; */
    background-color: var(--main-background-color);
    border-radius: 2px;
    margin: 5px;
}

#product #content-wrapper .product-container .col-md-6 .page-content .product-images {
    margin-bottom: 0;
}

#product #content-wrapper .product-container .col-md-6 .page-content .product-images picture img {
    border-radius: 5px;
    border: 1px solid var(--main-color, #9A101D);
    background: var(--Blanc, #FFF);
    margin-bottom: 0;
}

#product #content-wrapper .product-container .tabs {
    width: 100%;
    display: grid;
    padding: 80px 0 40px 0;
}

#product #content-wrapper .product-container .tabs .nav-item a {
    border-radius: 5px 5px 0px 0px;
    border: 1px solid var(--Filets-clairs, #EBEBEB);
    color: #ADADAD;
    font-family: var(--main-font);
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

#product #content-wrapper .product-container .tabs .nav-item a.active {
    color: var(--main-color);
}

/* #product #content-wrapper .product-container .tabs .nav-item:nth-child(2) {
    margin-left: 10px;
} */

.product-images>li.thumb-container .thumb.selected,
.product-images>li.thumb-container .thumb:hover {
    border-color: var(--main-color) !important;
}

#product #content-wrapper .product-container .tabs .tab-content .product-description p {
    color: var(--text-color, #323232);
    text-align: justify;
    font-family: var(--secondary-font);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

#product #content-wrapper .product-container .tabs .tab-content .tab-pane {
    padding-top: 30px;
}

#product #content-wrapper .product-container .tabs .tab-content dt.name,
#product #content-wrapper .product-container .tabs .tab-content dd.value {
    font-family: var(--secondary-font);
}

.product-accessories {
    padding-top: 40px;
    padding-bottom: 80px;
}

.product-accessories p.h5 {
    color: var(--text-color, #323232);
    font-family: var(--main-font);
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    position: relative;
}

.product-accessories p.h5::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 32px;
    height: 3px;
    background-color: var(--main-color);
    border-radius: 10px;
}



.product-accessories .products .product-card {
    background-color: var(--second-background-color);
}

.product-accessories .products .product-card img {
    /* background-color: #FFF; */
}

#product .product-discounts {
    margin-bottom: 60px;
}

#product .product-discounts .product-discounts-title {
    color: var(--text-color, #323232);
    font-family: var(--secondary-font);
    font-size: 20px;
    font-style: normal;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: normal;
}

#product .product-discounts .table-product-discounts thead th {
    color: var(--text-color, #323232);
    font-family: var(--secondary-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    background-color: #FFF;
    border: 1px solid var(--Filets-clairs, #EBEBEB);
    text-align: left;
}

#product .product-discounts .table-product-discounts tbody td {
    color: var(--text-color, #323232);
    font-family: var(--secondary-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: left;
    background-color: #FFF;
    border: 1px solid var(--Filets-clairs, #EBEBEB);
}

#products ul.page-list {
    gap: 10px;
}



#product .product-accessories .products,
#product .featured-products .products {
    grid-template-columns: repeat(4, 1fr);
    display: grid;
    margin-top: 65px;
    gap: 20px;
}

#product #content-wrapper .product-container .col-md-6 .page-content .product-cover img.no-image {
    width: 100%;
    object-fit: none;
}

#product .js-product-mobile-media-slot {
    display: none;
}

@media (max-width: 550px) {
    #product .js-product-mobile-media-slot {
        display: block;
        margin: 18px 0 8px;
    }

    #product #content-wrapper .product-container .js-product-media-column.is-media-relocated {
        display: none;
    }

    #product .js-product-mobile-media-slot .page-content {
        margin-bottom: 0;
    }

    .product-card .product-card__action .btn-secondary {
        font-size: 12px;
    }
    #product #content-wrapper .product-container .tabs .nav-item:nth-child(2) {
        margin-left: 0;
    }
    #product .product-container .tabs .nav-tabs .nav-item {
        margin-left: 0;
    }
    #product .product-container {
        display: flex;
        flex-direction: column;
    }
    #product #content-wrapper .product-container .product-information .product-add-to-cart .product-quantity .add button.add-to-cart {
        padding: 10px 10px 10px 10px;
        align-items: center;
    }
    #product #content-wrapper .product-add-to-cart .qty .input-group {
        display: flex;
    }

    #product #content-wrapper .product-container .col-md-6:nth-of-type(2) {
        padding: unset;
    }

    #product #content-wrapper .product-container .product-information .product-prices .current-price {
        flex-wrap: wrap;
        row-gap: 20px;
        align-items: self-end;
    }
    

    #product .product-container div.col-md-6:nth-child(1) {
        order: 2;
        padding: 0;
    }

    #product .product-container div.col-md-6:nth-child(2) {
        order: 1;
    }

    #product .product-container div.tabs {
        order: 3;
    }

    #product #content-wrapper .product-container .product-information .product-description {
        width: 100%;
    }

    #product #content-wrapper .product-container .product-information .product-variants .product-variants-item {
        display: flex;
        gap: 50px;
        margin-top: 30px;
    }

    #product #content-wrapper .product-container .product-information .product-variants .product-variants-item .control-label {
        width: 140px;
    }

    #product #content-wrapper .product-container .product-information .product-variants .product-variants-item--readonly {
        gap: 12px;
        margin-top: 18px;
    }

    #product #content-wrapper .product-container .product-information .product-variants .product-variants-item--readonly .control-label {
        width: auto;
    }

    #product #content-wrapper .product-container .product-information .product-variants .product-variants-item--readonly .readonly-attribute-value {
        font-size: 14px;
        min-height: 32px;
        padding: 6px 12px;
    }

   

    #product #content-wrapper .product-container .h1 {
        font-size: 30px;
        line-height: 30px;
    }

    #product #content-wrapper .product-container .product-information .product-prices .current-price .current-price-value,
    #product #content-wrapper .product-container .product-information .product-prices .current-price .price-tax {
        font-size: 30px;
    }

    #product #content-wrapper .product-container .product-information .product-prices .current-price .price {
        font-size: 30px;
        white-space: nowrap;
    }

    #product #content-wrapper .product-container .product-information .product-prices .current-price .product-discount .regular-price,
    #product #content-wrapper .product-container .product-information .product-prices .current-price .discount-tax {
        font-size: 18px;
    }

    #product #content-wrapper .product-container .product-information .product-prices .current-price .discount-percentage {
        font-size: 12px;
        margin-left: 15px;
        white-space: nowrap;
        padding: 7px 10px;
        font-weight: 500;
    }

    #product #content-wrapper .product-container .product-information .product-prices .current-price .product-discount {
        margin: 0;
    }

    #product #content-wrapper .product-container .product-information .product-add-to-cart .product-quantity .wishlist-button-product {
        /* display: none; */
    }

    #product #content-wrapper .product-container .product-information .product-add-to-cart .product-quantity {
        flex-wrap: wrap;
        row-gap: 10px;
        margin-bottom: 10px;
    }

    #product .product-accessories .products {
        grid-template-columns: repeat(1, 1fr);
    }

    #product .featured-products .products {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (min-width: 550px) and (max-width: 1024px) {
    .featured-products .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

}
@media (min-width: 1200px) {
    #product #content-wrapper .product-container .product-information .product-prices .current-price {
        flex-wrap: wrap;
    }
}

/* Modal zoom image produit */
#product-modal.js-product-images-modal {
    background: rgba(10, 14, 28, 0.72);
    backdrop-filter: blur(3px);
    padding: 18px 12px !important;
}

#product-modal.js-product-images-modal .modal-dialog {
    width: min(1200px, 96vw);
    max-width: min(1200px, 96vw);
    margin: 1.5rem auto;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 3rem);
}

#product-modal.js-product-images-modal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
    background: #fff;
    width: 100%;
    max-height: calc(100vh - 3rem);
}

#product-modal.js-product-images-modal .modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 126px;
    align-items: start;
    gap: 20px;
    padding: 22px;
    overflow-y: auto;
    overflow-x: hidden;
}

#product-modal.js-product-images-modal figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

#product-modal.js-product-images-modal figure picture {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#product-modal.js-product-images-modal .product-cover-modal {
    width: auto;
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 14px;
    background: var(--second-background-color, #F5F5F5);
    margin: 0 auto;
}

#product-modal.js-product-images-modal .image-caption {
    margin: 0;
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--second-background-color, #F5F5F5);
}

#product-modal.js-product-images-modal #product-description-short {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-color, #323232);
}

#product-modal.js-product-images-modal #thumbnails {
    margin: 0;
}

#product-modal.js-product-images-modal .js-modal-mask {
    margin: 0;
}

#product-modal.js-product-images-modal .js-modal-product-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 72vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* S'il y a peu d'images (<= 5), Prestashop ajoute .nomargin: on retire tout scroll inutile */
#product-modal.js-product-images-modal .js-modal-mask.nomargin .js-modal-product-images {
    max-height: none;
    overflow: visible;
}

#product-modal.js-product-images-modal .js-modal-mask.nomargin + .js-modal-arrows {
    display: none;
}

#product-modal.js-product-images-modal .thumb-container {
    margin: 0;
}

#product-modal.js-product-images-modal .js-modal-thumb {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

#product-modal.js-product-images-modal .js-modal-thumb:hover {
    transform: translateY(-1px);
    border-color: rgba(154, 16, 29, 0.45);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

#product-modal.js-product-images-modal .js-thumb-container.selected .js-modal-thumb,
#product-modal.js-product-images-modal .js-modal-thumb.selected {
    border-color: var(--main-color, #9A101D);
    box-shadow: 0 0 0 2px rgba(154, 16, 29, 0.18);
}

#product-modal.js-product-images-modal .js-modal-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

#product-modal.js-product-images-modal .js-modal-arrows .material-icons {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d9dce2;
    color: var(--text-color, #323232);
    cursor: pointer;
}

@media (max-width: 991px) {
    #product-modal.js-product-images-modal .modal-body {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
        overflow: visible;
    }

    #product-modal.js-product-images-modal .product-cover-modal {
        max-height: 52vh;
    }

    #product-modal.js-product-images-modal .js-modal-product-images {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 0 6px;
    }

    #product-modal.js-product-images-modal .thumb-container {
        min-width: 90px;
        max-width: 90px;
    }

    #product-modal.js-product-images-modal .js-modal-arrows {
        display: none;
    }
}