/* ================================
   CARD PRODUIT
================================ */

.produit-card {
    width: 100%;
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}
/* ================================
   IMAGE
================================ */

.produit-image-container {
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #f7f7f7;
}

.produit-image {
    display: block;
    width: 100%;
    max-width: 450px;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    mix-blend-mode: multiply;
}

.produit-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    background: #eeeeee;
    border-radius: 10px;
}

/* ================================
   INFORMATIONS
================================ */

.produit-infos {
    display: flex;
    align-items: center;
    min-width: 0;
    background: #fff;
}

.produit-contenu {
    width: 100%;
    min-width: 0;
    padding: 45px;
}

.produit-label {
    display: inline-block;
    padding: 6px 12px;
    color: #198754;
    background-color: #e9f7ef;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.produit-titre {
    margin: 0;
    color: #212529;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
}

.produit-separator {
    width: 55px;
    height: 4px;
    margin: 20px 0;
    background-color: #198754;
    border-radius: 5px;
}

/* ================================
   DESCRIPTION
================================ */

.produit-description {
    padding: 0 !important;
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.produit-description p:last-child {
    margin-bottom: 0;
}

/* ================================
   ACHAT
================================ */

.produit-achat {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eeeeee;
}

.produit-prix {
    display: flex;
    align-items: baseline;
    color: #212529;
}

.produit-prix .prix {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.produit-prix .devise {
    margin-left: 5px;
    font-size: 1.5rem;
    font-weight: 700;
}

.produit-info-livraison {
    margin: 8px 0 20px;
    color: #777;
    font-size: 0.85rem;
}

.produit-bouton {
    width: 100%;
    padding: 13px 20px;
    color: #fff;
    background-color: #198754;
    border: 2px solid #198754;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.produit-bouton:hover {
    color: #198754;
    background-color: #fff;
    border-color: #198754;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.2);
}

/* ================================
   MOBILE
================================ */

@media (max-width: 767.98px) {

    .produit-card {
        width: calc(100% - 30px);
        margin: 20px auto;
        border-radius: 12px;
    }

    .produit-image-container {
        min-height: 250px;
        padding: 20px;
    }

    .produit-image {
        max-height: 320px;
    }

    .produit-contenu {
        padding: 25px 20px;
    }

    .produit-titre {
        font-size: 1.8rem;
    }

    .produit-prix .prix {
        font-size: 2.2rem;
    }

    .produit-bouton {
        width: 100%;
    }
}

/* ================================
   Rupture de stock
   ================================ */

.produit-rupture {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #dc3545;
    border-radius: 5px;
    color: #dc3545;
    font-weight: 600;
    text-transform: uppercase;
}
