/* ==========================================================================
   VIEWPORT & OVERFLOW PROTECTION (Mobile Fix)
   ========================================================================== */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* ==========================================================================
   GLOBAL EDELIX HEADER (Navigation unifiée)
   ========================================================================== */
.global-header {
    background: #1e3a8a;
    /* Bleu Royal Edelix */
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 3000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-family: 'Outfit', sans-serif;
}

.global-nav-container {
    max-width: 1536px;
    /* Aligné sur le container 2xl de Tailwind du site principal */
    margin: 0 auto;
    padding: 1rem 1.5rem;
    /* px-6 du site principal = 1.5rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.global-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    /* mr-2 sur le site principal */
    text-decoration: none;
    font-weight: 800;
    /* Plus massif */
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    /* Typique du style Tailwind bold */
    /* text-2xl = 1.5rem */
    color: #ffd700;
    /* text-yellow-400 */
    transition: opacity 0.3s;
    white-space: nowrap;
}

.global-logo:hover {
    opacity: 0.8;
}

.global-logo i {
    color: #fff;
}

.global-logo span {
    color: #ffd700;
}

.global-menu {
    display: flex;
    gap: 2rem;
    /* space-x-8 = 2rem */
    align-items: center;
}

/* Sélecteur de langue style main site */
.header-lang-selector .lang-select {
    background: #1e40af;
    /* bg-blue-800 */
    color: #fff;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 1px solid #2563eb;
    /* border-blue-600 */
    outline: none;
    transition: all 0.2s;
}

.header-lang-selector .lang-select:hover {
    background: #1d4ed8;
    /* bg-blue-700 */
    border-color: #3b82f6;
}

.global-menu-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    /* 16px comme le site principal */
    font-weight: 600;
    /* font-semibold de Tailwind */
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.0125em;
    /* Espacement subtil pour aérer */
    -webkit-font-smoothing: antialiased;
    /* Lissage MacOS/Chrome */
    -moz-osx-font-smoothing: grayscale;
    /* Lissage Firefox */
}

.global-menu-link:hover {
    color: #ffd700;
}

/* Trait supprimé pour correspondre au site principal */
.global-menu-link::after {
    display: none;
}

.global-menu-link.active {
    color: #ffd700;
}

.global-menu-link.active::after {
    display: none;
}

/* Bouton Devis Express Harmonisé */
.global-menu-devis {
    background-color: #ffd700;
    color: #1e3a8a !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.global-menu-devis:hover {
    background-color: #facc15;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

/* Version Menu Mobile (plus discret pour correspondre au site principal) */
.global-mobile-menu .global-menu-devis {
    background: none;
    color: #ffd700 !important;
    padding: 0.5rem 0;
    box-shadow: none;
    justify-content: flex-start;
}

.global-mobile-menu .global-menu-devis:hover {
    transform: none;
    background: none;
    color: #fff !important;
}

.global-burger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.global-mobile-menu {
    display: none;
    background: #1e3a8a;
    padding: 1rem 2rem;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.global-mobile-menu.active {
    display: flex;
}

@media (max-width: 992px) {
    .global-menu {
        display: none;
    }

    .global-burger {
        display: block;
    }
}

:root {
    /* Palette Ultra-Luxe Shop Edelix 2025 - Harmonisée avec edelix.ch */
    --color-bg: #0a0a0a;
    --color-bg-secondary: #151515;
    --color-gold: #ffd700;
    /* Jaune doré du site principal */
    --color-gold-light: #ffd700;
    --color-gold-dark: #eab308;
    --color-blue: #1a73e8;
    /* Bleu principal edelix.ch */
    --color-night-blue: #0a1628;
    --color-off-white: #e8e8e8;
    --color-silver: #9a9a9a;

    --color-text: var(--color-off-white);
    --color-text-muted: var(--color-silver);
    --color-primary: var(--color-gold);
    --color-accent: var(--color-gold);

    --color-success: #22c55e;
    --color-danger: #ef4444;
    --color-warning: #eab308;

    /* Typographie Premium */
    --font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-size-sm: 0.8rem;
    --font-size-base: 0.95rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.3rem;
    --font-size-2xl: 2rem;

    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Arrondis - Plus prononcés pour le luxe */
    --rounded-sm: 4px;
    --rounded-md: 8px;
    --rounded-lg: 15px;
    --rounded-xl: 20px;
    --rounded-2xl: 25px;

    /* Ombres */
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);

    /* Effets */
    --glass-bg: rgba(20, 20, 20, 0.8);
    --glass-border: rgba(80, 80, 80, 0.4);
    --metallic-border: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 50%, #5a5a5a 100%);
    --transition-base: 0.3s ease;

    /* Gradients */
    --gradient-gold: linear-gradient(180deg, #d4af37 0%, #b8860b 100%);
    --gradient-gold-3d: linear-gradient(180deg, #ffd700 0%, #d4af37 30%, #b8860b 70%, #8b6914 100%);
    --gradient-card: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    /* Fond texturé carbone */
    background:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 2px,
            rgba(30, 30, 30, 0.3) 2px,
            rgba(30, 30, 30, 0.3) 4px),
        radial-gradient(ellipse at center top, #1a1a1a 0%, #050505 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: var(--spacing-xl);
}

.admin-header h1 {
    font-size: var(--font-size-xl);
    font-weight: 200;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===================================
   HERO SECTION & VISUAL REFINEMENT
   =================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-section {
    width: 100%;
    margin: var(--spacing-lg) 0;
    border-radius: var(--rounded-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-container {
    position: relative;
    width: 100%;
    line-height: 0;
}

.hero-image {
    width: 100%;
    height: auto;
    /* Suppression des limites de hauteur pour visibilité 100% sans recadrage */
    display: block;
    transition: transform 10s ease;
}

.hero-section:hover .hero-image {
    transform: scale(1.03);
}

.slogan-section {
    text-align: center;
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    color: var(--color-off-white);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    margin: 0;
    line-height: 1.4;
    font-family: 'Outfit', sans-serif;
    /* Un aspect plus moderne et aéré */
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

/* Base des boutons flottants */
.floating-cart-btn,
.floating-contact-btn {
    position: fixed;
    right: 1.5rem;
    color: white;
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 50;
    text-decoration: none;
}

.floating-cart-btn {
    bottom: 12.5rem;
    background: var(--color-gold);
}

.btn-phone {
    bottom: 7rem;
    background: #2563eb;
}

.btn-whatsapp {
    bottom: 1.5rem;
    background: #10b981;
}

.floating-cart-btn:hover,
.floating-contact-btn:hover {
    transform: scale(1.1);
}

.btn-phone:hover {
    background: #1d4ed8;
}

.btn-whatsapp:hover {
    background: #059669;
}

.floating-cart-btn i,
.floating-contact-btn i {
    font-size: 1.5rem;
}

.floating-cart-btn .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    border: 2px solid var(--color-dark-bg);
    min-width: 20px;
    text-align: center;
}

@media (max-width: 768px) {

    .floating-cart-btn,
    .floating-contact-btn {
        width: 3.5rem;
        height: 3.5rem;
        right: 1.5rem;
    }
}

/* Barre de réassurance UX - Toujours centrée ou alignée selon le contexte */
.reassurance-bar {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    flex: 1;
}

.reassurance-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.reassurance-item i {
    color: var(--color-gold);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

@media (max-width: 1200px) {
    .reassurance-bar {
        gap: var(--spacing-md);
    }

    .reassurance-item span {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .reassurance-bar {
        flex-direction: column;
        align-items: flex-start;
        margin: 0 auto;
        gap: var(--spacing-sm);
    }

    .reassurance-item {
        font-size: 0.8rem;
    }
}

.admin-link {
    color: white;
    text-decoration: none;
    font-size: var(--font-size-sm);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.admin-link:hover {
    opacity: 1;
}

/* ===================================
   BOUTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 50%, #0d3d7a 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--rounded-lg);
    font-weight: 700;
    font-size: var(--font-size-sm);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.9rem 1.8rem;
    box-shadow:
        0 4px 0 #0d3d7a,
        0 6px 15px rgba(26, 115, 232, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2185ff 0%, #1a73e8 50%, #1557b0 100%);
    box-shadow:
        0 6px 0 #0d3d7a,
        0 10px 25px rgba(26, 115, 232, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #0d3d7a,
        0 3px 10px rgba(26, 115, 232, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    border-radius: var(--rounded-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-text);
    border-radius: var(--rounded-full);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-danger {
    background-color: var(--color-danger);
    color: white;
    font-size: var(--font-size-sm);
    padding: 0.5rem 1rem;
    border-radius: var(--rounded-full);
}

.btn-danger:hover {
    background-color: #c53030;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

/* ===================================
   FORMULAIRE
   =================================== */
.import-section {
    background: var(--color-bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--rounded-2xl);
    margin-bottom: var(--spacing-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.import-section h2 {
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.product-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-weight: 600;
    color: var(--color-text);
    font-size: var(--font-size-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.85rem;
    background: #1a1a1a;
    border: 1px solid var(--glass-border);
    border-radius: var(--rounded-sm);
    color: white;
    font-family: var(--font-family);
    font-weight: 400;
    transition: var(--transition-base);
}

/* Style spécifique pour les options du select */
.form-group select option {
    background: #1a1a1a;
    color: white;
    padding: 0.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 215, 0, 0.05);
}

.form-group small {
    color: var(--color-text-light);
    font-size: 0.8rem;
}

.image-input-row {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.image-input-row input {
    flex: 1;
}

.btn-remove-image {
    background: var(--color-danger);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.btn-remove-image:hover {
    opacity: 0.8;
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.form-actions .btn {
    flex: 1;
}

/* Preview des prix */
.price-preview {
    display: flex;
    justify-content: space-around;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--glass-bg);
    border-radius: var(--rounded-sm);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.preview-item {
    text-align: center;
}

.preview-item span {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

.preview-item strong {
    font-size: var(--font-size-xl);
    color: var(--color-text);
}

.preview-item.highlight strong {
    color: var(--color-secondary);
}

/* ===================================
   SECTION PRODUITS
   =================================== */
.products-section {
    margin-bottom: var(--spacing-xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    color: var(--color-primary);
}

/* Grille de produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Carte produit - Style métallique joaillerie */
.product-card {
    background: linear-gradient(145deg, #1f1f1f 0%, #141414 50%, #0a0a0a 100%);
    border: 2px solid #3a3a3a;
    border-radius: var(--rounded-xl);
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(212, 175, 55, 0.25);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    /* Plus grand pour le luxe */
    background: #000;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: var(--transition-base);
}

.product-card:hover .product-image {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.image-count {
    position: absolute;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.image-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 var(--spacing-xs);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-image-container:hover .image-nav {
    opacity: 1;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.nav-btn:hover {
    background: white;
}

.product-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.product-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Limite à 2 lignes sur la grille */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em;
    /* Force une hauteur constante pour l'alignement */
}

/* ===================================
   MODALE PRODUIT PREMIUM
   =================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    /* Augmenté de 2000 à 5000 pour passer au-dessus du header */
    display: none;
    /* Masqué par défaut */
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-container {
    position: relative;
    background: var(--gradient-card);
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    margin-top: 0;
    /* Pas de margin sur desktop */
    border-radius: var(--rounded-2xl);
    border: 1px solid var(--color-gold);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.15);
    overflow: hidden;
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    /* Augmenté de 16px à 20px pour éviter le border-radius */
    right: 20px;
    /* Augmenté de 16px à 20px pour éviter le border-radius */
    background: rgba(0, 0, 0, 0.7);
    /* Fond sombre pour contraste total */
    border: 1px solid rgba(255, 215, 0, 0.3);
    /* Bordure or subtile */
    color: var(--color-gold);
    /* Croix en Or Edelix */
    font-size: 1.8rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    /* Priorité maximale */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.modal-close:hover {
    background: var(--color-gold);
    color: #000;
    transform: rotate(90deg) scale(1.1);
    border-color: var(--color-gold);
}

.modal-content {
    display: flex;
    height: 100%;
    max-height: 90vh;
}

.modal-left {
    flex: 1.2;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-right {
    flex: 1;
    padding: var(--spacing-xl);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.modal-gallery {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-gallery img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-nav {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.modal-nav-btn {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-nav-btn:hover {
    background: var(--color-gold);
    color: #000;
}

.modal-right h2 {
    font-size: var(--font-size-2xl);
    color: var(--color-gold);
    line-height: 1.2;
}

/* Variantes dans la modale */
.modal-variants-section {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--rounded-md);
}

.variants-label {
    font-size: var(--font-size-sm);
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.variants-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.variant-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: var(--rounded-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    transition: all 0.3s;
}

.variant-btn:hover {
    border-color: var(--color-gold);
}

.variant-btn.selected {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Bouton de panier spécifique à la modale - Style Edelix Or */
.modal-actions .btn-primary {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--gradient-gold-3d);
    color: #000;
    border: none;
    border-radius: var(--rounded-md);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-actions .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
    filter: brightness(1.1);
}

.modal-actions .btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.hidden {
    display: none !important;
}


.modal-description {
    color: var(--color-silver);
    line-height: 1.8;
    font-size: var(--font-size-base);
    white-space: pre-wrap;
}

.modal-actions {
    margin-top: auto;
    padding-top: var(--spacing-md);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
    }

    .modal-left {
        flex: none;
        height: 300px;
    }

    .modal-right {
        padding: var(--spacing-lg);
    }

    .modal-right h2 {
        font-size: var(--font-size-xl);
    }
}

.product-price {
    font-size: var(--font-size-xl);
    font-weight: 200;
    color: var(--color-gold);
    letter-spacing: 2px;
    margin-bottom: var(--spacing-md);
    border-left: 2px solid var(--color-gold);
    padding-left: var(--spacing-sm);
}

.product-original-price {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-bottom: var(--spacing-md);
}

.product-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.product-actions .btn {
    flex: 1;
}

/* État vide */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-text-light);
}

.empty-state p:first-child {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.empty-state.hidden,
.products-grid.hidden {
    display: none;
}

/* ===================================
   FOOTER
   =================================== */
/* Barre de réassurance UX - Footer */
.reassurance-bar-footer {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.reassurance-bar-footer .reassurance-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-off-white);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .reassurance-bar-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
        justify-items: start;
        padding: 0 var(--spacing-md);
    }

    .reassurance-bar-footer .reassurance-item {
        font-size: 0.8rem;
        gap: 8px;
    }
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: var(--spacing-lg) 0;
    width: 100%;
}

.shop-footer {
    text-align: center;
    padding-top: var(--spacing-xl);
    color: #ffffff;
    border-top: 1px solid var(--glass-border);
    margin-top: var(--spacing-xl);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: none;
    opacity: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.footer-link {
    color: var(--color-gold);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 1;
    transition: var(--transition-base);
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.footer-separator {
    color: #ffffff;
    opacity: 0.5;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-sm);
    }

    .admin-header {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .admin-header h1 {
        font-size: var(--font-size-xl);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .price-preview {
        flex-direction: column;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: stretch;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.3s ease;
}

/* ===================================
   UTILITAIRES
   =================================== */
.hidden {
    display: none !important;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

/* ===================================
   BADGE PANIER
   =================================== */
.header-actions {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.cart-link {
    color: white;
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.cart-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.cart-badge {
    background-color: var(--color-danger);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    min-width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   PAGE PANIER
   =================================== */
.cart-section {
    margin-bottom: var(--spacing-xl);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.cart-item {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: var(--spacing-md);
    align-items: center;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--color-border);
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-primary);
    transition: all var(--transition-fast);
}

.qty-btn:hover {
    background: var(--color-bg-light);
    border-color: var(--color-primary);
}

.qty-input {
    width: 3rem;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
}

.cart-item-subtotal {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-secondary);
    min-width: 120px;
    text-align: right;
}

/* Récapitulatif */
.cart-summary {
    background: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-lg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.summary-row.total-row {
    border-top: 2px solid var(--color-border);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-md);
    font-size: var(--font-size-xl);
}

.summary-row strong {
    color: var(--color-secondary);
}

/* Formulaire de commande */
.checkout-section {
    background: var(--color-bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--rounded-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkout-section h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.checkout-form textarea {
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    resize: vertical;
    transition: border-color var(--transition-fast);
}

.checkout-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.checkout-actions {
    margin-top: var(--spacing-md);
}

.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

/* ===================================
   PAGE CONFIRMATION
   =================================== */
.confirmation-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--color-bg-secondary);
    border-radius: var(--rounded-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: var(--color-success);
    color: white;
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.confirmation-container h1 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.confirmation-message {
    color: var(--color-text);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.order-info {
    background: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.order-info h2 {
    color: var(--color-primary);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.info-row:last-child {
    border-bottom: none;
}

.order-total {
    color: var(--color-secondary);
    font-size: var(--font-size-xl);
}

.order-summary {
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.order-summary h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm);
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
}

.confirmation-actions {
    margin-bottom: var(--spacing-lg);
}

.confirmation-note {
    background: var(--color-bg-light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: left;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.confirmation-note strong {
    color: var(--color-text);
    display: block;
    margin-bottom: var(--spacing-xs);
}

/* ===================================
   RESPONSIVE PANIER & CONFIRMATION
   =================================== */
@media (max-width: 768px) {
    .header-actions {
        position: static;
        justify-content: center;
        margin-top: var(--spacing-md);
    }

    /* Correction du titre géant sur mobile */
    .shop-header {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .shop-header h1 {
        font-size: 1.8rem;
        letter-spacing: 3px;
        line-height: 1.2;
    }

    .shop-header h1::after {
        width: 80%;
    }

    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-sm);
        background: rgba(255, 255, 255, 0.05);
        /* Fond subtil sur mobile */
    }

    .cart-item-image {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .cart-item-info {
        margin-bottom: var(--spacing-xs);
    }

    .cart-item-quantity {
        justify-content: center;
    }

    .cart-item-subtotal {
        text-align: center;
        min-width: auto;
        font-size: 1.4rem;
        margin-top: var(--spacing-xs);
        color: var(--color-gold);
    }

    .summary-row {
        font-size: var(--font-size-sm);
    }

    .checkout-section {
        padding: var(--spacing-md);
    }

    .confirmation-container {
        padding: var(--spacing-md);
    }
}

/* ===================================
   GESTION DES CATÉGORIES
   =================================== */
.categories-section {
    background: var(--color-bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--rounded-2xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.categories-section h2 {
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.category-manager {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.add-category-form {
    display: flex;
    gap: var(--spacing-sm);
}

.add-category-form input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
}

.categories-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.category-item {
    background: var(--glass-bg);
    padding: 0.4rem 1rem;
    border-radius: var(--rounded-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--glass-border);
    color: var(--color-gold);
    font-weight: 200;
    letter-spacing: 1px;
}

.btn-remove-category {
    background: none;
    border: none;
    color: var(--color-danger);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

/* ===================================
   FILTRES BOUTIQUE
   =================================== */
.filters-section {
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    /* Empêche le débordement horizontal du conteneur parent */
}

.category-filters {
    display: flex;
    flex-wrap: nowrap;
    /* Force sur une seule ligne */
    gap: var(--spacing-sm);
    justify-content: flex-start;
    overflow-x: auto;
    /* Active le scroll horizontal */
    padding: var(--spacing-xs) var(--spacing-sm);
    scrollbar-width: none;
    /* Masque la scrollbar (Firefox) */
    -ms-overflow-style: none;
    /* Masque la scrollbar (IE/Edge) */
    -webkit-overflow-scrolling: touch;
    /* Scroll fluide sur iOS */
}

/* Masque la scrollbar (Chrome/Safari) */
.category-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--color-bg-secondary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    transition: all var(--transition-base);
    white-space: nowrap;
    /* Empêche le texte de revenir à la ligne */
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.filter-btn.active {
    background: var(--gradient-gold-3d);
    border-color: var(--color-gold);
    color: #000000;
    box-shadow: var(--shadow-gold);
}

/* Ajustement pour grand écran : centrer si peu de catégories */
@media (min-width: 769px) {
    .category-filters {
        justify-content: center;
        flex-wrap: wrap;
        /* Revient au wrap sur desktop si besoin */
    }
}

/* ===================================
   RESPONSIVE MODAL (MOBILE)
   =================================== */
@media (max-width: 768px) {
    .modal-container {
        max-height: 85vh;
        /* Réduit de 90vh à 85vh pour laisser de l'espace */
        margin-top: 60px;
        /* Ajoute un espace en haut pour éviter le header */
    }

    .modal-content {
        max-height: 85vh;
    }

    .modal-close {
        top: 24px;
        /* Augmenté pour être bien visible */
        right: 24px;
        width: 40px;
        /* Légèrement plus grand sur mobile */
        height: 40px;
        font-size: 2rem;
    }
}

/* ===================================
   ETAT VIDE PREMIUM
   =================================== */
.empty-state-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    min-height: 400px;
    background: rgba(20, 20, 20, 0.4);
    border-radius: var(--rounded-2xl);
    border: 1px solid rgba(255, 215, 0, 0.1);
    margin: var(--spacing-xl) 0;
    backdrop-filter: blur(10px);
}

.empty-state-icon {
    font-size: 6rem;
    color: var(--color-gold);
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.empty-state-premium h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 800;
    /* Effet métallique doré */
    background: linear-gradient(180deg, #ffffff 0%, #ffd700 45%, #d4af37 55%, #b8860b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-state-premium p {
    color: var(--color-silver);
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    letter-spacing: 1px;
}

.btn-premium-gold {
    background: var(--gradient-gold-3d);
    color: #000 !important;
    padding: 1.2rem 3rem;
    border-radius: var(--rounded-lg);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-block;
    box-shadow:
        0 4px 0 #8b6914,
        0 15px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-premium-gold:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow:
        0 8px 0 #8b6914,
        0 20px 40px rgba(212, 175, 55, 0.4);
    filter: brightness(1.1);
}

.btn-premium-gold:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #8b6914,
        0 8px 15px rgba(0, 0, 0, 0.4);
}

/* ===================================
   NOTIFICATIONS TOAST PREMIUM
   =================================== */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-notification {
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(12px);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--rounded-lg);
    border-left: 4px solid var(--color-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    opacity: 0;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.error {
    border-left-color: var(--color-danger);
}

.toast-notification i {
    font-size: 1.2rem;
    color: var(--color-gold);
}

.toast-notification.error i {
    color: var(--color-danger);
}

@media (max-width: 600px) {
    #toast-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }

    .toast-notification {
        min-width: auto;
    }
}