h1 { 
    text-align: left; 
    font-family: "Montserrat", sans-serif;
    color: #2B353F;
    font-size: 2.2em;
    line-height: 1.2;
    margin-bottom: 15px;
}

article {
    width: 100%;
    max-width: 1200px;
    display: flex;
    margin: 0 auto;
    gap: 40px;
    align-items: flex-start;
    padding: 15px 0;
}

.images {
    max-width: 500px;
    flex: 0 0 500px;
    position: sticky;
    top: 120px;
}

.main-image img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.thumb {
    width: 65px;
    height: 65px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: 0.2s;
}
.thumb.active,
.thumb:hover {
    transform: scale(1.05);
    opacity: 1;
    border-color: #d837be;
}

.main-image img {
    transition: 0.3s;
    transition: transform 0.4s ease;
}

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

article div.desc {
    width: 50%;
    flex: 1;
    font-size: 1em;
    color: #444;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
article .desc p {
    margin-bottom: 15px;
    line-height: 1.6;
}

article .desc ul {
    padding-left: 20px;
    margin-bottom: 15px;
    line-height: 1;
}

article .desc li {
    margin-bottom: 8px;
}
article .desc li p {
    margin: 0;
    padding: 0;
    line-height: 1;
}

article .desc strong {
    color: #6B5896;
}

article .desc h2 {
    font-family: "Montserrat", sans-serif;
    color: #6B5896;
    font-size: 1.3em;
    margin-top: 20px;
    font-weight: bold;
}
article p.prix {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0 1px;
    font-family: "Libre Caslon Text", serif;
    color: #000;
    transition: 0.5s;
    font-size: 1.8em;
    font-weight: bold;
    color: #d837be;
}
article div.short_desc {
    text-align: left;
    margin: 20px 0;
}

article form {
    margin: 20px 0;
}
article input[type="submit"] {
    width: 100%;
    max-width: 300px;
    height: 50px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 15px;

    color: #fff;
    background: linear-gradient(135deg, #6B5896, #d837be);
    background-size: 200% 200%;

    box-shadow: 0 8px 20px rgba(216,55,190,0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-position 0.4s ease;
}

article input[type="submit"]:hover {
    transform: translateY(-2px);

    background-position: right center;

    box-shadow: 0 14px 28px rgba(216,55,190,0.28);
}
article input.delete {
    background: #8f2e2e;
    transition: 0.5s;
}
article input.delete:hover {
    background: #000;
    transition: 0.5s;
}

div.ft {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
}
div.ft h2 {
    font-family: "Montserrat", sans-serif;
    color:#6B5896;
    text-align: center;
}

/* BLOCS OPTIONS / PERSONNALISATION */
article form p {
    margin: 15px 0;
}

/* LABEL */
article form label {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95em;
    margin-bottom: 5px;
    color: #333;
}

/* SELECT + INPUT */
article select,
article input[type="text"] {
    width: 100%;
    max-width: 350px;
    height: 40px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 0.95em;
    font-family: "Montserrat", sans-serif;
    transition: 0.2s;
    outline: none;
}

/* TEXTAREA si tu ajoutes plus tard */
article textarea {
    width: 100%;
    max-width: 350px;
    min-height: 80px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-family: "Montserrat", sans-serif;
    resize: vertical;
}

/* HOVER / FOCUS */
article select:focus,
article input[type="text"]:focus,
article textarea:focus {
    border-color: #d837be;
    box-shadow: 0 0 0 2px rgba(216, 55, 190, 0.1);
}

/* PETIT STYLE SELECT */
article select {
    cursor: pointer;
    background: #fff;
}

/* ESPACE ENTRE BLOCS */
article form p + p {
    margin-top: 20px;
}
article input::placeholder {
    color: #aaa;
    font-style: italic;
}

@media screen and (max-width: 980px) {
    .images {
        max-width: 30%;
    }
}
@media screen and (max-width: 680px) {
    article {
        display: block;
    }
    .images {
        max-width: 100%;
        padding: 50px;
    }
    .main-image {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .main-image img {
        max-width: 70%;
    }
    article div.desc {
        width: 100%;
        padding: 10px;
    }

    div.ft {
        padding: 10px;
    }

    article select, article input[type="text"],
    article input[type="submit"] {
        width: 100%;
        max-width: 100%;
    }
}

/* SELECTEUR DE QUANTITÉ STYLE PHOTO */
.qte-section {
    margin-bottom: 15px;
}

.qte-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.btn-qte {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 8px;
    background: #ccc; /* Gris pour le bouton moins */
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-qte.plus {
    background: #d837be; /* Rose pour le bouton plus */
}

.btn-qte:hover {
    opacity: 0.8;
}

#qte_input {
    width: 70px;
    height: 45px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2em;
    background: #fff;
    -moz-appearance: textfield; /* Cache les flèches Firefox */
}

#qte_input::-webkit-outer-spin-button,
#qte_input::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Cache les flèches Chrome/Safari */
    margin: 0;
}

/* BOUTON SUPPRIMER DISCRET */
.btn-delete-link {
    background: #8f2e2e;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    margin-top: 5px;
    font-size: 0.9em;
}

.btn-delete-link:hover {
    background: #000;
}

/* ZONE D'ACTION DU PANIER */
.cart-action-zone {
    margin: 20px 0;
    min-height: 100px; /* Évite un saut visuel */
}

/* BLOC INFO DISCRET (Style Photo) */
.already-in-cart-mini {
    padding: 15px 0;
    text-align: left;
}

.already-in-cart-mini p {
    font-family: "Montserrat", sans-serif;
    color: #666; /* Un gris doux */
    font-size: 0.9em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* BOUTON SUPPRIMER STYLE LIEN DISCRET */
.already-in-cart-mini .delete-link {
    background: none;
    border: none;
    padding: 0;
    color: #8f2e2e; /* Rouge bordeaux */
    font-family: "Montserrat", sans-serif;
    font-size: 0.85em;
    font-weight: normal;
    text-decoration: underline; /* Style lien */
    cursor: pointer;
    transition: 0.2s;
}

.already-in-cart-mini .delete-link:hover {
    color: #d837be; /* Devient rose au survol */
    text-decoration: none;
}

/* CONTENEUR PRINCIPAL CENTRÉ */
.cart-action-zone {
    width: 100%;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Tout est centré ici */
}

/* TEXTE INFO DISCRET */
.already-in-cart-mini p {
    font-family: "Montserrat", sans-serif;
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
    text-align: center;
}

/* BOUTON SUPPRIMER (Action secondaire : plus petit et sobre) */
.btn-delete-slim {
    background: #f4f4f4; /* Fond gris clair très neutre */
    color: #843b35; /* Texte marron */
    border: 1px solid #e0e0e0;
    padding: 8px 15px;
    border-radius: 6px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8em;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-delete-slim:hover {
    background: #843b35;
    color: #fff;
}

/* BOUTON AJOUTER (Action principale : grand et flashy) */
article input[type="submit"] {
    width: 100%;
    max-width: 300px;
    height: 50px;
    background: linear-gradient(135deg, #6B5896, #d837be);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
    transition: 1s;
}
article input[type="submit"]:hover {
    background: linear-gradient(135deg, #d837be, #d837be);
    transform: translateY(-2px);
    transition: 1s;
}
article input[type="submit"].btn-delete-link {
    background: #6B5896;
    font-size: 0.9em;
}

/* QTE PICKER BIEN ALIGNÉ */
.qte-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* =========================
   TABLEAU PRODUIT PREMIUM
========================= */

article .desc table {
    width: 100%;
    margin: 25px 0;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;

    background: rgba(255,255,255,0.65);

    border: 1px solid rgba(107,88,150,0.08);

    border-radius: 14px;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.03);

    font-family: "Montserrat", sans-serif;
    font-size: 0.95em;
}

/* HEADER */
article .desc table thead {
    background:
        linear-gradient(
            to right,
            rgba(107,88,150,0.08),
            rgba(216,55,190,0.06)
        );
}

article .desc table th {
    padding: 16px 18px;

    text-align: left;

    color: #6B5896;

    font-size: 0.88em;

    font-weight: 600;

    letter-spacing: 0.4px;

    border-bottom:
        1px solid rgba(107,88,150,0.08);
}

/* CELLULES */
article .desc table td {
    padding: 15px 18px;

    color: #555;

    line-height: 1.6;

    border-bottom:
        1px solid rgba(0,0,0,0.05);
}

/* DERNIÈRE LIGNE */
article .desc table tr:last-child td {
    border-bottom: none;
}

/* PREMIÈRE COLONNE */
article .desc table td:first-child {
    width: 35%;

    color: #6B5896;

    font-weight: 600;
}

/* HOVER */
article .desc table tbody tr {
    transition: background 0.2s ease;
}

article .desc table tbody tr:hover {
    background: rgba(216,55,190,0.025);
}

.promo-badge {
    display: inline-block;
    background: #d837be;
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(216,55,190,0.25);
}

article div.desc {
    animation: fadeProduct 0.5s ease;
}

@keyframes fadeProduct {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article input[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media screen and (max-width: 980px) {
    .images {
        position: relative;
        top: auto;
    }
}
@media screen and (max-width: 680px) {

    article .desc table,
    article .desc table tbody,
    article .desc table tr,
    article .desc table td {
        display: block;
        width: 100%;
    }

    article .desc table thead {
        display: none;
    }

    article .desc table {
        padding: 10px 15px;
    }

    article .desc table tr {
        padding: 10px 0;
    }

    article .desc table td {
        padding: 8px 0;
        border: none;
    }

    article .desc table td:first-child {
        color: #d837be;

        font-weight: bold;

        margin-top: 12px;
    }
}

/*** PRODUITS RELATIFS ***/

.related-products {
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: block;
    margin: 20px auto;
    width: 100%;
    max-width: 1200px; 
}

.related-products h2 {
    margin-bottom: 20px;
    font-family: "Montserrat", sans-serif;
    color:#d837be;
    text-align: center;
}

/* Ligne produits */
div.produits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* Carte produit */
div.produit {
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
    padding: 5px;
    transition: all 0.3s ease;
}

div.produit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Lien */
div.produit a.card {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image */
div.produit .image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

/* Texte */
div.produit h3 {
    font-size: 0.95em;
    font-family: "Montserrat", sans-serif;
    margin: 8px 0 5px;
    color: #333;
    line-height: 1.3em;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

div.produit .prix {
    font-family: "Libre Caslon Text", serif;
    font-size: 0.95em;
    color: #6B5896;
}

.voir-boutique {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 10px 20px;
    background: #6B5896;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.voir-boutique:hover {
    background: #d837be;
}

@media screen and (max-width: 900px) {
    div.produits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 500px) {
    div.produits {
        grid-template-columns: 1fr;
    }

    h2 {
        text-align: center;
    }
}