/* =====================================================
   RD STORE - Luxury E-commerce Stylesheet
   Premium Electronics | Ultra Luxury Design
   Mobile First | Dark/Light Auto Theme
   ===================================================== */

/* =====================================================
   CSS VARIABLES & THEME SYSTEM
   ===================================================== */
:root {
    /* Light Theme (Default) - Beige Foncé Luxueux */
    --bg-primary: #D8CFC4;
    --bg-secondary: #C9BFB2;
    --bg-surface: #E8DFD2;
    --bg-card: #DDD4C7;
    
    --text-primary: #2C2824;
    --text-secondary: #4A4540;
    --text-muted: #6A655E;
    
    --accent-gold: #A8893E;
    --accent-gold-hover: #8B7232;
    --accent-taupe: #9A8B7A;
    
    --border-light: rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-primary: 'Cormorant Garamond', Georgia, serif;
    --font-secondary: 'Montserrat', 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;
    
    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-luxury: 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 50px;
}

/* Dark Theme */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1C1A18;
        --bg-secondary: #2A2622;
        --bg-surface: #252220;
        --bg-card: #2F2B27;
        
        --text-primary: #F5F2EE;
        --text-secondary: #C5C0B8;
        --text-muted: #8A8580;
        
        --accent-gold: #C6A75E;
        --accent-gold-hover: #D4B86E;
        --accent-taupe: #B7A99A;
        
        --border-light: rgba(255, 255, 255, 0.08);
        --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.4);
        --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
}

/* Manual Theme Toggle Classes */
[data-theme="dark"] {
    --bg-primary: #1C1A18;
    --bg-secondary: #2A2622;
    --bg-surface: #252220;
    --bg-card: #2F2B27;
    
    --text-primary: #F5F2EE;
    --text-secondary: #C5C0B8;
    --text-muted: #8A8580;
    
    --accent-gold: #C6A75E;
    --accent-gold-hover: #D4B86E;
    --accent-taupe: #B7A99A;
    
    --border-light: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --bg-primary: #D8CFC4;
    --bg-secondary: #C9BFB2;
    --bg-surface: #E8DFD2;
    --bg-card: #DDD4C7;
    
    --text-primary: #2C2824;
    --text-secondary: #4A4540;
    --text-muted: #6A655E;
    
    --accent-gold: #A8893E;
    --accent-gold-hover: #8B7232;
    --accent-taupe: #9A8B7A;
    
    --border-light: rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-secondary);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    letter-spacing: 0.02em;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.03em;
}

h1 {
    font-size: clamp(2rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.text-gold {
    color: var(--accent-gold);
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 500;
}

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-xxl) 0;
    }
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-smooth);
}

.header.scrolled {
    background: rgba(216, 207, 196, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .header.scrolled {
    background: rgba(216, 207, 196, 0.95);
}

@media (prefers-color-scheme: dark) {
    .header.scrolled {
        background: rgba(28, 26, 24, 0.95);
    }
}

[data-theme="dark"] .header.scrolled {
    background: rgba(28, 26, 24, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .header-inner {
        height: 85px;
        padding: 0 var(--space-lg);
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-taupe));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
    }
    
    .logo-text {
        font-size: 1.75rem;
    }
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Sur mobile, cacher les liens de navigation textuels */
@media (max-width: 480px) {
    .nav {
        gap: var(--space-xs);
    }
    
    .nav-link {
        display: none;
    }
}

@media (min-width: 768px) {
    .nav {
        gap: var(--space-lg);
    }
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

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

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
}

.theme-toggle:hover {
    color: var(--accent-gold);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

/* Show appropriate icon based on theme */
.theme-toggle .icon-moon {
    display: block;
}

@media (prefers-color-scheme: dark) {
    .theme-toggle .icon-moon {
        display: none;
    }
    .theme-toggle .icon-sun {
        display: block;
    }
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

/* =====================================================
   HERO CAROUSEL
   ===================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    margin-top: 70px;
    overflow: hidden;
    background: var(--bg-secondary);
}

@media (min-width: 768px) {
    .hero {
        margin-top: 85px;
    }
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform var(--transition-luxury);
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease-out;
}

.carousel-slide.active .carousel-slide-image {
    transform: scale(1.05);
}

/* Placeholder for empty images */
.carousel-slide-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--bg-secondary) 0%,
        var(--bg-card) 50%,
        var(--bg-secondary) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    color: var(--accent-taupe);
    opacity: 0.5;
}

/* Slide overlay */
.carousel-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(28, 26, 24, 0.7) 0%,
        rgba(28, 26, 24, 0.2) 40%,
        transparent 100%
    );
}

/* Slide content */
.carousel-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-lg);
    margin-top: auto;
    padding-bottom: 120px;
    color: #F5F2EE;
    max-width: 600px;
}

.carousel-slide-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--transition-luxury) forwards;
    animation-delay: 0.2s;
}

.carousel-slide-title {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--transition-luxury) forwards;
    animation-delay: 0.4s;
}

.carousel-slide-price {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--accent-gold);
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--transition-luxury) forwards;
    animation-delay: 0.6s;
}

.carousel-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-pill);
    transition: all var(--transition-smooth);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--transition-luxury) forwards;
    animation-delay: 0.8s;
}

.carousel-slide-btn:hover {
    background: var(--accent-gold);
    color: #1C1A18;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #F5F2EE;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.carousel-arrow:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #1C1A18;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

.carousel-arrow--prev {
    left: var(--space-md);
}

.carousel-arrow--next {
    right: var(--space-md);
}

@media (min-width: 768px) {
    .carousel-arrow {
        width: 60px;
        height: 60px;
    }
    
    .carousel-arrow svg {
        width: 24px;
        height: 24px;
    }
    
    .carousel-arrow--prev {
        left: var(--space-lg);
    }
    
    .carousel-arrow--next {
        right: var(--space-lg);
    }
}

/* Carousel dots */
.carousel-dots {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: var(--space-sm);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
    background: var(--accent-gold);
    width: 24px;
    border-radius: var(--radius-pill);
}

/* =====================================================
   PRODUCT CARDS
   ===================================================== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-md);
}

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

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
        padding: var(--space-lg);
    }
}

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

.product-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-luxury);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
}

.product-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-luxury);
    position: relative;
    z-index: 2;
}

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

/* Product card placeholder - hidden when image is present */
.product-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        145deg,
        var(--bg-secondary) 0%,
        var(--bg-card) 100%
    );
    z-index: 1;
}

/* Hide placeholder when sibling img exists */
.product-card-image img ~ .product-card-placeholder,
.product-card-image:has(img) .product-card-placeholder {
    display: none;
}

.product-card-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--accent-taupe);
    opacity: 0.4;
}

/* Gold accent line on hover */
.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-taupe));
    transition: width var(--transition-luxury);
}

.product-card:hover::after {
    width: 100%;
}

.product-card-content {
    padding: var(--space-md);
}

.product-card-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: var(--space-xs);
}

.product-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: 0 var(--space-md);
}

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* =====================================================
   PRODUCT DETAIL PAGE
   ===================================================== */
.product-detail {
    padding-top: calc(70px + var(--space-lg));
    min-height: 100vh;
}

@media (min-width: 768px) {
    .product-detail {
        padding-top: calc(85px + var(--space-xl));
    }
}

.product-detail-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .product-detail-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
        padding: var(--space-lg);
        align-items: start;
    }
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.product-gallery-main {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    margin-bottom: var(--space-md);
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 2;
}

/* Hide placeholder when image is present */
.product-gallery-main:has(img) .product-gallery-placeholder {
    display: none;
}

.product-gallery-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        145deg,
        var(--bg-secondary) 0%,
        var(--bg-card) 100%
    );
}

.product-gallery-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--accent-taupe);
    opacity: 0.4;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.product-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    background: var(--bg-secondary);
    position: relative;
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--accent-gold);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumb-placeholder svg {
    width: 24px;
    height: 24px;
    color: var(--accent-taupe);
    opacity: 0.4;
}

/* Product Info */
.product-info {
    padding: var(--space-md) 0;
}

@media (min-width: 768px) {
    .product-info {
        position: sticky;
        top: 120px;
        padding: var(--space-lg) 0;
    }
}

.product-info-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
}

.product-info-title {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.product-info-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: var(--space-lg);
}

.product-info-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

/* WhatsApp Button */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: white;
    background: #25D366;
    border-radius: var(--radius-pill);
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
    width: 22px;
    height: 22px;
}

@media (min-width: 768px) {
    .btn-whatsapp {
        width: auto;
        min-width: 280px;
    }
}

/* =====================================================
   CATALOGUE PAGE
   ===================================================== */
.catalogue {
    padding-top: calc(70px + var(--space-lg));
    min-height: 100vh;
}

@media (min-width: 768px) {
    .catalogue {
        padding-top: calc(85px + var(--space-xl));
    }
}

.catalogue-header {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: var(--bg-secondary);
    margin-bottom: var(--space-lg);
}

.catalogue-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.catalogue-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Search Bar */
.search {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    max-width: 600px;
    margin: 0 auto var(--space-md);
}

@media (min-width: 576px) {
    .search {
        flex-direction: row;
        align-items: center;
    }
}

.search input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    outline: none;
    transition: all var(--transition-smooth);
}

.search input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.search input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(198, 167, 94, 0.15);
}

.search button {
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-smooth);
    white-space: nowrap;
}

.search button:hover {
    background: var(--accent-gold);
    color: #1C1A18;
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(198, 167, 94, 0.25);
}

.search button:active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .search {
        padding: var(--space-md) var(--space-lg);
        max-width: 700px;
    }
    
    .search input {
        padding: var(--space-sm) var(--space-lg);
        font-size: 1rem;
    }
    
    .search button {
        padding: var(--space-sm) var(--space-lg);
    }
}

/* Loading indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: var(--radius-pill);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gold);
    color: #1C1A18;
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(198, 167, 94, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: #1C1A18;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--bg-secondary);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-taupe));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
}

.footer-logo-text {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    color: var(--text-primary);
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-text a {
    color: var(--accent-gold);
}

.footer-text a:hover {
    text-decoration: underline;
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-luxury);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid items */
.products-grid .product-card {
    opacity: 0;
    transform: translateY(30px);
}

.products-grid .product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 900;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gold);
    color: #1C1A18;
    border-radius: 50%;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* =====================================================
   CART SYSTEM
   ===================================================== */

/* Cart Icon in Header */
.cart-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    background: var(--bg-secondary);
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .cart-icon {
        width: 36px;
        height: 36px;
    }
    
    .cart-icon svg {
        width: 18px;
        height: 18px;
    }
}

.cart-icon:hover {
    color: var(--accent-gold);
    transform: scale(1.05);
}

.cart-icon svg {
    width: 20px;
    height: 20px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent-gold);
    color: #1C1A18;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-fast);
}

.cart-badge.visible {
    opacity: 1;
    transform: scale(1);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-smooth);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.cart-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.cart-header h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cart-header h2 span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-secondary);
}

.cart-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: all var(--transition-fast);
}

.cart-close:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

.cart-close svg {
    width: 20px;
    height: 20px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-lg);
}

.cart-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.cart-empty p {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.cart-empty span {
    font-size: 0.85rem;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    transition: all var(--transition-fast);
}

.cart-item:hover {
    box-shadow: var(--shadow-soft);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
}

.cart-item-quantity button {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.cart-item-quantity button:hover {
    background: var(--accent-gold);
    color: #1C1A18;
}

.cart-item-quantity span {
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    align-self: flex-start;
}

.cart-item-remove:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.cart-item-remove svg {
    width: 16px;
    height: 16px;
}

/* Cart Footer */
.cart-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.cart-total-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cart-total-value {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cart-actions .btn {
    width: 100%;
    justify-content: center;
}

.btn-whatsapp-cart {
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-smooth);
}

.btn-whatsapp-cart:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-cart svg {
    width: 18px;
    height: 18px;
}

.btn-clear-cart {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: var(--space-xs);
    transition: all var(--transition-fast);
}

.btn-clear-cart:hover {
    color: #e74c3c;
}

/* Lien quasi invisible vers espace vendeur */
.vendeur-hidden-link {
    display: block;
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.65rem;
    color: rgba(150, 150, 150, 0.25);
    text-decoration: none;
    transition: color var(--transition-fast);
    letter-spacing: 0.05em;
}

.vendeur-hidden-link:hover {
    color: rgba(150, 150, 150, 0.6);
}

/* Add to Cart Button on Product Card */
.product-card-actions {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.btn-add-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--accent-gold);
    color: #1C1A18;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all var(--transition-smooth);
}

.btn-add-cart:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
}

.btn-add-cart svg {
    width: 14px;
    height: 14px;
}

.btn-add-cart.added {
    background: #27ae60;
}

/* Responsive Cart */
@media (max-width: 480px) {
    .cart-sidebar {
        max-width: 100%;
    }
}

/* =====================================================
   WHATSAPP ORDER MODAL
   ===================================================== */
.order-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.order-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.order-modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-smooth);
}

.order-modal-overlay.visible .order-modal {
    transform: translateY(0) scale(1);
}

.order-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.order-modal-header h2 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    color: var(--text-primary);
}

.order-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: all var(--transition-fast);
}

.order-modal-close:hover {
    color: var(--accent-gold);
}

.order-modal-close svg {
    width: 18px;
    height: 18px;
}

.order-modal-body {
    padding: var(--space-md);
}

.order-form-group {
    margin-bottom: var(--space-md);
}

.order-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.order-form-group input,
.order-form-group textarea {
    width: 100%;
    padding: var(--space-sm);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-fast);
}

.order-form-group input:focus,
.order-form-group textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(198, 167, 94, 0.15);
}

.order-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.order-summary {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
}

.order-summary-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: var(--space-xs) 0;
    border-bottom: 1px dashed var(--border-light);
}

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

.order-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    padding-top: var(--space-sm);
    margin-top: var(--space-sm);
    border-top: 1px solid var(--border-light);
    color: var(--accent-gold);
}

.order-modal-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.btn-send-order {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: #25D366;
    color: white;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-smooth);
}

.btn-send-order:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-send-order svg {
    width: 20px;
    height: 20px;
}

/* Product Actions on Detail Page */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

@media (min-width: 576px) {
    .product-actions {
        flex-direction: row;
    }
}

.btn-add-to-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--accent-gold);
    color: #1C1A18;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.btn-add-to-cart:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(198, 167, 94, 0.3);
}

.btn-add-to-cart svg {
    width: 20px;
    height: 20px;
}

.btn-add-to-cart.added {
    background: #27ae60;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.no-scroll {
    overflow: hidden;
}

/* =====================================================
   CUSTOM SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-taupe);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* =====================================================
   RESPONSIVE FINE-TUNING
   ===================================================== */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
    
    .header-inner {
        padding: 0 var(--space-sm);
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
