/* ===== STYLES PREMIUM ===== */

/* Variables de couleurs premium */
:root {
    --premium-gold: #D4AF37;
    --premium-dark: #1a1a1a;
    --premium-light: #f8f6f2;
    --premium-gray: #4a4a4a;
    --premium-border: #e8e5de;
    --premium-accent: #c19a53;
    --premium-success: #27ae60;
    --premium-error: #e74c3c;
    --premium-warning: #f39c12;
    --premium-promo: #ff4757;
    --premium-shadow: rgba(0, 0, 0, 0.08);
    --premium-shadow-hover: rgba(0, 0, 0, 0.12);
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* Image de fond avec transparence */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    
    /* AJOUTEZ CETTE LIGNE POUR LA TRANSPARENCE */
    opacity: 0.8; /* Réduisez cette valeur pour plus de transparence (0.1 = 10%, 0.5 = 50%) */
}
/* Overlay optionnel pour contrôler la transparence */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);/* rgba(248, 246, 242, 0.9); /* Couleur crème */
    z-index: 2;
    /* CHOISISSEZ UN DES STYLES CI-DESSOUS */
    
    /* Option 1: Overlay blanc pour plus de transparence */
    /*background: rgba(255, 255, 255, 0.85); /* 85% de blanc */
    
    /* Option 2: Overlay de couleur */
    
    
    /* Option 3: Gradient de transparence */
    /* background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.8) 100%); */
    
    /* Option 4: Overlay très léger */
    /* background: rgba(255, 255, 255, 0.6); */ /* 60% de blanc */
    
    
}
.container {
    position: relative;
    z-index: 3; /* Le contenu doit être au-dessus de l'overlay */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.hero-content {
    text-align: center;
    color: #333; /* Couleur foncée pour contraster avec le fond clair */
    padding: 60px 0;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a; /* Couleur foncée */
    font-family: 'Playfair Display', serif;
}
.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #4a4a4a !important; /* Gris foncé */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
}
.hero-cta {
    margin-top: 30px;
}

/* Reset et base */
.products-page.premium {
    background: linear-gradient(135deg, #f9f7f3 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Titre de page premium */
.page-title-premium {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--premium-dark);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.page-title-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--premium-gold), transparent);
}

/* Section header premium */
.section-header.premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--premium-border);
}

.section-title-wrapper {
    flex: 1;
}

.section-title.premium {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--premium-dark);
    margin: 0 0 8px 0;
    width: 80%;
}

.title-icon {
    font-size: 1.5rem;
}

.title-text {
    flex: 1;
}

.section-badge.premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--premium-promo), #ff6b81);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.badge-text {
    font-size: 1.2rem;
    line-height: 1;
}

.badge-subtitle {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--premium-gray);
    margin: 0;
    font-weight: 400;
}

.btn-section-link.premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--premium-gold);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid var(--premium-border);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.btn-section-link.premium:hover {
    border-color: var(--premium-gold);
    background: var(--premium-light);
    gap: 12px;
}

.link-arrow.premium {
    transition: transform 0.3s ease;
}

.btn-section-link.premium:hover .link-arrow.premium {
    transform: translateX(5px);
}

/* Grid de produits premium */
.products-grid.premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Carte produit premium - UNIFORME */
.product-card.premium {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--premium-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--premium-border);
    position: relative;
}

.product-card.premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--premium-shadow-hover);
    border-color: var(--premium-gold);
}

/* Badges premium - UNIFORMES */
.product-badge.premium {
    position: absolute;
    top: 15px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.promo-badge.premium {
    left: 15px;
    background: linear-gradient(135deg, var(--premium-promo), #ff6b81);
}

.new-badge.premium {
    right: 15px;
    background: linear-gradient(135deg, var(--premium-gold), #b8943c);
}

.badge-icon {
    font-size: 0.9rem;
}

.badge-label {
    font-size: 0.7rem;
}

.badge-discount {
    font-size: 1rem;
    font-weight: 800;
}

/* Conteneur d'image premium - UNIFORME */
.product-image-container.premium {
    position: relative;
    overflow: hidden;
    background: var(--premium-light);
    height: 280px;
    width: 100%;
}

.image-inner-container {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0ede6, #f8f6f2);
}

.product-image-premium {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

.product-card.premium:hover .product-image-premium {
    transform: scale(1.08);
}

/* Contenu produit premium - UNIFORME */
.product-content.premium {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-header {
    margin-bottom: 15px;
}

.product-title.premium {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--premium-dark);
    margin: 0 0 8px 0;
    line-height: 1.4;
    min-height: 3.2em;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-stars {
    color: #FFD700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.rating-count {
    font-size: 0.8rem;
    color: var(--premium-gray);
}

/* Prix premium - UNIFORME */
.product-price.premium {
    margin: 15px 0;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-container.promo {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.05), rgba(255, 107, 129, 0.02));
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 71, 87, 0.1);
}

.price-original.premium,
.price-current.premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 0.85rem;
    color: var(--premium-gray);
    font-weight: 500;
}

.price-value {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--premium-dark);
}

.price-value.strikethrough {
    text-decoration: line-through;
    color: var(--premium-gray);
    opacity: 0.7;
    font-size: 1.0rem;
}

.price-current.premium.highlight .price-value {
    color: #ff9747;/*var(--premium-promo);*/
    font-size: 1.3rem;
}

.savings-badge {
    color: black;
    padding: 6px 12px;
    border: 2px solid var(--premium-border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-top: 5px;
}

/* Compteur de promotion premium */
.promo-countdown.premium {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 12px;
    border-radius: 10px;
    margin: 15px 0;
}

.countdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.countdown-icon {
    font-size: 1.1rem;
}

.countdown-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.time-value {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 36px;
    text-align: center;
}

.time-label {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-separator {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

/* Description premium */
.product-description.premium {
    color: var(--premium-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 15px 0;
    flex-grow: 1;
}

/* Actions premium - UNIFORMES */
.product-actions.premium {
    margin-top: auto;
}

.action-group {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.btn-premium {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-premium.add-to-cart {
    background: linear-gradient(135deg, var(--premium-gold), #c19a53);
    color: white;
    font-size: 0.95rem;
}

.btn-premium.add-to-cart:hover {
    background: linear-gradient(135deg, #c19a53, #b8943c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-premium.out-of-stock {
    background: var(--premium-gray);
    color: white;
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-price {
    margin-left: auto;
    font-weight: 700;
    font-size: 0.95rem;
}

.btn-wishlist {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--premium-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    border-color: var(--premium-promo);
    background: rgba(255, 71, 87, 0.05);
}

.wishlist-icon {
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.wishlist-icon.fas.fa-heart {
    color: var(--premium-promo);
}

.wishlist-icon.far.fa-heart {
    color: var(--premium-gray);
}

/* Info stock premium - UNIFORME */
.stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 10px;
}

.stock-info.in-stock {
    background: rgba(39, 174, 96, 0.1);
    color: var(--premium-success);
}

.stock-info.out-of-stock {
    background: rgba(231, 76, 60, 0.1);
    color: var(--premium-error);
}

.stock-icon {
    font-weight: 700;
}

/* État vide premium */
.empty-state.premium {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--premium-border);
    box-shadow: 0 6px 20px var(--premium-shadow);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.8rem;
    color: var(--premium-dark);
    margin-bottom: 15px;
}

.empty-text {
    color: var(--premium-gray);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section tous les produits */
.all-products-section {
    margin-top: 60px;
}

/* BADGES STACK - UNIFORMES */
.badges-stack.premium {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 8px;
    width: auto;
    min-width: 160px;
}

/* Style pour la barre de défilement des badges */
.badges-stack.premium::-webkit-scrollbar {
    width: 5px;
}

.badges-stack.premium::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.badges-stack.premium::-webkit-scrollbar-thumb {
    background: var(--premium-gold);
    border-radius: 3px;
}

.badge-item.premium {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.4s ease forwards;
    opacity: 0;
    transform: translateX(-10px);
    min-width: 160px;
    max-width: 200px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Animation séquentielle */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Couleurs par type */
.badge-promo.premium {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.95), rgba(255, 107, 129, 0.9));
}

.badge-new.premium {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 148, 60, 0.9));
}

.badge-featured.premium {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.95), rgba(41, 128, 185, 0.9));
}

.badge-stock.premium {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.95), rgba(211, 84, 0, 0.9));
}

.badge-content {
    font-size: 1rem;
    font-weight: 800;
    margin-right: 4px;
    min-width: 30px;
    text-align: center;
}

.badge-icon {
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

.badge-label {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    text-align: left;
    padding-left: 4px;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid.premium {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .products-grid.premium {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .section-header.premium {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .btn-section-link.premium {
        align-self: flex-start;
    }
    
    .page-title-premium {
        font-size: 2.2rem;
    }
    
    .product-title.premium {
        font-size: 1.2rem;
        min-height: 2.8em;
    }
    
    .price-value {
        font-size: 1.4rem;
    }
    
    .price-current.premium.highlight .price-value {
        font-size: 1.6rem;
    }
    
    .badges-stack.premium {
        min-width: 140px;
        max-height: 220px;
    }
    
    .badge-item.premium {
        min-width: 140px;
        max-width: 180px;
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .badge-content {
        font-size: 0.9rem;
    }
    
    .badge-icon {
        font-size: 0.9rem;
    }
    
    .badge-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .products-grid.premium {
        grid-template-columns: 1fr;
    }
    
    .action-group {
        flex-direction: column;
    }
    
    .btn-wishlist {
        width: 100%;
        height: auto;
        padding: 12px;
    }
    
    .countdown-timer {
        gap: 5px;
    }
    
    .time-unit {
        min-width: 40px;
    }
    
    .time-value {
        font-size: 1.2rem;
        min-width: 30px;
    }
    
    .badges-stack.premium {
        min-width: 130px;
        max-height: 200px;
    }
    
    .badge-item.premium {
        min-width: 130px;
        max-width: 160px;
        padding: 7px 12px;
        font-size: 0.75rem;
        gap: 6px;
    }
    
    .badge-content {
        font-size: 0.85rem;
        margin-right: 3px;
    }
    
    .badge-icon {
        font-size: 0.85rem;
    }
    
    .badge-label {
        font-size: 0.7rem;
    }
}

/* Pour les très petits écrans */
@media (max-width: 360px) {
    .badges-stack.premium {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        max-height: none;
        overflow-y: visible;
        width: calc(100% - 30px);
        justify-content: flex-start;
    }
    
    .badge-item.premium {
        min-width: auto;
        max-width: none;
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .badge-label {
        display: none;
    }
    
    .badge-item.premium .badge-icon {
        margin-right: 0;
    }
}

/* Styles pour les boutons "Ajouter au panier" */
.btn-premium.add-to-cart.added-success {
    background: linear-gradient(135deg, var(--premium-success), #2ecc71) !important;
    transform: scale(0.98);
    transition: all 0.3s ease;
}

.btn-premium.add-to-cart .fa-check {
    animation: checkBounce 0.5s ease;
}

@keyframes checkBounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Animation pour le badge panier */
#cartCount.pulse,
.cart-count.pulse,
.cart-count-badge.pulse {
    animation: cartPulse 0.5s ease;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Styles pour les notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 16px 20px;
    min-width: 250px;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.3s ease;
    z-index: 9999;
}

.notification-error {
    border-left-color: #f44336;
}

.notification-success {
    border-left-color: #4CAF50;
}

.notification-info {
    border-left-color: #2196F3;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    margin-left: 10px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* État "dans le panier" */
.btn-premium.add-to-cart.in-cart {
    /* background: linear-gradient(135deg, var(--premium-success), #2ecc71) !important; */
    background: linear-gradient(135deg, #c19a53, #806720) !important;
    cursor: default;
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-premium.add-to-cart.in-cart:hover {
    transform: none !important;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3) !important;
}

.btn-premium.add-to-cart.in-cart .btn-text {
    font-weight: 700;
}

/* État "ajouté récemment" */
.btn-premium.add-to-cart.added-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    animation: addedSuccess 0.5s ease;
}

@keyframes addedSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}