/* ============================================
   RESPONSIVE - MENU MOBILE (GLASSMORPHISM)
   ============================================ */

/* Menu mobile overlay */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid rgba(200, 200, 200, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding: var(--spacing-md);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu__link {
    font-size: 18px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(200, 200, 200, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-menu__link:hover,
.mobile-menu__link:active {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Désactiver le scroll quand menu ouvert */
body.menu-open {
    overflow: hidden;
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
}

/* ============================================
   RESPONSIVE - HEADER MOBILE (LOGO CENTRÉ)
   ============================================ */

@media (max-width: 768px) {
    .header__container {
        position: relative;
    }
    
    /* Logo centré absolument */
    .header__logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }
    
    /* Menu burger à gauche */
    .header__burger {
        position: relative;
        z-index: 2;
    }
    
    /* Panier à droite */
    .header__actions {
        position: relative;
        z-index: 2;
        margin-left: auto;
    }
}

/* ============================================
   RESPONSIVE - PAGES PRODUITS MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* Format portrait pour photos produits PAR DÉFAUT */
    .product-gallery__main {
        aspect-ratio: 3 / 4;  /* Format portrait 3:4 */
    }
    
    /* Flèches plus petites */
    .product-gallery__arrow img {
        width: 20px;
        height: 20px;
    }
    
    /* ==========================================
       PAGES PRODUITS - STYLES MOBILE COMMUNS
       ========================================== */
    
    /* Titre et sous-titre CENTRÉS sur mobile */
    .product-page .product-info {
        align-items: center !important;
        text-align: center !important;
        max-width: 100% !important;
    }
    
    .product-page .product-info__title {
        font-size: 1.5rem;
        text-align: center !important;
        width: 100%;
    }
    
    .product-page .product-info__subtitle {
        font-size: 0.9375rem;
        text-align: center !important;
        width: 100%;
    }

}

/* MODAL PAIEMENT - GLASSMORPHISM */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(200, 200, 200, 0.3);
    padding: 40px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #1a1a1a;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* Modal paiement */
.modal-payment-content {
    max-width: 500px;
    padding: 40px;
    text-align: center;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.payment-methods img {
    height: 32px;
    width: auto;
}

.payment-shipping {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 32px;
}

.payment-shipping-icon {
    width: 18px;
    height: 18px;
}

.payment-close-btn {
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 32px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.payment-close-btn:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 28px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}