
.product {
    margin-top: 32px;
}

.product .product__gallery {
    width: calc(50% - 16px);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
}

.product .product__summary {
    width: calc(50% - 16px);
}

.product .product__columns {
    margin: 64px 0 0 0;
    display: flex;
    justify-content: space-between;
}

.product .product__description {
    margin: 0 0 24px 0;
}

.product .product__description h2 {
    font-size: 20px;
}

.product .product__technical {
    margin: 0 0 24px 0;
    width: 100%;
}

.product .product__technical h2 {
    font-size: 20px;
}

.woocommerce table.shop_attributes {
    width: 100%;
}

.product .product_title {
    width: 100%;
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.3;
    font-weight: 700;
}

.product .woocommerce-product-details__short-description {
    margin: 36px 0 24px 0;
}

.product .woocommerce-product-details__short-description p {
    width: 100%;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price,
.product .price {
    width: 100%;
    color: var(--color-black);

    font-size: clamp(24px, 4vw, 50px);
    line-height: 1.3;
    font-weight: 700;
}

.product .price .woocommerce-Price-amount * {
    color: var(--color-red);
    font-weight: 700;
}

.woocommerce .woocommerce-variation-price {
    margin: 24px 0 0 0;
    font-size: clamp(24px, 4vw, 50px);
    line-height: 1.3;
    font-weight: 400;
    color: var(--color-red);
}

.woocommerce div.product p.stock {
    margin: 25px 0 0 0;
}

.woocommerce div.product .variations_table_title {
    display: none;
}

.woocommerce div.product form.cart .variations {
    margin: 50px 0 0 0;
}

.woocommerce div.product form.cart .variations tr {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
}

.woocommerce div.product form.cart .variations tr:not(:first-child) {
    margin-top: 27px;
}

.woocommerce div.product form.cart .variations th {
    text-align: left;
}

.woocommerce div.product form.cart .variations th label {
    font-size: clamp(16px, 2.5vw, 25px);
    line-height: 1.3;
    font-weight: 700;
}

.woocommerce div.product form.cart .variations td {
    width: 100%;
}

.woocommerce div.product form.cart .variations select {
    width: 100%;
    height: 72px;
    border-radius: 10px;
    margin: 20px 0 0 0;
    border: 2px solid var(--color-blue);
    padding: 0 26px;

    font-size: clamp(16px, 2.5vw, 24px);
    line-height: 1.3;
    font-weight: 400;
    color:var(--color-black);

    appearance: none;
}

.woocommerce div.product .btnSpecsTemplates {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 66px 0 0 0;

    font-size: clamp(16px, 2.5vw, 24px);
    line-height: 1.3;
    font-weight: 400;
}

.woocommerce div.product .btnSpecsTemplates svg {
    margin: 0 20px 0 0
}

.woocommerce div.product .btnSpecsTemplates a {
    color: var(--color-black);
    text-decoration: underline;
    transition: linear .15s;
}

.woocommerce div.product .btnSpecsTemplates a:hover {
    color: var(--color-red);
}

.woocommerce div.product .custom-upload-editor {
}

.woocommerce div.product .custom-upload-editor .btn {
    width: 100%;
    text-align: center;
}

.woocommerce div.product .custom-upload-wrapper {
    margin: 32px 0 8px 0;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.woocommerce div.product .custom-upload-wrapper .btn {
    width: 100%;
    text-align: center;
    padding: 42px 26px;
    border: 2px solid var(--color-blue);
    border-radius: 10px;
    background: none;
    outline: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
}

.woocommerce div.product .custom-upload-wrapper #btnServicePerso {
    padding: 30px 26px;
}

.woocommerce div.product .custom-upload-wrapper .btn.active,
.woocommerce div.product .custom-upload-wrapper .btn:hover {
    background: var(--color-sky) !important;
    border-color: var(--color-sky) !important;
}

.woocommerce div.product .custom-upload-wrapper .btn > span {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
}

.woocommerce div.product .custom-upload-wrapper .btn .btnTitle {
    font-size: clamp(18px, 2.5vw, 20px);
    font-weight: 700;
    line-height: 1.3;
    width: 100%;
    text-align: left;
    color: var(--color-blue);
}

.woocommerce div.product .custom-upload-wrapper .btn .btnFilename,
.woocommerce div.product .custom-upload-wrapper .btn .btnText {
    font-size: clamp(16px, 2.3vw, 18px);
    color: var(--color-blue);
    font-weight: 400;
    line-height: 1.3;
    width: 100%;
    text-align: left;
}

.woocommerce div.product .custom-upload-wrapper .btn .btnRemoveFile {
    font-size: clamp(14px, 2.3vw, 16px);
    color: var(--color-blue);
    text-decoration: underline;
    font-weight: 400;
    line-height: 1.3;
    width: 100%;
    text-align: left;
    margin: 10px 0 0 0;
}
.woocommerce div.product .custom-upload-wrapper .btn .btnRemoveFile:hover{
    color:var(--color-red);
}
.woocommerce div.product .custom-upload-wrapper .btn .btnLink {
    font-size: clamp(14px, 2.3vw, 16px);
    font-weight: 400;
    line-height: 1.3;
    margin: 6px 0 0 0;
    text-align: left;
    color: var(--color-blue);
    text-decoration: underline;
}

.woocommerce div.product .custom-upload-wrapper .btn .btnLink:hover {
    color: var(--color-red);
}

.woocommerce .perso-title + .separator {
    display: none;
}

.woocommerce div.product .custom-upload-wrapper .separator {
    margin: 16px 0;
}

.woocommerce div.product .custom-upload-wrapper .separator::before {
    content: '';
    width: 200px;
    height: 2px;
    position: absolute;
    top: calc(50% - 1px);
    left: calc(50% - 100px);
    background: var(--color-blue);
    z-index: -1;
}

.woocommerce div.product .custom-upload-wrapper .separator span {
    background: var(--color-white);
    text-transform: uppercase;
    padding: 0 16px;
    font-size: clamp(14px, 2.3vw, 18px);
    font-weight: 400;
    line-height: 1.3;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    width: 100%;
    background: var(--color-red);
    font-weight: 400;
    line-height: 1.3;
    padding: 13px 0;
    border-radius: 0;
    margin: 22Px 0 0 0;
}

.woocommerce div.product .custom-upload-wrapper label,
.woocommerce div.product .custom-upload-wrapper input {
    display: none;
}

.woocommerce div.product .custom-upload-wrapper .btnUpload .not-selected {
    display: block;
}

.woocommerce div.product .custom-upload-wrapper .btnUpload .selected {
    display: none;
    width: 40px;
}

.woocommerce div.product .custom-upload-wrapper .btnUpload.selected .not-selected {
    display: none;
}

.woocommerce div.product .custom-upload-wrapper .btnUpload.selected .selected {
    display: block;
}

.woocommerce div.product .custom-upload-wrapper .btnUpload.selected .btnText {
    display: none;
}

.woocommerce div.product .custom-upload-wrapper .btnUpload.selected {
    background: var(--color-sky) !important;
    border-color: var(--color-sky) !important;
}

.woocommerce div.product .custom-upload-wrapper .btnServicePerso {
    display: flex;
}

.woocommerce div.product .custom-upload-wrapper .btnServicePerso .not-selected {
    display: block;
}

.woocommerce div.product .custom-upload-wrapper .btnServicePerso .selected {
    display: none;
    width: 40px;
}

#custom_service_personalisation:checked ~ .btnServicePerso {
    background: var(--color-sky) !important;
    border-color: var(--color-sky) !important;
}

#custom_service_personalisation:checked ~ .btnServicePerso .not-selected {
    display: none;
}

#custom_service_personalisation:checked ~ .btnServicePerso .selected {
    display: block;
}

.product .radio-attribute-color {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 18px;
}

.product .radio-attribute-color .radio-attribute-item {
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product .radio-attribute-color .radio-attribute-item .radio-label {
    display: none;
}

.product .custom-service-personalisation {
    margin: 0 0 24px 0;
}

.single_variation_wrap {
    width: 100%;
}

.woocommerce div.product form.cart,
.product .woocommerce-variation-add-to-cart {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.woocommerce div.product .custom_file_title {
    margin: 32px 0 4px 0;
    font-weight: 550;
    font-size: 16px;
}

.woocommerce div.product .lumise-customize-button {
    display: none;
}

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

.woocommerce div.product button[type="submit"] {
}

.woocommerce .quantity .qty,
.product .woocommerce-variation-add-to-cart .quantity {
    width: 100%;
}

.woocommerce div.product .quantity-title {
    width: 100%;
    font-size: clamp(16px, 2.5vw, 25px);
    line-height: 1.3;
    font-weight: 700;
    text-align: left;
    margin: 32px 0 20px 0;
}

.woocommerce-variation-availability {
    display: none !important;
}

.woocommerce div.product form.cart .reset_variations {
    width: 100%;
    text-align: right;
    color: #e63946;
    background: none;
    text-decoration: underline;
    border: none;
    margin: 16px 0 0 0;
    cursor: pointer;
    display: block;
}

.woocommerce div.product form.cart div.quantity input,
.product .woocommerce-variation-add-to-cart .quantity input {
    width: 100%;
    height: 72px;
    font-size: clamp(16px, 2.5vw, 24px);
    line-height: 1.3;
    font-weight: 400;
    border: 2px solid var(--color-blue);
    padding: 0 26px;
    text-align: left;
    border-radius: 10px;
}

.product .woocommerce-variation-add-to-cart .button {
    width: 100%;
    margin: 8px 0 0 0;
    padding: 13px 0 !important;
}


.woocommerce .perso-title {
    width: 100%;
    font-size: clamp(16px, 2.5vw, 25px);
    line-height: 1.3;
    font-weight: 700;
    text-align: left;
    margin: 0 0 20px 0;
}

/* CTA Informations */
.product .card--infos {
    margin: 24px 0;
}

.product .card--infos p {
    width: 100%;
    text-align: center;
    font-size: 14px;
}

.product .card--infos p a {
    color: var(--color-blue);
    font-weight: 550;
}

/* CTA Catalogue personnalisé */
.product .card--catalogue {
    margin: 24px 0;
}

.product .card--catalogue p {
    width: 100%;
    text-align: center;
    font-size: 14px;
}

.product .card--catalogue p a {
    color: var(--color-blue);
    font-weight: 550;
}


/** Tabulations **/
.product__tabs__nav {
    display: flex;
    list-style: none;
    margin: 62px 0 0 0;
    padding: 0 10px;
    border-bottom: 1px solid rgba(128, 128, 128, 1);

    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.product__tabs__nav li {
    padding: 10px 10px;
    cursor: pointer;
    margin-right: 15px;
    font-weight: 700;

    font-size: clamp(16px, 3vw, 30px);
    line-height: 1.3;

    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.product__tabs__nav li:last-child {
    margin-right: 0;
}

.product__tabs__nav li.active {
    color: var(--color-red);
}

.product__tabs__nav li.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-blue);
    position: absolute;
    bottom: 0;
    left: 0;
}

.product__tabs__content {
    display: none;
    padding: 20px;
    margin: 0 0 90px 0;
    background: #fff;
}

.tab-description {
    justify-content: space-between;
}

.tab-description__column {
    width: calc(50% - 16px);
}

.product__description__image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.product__description__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product__tabs__content.active {
    display: flex;
}

.product .product__description h2 {
    font-weight: 700;
    font-size: clamp(20px, 3vw, 25px);
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.product .product__description p {
    font-size: clamp(20px, 3vw, 25px);
    line-height: 1.3;
}

.product .product__technical h2 {
    font-weight: 700;
    font-size: clamp(20px, 3vw, 25px);
    line-height: 1.3;
    margin: 40px 0 20px 0;
}

.product__technical__list {
}

.product__technical__list li {
    padding-left: 20px;
    font-size: clamp(20px, 3vw, 25px);
    line-height: 1.3;
}

.product__technical__list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-blue);
    position: absolute;
    top: 12px;
    left: 0;
}

.product .product__gabarit h2 {
    font-weight: 700;
    font-size: clamp(20px, 3vw, 25px);
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.product .product__gabarit p {
    font-size: clamp(20px, 3vw, 25px);
    line-height: 1.3;
}

.product .product__gabarit .product__gabarit__files {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 50px 0 0 0;
    gap: 30px 30px;
}

.product .product__gabarit .btn-file {
    font-weight: 700;
    font-size: clamp(18px, 3vw, 25px);
    line-height: 1.3;
    color: var(--color-black);
    border: 1Px solid var(--color-blue);
    border-radius: 10px;
    padding: 15px 30px;
    transition: linear .15s;
    display: block;
}

.product .product__gabarit .btn-file:hover {
    background: var(--color-blue);
    color: var(--color-white);
    text-decoration: none;
}

.product-size__images {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/** Gallery **/
.custom-product-gallery {
    width: 100%;
}

.custom-product-gallery .main-image {
    width: calc(100% - 68px - 16px);
    margin: 0 auto;
    aspect-ratio: 1/1; /* ajuste si besoin */
    display: grid;
    place-items: center;
    overflow: hidden;
    background:rgb(249,249,249);
}

.custom-product-gallery .main-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.thumbs {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.thumbs-viewport {
    overflow: hidden;
}

.thumbs-track {
    display: flex;
    gap: 12px;
    will-change: transform;
    transition: transform 200ms ease;
}

.thumbnail {
    flex: 0 0 auto;
    width: 90px;
    background:rgb(249,249,249);
    border: 1px solid rgba(241, 239, 238, 1);
}
.thumbnail.active {
    border: 2px solid var(--color-blue);
    background:var(--color-white);
}
.thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.thumbs-btn {
    border: 0;
    background: rgb(249,249,249);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    cursor: pointer;
}
.thumbs-btn svg * {
    fill:var(--color-blue);
}
.thumbs-btn:hover{
    background: var(--color-sky);
}
.thumbs-btn:hover svg *{
    fill:var(--color-white);
}
.thumbs-btn[disabled] {
    opacity: 0;
    pointer-events: none;
    cursor: default;
}

@media all and (max-width: 1080px) {
    .custom-product-gallery .main-image {
        width: 100%;
    }
}
/** Related product **/

.related-products__title {
    font-weight: 700;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.3;
    margin: 0 0 17px 0;
    padding: 0 20px;
}

.related-products-slider {
    position: relative;
    overflow: hidden;
    margin: 0 0 70px 0;
}

.related-products-slider .slider-track {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
    gap: 20px;
    margin: 0;
    padding: 0;

}


.related-products-slider .card--product {
    flex: 0 0 auto;
    width: 250px; /* fixe ou ajustable */
}

.related-products .slider-prev,
.related-products .slider-next {
    position: absolute;
    top: 50%;
    z-index: 10;
    transform-origin: center center;
    background: var(--color-sky);
    border: none;
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 16px;
}

.related-products .slider-prev {
    left: -33px;
    transform: rotate(180deg) translateY(50%);
}

.related-products .slider-next {
    right: -33px;
    transform: translateY(-50%);
}


/** Impression **/
.impression {
    background: rgba(241, 239, 238, 1);
    border-radius: 16px;
    padding: 64px 0;
    margin: 0 0 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impression .impression__container {
    width: 100%;
    max-width: 1300px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.impression .impression__column:nth-child(1) {
    width: 60%;
}

.impression .impression__column:nth-child(2) {
    width: 40%;
}

.impression .impression__image {
    width: 100%;
    height: 100%;
    position: relative;
}

.impression .impression__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.impression .impression__title {
    width: 100%;
    text-transform: uppercase;
    font-size: clamp(24px, 3vw, 48px);
    line-height: 1.3;
    font-weight: 800;
    color: var(--color-blue);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
}

.impression .impression__title::after {
    content: '';
    width: 45px;
    height: 8px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--color-red);
}

.impression .impression__description {
    width: 100%;
    margin: 16px auto 45px auto;
    font-size: clamp(16px, 2vw, 32px);
    line-height: 1.3;
    color: var(--color-black);
}

.impression .btn {
    width: 277px;
    max-width: 100%;
    background: none;
    color: var(--color-blue);
    border: 1px solid var(--color-blue);
}

.impression .btn:hover {
    background: var(--color-blue);
    color: var(--color-white);
}


@media all and (max-width: 1080px) {
    .product .product__columns {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .product .product__gallery {
        width: 100%;
        max-width: 500px;
        margin: 0 auto 50px auto;
    }

    .product .product__summary {
        width: 100%;
    }

    .tab-description {
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .tab-description__column {
        width: 100%;
    }

    .product__description__image {
        position: relative;
        top: initial;
        left: initial;
        margin: 50px 0 0 0;
    }

    .impression .impression__container {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .impression .impression__column:nth-child(1) {
        width: 100%;
        margin: 0 0 25px 0;
    }

    .impression .impression__column:nth-child(2) {
        width: 100%;
    }
}
