/**
 * MakeYourProject Shop - Design Moderne 2025
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   VARIABLES CSS - DESIGN SYSTEM
   ============================================ */
:root {
    /* Couleurs principales - Palette moderne */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #a5b4fc;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Couleurs secondaires */
    --secondary: #10b981;
    --secondary-hover: #059669;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    
    /* Tons neutres - Design raffiné */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --black: #000000;
    
    /* États */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Ombres élégantes */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    /* Bordures */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* ============================================
   HEADER - Design Premium
   ============================================ */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    max-width: 1280px;
    margin: 0 auto;
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.header-left { justify-self: start; }
.header-center { justify-self: center; }
.header-right { justify-self: end; display:flex; align-items:center; gap:0.75rem; }

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 48px;
    width: auto;
}

/* Map older classnames used in templates to the nav styles */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--gray-700);
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-menu .active {
    color: var(--primary);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 6px;
    flex-direction: column;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .nav-menu { display: none; }
    .nav-menu.active { display: flex; flex-direction: column; gap: 1rem; }
    .header-actions { display: none; }
    .header-actions.active { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
}

/* Search form */
.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-form input[type="search"] {
    border: 1px solid var(--gray-200);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    min-width: 200px;
}

.search-form button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1.5rem;
}

.account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.account-link svg { 
    color: var(--gray-600); 
    display: block;
}

.cart-dropdown { 
    position: relative; 
    display: inline-flex;
    align-items: center;
}

.cart-toggle { 
    background: transparent; 
    border: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    cursor: pointer;
    padding: 0.5rem;
    color: var(--gray-700);
    font-weight: 600;
    transition: var(--transition);
}

.cart-toggle:hover {
    color: var(--primary);
}

.cart-toggle svg {
    display: block;
}

.cart-label {
    display: inline-block;
}

.cart-panel { 
    position: absolute; 
    right: 0; 
    top: calc(100% + 0.75rem); 
    width: 380px; 
    max-width: calc(100vw - 2rem);
    background: white; 
    border-radius: var(--radius); 
    box-shadow: var(--shadow-md); 
    padding: 1rem; 
    display: none; 
    z-index: 1200; 
}

.cart-panel.open { display: block; }

.cart-panel .cart-panel-actions { 
    display: flex; 
    gap: 0.5rem; 
    justify-content: space-between; 
    margin-top: 1rem; 
}

.cart-badge { 
    background: var(--primary); 
    color: white; 
    border-radius: var(--radius-full); 
    padding: 0.25rem 0.5rem; 
    font-size: 0.75rem; 
    font-weight: 700;
    line-height: 1;
    display: inline-block;
}

.cart-items-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    max-height: 320px; 
    overflow-y: auto;
    overflow-x: hidden;
}

.cart-item { 
    display: flex; 
    gap: 0.75rem; 
    padding: 0.75rem 0; 
    border-bottom: 1px solid var(--gray-100); 
    align-items: flex-start; 
}

.cart-item:last-child { border-bottom: none; }

.cart-item-link {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    text-decoration: none;
}

.cart-item-image { 
    width: 56px; 
    height: 56px; 
    object-fit: cover; 
    border-radius: var(--radius-sm); 
    border: 1px solid var(--gray-200); 
}

.cart-item-image-wrap { 
    width: 56px; 
    height: 56px; 
    flex: 0 0 56px; 
}

.cart-item-meta { 
    flex: 1; 
    min-width: 0; 
    overflow: hidden;
}

.cart-item-title { 
    font-weight: 600; 
    font-size: 0.9rem; 
    color: var(--gray-900); 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    word-break: break-word;
}

.cart-item-qty { 
    font-size: 0.85rem; 
    color: var(--gray-600); 
    margin-top: 0.25rem; 
}

.cart-item-total { 
    font-weight: 700; 
    font-size: 0.9rem;
    color: var(--primary);
    white-space: nowrap; 
    flex-shrink: 0;
}

.cart-panel-empty { 
    text-align: center; 
    padding: 1rem 0; 
}

/* Account dropdown / avatar */
.account-dropdown { 
    position: relative; 
    display: inline-flex;
    align-items: center;
}

.account-toggle { 
    background: transparent; 
    border: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    cursor: pointer; 
    padding: 0.5rem;
    transition: var(--transition);
}

.account-toggle:hover {
    opacity: 0.8;
}

.avatar-initials { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    background: var(--primary); 
    color: #fff; 
    font-weight: 600; 
    font-size: 0.95rem; 
}

.account-name { 
    display: inline-block; 
    font-weight: 600; 
    color: var(--gray-700); 
}

.account-panel { 
    position: absolute; 
    right: 0; 
    top: calc(100% + 0.75rem); 
    min-width: 180px; 
    background: #fff; 
    border-radius: var(--radius); 
    box-shadow: var(--shadow-md); 
    padding: 0.5rem 0; 
    display: none; 
    z-index: 1200; 
}

.account-panel.open { display: block; }

.account-panel .account-link-item { 
    display: block; 
    padding: 0.75rem 1rem; 
    color: var(--gray-700); 
    text-decoration: none;
    transition: var(--transition-fast);
}

.account-panel .account-link-item:hover { 
    background: var(--gray-100);
    color: var(--primary);
}

@media (max-width: 720px) {
    .account-name { display:none; }
}

@media (max-width: 480px) {
    .search-form input[type="search"] { min-width: 120px; }
    .logo img { height: 36px; }
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.cart-badge {
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    position: relative;
    top: -2px;
    box-shadow: var(--shadow-glow);
}

/* ============================================
   BUTTONS - Design System
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   HERO SECTION - Impact visuel
   ============================================ */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PRESENTATION - Home intro
   ============================================ */
.presentation {
    padding: 3.5rem 0;
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

.presentation-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.presentation-content .lead {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.presentation-features {
    display: grid;
    gap: 1rem;
}

.presentation-features .feature {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.presentation-features .feature h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .presentation-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    .hero p {
        font-size: 1.0625rem;
    }
}

/* ============================================
   PRODUCTS GRID - Design moderne
   ============================================ */
.products-section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center; /* center items when row not full */
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    width: 100%;
    max-width: 360px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    background: var(--gray-100);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.product-badge.customizable {
    background: var(--secondary);
}

.product-content {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    font-family: 'Outfit', sans-serif;
}

.product-description {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.product-price {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Outfit', sans-serif;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* ============================================
   CART PAGE - Design épuré
   ============================================ */
.cart-page {
    padding: 3rem 0;
    min-height: 70vh;
    background: linear-gradient(to bottom, var(--gray-50) 0%, var(--white) 50%);
}

.cart-page h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.cart-empty svg {
    margin: 0 auto 2rem;
    color: var(--gray-400);
}

.cart-empty p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
    max-width: 100%;
}

/* Critical: allow grid children to shrink (prevents horizontal overflow / clipped summary) */
.cart-grid > .cart-items,
.cart-grid > .cart-summary {
    min-width: 0;
}

/* DESKTOP: Styles par défaut pour écrans >1250px - cart summary géré par cart-preview-new.css */
@media (min-width: 1251px) {
    .cart-summary {
        /* Styles désormais définis dans cart-preview-new.css */
        /* Laisser ce bloc vide pour éviter les conflits */
    }
}

/* MOBILE: Grid et cart summary en colonne unique pour écrans ≤1250px */
@media (max-width: 1250px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static !important;
        order: -1;
        margin-bottom: 2rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Transformer le tableau en cartes */
    .cart-table thead {
        display: none;
    }
    
    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }
    
    .cart-table tr {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        background: var(--gray-50);
        border-radius: var(--radius-md);
        border: 1px solid var(--gray-200);
    }
    
    .cart-table td {
        padding: 0.75rem 0;
        border: none;
        text-align: left !important;
    }
    
    .cart-table td:before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--gray-700);
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .cart-table td:first-child:before {
        display: none;
    }
    
    .cart-item-product {
        margin-bottom: 1rem;
    }
    
    .cart-table td:last-child {
        text-align: left !important;
        padding-top: 1rem;
        border-top: 1px solid var(--gray-200);
    }
    
    .btn-icon-delete {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: rgba(239, 68, 68, 0.1);
        color: var(--error);
        border: 1px solid var(--error);
    }
    
    .btn-icon-delete:after {
        content: 'Supprimer cet article';
        font-weight: 600;
    }
    
    .quantity-form input[type="number"] {
        width: 100%;
        max-width: 150px;
    }
}

.cart-items {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    width: 100%;
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    min-width: 850px;
}

.cart-table thead {
    background: linear-gradient(to right, #f9fafb, #f3f4f6);
    border-bottom: 2px solid var(--gray-200);
}

.cart-table th {
    padding: 1.5rem 1.25rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    color: var(--gray-700);
    white-space: nowrap;
    border-bottom: 2px solid var(--gray-200);
}

.cart-table th:first-child {
    padding-left: 2rem;
    border-top-left-radius: 8px;
}

.cart-table th:last-child {
    padding-right: 2rem;
    border-top-right-radius: 8px;
}

.cart-table th:nth-child(1) { width: 40%; text-align: left; }
.cart-table th:nth-child(2) { width: 18%; text-align: right; padding-right: 2rem; }
.cart-table th:nth-child(3) { width: 14%; text-align: center; }
.cart-table th:nth-child(4) { width: 18%; text-align: right; padding-right: 2rem; }
.cart-table th:nth-child(5) { width: 10%; text-align: center; }

.cart-table tbody tr {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.cart-table tbody tr:hover {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.03), transparent);
    border-left-color: var(--primary);
}

.cart-table td {
    padding: 2rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    word-wrap: break-word;
}

.cart-table td:first-child {
    padding-left: 2rem;
    padding-right: 1.25rem;
}

.cart-table td:nth-child(2) {
    text-align: right;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    font-size: 1.0625rem;
    padding-right: 2rem;
}

.cart-table td:nth-child(3) {
    text-align: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.cart-table td:nth-child(4) {
    text-align: right;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    font-size: 1.0625rem;
    padding-right: 2rem;
}

.cart-table td:last-child {
    text-align: center;
    padding-right: 2rem;
}

.cart-table tbody tr:last-child td {
    border-bottom: none;
}

.cart-item-layout {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.cart-item-product {
    max-width: 100%;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-image {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--gray-200);
    flex-shrink: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-900);
    transition: var(--transition-fast);
    display: block;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.cart-item-name:hover {
    color: var(--primary);
}

.quantity-form input[type="number"] {
    width: 75px;
    padding: 0.625rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.quantity-form input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.cart-item-price {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--primary);
}

.cart-item-total {
    font-weight: 700;
    font-size: 1.1875rem;
    color: var(--primary);
    white-space: nowrap;
}

.btn-icon-delete {
    background: rgba(239, 68, 68, 0.05);
    border: 2px solid transparent;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-color: var(--error);
    transform: scale(1.1);
}

.btn-icon-delete svg {
    display: block;
    width: 22px;
    height: 22px;
}

/* CART SUMMARY - styles moved to cart-preview-new.css for better control */

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

/* ============================================
   CART CUSTOMIZATION PREVIEW - Enhanced
   ============================================ */
.cart-item-layout {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.badge-customizable {
    display: inline-flex !important;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: white !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-radius: 20px !important;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CART CUSTOMIZATION PREVIEW - styles désormais dans cart-preview-new.css */

/* PREVIEW ITEMS - styles désormais dans cart-preview-new.css */

/* PREVIEW IMAGE & TEXT - styles désormais dans cart-preview-new.css */

/* ============================================
   CART - RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .cart-items {
        padding: 1rem;
    }
    
    /* Masquer le tableau sur mobile et afficher en cartes */
    .cart-table thead {
        display: none;
    }
    
    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }
    
    .cart-table tr {
        margin-bottom: 1.5rem;
        padding: 1rem;
        background: var(--gray-50);
        border-radius: var(--radius-md);
        border: 1px solid var(--gray-200);
    }
    
    .cart-table td {
        padding: 0.75rem 0;
        border: none;
        text-align: left !important;
    }
    
    .cart-table td:before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--gray-700);
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .cart-table td:first-child:before {
        display: none;
    }
    
    .cart-item-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .cart-item-layout {
        display: flex;
        gap: 1rem;
        width: 100%;
    }
    
    .cart-item-image {
        width: 100px;
        height: 100px;
    }
    
    .cart-item-info {
        flex: 1;
    }
    
    .cart-table td:last-child {
        text-align: left !important;
        padding-top: 1rem;
        border-top: 1px solid var(--gray-200);
    }
    
    .btn-icon-delete {
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: rgba(239, 68, 68, 0.1);
        color: var(--error);
        border: 1px solid var(--error);
    }
    
    .btn-icon-delete:after {
        content: 'Supprimer cet article';
        font-weight: 600;
    }
    
    .quantity-form input[type="number"] {
        width: 100%;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cart-actions > * {
        width: 100%;
    }
    
    /* Styles de prévisualisation responsive */
    .cart-customization-preview {
        padding: 1rem !important;
    }
    
    .preview-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .preview-label {
        min-width: auto !important;
    }
    
    .preview-image {
        width: 100% !important;
        height: 150px !important;
    }
    
    .preview-text {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .cart-item-layout {
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
}

/* ============================================
   ALERTS & BADGES
   ============================================ */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    border-left: 4px solid var(--secondary);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-left: 4px solid var(--error);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    border-left: 4px solid var(--accent);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
}

.badge-customizable {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.badge-new {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

/* ============================================
   FOOTER - Design moderne
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--gray-400);
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cart-table {
        font-size: 0.875rem;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ============================================
   CHECKOUT PAGE STYLING
   ============================================ */
.checkout-page {
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
    padding: 3rem 0 5rem;
    min-height: 100vh;
}

.checkout-page h1 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.25rem;
}

.checkout-page h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
}

/* Form Styling */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3::before {
    content: '';
    width: 3px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.form-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 1.5rem 0 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group select {
    cursor: pointer;
    background-color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Checkout Summary */
.checkout-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-100);
    position: sticky;
    top: 2rem;
}

.checkout-summary h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.checkout-items {
    margin-bottom: 1.5rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
    gap: 1rem;
}

.checkout-item:first-child {
    padding-top: 0;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-name {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.checkout-item-qty {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.checkout-item-price {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.checkout-summary-details {
    padding: 1.5rem 0;
    border-top: 2px solid var(--gray-100);
    border-bottom: 2px solid var(--gray-200);
    margin: 1.5rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.summary-row:last-child {
    margin-bottom: 0;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
}

.checkout-summary-total span:first-child {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.checkout-summary-total span:last-child {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

/* Button Styling */
.checkout-form .btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.checkout-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.checkout-form .btn-primary:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .checkout-page {
        padding: 2rem 0 3rem;
    }
    
    .checkout-page h1 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .form-section,
    .checkout-summary {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .form-section,
    .checkout-summary {
        padding: 1.25rem;
    }
    
    .checkout-page h1 {
        font-size: 1.5rem;
    }
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
    padding: 4rem 0 6rem;
    min-height: 100vh;
}

.legal-page h1 {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.legal-page h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.legal-content {
    max-width: 900px;
    margin: 3rem auto 0;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--gray-100);
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-content h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--primary);
    border-radius: 2px;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legal-content strong {
    color: var(--gray-900);
    font-weight: 600;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.legal-content .text-muted {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.legal-content .text-muted small {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-page {
        padding: 2rem 0 3rem;
    }
    
    .legal-page h1 {
        font-size: 2rem;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem 0;
    }
    
    .legal-content h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .legal-page h1 {
        font-size: 1.75rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
    
    .legal-content h2 {
        font-size: 1.125rem;
    }
}

/* ============================================
   ACCOUNT PAGES
   ============================================ */
.account-page {
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
    padding: 3rem 0 5rem;
    min-height: 100vh;
}

.account-page h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

.account-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Account Sidebar */
.account-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-100);
    position: sticky;
    top: 2rem;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.account-nav a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.account-nav a.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
}

.account-nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.account-nav a.logout-link {
    margin-top: 1rem;
    border-top: 1px solid var(--gray-200);
    padding-top: 1.375rem;
    color: var(--error);
}

.account-nav a.logout-link:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Account Content */
.account-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-100);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

/* Profile Info */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-item label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    font-size: 1rem;
    color: var(--gray-900);
    font-weight: 500;
}

/* Edit Forms */
.edit-form {
    margin-top: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.order-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.order-date {
    display: inline-block;
    margin-left: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.order-status {
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-shipped {
    background: #dbeafe;
    color: #1e40af;
}

.status-delivered {
    background: #dcfce7;
    color: #166534;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Responsive Account Pages */
@media (max-width: 1024px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
    
    .account-sidebar {
        position: static;
    }
    
    .account-nav {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .account-nav a.logout-link {
        margin-top: 0;
        border-top: none;
        padding-top: 0.875rem;
        border-left: 1px solid var(--gray-200);
        padding-left: 1rem;
    }
}

@media (max-width: 768px) {
    .account-page {
        padding: 2rem 0 3rem;
    }
    
    .account-page h1 {
        font-size: 1.75rem;
    }
    
    .account-section {
        padding: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .account-nav {
        flex-direction: column;
    }
    
    .account-nav a.logout-link {
        margin-top: 1rem;
        border-top: 1px solid var(--gray-200);
        border-left: none;
        padding-top: 1.375rem;
        padding-left: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail {
    padding: 3rem 0 5rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Images Section */
.product-images {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-image-main {
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-image-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #9ca3af;
}

.product-image-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.75rem;
}

.product-image-thumbnails img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    transition: border-color 0.2s ease;
}

.product-image-thumbnails img:hover {
    border-color: var(--primary);
}

.product-image-thumbnails img.active {
    border-color: var(--primary);
}

/* Product Info Section */
.product-info h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-short-description {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-price-large {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.stock-info {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.stock-available {
    color: #059669;
}

.stock-unavailable {
    color: #dc2626;
}

/* Customization Section */
.customization-section {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.customization-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

/* Product Form */
.product-form {
    margin-top: 2rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.quantity-selector {
    flex-shrink: 0;
}

.quantity-selector label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.quantity-selector input {
    width: 80px;
    padding: 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.2s ease;
}

.quantity-selector input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-large {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-large:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-large:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Product Description */
.product-description {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.product-description h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.product-description div {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray-700);
}

/* Responsive Product Detail */
@media (max-width: 1024px) {
    .product-detail-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 2rem 0 3rem;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .product-images {
        position: static;
    }
    
    .product-info h1 {
        font-size: 1.75rem;
    }
    
    .product-price-large {
        font-size: 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-selector {
        width: 100%;
    }
    
    .quantity-selector input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-info h1 {
        font-size: 1.5rem;
    }
    
    .customization-section {
        padding: 1.25rem;
    }
    
    .product-image-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.5rem;
    }
}

/* ============================================
   PRODUITS ENTREPRISES - STYLES SPÉCIFIQUES
   ============================================ */

.enterprise-badge {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.enterprise-badge.configurator-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.enterprise-badge.quote-badge {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.enterprise-actions {
    margin: 2rem 0;
}

.enterprise-actions .btn-large {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.enterprise-info {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

/* Modal overlay improvements */
#configuratorModal {
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .enterprise-badge {
        font-size: 0.9rem;
        padding: 1rem 1.25rem;
    }
    
    .enterprise-actions .btn-large {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

