/*************** FICHE PRODUIT ***************/

.product-page {
    background: #FFFDF9;
    padding: 45px 6% 90px;
    color: #3F3835;
}

.product-page .container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Breadcrumb */

.product-breadcrumb {
    max-width: 1280px;
    margin: 0 auto 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    font-size: .92rem;
    color: #8A8078;
}

.product-breadcrumb a {
    color: #8A8078;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: #A96358;
}

.product-back-link {
    max-width: 1280px;
    margin: 0 auto 45px;
    display: inline-flex;
    color: #A96358;
    text-decoration: none;
    font-weight: 600;
}

/*************** HERO ***************/

.product-hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 55px;
    align-items: start;
}

/*************** GALERIE ***************/

.product-gallery {
    position: sticky;
    top: 30px;
}

.product-main-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 30px;
    background: #F8F3EE;
    box-shadow: 0 25px 60px rgba(63, 56, 53, .08);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.product-main-image:hover img {
    transform: scale(1.03);
}

.detail-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid rgba(169, 99, 88, .22);
    border-radius: 50%;
    background: rgba(255, 253, 249, .92);
    color: #A96358;
    font-size: 1.7rem;
    cursor: pointer;
    z-index: 5;
}

.detail-prev {
    left: 16px;
}

.detail-next {
    right: 16px;
}

.product-thumbnails {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.product-thumbnail {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    background: #F8F3EE;
    cursor: pointer;
}

.product-thumbnail.active {
    border-color: #A96358;
}

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

/*************** INFOS ***************/

.product-info {
    display: grid;
    gap: 22px;
}

.product-card {
    background: #FFFDF9;
    border: 1px solid rgba(169, 99, 88, .14);
    border-radius: 28px;
    padding: 10px 34px;
    box-shadow: 0 18px 45px rgba(63, 56, 53, .06);
}

.detail-collection {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #F8F3EE;
    color: #A96358;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-info h1 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 400;
    line-height: 1;
    color: #2F2F2F;
}

.detail-price {
    margin: 0 0 28px;
    color: #A96358;
    font-size: 1.9rem;
    font-weight: 700;
}

.product-description h2,
.product-purchase h2 {
    margin-bottom: 16px;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: #6B625D;
}

.product-description p {
    margin: 0;
    color: #5F5651;
    line-height: 1.8;
    font-size: 1.02rem;
}

/*************** CARACTÉRISTIQUES ***************/

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.product-features li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(169, 99, 88, .12);
}

.product-features span {
    color: #8A8078;
    font-size: .92rem;
}

.product-features strong {
    color: #3F3835;
    font-weight: 600;
    text-align: right;
}

.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.18);
    vertical-align: middle;
}

.detail-stock{
    margin:18px 0;
    font-weight:500;
    font-style: italic;
    display:flex;
    align-items:center;
    gap:8px;
}

.detail-stock.in-stock{
    color:#51753A;
}

.detail-stock.out-of-stock{
    color:#B54848;
}

/*************** ACHAT ***************/

.detail-cart-form {
    display: grid;
    gap: 18px;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(169, 99, 88, .2);
    border-radius: 999px;
    overflow: hidden;
    background: #FFFDF9;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #A96358;
    font-size: 1.3rem;
    cursor: pointer;
}

.qty-input {
    width: 58px;
    border: none;
    text-align: center;
    font-weight: 700;
    color: #3F3835;
    background: transparent;
}

.detail-cart-button {
    width: 100%;
    min-height: 58px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #C77D73, #A96358);
    color: #fff;
    font-weight: 800;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 16px 35px rgba(169, 99, 88, .28);
    transition: .25s;
}

.detail-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(169, 99, 88, .34);
}

/*************** PRODUITS SIMILAIRES ***************/

.product-related {
    margin-top: 90px;
}

.related-products h2 {
    margin-bottom: 28px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: #2F2F2F;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.related-products-grid a {
    display: block;
    padding: 18px;
    border-radius: 26px;
    background: #FFFDF9;
    border: 1px solid rgba(169, 99, 88, .14);
    text-decoration: none;
    color: #3F3835;
    box-shadow: 0 18px 45px rgba(63, 56, 53, .06);
    transition: .3s ease;
}

.related-products-grid a:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(63, 56, 53, .10);
}

.related-products-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    margin-bottom: 16px;
    border-radius: 20px;
    background: #F8F3EE;
}

.related-products-grid span {
    display: block;
    aspect-ratio: 4 / 3;
    margin-bottom: 16px;
    border-radius: 20px;
    background: #F8F3EE;
    overflow: hidden;
}

.related-products-grid strong {
    display: block;
    margin-bottom: 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 400;
}

.related-products-grid small {
    color: #A96358;
    font-weight: 800;
}


/*************** BAS DE PAGE PRODUIT ***************/

.product-bottom {
    margin-top: 90px;
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 32px;
    align-items: stretch;
}

.product-commitments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.commitment-card,
.product-contact {
    padding: 32px 26px;
    border-radius: 28px;
    background: #F8F3EE;
    border: 1px solid rgba(169, 99, 88, .12);
    text-align: center;
}

.commitment-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #FFFDF9;
    box-shadow: 0 12px 30px rgba(63, 56, 53, .08);
}

.commitment-icon span {
    font-size: 1.7rem;
}

.commitment-card h3 {
    margin: 0;
    color: #3F3835;
    font-size: .95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.5;
}

.product-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    background: #FFFDF9;
}

.product-contact h2 {
    margin-bottom: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 400;
    color: #2F2F2F;
}

.product-contact p {
    margin: 0 0 22px;
    color: #5F5651;
    line-height: 1.7;
}

.product-contact a,
.contact-button {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: #A96358;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(169, 99, 88, .22);
    transition: .25s;
}

.product-contact a:hover,
.contact-button:hover {
    transform: translateY(-2px);
}


/*************** RESPONSIVE ***************/

@media screen and(max-width: 900px) {

    .product-page {
        padding: 35px 5% 70px;
    }

    .product-hero {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .product-gallery {
        position: static;
    }

    .product-main-image {
        aspect-ratio: 4 / 3;
    }

    .product-info {
        grid-template-columns: 1fr;
    }

    .product-bottom {
        grid-template-columns: 1fr;
    }

    .related-products-grid {
        gap: 18px;
    }
}

@media screen and (max-width: 768px) {
    
    .product-breadcrumb {
        font-size: .82rem;
    }

    .product-back-link {
        margin-bottom: 28px;
    }

    .product-card {
        padding: 26px 22px;
        border-radius: 22px;
    }

    .product-info h1 {
        font-size: 2.4rem;
    }

    .detail-price {
        font-size: 1.6rem;
    }

    .product-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }

    .related-products-grid,
    .product-commitments {
        grid-template-columns: 1fr;
    }

    .product-bottom,
    .product-related {
        margin-top: 60px;
    }

    .product-contact {
        text-align: center;
        align-items: center;
    }
}