/* ============================================
   blocProduitsRemontes.css â€” Bloc RemontÃ©es de produits
   ============================================ */

.block-produits-remontes {
    overflow: hidden;
    position: relative;
}

.block-produits-remontes__header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    text-align: center;
}

.block-produits-remontes__title {
    font-family: 'Momo Trust Sans', sans-serif;
    font-weight: 800;
    font-size: 35px;
    line-height: 37px;
    color: var(--color-primary, #ea5b0c);
    margin: 0;
    text-align: center;
}

/* --- Splide overrides --- */
.block-produits-remontes .splide__track {
    padding-top: 10px;
    padding-bottom: 40px;
    /* padding-left/right gÃ©rÃ© par Splide via l'option padding (JS) */
}

.block-produits-remontes .splide__pagination {
    bottom: 0;
    gap: 8px;
}

.block-produits-remontes .splide__pagination__page {
    background: #d9d9d9;
    border-radius: 50%;
    height: 10px;
    opacity: 1;
    width: 10px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.block-produits-remontes .splide__pagination__page:hover {
    background: #b5b5b5;
}

.block-produits-remontes .splide__pagination__page.is-active {
    background: #ea5b0c;
    transform: scale(1.2);
}

.block-produits-remontes .splide {
    position: relative;
    padding: 0 60px;
}

.block-produits-remontes .splide__arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 3;
}

.block-produits-remontes .splide__arrow {
    position: absolute;
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #ea5b0c;
    background-color: #ea5b0c;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.block-produits-remontes .splide__arrow--prev {
    left: 0;
}

.block-produits-remontes .splide__arrow--next {
    right: 0;
}

.block-produits-remontes .splide__arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.block-produits-remontes .splide__arrow:hover,
.block-produits-remontes .splide__arrow:focus {
    background: #c74608;
    transform: scale(1.05);
}

.block-produits-remontes .splide__arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Product card --- */
.block-produits-remontes .product-card {
    display: flex;
    flex-direction: column;
    border-radius: 0;
    box-shadow: 0 0 7.5px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    background: #ffffff;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.block-produits-remontes .product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* --- Image --- */
.block-produits-remontes .product-card__image {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #d9d9d9;
    flex-shrink: 0;
}

.block-produits-remontes .product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-produits-remontes .product-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: #d9d9d9;
}

/* --- Badge (QuantitÃ© limitÃ©e) --- */
.block-produits-remontes .product-card__badge {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    padding: 10px;
    background-color: #ea5b0c;
    color: #ffffff;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    line-height: 23px;
    text-align: center;
    white-space: nowrap;
}

/* --- Body --- */
.block-produits-remontes .product-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    flex: 1;
}

/* --- Tag (naturel / synthÃ©tique) --- */
.block-produits-remontes .product-card__tag {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.block-produits-remontes .product-card__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.block-produits-remontes .product-card__tag-label {
    font-family: inherit;
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
    color: #706f6f;
    white-space: nowrap;
}

/* --- Title --- */
.block-produits-remontes .product-card__title {
    font-family: inherit;
    font-weight: 600;
    font-size: 18px;
    line-height: 23px;
    color: #706f6f;
    margin: 0;
    width: 100%;
}

/* --- Description --- */
.block-produits-remontes .product-card__desc {
    font-family: inherit;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #706f6f;
    margin: 0;
    width: 100%;
}

/* --- Price --- */
.block-produits-remontes .product-card__price {
    font-family: inherit;
    font-weight: 600;
    font-size: 20px;
    line-height: 23px;
    color: #2d2d2d;
    margin: 0;
    width: 100%;
}

.block-produits-remontes .product-card__price .woocommerce-Price-amount {
    font-weight: 600;
    font-size: 20px;
    line-height: 23px;
    color: #2d2d2d;
}

.block-produits-remontes .product-card__price .woocommerce-Price-currencySymbol {
    font-weight: 600;
    font-size: 12px;
    line-height: 23px;
    color: #2d2d2d;
    vertical-align: super;
}

/* --- Link --- */
.block-produits-remontes .product-card__link {
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    line-height: 23px;
    color: #ea5b0c;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    text-decoration-color: #ea5b0c;
    width: 100%;
    /* Pousse le lien en bas de carte quelle que soit
       la longueur du titre / de la description */
    margin-top: auto;
    transition: opacity 0.3s ease;
}

.block-produits-remontes .product-card__link:hover,
.block-produits-remontes .product-card__link:focus {
    opacity: 0.8;
    color: #ea5b0c;
    text-decoration: underline;
}

/* --- Empty state --- */
.block-produits-remontes .product-card__empty {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #706f6f;
}

/* --- Mobile : slides adjacentes lÃ©gÃ¨rement visibles --- */
@media (max-width: 576px) {
    .block-produits-remontes .splide.js-splide-produits {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .block-produits-remontes .splide {
        padding: 0 46px;
    }

    .block-produits-remontes .splide__arrow {
        width: 38px;
        height: 38px;
    }

    .block-produits-remontes .splide__track {
        overflow: visible;
    }

    .block-produits-remontes .splide__slide:not(.is-active) .product-card {
        opacity: 0.3;
        transform: scale(0.85);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .block-produits-remontes .splide__slide.is-active .product-card {
        opacity: 1;
        transform: scale(1);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .block-produits-remontes {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .block-produits-remontes {
        padding: 30px 0;
    }

    .block-produits-remontes__title {
        font-size: 24px;
        line-height: 26px;
    }

    .block-produits-remontes .product-card__image {
        height: 160px;
    }

    .block-produits-remontes .product-card__body {
        padding: 15px;
    }

    .block-produits-remontes .product-card__title {
        font-size: 18px;
        line-height: 22px;
    }

    .block-produits-remontes .product-card__desc {
        font-size: 14px;
        line-height: 17px;
    }

    .block-produits-remontes .product-card__price {
        font-size: 18px;
        line-height: 21px;
    }

    .block-produits-remontes .product-card__price .woocommerce-Price-amount {
        font-size: 18px;
        line-height: 21px;
    }

    .block-produits-remontes .product-card__price .woocommerce-Price-currencySymbol {
        font-size: 11px;
        line-height: 21px;
    }
}

@media (max-width: 576px) {
    .block-produits-remontes .product-card__image {
        height: 140px;
    }

    .block-produits-remontes .product-card__badge {
        font-size: 14px;
        padding: 8px;
    }
}

/* Bouton Commander sur les cartes produit */
.product-card__btn-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: var(--color-primary, #ea5b0c);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    border-radius: 60px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(234, 91, 12, 0.25);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.product-card__btn-order:hover,
.product-card__btn-order:focus {
    background-color: #d04f09;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(208, 79, 9, 0.35);
    transform: translateY(-1px);
}
