/* ========================================== */
/* BOUTONS                                    */
/* ========================================== */
.primary-action-btn { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 14px 28px; 
    border-radius: 50px; 
    cursor: pointer; 
    font-family: 'Poppins', sans-serif; 
    font-weight: 600; 
    font-size: 0.9rem; 
    transition: 0.3s; 
    box-shadow: 0 6px 15px rgba(79, 106, 91, 0.2);
    border: 1px solid var(--primary);
    display: inline-block;
}
.primary-action-btn:hover { 
    background: var(--secondary); 
    border-color: var(--secondary);
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(201, 122, 99, 0.3);
}
.primary-action-btn:disabled { 
    background: #b8c2bc; 
    border-color: #b8c2bc;
    cursor: not-allowed; 
    box-shadow: none; 
    transform: none; 
}

/* ========================================== */
/* CARROUSEL (PAGE D'ACCUEIL)                 */
/* ========================================== */
.carousel-container { 
    position: relative; 
    overflow: hidden; 
    border-radius: var(--radius); 
    margin: 30px 0; 
    background: #2d3531; 
    height: 450px; 
    box-shadow: var(--shadow); 
}
.carousel-track { 
    display: flex; 
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); 
    height: 100%; 
}
.carousel-slide { 
    min-width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
.carousel-slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
}

/* FLÈCHES PLUS VISIBLES */
.carousel-nav-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(45, 53, 49, 0.8); /* Fond sombre pour contraste */
    color: white; 
    border: none; 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    cursor: pointer; 
    backdrop-filter: blur(5px); 
    transition: 0.3s; 
    font-size: 1.2rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.carousel-nav-btn:hover { background: var(--secondary); }
#prev-btn { left: 15px; } 
#next-btn { right: 15px; }

#carousel-indicators { 
    position: absolute; 
    bottom: 20px; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    gap: 10px; 
}
#carousel-indicators span { 
    width: 8px; 
    height: 8px; 
    background: rgba(255,255,255,0.3); 
    border-radius: 50%; 
    cursor: pointer; 
}
#carousel-indicators span.active { 
    background: var(--secondary); 
    width: 25px; 
    border-radius: 10px; 
}

/* ========================================== */
/* RECHERCHE (CENTRÉE ET PRO)                 */
/* ========================================== */
#search-bar { 
    max-width: 450px; 
    margin: 0 auto 40px auto; 
    text-align: center; 
}
#product-search { 
    width: 100%; 
    padding: 15px 25px; 
    border-radius: 50px; 
    border: 1.5px solid var(--border); 
    background: var(--surface); 
    font-size: 1rem; 
    color: var(--text); 
    outline: none; 
    box-shadow: var(--shadow);
    transition: 0.3s;
    text-align: center;
}
#product-search:focus {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(79, 106, 91, 0.15);
}

/* ========================================== */
/* MODALE                                     */
/* ========================================== */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 3000; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(45, 53, 49, 0.7); 
    backdrop-filter: blur(8px); 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
    box-sizing: border-box; 
}
.modal-content { 
    background: var(--surface); 
    padding: 40px; 
    border-radius: 30px; 
    width: 100%; 
    max-width: 600px; 
    position: relative; 
    max-height: 95vh; 
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15); 
    border: 1px solid var(--border);
}
.close-btn { position: absolute; right: 25px; top: 20px; font-size: 2rem; cursor: pointer; color: var(--text-muted); }

.modal-slider-container { position: relative; width: 100%; margin-bottom: 25px; background: #fdfaf7; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; height: 320px; border: 1px solid var(--border); }
.modal-slider-container img { max-width: 100%; max-height: 100%; object-fit: contain; }
.modal-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(79, 106, 91, 0.8); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5; }
#modal-prev-btn { left: 15px; } #modal-next-btn { right: 15px; }
#modal-image-counter { position: absolute; bottom: 15px; right: 20px; background: rgba(79, 106, 91, 0.7); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-family: 'Poppins'; font-weight: 600; }

.modal-price-box { background: var(--bg); padding: 18px; border-radius: 18px; margin: 25px 0; display: flex; justify-content: space-around; border: 1px solid var(--border); font-size: 0.95rem; }
.modal-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ========================================== */
/* WHATSAPP & TOAST                           */
/* ========================================== */
.whatsapp-fixed { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 2000; }
#toast-notification { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 14px 30px; border-radius: 20px; display: none; z-index: 4000; }
#toast-notification.show { display: block; }

@media (max-width: 768px) {
    .carousel-container { height: 280px; }
    .whatsapp-fixed { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .modal-form-grid { grid-template-columns: 1fr; }
}