/* 
    Douminiké Premium Design System - V2 (Multi-page & Chat)
    Colors: Orange (#FF8C00), Green (#2E8B57), Earthy Brown (#8B4513), Cream (#FFF8DC)
*/

:root {
    --primary: #FF8C00;
    --primary-dark: #e67e00;
    --secondary: #2E8B57;
    --secondary-dark: #1e5c3a;
    --earth: #8B4513;
    --cream: #FFF8DC;
    --text-dark: #2c2c2c;
    --text-light: #ffffff;
    --bg-light: #fdfaf5;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

body { background-color: var(--bg-light); color: var(--text-dark); overflow-x: hidden; }

/* Navigation V2 */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
}

.logo-container { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.6rem; color: var(--secondary); }
.logo-container img { height: 50px; }

nav ul { display: flex; gap: 30px; list-style: none; }
nav ul li a { 
    font-weight: 600; 
    color: var(--text-dark); 
    transition: var(--transition); 
    font-size: 1rem; 
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
nav ul li a i { font-size: 1.1rem; color: var(--secondary); }
nav ul li a:hover, nav ul li a.active { color: var(--primary); }
nav ul li a:hover i { color: var(--primary); }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    background: none;
    border: none;
}

/* Hero Slider */
.hero-slider { position: relative; height: 85vh; width: 100%; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); }
.slide-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: white;
    max-width: 700px;
}
.slide-content h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.slide-content p { font-size: 1.4rem; margin-bottom: 2.5rem; opacity: 0.9; }

/* Terroir Cards (Accueil) */
.terroir-section { padding: 80px 5%; }
.card-view { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.terroir-card {
    position: relative;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}
.terroir-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.terroir-card:hover img { transform: scale(1.1); }
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

/* Boutique GridView */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 5%;
}
@media (max-width: 600px) { .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 20px 3%; } }

.product-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.product-card:hover { transform: translateY(-10px); }
.product-img-wrapper { height: 200px; border-radius: 12px; overflow: hidden; margin-bottom: 15px; }
.product-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.product-category { font-size: 0.75rem; font-weight: 800; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; }

/* Filter Inputs */
#productSearch:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1); }
#categoryFilter:hover { border-color: var(--secondary); }
#categoryFilter:focus { border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.1); }

/* ShowDialog (Modal) */
.modal-dialog {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.dialog-content {
    background: white;
    width: 90%;
    max-width: 900px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    position: relative;
}
@media (max-width: 768px) { .dialog-content { grid-template-columns: 1fr; } }

.dialog-img { height: 100%; min-height: 400px; background: #f9f9f9; }
.dialog-img img { width: 100%; height: 100%; object-fit: contain; }
.dialog-info { padding: 40px; display: flex; flex-direction: column; }
.qty-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}
.qty-btn {
    width: 40px; height: 40px;
    border: 2px solid #eee;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Footer V2 - Consistent */
footer {
    background: #1a1a1a;
    color: white;
    padding: 80px 5% 40px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    font-weight: 800;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-section p, .footer-section li {
    color: #bbb;
    line-height: 1.8;
    margin-bottom: 12px;
}

.footer-links { list-style: none; }
.footer-links li a { color: #bbb; text-decoration: none; transition: var(--transition); }
.footer-links li a:hover { color: white; padding-left: 5px; }

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 60px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #777;
}

.footer-bottom .admin-trigger i { color: #333; transition: var(--transition); }
.footer-bottom .admin-trigger:hover i { color: var(--primary); }

/* Cart Modal Style (ShowDialog) */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    width: 95%;
    max-width: 550px;
    border-radius: 30px;
    padding: 40px;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-height: 90vh;
    overflow-y: auto;
}

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

.whatsapp-btn {
    width: 100%;
    background: #25D366;
    color: white;
    padding: 18px;
    border-radius: 15px;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    margin-top: 25px;
}
.whatsapp-btn:hover { background: #1ebe57; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); }

/* Icons in Buttons */
.cta-button i, .nav-link i { font-size: 1.1rem; }

.logistics-hero { 
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/dhl_fedex.png');
    background-size: cover;
    background-position: center;
    color: white; 
    padding: 100px 5%; 
    text-align: center; 
}
.logistics-logos-large { display: flex; justify-content: center; gap: 80px; margin-top: 50px; align-items: center; }
.logistics-logos-large img { height: 80px; filter: brightness(0) invert(1); opacity: 0.8; }

.badge-row { display: flex; gap: 15px; margin-bottom: 20px; }
.badge-natural { background: #e8f5e9; color: #2e7d32; padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; }

.cta-button {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    text-decoration: none;
}
.cta-button:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* Responsive Media Queries */
@media (max-width: 992px) {
    header { padding: 1rem 5%; flex-wrap: wrap; }
    
    .mobile-menu-btn { display: block; order: 3; }
    
    nav {
        display: none;
        width: 100%;
        order: 4;
        margin-top: 1rem;
    }
    
    nav.show { display: block; }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
        background: white;
        padding: 20px;
        border-radius: 12px;
        box-shadow: var(--shadow);
    }
    
    .header-right { order: 2; margin-left: auto; margin-right: 15px; }

    .slide-content h1 { font-size: 3rem; }
    .slide-content p { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .slide-content h1 { font-size: 2.5rem; }
    .slide-content p { font-size: 1rem; margin-bottom: 1.5rem; }
    .hero-slider { height: 70vh; }
    
    .terroir-section { padding: 50px 5%; }
    .terroir-section h2 { font-size: 2rem !important; }
    .card-view { grid-template-columns: 1fr; }
    
    section[style*="padding: 100px 5%"] { padding: 50px 5% !important; }
    div[style*="flex-direction: row"], div[style*="align-items: center; gap: 50px"] { flex-direction: column; gap: 30px !important; }
    div[style*="font-size: 3rem"] { font-size: 2rem !important; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    footer { padding: 50px 5% 30px; margin-top: 50px; }
    
    .logistics-logos-large { flex-wrap: wrap; gap: 30px; }
    .logistics-logos-large img { height: 50px; }
    .logistics-hero { padding: 60px 5%; }
}

@media (max-width: 480px) {
    .logo-container span { font-size: 1.2rem !important; }
    .header-right { gap: 10px !important; }
    
    .selectors { flex-direction: column; gap: 5px !important; }
    .selectors div { padding: 2px 5px !important; }
    .selectors select { font-size: 0.75rem !important; }
    
    .slide-content h1 { font-size: 2rem; }
    .slide-content { left: 5%; right: 5%; text-align: center; }
    .badge-row { justify-content: center; }
    
    .dialog-info { padding: 20px; }
    .qty-selector { justify-content: center; }
}
