/* ==========================================================================
   FICHE PRODUIT — REFONTE CSS PREMIUM (Shopify-like)
   Uniquement du CSS, aucune classe/structure HTML modifiée.
   IMPORTANT : chaque règle est préfixée par ".product-page" pour garantir
   qu'aucune autre page du site (boutique, header, footer, panier, etc.)
   ne puisse jamais être affectée, quel que soit l'ordre de chargement
   des fichiers CSS. Ce fichier est 100% isolé à la page détail produit.
   ========================================================================== */

.product-page {
    --pd-blue: #27A8FF;
    --pd-blue-dark: #1a8fe0;
    --pd-dark: #222222;
    --pd-green: #2ecc71;
    --pd-text: #333333;
    --pd-text-light: #777777;
    --pd-border: #e5e5e5;
}

/* ========================================== */
/* CONTENEUR GÉNÉRAL                          */
/* ========================================== */
.product-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.product-page > .breadcrumb {
    font-size: 13px;
    color: var(--pd-text-light);
    margin-bottom: 30px;
}

.product-page > .breadcrumb strong {
    color: var(--pd-dark);
}

/* ========================================== */
/* LAYOUT PRINCIPAL : GALERIE 55% / INFOS 45% */
/* ========================================== */
.product-page .product-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* ========================================== */
/* GALERIE PRODUIT                            */
/* ========================================== */
.product-page .product-gallery {
    display: flex;
    gap: 16px;
    width: 55%;
}

.product-page .thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 90px;
    flex-shrink: 0;
}

.product-page .thumbnail-list .thumb {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .3s ease, transform .2s ease;
}

.product-page .thumbnail-list .thumb:hover {
    border-color: #cfe9ff;
}

.product-page .thumbnail-list .thumb.active {
    border-color: var(--pd-blue);
}

.product-page .main-image {
    flex: 1;
    border-radius: 14px;
    overflow: hidden;
    background-color: #f7f7f7;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.product-page .main-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    transition: transform .4s ease;
}

/* ========================================== */
/* INFORMATIONS PRODUIT                       */
/* ========================================== */
.product-page .product-layout > .product-info {
    width: 45%;
    display: flex;
    flex-direction: column;
}

.product-page .product-layout > .product-info h1 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: #1e1e1e;
    margin-bottom: 12px;
}

.product-page .product-layout > .product-info .reference {
    font-size: 13px;
    color: var(--pd-text-light);
    margin-bottom: 24px;
}

.product-page .product-layout > .product-info .reference span {
    color: var(--pd-text);
    font-weight: 600;
}

/* Liste des avantages */
.product-page .product-layout > .product-info .advantages {
    list-style: none;
    margin-bottom: 28px;
}

.product-page .product-layout > .product-info .advantages li {
    font-size: 14.5px;
    color: var(--pd-text);
    line-height: 1.8;
    margin-bottom: 6px;
}

/* Le premier caractère de chaque <li> est "✓" dans le Blade : on le colore en vert */
.product-page .product-layout > .product-info .advantages li::first-letter {
    color: var(--pd-green);
    font-weight: 700;
}

/* Prix */
.product-page .product-layout > .product-info .price {
    font-size: 46px;
    font-weight: 700;
    color: var(--pd-blue);
    margin-bottom: 28px;
}

/* ========================================== */
/* ZONE ACHAT : QUANTITÉ + BOUTON             */
/* ========================================== */
.product-page .buy-box {
    margin-bottom: 28px;
}

.product-page .buy-box form {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.product-page .buy-box .quantity {
    display: flex;
    align-items: center;
    height: 52px;
    background-color: #ffffff;
    border: 1px solid var(--pd-border);
    border-radius: 30px;
    overflow: hidden;
}

.product-page .buy-box .quantity button {
    width: 44px;
    height: 100%;
    border: none;
    background: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--pd-dark);
    cursor: pointer;
    transition: background-color .2s ease;
}

.product-page .buy-box .quantity button:hover {
    background-color: #f2f2f2;
}

.product-page .buy-box .quantity input {
    width: 46px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--pd-border);
    border-right: 1px solid var(--pd-border);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--pd-dark);
    outline: none;
}

/* Bouton Ajouter au panier */
.product-page .buy-box .add-to-cart-btn {
    height: 52px;
    padding: 0 32px;
    background-color: var(--pd-blue);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    min-width: 200px;
    transition: background-color .3s ease, transform .2s ease;
}

.product-page .buy-box .add-to-cart-btn:hover {
    background-color: var(--pd-blue-dark);
    transform: translateY(-2px);
}


/* ========================================== */
/* SERVICES                                   */
/* ========================================== */
.product-page .product-layout > .product-info .services {
    margin-bottom: 20px;
}

.product-page .product-layout > .product-info .services p {
    font-size: 14px;
    color: var(--pd-text);
    line-height: 1.9;
}

/* Le premier caractère est "✔" dans le Blade : on le colore en vert */
.product-page .product-layout > .product-info .services p::first-letter {
    color: var(--pd-green);
    font-weight: 700;
}

/* ========================================== */
/* ACTIONS : COMPARER / WISHLIST              */
/* ========================================== */
.product-page .product-layout > .product-info .actions {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--pd-border);
    font-size: 13.5px;
    color: var(--pd-text-light);
}

.product-page .product-layout > .product-info .actions span {
    cursor: pointer;
    transition: color .2s ease;
}

.product-page .product-layout > .product-info .actions:hover,
.product-page .product-layout > .product-info .actions span:hover {
    color: var(--pd-blue);
}

/* ========================================== */
/* DESCRIPTION PRODUIT                        */
/* ========================================== */
.product-page > .product-description {
    margin-top: 70px;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 40px;
}

.product-page > .product-description h2 {
    font-size: 30px;
    font-weight: 700;
    color: #1e1e1e;
    margin-bottom: 24px;
}

.product-page > .product-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.product-page > .product-description table td,
.product-page > .product-description table th {
    border: 1px solid #eaeaea;
    padding: 12px 14px;
    font-size: 14px;
}

.product-page > .product-description ul,
.product-page > .product-description ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

.product-page > .product-description li {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--pd-text);
    margin-bottom: 6px;
}

.product-page > .product-description p {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--pd-text);
    margin-bottom: 14px;
}

/* ========================================== */
/* RESPONSIVE — TABLETTE                      */
/* ========================================== */
@media (max-width: 1024px) {
    .product-page .product-layout {
        gap: 30px;
    }

    .product-page .product-layout > .product-info h1 {
        font-size: 30px;
    }

    .product-page .product-layout > .product-info .price {
        font-size: 36px;
    }

    .product-page .main-image img {
        height: 400px;
    }
}

/* ========================================== */
/* RESPONSIVE — MOBILE                        */
/* ========================================== */
@media (max-width: 768px) {

    .product-page .product-layout {
        flex-direction: column;
    }

    .product-page .product-gallery {
        width: 100%;
        flex-direction: column-reverse; /* miniatures sous l'image principale */
        gap: 14px;
    }

    .product-page .thumbnail-list {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }

    .product-page .thumbnail-list .thumb {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }

    .product-page .main-image img {
        height: 320px;
    }

    .product-page .product-layout > .product-info {
        width: 100%;
    }

    .product-page .product-layout > .product-info h1 {
        font-size: 26px;
    }

    .product-page .product-layout > .product-info .price {
        font-size: 32px;
    }

    .product-page .buy-box form {
        flex-direction: column;
        align-items: stretch;
    }

    .product-page .buy-box .add-to-cart-btn {
        width: 100%;
    }

    .product-page > .product-description {
        padding: 24px;
        margin-top: 40px;
    }

    .product-page > .product-description h2 {
        font-size: 24px;
    }
}