/* ===== ARMANI DESIGN SYSTEM ===== */

/* CSS Custom Properties - Armani Style */
:root {
    /* Colors */
    --color-black: #000;
    --color-white: #fff;
    --color-gray-light: #f2f2f2;
    --color-gray-medium: #d9d9d9;
    --color-gray-dark: #999;

    /* Typography */
    --letter-spacing: 0.4px;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Spacing - Fluid Responsive */
    --spacing-mobile: clamp(16px, 4vw, 24px);
    --spacing-tablet: 24px;
    --spacing-desktop: clamp(24px, 3vw, 64px);
    --gap-mobile: clamp(8px, 2vw, 16px);
    --gap-desktop: clamp(16px, 2vw, 24px);

    /* Aspect Ratios - Armani Standard */
    --aspect-pdp-image: 4/5;
    --aspect-editorial: 16/9;
    --aspect-square: 1/1;
    --aspect-wide: 21/9;

    /* Breakpoints */
    --bp-mobile: 375px;
    --bp-tablet: 768px;
    --bp-desktop: 1024px;
    --bp-wide: 1280px;
    --bp-ultra: 1920px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Futura', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-black);
    overflow-x: hidden;
    letter-spacing: var(--letter-spacing);
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 var(--spacing-mobile);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-tablet);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-desktop);
    }
}

/* ===== 12-COLUMN GRID SYSTEM ===== */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap-mobile);
}

@media (min-width: 768px) {
    .grid-12 {
        gap: var(--gap-desktop);
    }
}

.col-span-12 { grid-column: span 12; }
.col-span-10 { grid-column: span 10; }
.col-span-8 { grid-column: span 8; }
.col-span-6 { grid-column: span 6; }
.col-span-4 { grid-column: span 4; }
.col-span-3 { grid-column: span 3; }

.col-start-2 { grid-column-start: 2; }
.col-start-3 { grid-column-start: 3; }
.col-start-4 { grid-column-start: 4; }

/* ===== ASPECT RATIO UTILITIES (ARMANI STANDARD) ===== */
.aspect-pdp-image {
    aspect-ratio: var(--aspect-pdp-image);
}

.aspect-editorial {
    aspect-ratio: var(--aspect-editorial);
}

.aspect-square {
    aspect-ratio: var(--aspect-square);
}

.aspect-wide {
    aspect-ratio: var(--aspect-wide);
}

/* ===== TYPOGRAPHY ARMANI ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-light);
    letter-spacing: var(--letter-spacing);
    line-height: 1.2;
    color: var(--color-white);
}

h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: var(--font-weight-light);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: var(--font-weight-light);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: var(--font-weight-regular);
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-light);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: var(--letter-spacing);
    text-transform: uppercase;
}

.section-subtitle {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: var(--font-weight-light);
    text-align: center;
    color: var(--color-gray-dark);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ARMANI HEADER ===== */
.armani-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Marketing Strip */
.marketing-strip {
    background-color: var(--color-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
}

.marketing-text {
    font-size: 0.625rem;
    font-weight: var(--font-weight-regular);
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
    color: var(--color-white);
}

/* Logo Header */
.logo-header {
    padding: 24px 0;
    background-color: var(--color-black);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.armani-logo {
    height: clamp(20px, 3vw, 24px);
    width: auto;
    color: var(--color-white);
    transition: transform 0.3s ease;
}

.armani-logo:hover {
    transform: scale(1.02);
}

/* Main Navigation Bar */
.armani-navbar {
    background-color: var(--color-black);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.armani-nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
    list-style: none;
    padding: 16px 0;
    margin: 0;
}

.armani-nav-link {
    font-size: 0.75rem;
    font-weight: var(--font-weight-regular);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s ease;
    position: relative;
}

.armani-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-white);
    transition: width 0.3s ease;
}

.armani-nav-link:hover {
    opacity: 0.7;
}

.armani-nav-link:hover::after {
    width: 100%;
}

/* Cart Button Armani */
.armani-cart-button {
    background: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-regular);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.armani-cart-button:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.armani-cart-count {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.625rem;
    font-weight: var(--font-weight-bold);
    min-width: 20px;
    text-align: center;
}

/* Monogram Strip */
.monogram-strip {
    background-color: var(--color-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
}

.monogram-content {
    text-align: center;
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 4px;
    color: var(--color-white);
    text-transform: uppercase;
}

/* ===== BUTTONS ARMANI STYLE ===== */
.cta-button {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    padding: 12px 40px;
    font-family: 'Futura', sans-serif;
    font-size: 0.75rem;
    font-weight: var(--font-weight-regular);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 180px;
    height: 48px;
}

.cta-button:hover {
    background: var(--color-white);
    color: var(--color-black);
    transform: translateY(-1px);
}

.cta-button.full-width {
    width: 100%;
}

.cta-button.primary-filled {
    background: var(--color-white);
    color: var(--color-black);
}

.cta-button.primary-filled:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.action-btn {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    font-family: 'Futura', sans-serif;
    font-size: 0.7rem;
    font-weight: var(--font-weight-regular);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.action-btn:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
}

.action-btn.secondary {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-gray-medium);
}

.action-btn.secondary:hover {
    border-color: var(--color-white);
    color: var(--color-white);
}

.filter-btn {
    background: transparent;
    color: var(--color-gray-dark);
    border: none;
    padding: 12px 0;
    margin: 0 clamp(12px, 2vw, 24px);
    font-family: 'Futura', sans-serif;
    font-size: 0.75rem;
    font-weight: var(--font-weight-regular);
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-white);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--color-white);
}

.filter-btn.active::after {
    transform: scaleX(1);
}

/* ===== HERO SECTION ARMANI ===== */
.hero {
    background: var(--color-black);
    padding: clamp(80px, 15vw, 160px) 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: var(--font-weight-light);
    letter-spacing: var(--letter-spacing);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--color-white);
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    color: var(--color-gray-medium);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: var(--font-weight-light);
    letter-spacing: var(--letter-spacing);
}

/* ===== COLLECTION SECTION ARMANI ===== */
.collection {
    background: var(--color-black);
    padding: clamp(60px, 10vw, 120px) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 8vw, 80px);
}

.filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2rem;
}

/* ===== PRODUCTS GRID ARMANI ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap-desktop);
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: var(--gap-mobile);
    }
}

.product-card {
    grid-column: span 3; /* 4 produits par ligne (12/3 = 4) */
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

@media (max-width: 768px) {
    .product-card {
        grid-column: span 6; /* 2 produits par ligne sur mobile */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .product-card {
        grid-column: span 4; /* 3 produits par ligne sur tablette */
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .product-card {
        grid-column: span 4; /* 3 produits par ligne sur petit desktop */
    }
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: var(--aspect-pdp-image); /* Armani standard 4:5 ratio */
    overflow: hidden;
    background: var(--color-gray-light);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-btn {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    padding: 10px 20px;
    font-family: 'Futura', sans-serif;
    font-size: 0.7rem;
    font-weight: var(--font-weight-regular);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.overlay-btn:hover {
    background: var(--color-white);
    color: var(--color-black);
    transform: translateY(-1px);
}

.product-info {
    padding: 16px 0;
    text-align: left;
}

.product-name {
    font-size: 0.875rem;
    font-weight: var(--font-weight-regular);
    margin-bottom: 8px;
    letter-spacing: var(--letter-spacing);
    color: var(--color-white);
    text-transform: uppercase;
}

.product-price {
    font-size: 0.875rem;
    font-weight: var(--font-weight-light);
    color: var(--color-gray-medium);
    letter-spacing: var(--letter-spacing);
}

/* Product Selection State */
.product-card.selected {
    border-color: var(--color-white);
}

.product-card.selected .product-overlay {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.filters {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===== DOUBLONS SUPPRIMÉS =====
   Ces styles .products-grid et .product-card sont déjà définis plus haut (lignes 477-517)
   Cette section causait des conflits avec le système de grille 12 colonnes Armani
   ============================= */

/* Les styles .product-overlay, .overlay-btn, .product-info, .product-name et .product-price
   sont déjà définis plus haut dans le CSS Armani (lignes 541-574) */

/* ===== TRY ON SECTION ARMANI ===== */
.try-on-section {
    background: var(--color-black);
    padding: clamp(60px, 10vw, 120px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.try-on-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: clamp(24px, 4vw, 48px);
    max-width: 1440px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .try-on-container {
        grid-template-columns: 1fr;
    }
}

/* Photo Card Armani */
.photo-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 32px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.photo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.photo-header h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-light);
    margin-bottom: 0.5rem;
    color: var(--color-white);
    letter-spacing: var(--letter-spacing);
    text-transform: uppercase;
}

.photo-header p {
    color: var(--color-gray-medium);
    font-size: 0.875rem;
    font-weight: var(--font-weight-light);
    letter-spacing: var(--letter-spacing);
}

.upload-zone {
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 0;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.upload-content p {
    font-weight: var(--font-weight-regular);
    color: var(--color-white);
    margin-bottom: 0.5rem;
    letter-spacing: var(--letter-spacing);
}

.upload-content small {
    color: var(--color-gray-dark);
    font-size: 0.75rem;
    letter-spacing: var(--letter-spacing);
}

.photo-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.photo-btn {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    padding: 12px 16px;
    border-radius: 0;
    font-family: 'Futura', sans-serif;
    font-size: 0.7rem;
    font-weight: var(--font-weight-regular);
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.photo-btn:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
}

.photo-preview {
    position: relative;
    text-align: center;
}

.user-image {
    width: 100%;
    aspect-ratio: var(--aspect-pdp-image); /* Armani 4:5 ratio */
    max-height: 400px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 1rem;
}

.photo-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
}

.change-btn {
    background: var(--color-white);
    border: none;
    color: var(--color-black);
    padding: 8px 16px;
    border-radius: 0;
    font-family: 'Futura', sans-serif;
    font-size: 0.7rem;
    font-weight: var(--font-weight-regular);
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-btn:hover {
    background: var(--color-gray-light);
}

/* Result Card Armani */
.result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    overflow: hidden;
}

.result-display {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.empty-state {
    text-align: center;
    color: #666;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #151515;
}

.empty-state p {
    font-size: 0.95rem;
    color: #666;
}

.try-controls {
    padding: 24px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.selected-product {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.selected-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.product-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #151515;
}

.product-details p {
    font-size: 0.9rem;
    color: #666;
}

.try-btn {
    background: #151515;
    color: #FFFFFF;
    border: none;
    padding: 16px 32px;
    font-family: 'Futura', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.try-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.try-result {
    text-align: center;
    padding: 40px;
}

.try-result img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.result-info {
    background: #f8f8f8;
    padding: 16px;
    border-radius: 8px;
    margin-top: 1rem;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ===== MODALS ===== */
/* ===== MODALS ARMANI ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--color-black);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 1rem;
    font-weight: var(--font-weight-regular);
    letter-spacing: 1.2px;
    color: var(--color-white);
    text-transform: uppercase;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 8px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 16px;
}

/* Camera Modal */
.camera-modal {
    max-width: 800px;
}

.camera-container {
    text-align: center;
    margin-bottom: 2rem;
}

#camera-video {
    width: 100%;
    max-width: 640px;
    height: auto;
    border-radius: 8px;
    background: #000;
}

.camera-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 2rem;
}

.camera-error {
    text-align: center;
    color: #dc3545;
    background: #f8d7da;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

/* Cart Items Armani */
.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0;
    background: var(--color-gray-light);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.875rem;
    font-weight: var(--font-weight-regular);
    margin-bottom: 6px;
    color: var(--color-white);
    letter-spacing: var(--letter-spacing);
    text-transform: uppercase;
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--color-gray-medium);
    letter-spacing: var(--letter-spacing);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #e0e0e0;
}

.quantity {
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

.remove-btn {
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.remove-btn:hover {
    background: rgba(220, 53, 69, 0.1);
}

.cart-summary {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.empty-cart {
    text-align: center;
    color: #666;
    padding: 3rem 0;
}

/* ===== LOADING ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #151515;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1rem;
    font-weight: 500;
    color: #151515;
}

/* ===== UTILITIES ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* ===== RESPONSIVE DESIGN - MOBILE OPTIMIZED ===== */

/* Tablet - Large mobile (jusqu'à 1200px) */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .try-on-container {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 600px;
        margin: 0 auto;
    }

    .photo-card, .selection-card {
        width: 100%;
    }
}

/* Mobile standard (jusqu'à 768px) */
@media (max-width: 768px) {
    /* Layout mobile en plein écran */
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        padding-bottom: 80px; /* Espace pour la tab bar */
    }

    .container {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }

    /* Header mobile simplifié */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #151515;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        padding: env(safe-area-inset-top) 0 0;
    }

    .header-content {
        padding: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .brand-name {
        font-size: 1.4rem;
        font-weight: 600;
    }

    /* Masquer la navigation desktop */
    .nav-list {
        display: none;
    }

    /* Panier header simplifié */
    .cart-button {
        background: #FFFFFF;
        color: #151515;
        border-radius: 20px;
        padding: 8px 16px;
        font-size: 0.8rem;
        font-weight: 600;
        border: none;
        position: relative;
    }

    .cart-count {
        background: #151515;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        position: absolute;
        top: -8px;
        right: -8px;
    }

    /* Tab bar mobile en bas */
    /* ===== MOBILE INTERFACE ARMANI ===== */
    .mobile-tab-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--color-black);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 1000;
    }

    .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 4px;
        border-radius: 0;
        transition: all 0.2s ease;
        cursor: pointer;
        flex: 1;
        min-width: 60px;
        text-align: center;
        color: var(--color-gray-dark);
    }

    .tab-item.active {
        background: transparent;
        color: var(--color-white);
        border-top: 2px solid var(--color-white);
    }

    .tab-item.active .tab-icon {
        color: var(--color-white);
    }

    .tab-icon {
        font-size: 1.4rem;
        margin-bottom: 4px;
        line-height: 1;
    }

    .tab-label {
        font-size: 0.6rem;
        font-weight: var(--font-weight-regular);
        line-height: 1;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Sections mobile en plein écran */
    .mobile-section {
        display: none;
        min-height: calc(100vh - 140px);
        padding-top: 80px;
        background: var(--color-black);
    }

    .mobile-section.active {
        display: block;
    }

    /* Masquer les sections desktop sur mobile */
    .hero, .collection, .try-on-section {
        display: none;
    }

    /* Section produits mobile Armani */
    .mobile-products {
        padding: 20px 16px;
    }

    .mobile-section-title {
        font-size: 1.25rem;
        font-weight: var(--font-weight-light);
        margin-bottom: 24px;
        text-align: center;
        color: var(--color-white);
        text-transform: uppercase;
        letter-spacing: var(--letter-spacing);
    }

    /* Grille produits mobile Armani */
    .mobile-products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0;
    }

    .mobile-product-card {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        overflow: hidden;
        transition: transform 0.2s ease;
        position: relative;
    }

    .mobile-product-card:active {
        transform: scale(0.98);
        border-color: var(--color-white);
    }

    .mobile-product-image {
        width: 100%;
        aspect-ratio: var(--aspect-pdp-image); /* Armani 4:5 ratio */
        object-fit: cover;
        background: var(--color-gray-light);
    }

    .mobile-product-info {
        padding: 12px;
        text-align: left;
    }

    .mobile-product-name {
        font-size: 0.75rem;
        font-weight: var(--font-weight-regular);
        margin-bottom: 6px;
        color: var(--color-white);
        text-transform: uppercase;
        letter-spacing: var(--letter-spacing);
    }

    .mobile-product-price {
        font-size: 0.75rem;
        font-weight: var(--font-weight-light);
        color: var(--color-gray-medium);
        margin-bottom: 10px;
        letter-spacing: var(--letter-spacing);
    }

    .mobile-product-actions {
        display: flex;
        gap: 6px;
    }

    .mobile-action-btn {
        flex: 1;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: transparent;
        color: var(--color-white);
        border-radius: 0;
        font-size: 0.6rem;
        font-weight: var(--font-weight-regular);
        letter-spacing: 0.5px;
        text-transform: uppercase;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-try-btn {
        background: transparent;
        border-color: var(--color-white);
    }

    .mobile-cart-btn {
        background: transparent;
        border-color: rgba(255, 255, 255, 0.3);
    }

    .mobile-try-btn:active {
        background: var(--color-white);
        color: var(--color-black);
    }

    .mobile-cart-btn:active {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Section essayage mobile Armani */
    .mobile-tryit {
        padding: 20px 16px;
        text-align: center;
    }

    .mobile-camera-area {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0;
        padding: 40px 20px;
        margin-bottom: 20px;
        border: 1px dashed rgba(255, 255, 255, 0.3);
        position: relative;
        min-height: 250px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .mobile-camera-preview {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 0;
    }

    .mobile-upload-text {
        font-size: 0.875rem;
        color: var(--color-gray-medium);
        margin-bottom: 16px;
        letter-spacing: var(--letter-spacing);
    }

    .mobile-camera-btn {
        background: transparent;
        border: 1px solid var(--color-white);
        color: var(--color-white);
        border: none;
        padding: 12px 24px;
        border-radius: 25px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
    }

    .mobile-selected-product {
        background: white;
        border-radius: 20px;
        padding: 16px;
        margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-selected-product img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 12px;
    }

    .mobile-selected-info {
        flex: 1;
        text-align: left;
    }

    .mobile-selected-name {
        font-size: 0.9rem;
        font-weight: 600;
        color: #151515;
        margin-bottom: 4px;
    }

    .mobile-selected-price {
        font-size: 0.8rem;
        color: #666;
    }

    .mobile-try-button {
        background: #151515;
        color: white;
        border: none;
        padding: 16px 32px;
        border-radius: 30px;
        font-size: 1rem;
        font-weight: 600;
        width: 100%;
        cursor: pointer;
        margin: 20px 0;
    }

    .mobile-try-button:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

    /* Section panier mobile */
    .mobile-cart {
        padding: 20px 16px;
    }

    .mobile-cart-empty {
        text-align: center;
        padding: 60px 20px;
        color: #666;
    }

    .mobile-cart-item {
        background: white;
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-cart-item img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 10px;
    }

    .mobile-cart-item-info {
        flex: 1;
        text-align: left;
    }

    .mobile-cart-item-name {
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .mobile-cart-item-price {
        font-size: 0.75rem;
        color: #666;
    }

    .mobile-cart-controls {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-qty-btn {
        width: 32px;
        height: 32px;
        border: none;
        background: #f0f0f0;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        cursor: pointer;
    }

    .mobile-qty-btn:active {
        background: #e0e0e0;
    }

    .mobile-qty {
        font-weight: 600;
        min-width: 24px;
        text-align: center;
    }

    .mobile-cart-total {
        background: white;
        border-radius: 16px;
        padding: 20px;
        margin: 20px 0;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .mobile-total-amount {
        font-size: 1.4rem;
        font-weight: 700;
        color: #151515;
        margin-bottom: 16px;
    }

    .mobile-checkout-btn {
        background: #151515;
        color: white;
        border: none;
        padding: 16px 32px;
        border-radius: 30px;
        font-size: 1rem;
        font-weight: 600;
        width: 100%;
        cursor: pointer;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 32px;
        opacity: 0.8;
    }

    /* Collection mobile */
    .collection {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 32px;
    }

    /* Filtres mobile avec scroll horizontal */
    .filters {
        gap: 12px;
        margin-bottom: 32px;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    .filter-button {
        padding: 10px 20px;
        font-size: 0.7rem;
        white-space: nowrap;
        min-width: fit-content;
    }

    /* DOUBLONS SUPPRIMÉS - ligne 1739-1759
       .products-grid, .product-card, .product-image, .product-overlay, .product-info, .product-name
       sont déjà définis plus haut avec le système Armani */

    .product-price {
        font-size: 0.75rem;
        margin-bottom: 12px;
        font-weight: 600;
    }

    .product-actions {
        gap: 8px;
    }

    .action-btn {
        padding: 6px 12px;
        font-size: 0.6rem;
        border-radius: 15px;
    }

    /* Section essayage mobile */
    .try-on-section {
        padding: 50px 0;
    }

    .try-on-container {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 100%;
    }

    .photo-card, .selection-card {
        padding: 20px;
        border-radius: 25px;
    }

    /* Upload zone mobile */
    .upload-area {
        padding: 40px 20px;
        border-radius: 20px;
        min-height: 300px;
    }

    .upload-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
    }

    .upload-text {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .upload-subtext {
        font-size: 0.7rem;
    }

    .camera-btn {
        padding: 12px 24px;
        font-size: 0.8rem;
        border-radius: 25px;
    }

    /* Grille sélection mobile */
    .selection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .selection-item {
        padding: 8px;
        border-radius: 15px;
    }

    .selection-item img {
        height: 120px;
        border-radius: 10px;
    }

    .selection-item h4 {
        font-size: 0.7rem;
        margin: 8px 0 4px;
    }

    .selection-item p {
        font-size: 0.6rem;
    }

    /* Bouton essayer mobile */
    .try-button {
        padding: 16px 32px;
        font-size: 0.9rem;
        border-radius: 30px;
        width: 100%;
        max-width: 300px;
        margin: 24px auto 0;
        display: block;
    }

    /* Résultat mobile */
    .result-display {
        border-radius: 20px;
        overflow: hidden;
    }

    .try-result img {
        border-radius: 20px 20px 0 0;
    }

    .result-actions {
        gap: 12px;
        padding: 16px;
        flex-direction: column;
    }

    .result-actions button {
        width: 100%;
        padding: 12px;
        border-radius: 25px;
    }

    /* Modal panier mobile */
    .cart-modal-content {
        width: 95vw;
        height: 90vh;
        margin: 5vh auto;
        padding: 20px;
        border-radius: 25px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .cart-header {
        margin-bottom: 20px;
        position: sticky;
        top: 0;
        background: #FFFFFF;
        padding-bottom: 10px;
        z-index: 10;
    }

    .cart-title {
        font-size: 1.4rem;
    }

    .cart-item {
        padding: 16px;
        border-radius: 15px;
        margin-bottom: 12px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
        border-radius: 10px;
    }

    .cart-item-info h4 {
        font-size: 0.9rem;
    }

    .cart-item-info p {
        font-size: 0.8rem;
    }

    .cart-item-controls {
        gap: 8px;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .cart-total {
        position: sticky;
        bottom: 0;
        background: #FFFFFF;
        padding: 20px 0;
        border-top: 1px solid #f0f0f0;
        margin-top: 20px;
    }
}

/* Petits mobiles (jusqu'à 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    /* Grille produits - 1 seule colonne pour petits écrans */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-image {
        height: 250px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 0.8rem;
    }

    /* Upload area plus compacte */
    .upload-area {
        padding: 30px 16px;
        min-height: 250px;
    }

    /* Sélection en une colonne */
    .selection-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .selection-item {
        display: flex;
        align-items: center;
        padding: 12px;
        text-align: left;
    }

    .selection-item img {
        width: 80px;
        height: 80px;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .selection-info {
        flex: 1;
    }

    .selection-item h4 {
        font-size: 0.8rem;
        margin: 0 0 4px;
    }

    .selection-item p {
        font-size: 0.7rem;
        margin: 0;
    }

    /* Navigation simplifiée pour très petits écrans */
    .nav-list {
        gap: 8px;
    }

    .nav-link {
        font-size: 0.6rem;
        padding: 6px 8px;
    }

    .cart-button {
        padding: 6px 8px;
        font-size: 0.6rem;
    }
}

/* ===== MOBILE TOUCH OPTIMIZATIONS ===== */

/* Feedback tactile pour tous les éléments interactifs */
@media (hover: none) and (pointer: coarse) {
    .product-card:active,
    .action-btn:active,
    .filter-button:active,
    .cta-button:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }

    /* Améliorer la zone de touch des petits boutons */
    .quantity-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .cart-button,
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Styles pour les gestes de swipe */
/* .product-card position et overflow déjà définis ligne 491 */

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        rgba(0,0,0,0.1) 0%,
        transparent 20%,
        transparent 80%,
        rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card.swiping::before {
    opacity: 1;
}

/* Indicateurs de swipe pour mobile */
@media (max-width: 768px) {
    .product-card::after {
        content: '← Essayer | Panier →';
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 4px 12px;
        border-radius: 15px;
        font-size: 0.6rem;
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        z-index: 2;
    }

    .product-card:active::after {
        bottom: 10px;
        opacity: 1;
    }
}

/* Optimisations pour les filtres défilables */
.filters {
    position: relative;
}

.filters::before,
.filters::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 8px;
    width: 20px;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .filters::before {
        left: 0;
        background: linear-gradient(90deg, white, transparent);
    }

    .filters::after {
        right: 0;
        background: linear-gradient(-90deg, white, transparent);
    }
}

/* Styles pour le lazy loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy:not(.lazy) {
    opacity: 1;
}

/* Améliorer l'accessibilité tactile */
.upload-area {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Feedback visuel pour les éléments touch actifs */
.touch-active {
    transform: scale(0.98);
    opacity: 0.8;
}

/* Animation fluide pour les modals sur mobile */
@media (max-width: 768px) {
    .modal {
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .modal.active {
        animation: slideUpModal 0.3s ease-out;
    }

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

/* PWA-like navbar sticky sur mobile */
@media (max-width: 768px) {
    .header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }

    /* Safe area pour les phones avec encoche */
    .header-content {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* ===== ANIMATIONS MOBILE ===== */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

/* Masquer l'interface mobile sur desktop */
@media (min-width: 769px) {
    .mobile-tab-bar,
    .mobile-section {
        display: none !important;
    }
}

/* Masquer l'interface desktop sur mobile */
@media (max-width: 768px) {
    .hero,
    .collection,
    .try-on-section,
    .cart-modal,
    .camera-modal {
        display: none !important;
    }

    /* Assurer que l'interface mobile est visible */
    .mobile-tab-bar,
    .mobile-section {
        display: block !important;
    }

    .mobile-tab-bar[style*="display: none"] {
        display: flex !important;
    }

    .mobile-section[style*="display: none"].active {
        display: block !important;
    }

    /* Réinitialiser les styles desktop sur mobile */
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        padding-bottom: 80px;
    }
}