/* ---------- RESET & VARIABLES ---------- */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Couleurs principales Shopact (gemini.md) */
    --color-orange: #FF6600;
    --color-orange-hover: #E55A00;
    --color-orange-light: #FFF7ED;
    --color-navy: #1A2A40;
    --color-navy-light: #243450;
    
    /* Couleurs neutres et support */
    --color-white: #FFFFFF;
    --color-black: #111111;
    --color-bg-subtle: #F8FAFC;
    --color-gray-50: #F9F9F9;
    --color-gray-100: #F1F5F9;
    --color-gray-200: #E2E8F0;
    --color-gray-400: #94A3B8;
    --color-gray-600: #64748B;
    --color-gray-800: #334155;
    --color-star: #FFB800;
    
    /* Ombres et arrondis premium (aspect boutique de créateur) */
    --shadow-sm: 0 2px 6px rgba(26, 42, 64, 0.04);
    --shadow-md: 0 8px 24px rgba(26, 42, 64, 0.07);
    --shadow-lg: 0 16px 42px rgba(26, 42, 64, 0.11);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    
    /* Typographies et Ergonomie Mobile-First */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --header-height: 72px;
    --touch-target: 44px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* ---------- TOP BAR ---------- */
.top-bar {
    background-color: var(--color-navy);
    color: var(--color-white);
    text-align: center;
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ---------- HEADER ---------- */
.main-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: -0.5px;
}

.logo-svg { flex-shrink: 0; }

.main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px;
    z-index: 99;
    overflow-y: auto;
}
.main-nav.open { display: flex; }
.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}
.main-nav a {
    color: var(--color-gray-800);
    padding: 12px 0;
    display: flex;
    align-items: center;
    min-height: var(--touch-target);
    border-bottom: 1px solid var(--color-gray-100);
    transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--color-orange);
    border-bottom-color: var(--color-orange);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 98;
}
.menu-overlay.open { display: block; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-gray-800);
    padding: 10px;
    border-radius: var(--radius-sm);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.2s, color 0.2s;
}
.icon-btn:hover {
    background: var(--color-gray-100);
    color: var(--color-navy);
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--color-orange);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.bounce { animation: bounce 0.3s ease; }

.search-bar {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    padding: 12px 0;
    z-index: 90;
}
.search-bar.open { display: block; }
.search-bar .container { display: flex; gap: 8px; }
.search-bar input {
    flex: 1;
    padding: 12px 18px;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    min-height: var(--touch-target);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.search-bar input:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}

/* ---------- HERO (Asymétrique & Aéré) ---------- */
.hero {
    background: linear-gradient(145deg, var(--color-navy) 0%, #111D2D 60%, #1A2A40 100%);
    color: white;
    padding: 64px 0 56px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-overlay { position: relative; z-index: 2; }
.hero-content { display: flex; flex-direction: column; gap: 18px; max-width: 800px; }
.hero-badge {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    align-self: flex-start;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 520px;
    line-height: 1.6;
}

/* ---------- BOUTONS (CTA Harmonisés & Tactiles) ---------- */
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    font-weight: 600;
    font-size: 0.94rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-sans);
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    word-break: break-word;
    min-height: var(--touch-target);
}
.btn-primary {
    background: var(--color-orange);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.3);
}
.btn-primary:hover {
    background: var(--color-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}
.btn-secondary {
    background: #e74c3c;
    color: white;
}
.btn-secondary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.3);
}
.btn-block {
    display: flex;
    width: 100%;
}
.btn-order {
    background: var(--color-navy);
    color: white;
    padding: 12px 20px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    box-shadow: 0 3px 10px rgba(26, 42, 64, 0.18);
}
.btn-order:hover {
    background: var(--color-orange);
    border-color: var(--color-orange);
    transform: translateY(-1.5px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}
.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border: 1.5px solid var(--color-navy);
}
.btn-outline:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
    background: var(--color-orange-light);
    transform: translateY(-1.5px);
}

/* ---------- CATALOGUE ---------- */
.catalogue-section { padding: 40px 0 60px; }
.catalogue-header {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.catalogue-title-group h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-navy);
}

.sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sort-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-gray-600);
    margin-right: 4px;
}
.sort-btn {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all 0.2s;
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
}
.sort-btn.active,
.sort-btn:hover {
    background: var(--color-navy);
    color: white;
    border-color: var(--color-navy);
}

/* ---------- GRILLE PRODUITS (Bento Grid & Aération) ---------- */
.catalogue-section { padding: 56px 0 80px; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 102, 0, 0.3);
}
.product-card:active { transform: scale(0.99); }

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.bestseller { background: var(--color-orange); color: white; }
.trend { background: #F59E0B; color: white; }
.exclusive { background: #8B5CF6; color: white; }
.new { background: #10B981; color: white; }

/* Badge rupture de stock */
.badge-out-of-stock {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 6;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #dc2626;
    color: #fff;
    box-shadow: 0 2px 8px rgba(220,38,38,0.35);
    animation: pulse-oos 2s ease-in-out infinite;
}
@keyframes pulse-oos {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}
.product-card--oos .product-image {
    filter: grayscale(35%);
    opacity: 0.9;
}
.btn-disabled-oos {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: var(--color-bg-subtle);
}
.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .img-placeholder { transform: scale(1.05); }
.placeholder-icon { font-size: 3.2rem; margin-bottom: 8px; opacity: 0.8; }
.placeholder-brand {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    color: var(--color-gray-600);
    opacity: 0.8;
}

.quick-actions {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .quick-actions,
.product-card:active .quick-actions { opacity: 1; transform: translateX(0); }
.quick-btn {
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    color: var(--color-navy);
    transition: all 0.2s ease;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
}
.quick-btn:hover { background: var(--color-orange); color: white; border-color: var(--color-orange); transform: scale(1.08); }

.product-info {
    padding: 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}
.product-brand {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-orange);
}
.product-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-navy);
}
.product-description {
    font-size: 0.86rem;
    color: var(--color-gray-600);
    line-height: 1.4;
    display: none;
    margin-bottom: 12px;
}
.modal-content .product-description {
    display: block;
    margin-top: 15px;
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.stars { display: flex; gap: 2px; }
.star { color: var(--color-star); font-size: 0.9rem; }
.rating-text { font-size: 0.75rem; color: var(--color-gray-600); margin-left: 4px; }

.size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.size-label { font-size: 0.78rem; font-weight: 600; color: var(--color-gray-600); }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
    background: var(--color-bg-subtle);
    border: 1.5px solid var(--color-gray-200);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-800);
}
.size-btn.selected {
    background: var(--color-navy);
    color: white;
    border-color: var(--color-navy);
    box-shadow: 0 4px 10px rgba(26, 42, 64, 0.25);
    transform: translateY(-1.5px);
}
.size-btn:hover:not(.selected) { border-color: var(--color-orange); color: var(--color-orange); background: var(--color-orange-light); }

.color-dots { display: flex; gap: 12px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.color-dot {
    width: 36px;
    height: 36px;
    border-radius: 8px; /* Rounded squares instead of circles */
    border: 2px solid var(--color-gray-200);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), 0 2px 5px rgba(0,0,0,0.08);
    position: relative;
}
/* Zone tactile étendue Mobile-First (44px minimum) via pseudo-élément */
.color-dot::after {
    content: '';
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: -8px;
    right: -8px;
}
.color-dot:hover { transform: scale(1.22); border-color: var(--color-orange); box-shadow: 0 4px 10px rgba(255, 102, 0, 0.25); }

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--color-gray-100);
    flex-wrap: wrap;
    gap: 12px;
}
.price-group { display: flex; flex-direction: column; gap: 2px; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--color-navy); line-height: 1.2; font-family: var(--font-sans); letter-spacing: -0.3px; }
.price-range { font-size: 0.75rem; color: var(--color-gray-600); font-weight: 500; }

/* ---------- PANIER ---------- */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    justify-content: center;
    align-items: flex-end;
}
.cart-overlay.open { display: flex; }
.cart-sheet {
    background: white;
    width: 100%;
    max-width: 500px;
    max-height: 70vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px;
    overflow-y: auto;
    position: relative;
}
.cart-close { 
    position: absolute; 
    top: 10px; 
    right: 12px; 
    background: none; 
    border: none; 
    font-size: 1.8rem; 
    cursor: pointer; 
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-600);
    transition: color 0.2s;
}
.cart-close:hover { color: var(--color-orange); }
.cart-sheet h3 { margin-bottom: 16px; font-family: var(--font-display); color: var(--color-navy); }
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray-100);
}
.cart-item .remove-item { 
    background: none; 
    border: none; 
    font-size: 1.2rem; 
    cursor: pointer; 
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
    transition: color 0.2s;
}
.cart-item .remove-item:hover { color: #EF4444; }
.cart-footer { margin-top: 20px; text-align: center; }
.cart-footer .btn-order {
    width: 100%;
    background: #25D366;
    border-color: #25D366;
    color: white;
    gap: 8px;
}
.cart-footer .btn-order:hover { background: #128C7E; }

/* ---------- MODALE PRODUIT (Luxe & Aéré) ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 42, 64, 0.8);
    backdrop-filter: blur(8px);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-dialog {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 780px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-close { 
    position: absolute; 
    top: 14px; 
    right: 14px; 
    background: var(--color-bg-subtle); 
    border: 1px solid var(--color-gray-200); 
    border-radius: 50%;
    font-size: 1.5rem; 
    cursor: pointer; 
    z-index: 5; 
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-600);
    transition: all 0.2s ease;
}
.modal-close:hover { color: var(--color-orange); background: var(--color-orange-light); border-color: var(--color-orange); transform: rotate(90deg); }
.modal-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 6px;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    order: 2;
    overflow-x: auto;
    padding-bottom: 6px;
}
.modal-thumb {
    min-width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.modal-thumb:hover { transform: translateY(-2px); }
.modal-thumb.active { border-color: var(--color-orange); box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25); }

.modal-image { order: 1; }
.modal-main-image {
    width: 100%;
    max-height: 240px;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 1.2rem;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-gray-200);
    overflow: hidden;
}
.modal-main-image img {
    max-height: 240px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.modal-info { order: 3; display: flex; flex-direction: column; gap: 12px; }

/* ---------- MODALE CONFIRMATION ---------- */
.confirmation-dialog { max-width: 440px; text-align: center; padding: 36px 28px; }
.confirmation-content { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.confirmation-icon { font-size: 3.5rem; }
.confirmation-content h2 { font-family: var(--font-display); color: var(--color-navy); font-size: 1.6rem; }
.confirmation-content p { color: var(--color-gray-600); font-size: 0.95rem; line-height: 1.6; }

/* ---------- AVANTAGES ---------- */
.features-bar {
    background: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
    padding: 24px 0;
}
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 12px; }
.feature-icon { font-size: 1.6rem; }
.feature-text strong { display: block; font-size: 0.85rem; font-weight: 600; color: var(--color-navy); }
.feature-text span { font-size: 0.75rem; color: var(--color-gray-600); }

/* ---------- FOOTER ---------- */
.main-footer { background: var(--color-navy); color: #CCCCCC; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; text-align: center; }
.footer-brand .logo { color: white; display: flex; justify-content: center; margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; opacity: 0.7; }
.footer-col h4 { color: white; font-weight: 600; margin-bottom: 10px; font-size: 0.85rem; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: #AAAAAA; font-size: 0.85rem; }
.footer-col ul li a:hover { color: var(--color-orange); }
.social-links { display: flex; gap: 14px; justify-content: center; font-size: 1.3rem; }
.social-links a { opacity: 0.7; }
.social-links a:hover { opacity: 1; color: var(--color-orange); }
.footer-bottom {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 639px) {
    .hide-on-mobile { display: none !important; }
}

@media (min-width: 640px) {
    .container { padding-left: 24px; padding-right: 24px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.6rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); text-align: left; }
    .footer-brand .logo { justify-content: flex-start; }
    .social-links { justify-content: flex-start; }
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
        position: static;
        background: none;
        padding: 0;
        flex-direction: row;
        overflow: visible;
    }
    .main-nav ul { flex-direction: row; gap: 28px; font-size: 0.9rem; }
    .main-nav a { border-bottom: 2px solid transparent; padding: 8px 0; display: inline; }
    .menu-toggle { display: none; }
    .menu-overlay { display: none !important; }
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
    .modal-body { grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
    .modal-thumbnails { flex-direction: row; order: 2; overflow-x: auto; max-height: none; padding-top: 10px; }
    .modal-image { order: 0; }
    .modal-main-image { max-height: 380px; aspect-ratio: 1/1; }
    .modal-main-image img { max-height: 380px; }
    .modal-info { order: 0; }
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 3rem; }
    .features-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1200px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- COMPOSANTS ET AFFINEMENTS SHOPACT UI STANDARDS ---------- */
/* ---------- COMPOSANTS ET AFFINEMENTS SHOPACT UI STANDARDS ---------- */
.promo-banner {
    background: linear-gradient(90deg, var(--color-orange), #FF8833);
    color: var(--color-white);
    text-align: center;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.25);
    z-index: 99;
    position: relative;
}

.shop-profile-card {
    text-align: center;
    margin: 0 auto 28px auto;
    padding: 24px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--color-orange-light);
    max-width: 650px;
}

.category-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--color-orange-light);
    border: 1.5px solid var(--color-orange);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.other-niches-box {
    margin: 30px auto 20px auto;
    max-width: 1280px;
    padding: 28px 24px;
    background: var(--color-bg-subtle);
    border-top: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
}

.other-niche-card {
    min-width: 200px;
    flex: 0 0 auto;
    background: var(--color-white);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: var(--touch-target);
}
.other-niche-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-orange);
    box-shadow: var(--shadow-md);
}

/* =========================================================
   STYLES MODULAIRES  ESPACE CLIENT, MODALES & AVIS V0RIFI0S
   ========================================================= */
.client-account-btn {
    transition: all 0.25s ease;
}
.client-account-btn:hover {
    border-color: var(--color-orange) !important;
    color: var(--color-orange) !important;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.15);
}
.client-account-btn.logged-in {
    background: #fff8f3 !important;
    border-color: var(--color-orange) !important;
    color: var(--color-orange) !important;
}

.client-auth-tab {
    transition: all 0.2s ease;
    min-height: var(--touch-target);
}
.client-auth-tab:hover {
    color: var(--color-navy) !important;
}

.review-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #059669;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid #a7f3d0;
}

.review-badge-locked {
    background: #fff8f3;
    color: #c2410c;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid #fed7aa;
    margin-top: 14px;
    text-align: center;
}

/* =====================================================================
   MODALE AUTHENTIFICATION CLIENT (migré depuis index.html)
   ===================================================================== */
#clientAuthModal .modal-content {
    background: linear-gradient(to bottom right, #ffffff, #f8fafc);
    border-top: 5px solid var(--color-orange);
    box-shadow: 0 20px 40px rgba(26, 42, 64, 0.2);
    border-radius: 16px;
}

#clientAuthSubmitBtn {
    background: linear-gradient(135deg, var(--color-orange), #ff8533);
    border: none;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

#clientAuthSubmitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.client-auth-tab.active {
    background-color: var(--color-navy) !important;
    color: white !important;
    border-color: var(--color-navy) !important;
    font-weight: 700;
}

.client-auth-tab {
    color: var(--color-navy) !important;
    border: 1.5px solid #cbd5e1 !important;
    transition: all 0.3s ease;
}
@media (max-width: 639px) { .hide-on-mobile { display: none !important; } }



/* Bouton Création de Boutique UI */
.btn-create-shop {
    padding: 8px 16px;
    border-radius: 24px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
@media (max-width: 639px) {
    .btn-create-shop {
        padding: 8px 10px; /* Moins de padding sur mobile puisque le texte est caché */
        border-radius: 50%; /* Devient un cercle parfait pour l'émoji */
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}

/* Micro-animations UX */
.add-to-cart, .btn-whatsapp-direct {
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.add-to-cart:hover, .btn-whatsapp-direct:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    filter: brightness(1.05);
}
.add-to-cart:active, .btn-whatsapp-direct:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ========================================================
   UI/UX PREMIUM UPGRADE (Glassmorphism & Shadows)
   ======================================================== */

/* Glassmorphism sur l'en-tête */
.main-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Glassmorphism sur la navigation mobile */
.mobile-bottom-nav {
    background: rgba(26, 42, 64, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover Premium sur les Cartes Produits */
.product-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease !important;
}
.product-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 15px 35px -5px rgba(0,0,0,0.12) !important;
}
.product-image img {
    transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.08);
}
