 

/* ===== SECTION PRODUIT ===== */
.product-detail-section {
    display: flex;
    max-width: 1400px;
    margin: 100px auto 100px;
    gap: 80px;
    padding: 0 40px;
}

.product-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-wrapper img {
    width: 100%;
    max-width: 500px;
    object-fit: cover;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail-list .thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail-list .thumb.active {
    padding: 10px;
    border-radius: 8px;
    border-color: #00000054;
}

.product-info {
    flex: 1;
    /*padding-top: 50px;*/
    position: sticky;
    top: 120px;
}

.product-status {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    font-family: 'Georgia', serif;
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 10px;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 40px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 40px;
    background: #000;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
}

/* Masquer / afficher avec transition */
.contact-advisor-link,
.panier-advisor-link {
    display: block; /* par défaut */
    text-align: center;
    padding: 15px;
    border: 1px solid #000;
    border-radius: 40px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #000;

    transition: all 0.3s ease;
    opacity: 1;
    height: auto;
    overflow: hidden;
}

/* Masquer */
.hidden {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0 0 10px 0; /* conserve un petit espace si nécessaire */
}

.product-description p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.product-description p.expanded {
    max-height: none;
}

.view-more-btn {
    background: none;
    border: none;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 30px;
}

/* Accordéon */
.accordion-header {
    width: 100%;
    text-align: left;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    background: none;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 14px;
    color: #666;
}

.accordion-content.open {
    max-height: 200px;
}

/* Produits complémentaires */
.product-selection-section {
    padding: 50px 0;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Georgia', serif;
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: 300;
    color: #333;
}

.product-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 20px 20px;
    -webkit-overflow-scrolling: touch;
}

.product-card {
    flex: 0 0 auto;
    width: 250px;
    cursor: pointer;
    text-align: center;
}

.product-image-wrapper {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background: #e3e3e3;
    overflow: hidden;
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ========================= */
/* RESPONSIVE  —  max 768px  */
/* ========================= */

@media(max-width:768px) {
    .product-detail-section {
        flex-direction: column;
        margin-top: 80px;
        gap: 20px;
        padding: 0 20px;
    }

    .product-info {
        position: static;
        padding-top: 0;
    }
}

/* ========================= */
/*  QUANTITY CONTROL         */
/* ========================= */

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px; 
    margin-bottom: 15px;
}

.quantity-control button {
    background-color: #000;
    border: none;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.15s ease;
}

.quantity-control button:hover {
    background-color: #222;
    transform: scale(1.05);
}

.quantity-control span {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    width: 35px;
    text-align: center;
}

/* ========================= */
/*  TOAST NOTIFICATION       */
/* ========================= */

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00c853;           /* vert plus doux */
    color: #fff;
    padding: 14px 22px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.35s ease;
    z-index: 9999;
    pointer-events: none;          /* évite les clics par erreur */
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ========================= */
/*  ADD TO CART – Animation  */
/* ========================= */

.add-to-cart-btn {
    transition: transform 0.25s ease, background-color .25s ease;
}

.add-to-cart-btn.added {
    transform: scale(1.07);
}
