/* ========================================
   SCENTHAVEN - Styles CSS
   "Votre identité, en parfum"
   Design: Noir & Blanc Luxe Moderne 2025
   ======================================== */

/* CSS Variables */
:root {
    /* Couleurs principales - NOIR & BLANC UNIQUEMENT */
    --color-black: #000000;
    --color-black-soft: #0a0a0a;
    --color-black-light: #1a1a1a;
    --color-white: #ffffff;
    --color-white-soft: #fafafa;
    --color-grey-light: #f5f5f5;
    --color-grey: #888888;
    --color-grey-medium: #666666;
    --color-grey-dark: #333333;
    
    /* Accent subtil */
    --color-accent: #ffffff;
    --color-accent-hover: #e0e0e0;
    
    /* Couleur dorée pour les sélections */
    --color-gold: #c9a962;
    
    /* Couleurs fonctionnelles */
    --color-success: #000000;
    --color-error: #000000;
    --color-warning: #666666;
    
    /* Typographie */
    --font-primary: 'Cormorant Garamond', Georgia, serif;
    --font-secondary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Ombres */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.1);
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Container */
    --container-max: 1400px;
    --container-padding: 1.5rem;
}

/* RTL Support */
[dir="rtl"] {
    --dir: rtl;
}

[dir="ltr"] {
    --dir: ltr;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
    height: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: var(--spacing-sm);
}

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

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

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

ul, ol {
    list-style: none;
}

/* Selection */
::selection {
    background: var(--color-black);
    color: var(--color-white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-white);
}

::-webkit-scrollbar-thumb {
    background: var(--color-black);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-grey-dark);
}

/* Utility Classes */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.header-top {
    background: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-xs) 0;
    font-size: 0.85rem;
    text-align: center;
    overflow: hidden;
}

.header-top .slogan {
    font-family: var(--font-primary);
    font-style: italic;
    letter-spacing: 0.2em;
    animation: slideText 20s linear infinite;
}

@keyframes slideText {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--container-padding);
    max-width: var(--container-max);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo img {
    height: 100px;
    width: auto;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-main a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding: var(--spacing-xs) 0;
}

.nav-main a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-black);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-main a:hover::after {
    width: 100%;
}

.nav-main a:hover {
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-action-btn {
    position: relative;
    padding: var(--spacing-xs);
    transition: transform var(--transition-fast);
}

.header-action-btn:hover {
    transform: scale(1.1);
}

.header-action-btn svg {
    width: 24px;
    height: 24px;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--color-grey);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.lang-toggle:hover {
    border-color: var(--color-black);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: all var(--transition-fast);
}

/* Mobile nav close button */
.nav-close-btn {
    display: none;
}

@media (max-width: 968px) {
    .nav-main {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: #ffffff;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
        z-index: 99999;
        padding: 80px 20px 20px 20px;
        overflow-y: auto;
    }
    
    .nav-main.active {
        right: 0;
    }
    
    .nav-close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: #000;
        color: #fff;
        border: none;
        border-radius: 50%;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        z-index: 100000;
    }
    
    .nav-main a {
        font-size: 1.1rem !important;
        padding: 18px 20px !important;
        width: 100% !important;
        text-align: left !important;
        display: block !important;
        color: #000 !important;
        text-decoration: none !important;
        border-bottom: 1px solid #eee;
        background: transparent !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        touch-action: manipulation;
    }
    
    .nav-main a::after {
        display: none !important;
    }
    
    .nav-main a:active {
        background: #f0f0f0 !important;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 100001;
    }
    
    #menu-overlay {
        z-index: 15000;
    }
    
    #cart-overlay {
        z-index: 20500;
        background: rgba(0, 0, 0, 0.55);
    }
}

/* ========================================
   HERO SECTION - Noir & Blanc Luxe
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-black);
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}

/* Hero background removed - using carousel instead */

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

/* Hero Carousel */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.1);
}

.hero-slide.active {
    opacity: 0.5;
}

.hero-slide:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1541643600914-78b084683601?q=80&w=2004&auto=format&fit=crop');
}

.hero-slide:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1594035910387-fea47794261f?q=80&w=1974&auto=format&fit=crop');
}

.hero-slide:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1587017539504-67cfbddac569?q=80&w=1935&auto=format&fit=crop');
}

.hero-slide:nth-child(4) {
    background-image: url('https://images.unsplash.com/photo-1595425970377-c9703cf48b6d?q=80&w=1974&auto=format&fit=crop');
}

.hero-slide:nth-child(5) {
    background-image: url('https://images.unsplash.com/photo-1619994403073-2cec844b8e63?q=80&w=1974&auto=format&fit=crop');
}

/* Carousel indicators */
.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.carousel-dot {
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 1);
    width: 50px;
}

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

.hero-content {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    max-width: 900px;
    padding: var(--spacing-lg);
    text-align: center;
}

.hero-logo {
    width: 150px;
    height: auto;
    margin: 0 auto var(--spacing-lg);
    filter: brightness(0) invert(1);
    animation: fadeInDown 1s ease, float 6s ease-in-out infinite;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 200;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 0.2s backwards, glowText 3s ease-in-out infinite alternate;
}

@keyframes glowText {
    0% { text-shadow: 0 0 20px rgba(255,255,255,0.1); }
    100% { text-shadow: 0 0 40px rgba(255,255,255,0.3), 0 0 80px rgba(255,255,255,0.1); }
}

.hero-slogan {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-style: italic;
    letter-spacing: 0.3em;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s backwards;
    position: relative;
}

.hero-slogan::before,
.hero-slogan::after {
    content: '—';
    margin: 0 1rem;
    opacity: 0.5;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: transparent;
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    transition: all var(--transition-normal);
    animation: fadeInUp 1s ease 0.6s backwards;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    transition: left var(--transition-normal);
    z-index: -1;
}

.hero-cta:hover {
    color: var(--color-black);
    border-color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.hero-cta:hover::before {
    left: 0;
}

.hero-cta svg {
    transition: transform var(--transition-normal);
}

.hero-cta:hover svg {
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    opacity: 0.6;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { 
        transform: translateY(0);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(15px);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-section {
    padding: var(--spacing-xxl) 0;
    background: var(--color-white);
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-black), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--color-black);
}

.section-header p {
    color: var(--color-grey);
    font-size: 1rem;
    margin-top: var(--spacing-md);
    letter-spacing: 0.1em;
}

/* Filters */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-grey-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    padding-left: 45px;
    border: 1px solid var(--color-black);
    border-radius: 0;
    font-size: 0.9rem;
    background: var(--color-white);
    transition: all var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.search-box svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-grey);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.filter-select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-black);
    border-radius: 0;
    font-size: 0.85rem;
    background: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.filter-select:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background: var(--color-white);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-black);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-grey-light);
}

.product-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
    filter: grayscale(20%);
}

.product-media--video {
    object-fit: cover;
    filter: grayscale(0%);
    pointer-events: none;
}

.product-card:hover .product-media {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.product-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    padding: 6px 14px;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0;
}

.product-badge.out-of-stock {
    background: var(--color-grey);
}

.product-badge.decant-badge {
    background: linear-gradient(135deg, #c9a227, #d4af37);
    color: #000;
}

.product-badge.bottle-badge {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
}

.product-badge.video-badge {
    top: auto;
    bottom: var(--spacing-sm);
    left: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.7);
}

.product-actions-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.product-card:hover .product-actions-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-action-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 0;
    transition: all var(--transition-bounce);
    border: 1px solid transparent;
}

.product-action-btn:hover {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
    transform: scale(1.1);
}

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

.product-info {
    padding: var(--spacing-lg);
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.product-brand {
    font-size: 0.7rem;
    color: var(--color-grey);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.product-name {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    letter-spacing: 0.05em;
}

.product-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-black);
    letter-spacing: 0.1em;
}

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

.stock-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-sm);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stock-indicator .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stock-indicator.in-stock .dot {
    background: var(--color-black);
}

.stock-indicator.low-stock .dot {
    background: var(--color-grey);
}

.stock-indicator.out-of-stock .dot {
    background: var(--color-grey-light);
}

/* ========================================
   PRODUCT MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    padding: var(--spacing-md);
}

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

.modal-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
}

/* Product Gallery */
.product-gallery {
    padding: var(--spacing-lg);
}

.gallery-main {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    background: var(--color-grey-light);
}

.gallery-main img,
.gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding-bottom: var(--spacing-xs);
}

.gallery-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--color-black);
}

.gallery-thumb img,
.gallery-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.video-thumb {
    position: relative;
}

.gallery-thumb.video-thumb::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-white);
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Product Details */
.product-details {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
}

.product-details .product-brand {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-xs);
}

.product-details .product-name {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.product-details .product-price {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.product-description {
    color: var(--color-grey-dark);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--color-grey-light);
    border-radius: var(--radius-md);
}

.product-meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.product-meta-item span:first-child {
    color: var(--color-grey);
}

/* Quantity Selector */
/* Size Selector for Decant Products */
.size-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.size-btn:hover {
    border-color: var(--color-gold);
}

.size-btn.selected,
.size-btn[data-selected="true"] {
    border: 2px solid var(--color-gold) !important;
    background: var(--color-gold) !important;
    color: white !important;
}

/* Purchase Type Selector for Both Products */
.purchase-type-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}

.purchase-type-btn:hover:not(.disabled) {
    border-color: var(--color-gold);
}

.purchase-type-btn.selected {
    border: 2px solid var(--color-gold) !important;
    background: var(--color-gold) !important;
    color: white !important;
}

.purchase-type-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* Both badge */
.product-badge.both-badge {
    background: linear-gradient(135deg, var(--color-gold), #8B4513);
    color: white;
    font-size: 0.7rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.quantity-selector label {
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-beige-dark);
    border-radius: var(--radius-sm);
}

.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background var(--transition-fast);
}

.quantity-btn:hover {
    background: var(--color-grey-light);
}

.quantity-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-beige-dark);
    border-right: 1px solid var(--color-beige-dark);
    font-size: 1rem;
    font-weight: 500;
}

.quantity-input:focus {
    outline: none;
}

/* Add to Cart Button */
.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    width: 100%;
    padding: var(--spacing-md);
    background: var(--color-black);
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 0;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--color-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.btn-add-to-cart:hover:not(:disabled)::before {
    width: 300%;
    height: 300%;
}

.btn-add-to-cart span,
.btn-add-to-cart svg {
    position: relative;
    z-index: 1;
    transition: color var(--transition-normal);
}

.btn-add-to-cart:hover:not(:disabled) {
    color: var(--color-black);
}

.btn-add-to-cart:disabled {
    background: var(--color-grey-light);
    color: var(--color-grey);
    cursor: not-allowed;
}

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

/* ========================================
   CART DRAWER
   ======================================== */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    z-index: 21000;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-normal);
}

.cart-drawer.active {
    right: 0;
}

[dir="rtl"] .cart-drawer {
    right: auto;
    left: -100%;
}

[dir="rtl"] .cart-drawer.active {
    left: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--color-beige-dark);
}

.cart-header h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
}

.cart-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.cart-close:hover {
    background: var(--color-grey-light);
}

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

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

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

.cart-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-beige-dark);
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--color-burgundy);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-beige-dark);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.cart-qty-btn:hover {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.cart-item-qty {
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}

.cart-item-remove {
    margin-left: auto;
    color: var(--color-grey);
    transition: color var(--transition-fast);
}

.cart-item-remove:hover {
    color: var(--color-error);
}

.cart-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--color-beige-dark);
    background: var(--color-grey-light);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.cart-subtotal span:last-child {
    font-weight: 600;
}

.btn-checkout {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--color-black);
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-black);
}

.btn-checkout:hover {
    background: var(--color-black-light);
}

.btn-checkout:disabled {
    background: var(--color-grey-dark);
    border-color: var(--color-grey-dark);
    color: var(--color-white);
    cursor: not-allowed;
    opacity: 0.7;
}

/* ========================================
   CHECKOUT MODAL
   ======================================== */
.checkout-modal .modal-content {
    max-width: 600px;
}

.checkout-form {
    padding: var(--spacing-lg);
}

.checkout-form h3 {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-beige-dark);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-black);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.payment-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border: 1px solid var(--color-beige-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-option:hover {
    border-color: var(--color-black);
}

.payment-option.selected {
    border-color: var(--color-black);
    background: rgba(0, 0, 0, 0.05);
}

.payment-option input {
    width: auto;
}

.order-summary {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--color-grey-light);
    border-radius: var(--radius-md);
}

.order-summary h4 {
    margin-bottom: var(--spacing-md);
}

.order-line {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    font-size: 0.95rem;
}

.order-line.total {
    border-top: 1px solid var(--color-beige-dark);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-place-order {
    width: 100%;
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--color-black);
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.btn-place-order:hover:not(:disabled) {
    background: var(--color-grey-dark);
    transform: translateY(-2px);
}

.btn-place-order:disabled {
    background: var(--color-grey);
    cursor: not-allowed;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    justify-content: flex-start;
}

.footer-logo img {
    height: 150px;
    filter: brightness(0) invert(1);
}

.footer-slogan {
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.footer-section h4 {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-section a {
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

[dir="rtl"] .toast-container {
    right: auto;
    left: var(--spacing-lg);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-black);
    color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: var(--color-success);
}

.toast.error {
    background: var(--color-error);
}

.toast svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

[dir="rtl"] .toast {
    animation-name: slideInRTL;
}

@keyframes slideInRTL {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   LOADING STATES
   ======================================== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: spin 0.8s linear infinite;
}

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

.skeleton {
    background: linear-gradient(90deg, var(--color-grey-light) 25%, var(--color-beige) 50%, var(--color-grey-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.products-loading {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.product-skeleton {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.product-skeleton .image {
    aspect-ratio: 1;
}

.product-skeleton .content {
    padding: var(--spacing-md);
}

.product-skeleton .line {
    height: 16px;
    margin-bottom: var(--spacing-sm);
}

.product-skeleton .line.short {
    width: 60%;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-wrap: wrap;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .product-card .product-name {
        font-size: 1rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .header-main {
        padding: var(--spacing-sm);
    }
    
    .logo img {
        height: 60px;
    }
    
    .logo-text {
        display: none;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-brand,
    .footer-brand p {
        text-align: center;
        margin: 0 auto;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .contact-social {
        justify-content: center;
    }
    
    .contact-social .social-link {
        width: 40px;
        height: 40px;
    }
    
    .logo {
        justify-content: center;
    }
    
    .header-main {
        justify-content: space-between;
    }
}

/* ========================================
   ADMIN PANEL STYLES
   ======================================== */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

@media (max-width: 968px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
}

/* Admin Sidebar */
.admin-sidebar {
    background: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-lg);
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

[dir="rtl"] .admin-sidebar {
    left: auto;
    right: 0;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo img {
    height: 150px;
    filter: brightness(0) invert(1);
}

.admin-logo span {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    opacity: 0.8;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.admin-nav svg {
    width: 20px;
    height: 20px;
}

.admin-logout {
    margin-top: auto;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Admin Main Content */
.admin-main {
    margin-left: 260px;
    padding: var(--spacing-lg);
    background: var(--color-grey-light);
    min-height: 100vh;
}

[dir="rtl"] .admin-main {
    margin-left: 0;
    margin-right: 260px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.admin-header h1 {
    font-size: 1.75rem;
}

/* Dashboard Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-card h3 {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 600;
}

.stat-card .trend {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: var(--spacing-xs);
    font-size: 0.85rem;
}

.stat-card .trend.up {
    color: var(--color-success);
}

.stat-card .trend.down {
    color: var(--color-error);
}

/* Admin Tables */
.admin-table-container {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: var(--spacing-md);
    text-align: left;
}

[dir="rtl"] .admin-table th,
[dir="rtl"] .admin-table td {
    text-align: right;
}

.admin-table th {
    background: var(--color-grey-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--color-beige-dark);
}

.admin-table tr:hover td {
    background: var(--color-grey-light);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
}

.status-badge.pending {
    background: rgba(212, 165, 116, 0.2);
    color: #b8860b;
}

.status-badge.processing {
    background: rgba(26, 39, 68, 0.1);
    color: var(--color-dark-blue);
}

.status-badge.shipped {
    background: rgba(45, 122, 79, 0.1);
    color: var(--color-success);
}

.status-badge.delivered {
    background: rgba(45, 122, 79, 0.2);
    color: var(--color-success);
}

.status-badge.cancelled {
    background: rgba(196, 69, 54, 0.1);
    color: var(--color-error);
}

/* Admin Forms */
.admin-form {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.admin-form .form-section {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-beige-dark);
}

.admin-form .form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.admin-form .form-section h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

/* Admin Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--color-black);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-dark-blue);
}

.btn-secondary {
    background: var(--color-grey-light);
    color: var(--color-black);
    border: 1px solid var(--color-beige-dark);
}

.btn-secondary:hover {
    background: var(--color-beige);
}

.btn-danger {
    background: var(--color-error);
    color: var(--color-white);
}

.btn-danger:hover {
    background: #a33a2d;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-copy-link {
    background: var(--color-gold);
    color: var(--color-black);
    border: none;
}

.btn-copy-link:hover {
    background: #c9a227;
}

/* Image Upload */
.image-upload {
    border: 2px dashed var(--color-beige-dark);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.image-upload:hover {
    border-color: var(--color-black);
    background: var(--color-grey-light);
}

.image-upload svg {
    width: 48px;
    height: 48px;
    color: var(--color-grey);
    margin-bottom: var(--spacing-sm);
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

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

.image-preview-item .remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--color-error);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Admin Login */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark-blue) 100%);
    padding: var(--spacing-lg);
}

.login-card {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card .logo {
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.login-card .logo img {
    height: 150px;
}

.login-card h1 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.login-card .slogan {
    font-family: var(--font-primary);
    font-style: italic;
    color: var(--color-grey);
    margin-bottom: var(--spacing-lg);
}

.login-card .form-group {
    text-align: left;
}

.login-card .btn-primary {
    width: 100%;
    padding: var(--spacing-md);
}

.login-error {
    background: rgba(196, 69, 54, 0.1);
    color: var(--color-error);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

/* Charts Container */
.chart-container {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
}

.chart-container h3 {
    margin-bottom: var(--spacing-md);
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-grey-light);
    border-radius: var(--radius-sm);
    color: var(--color-grey);
}

/* Mobile Admin */
@media (max-width: 968px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }
    
    [dir="rtl"] .admin-sidebar {
        transform: translateX(100%);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    [dir="rtl"] .admin-main {
        margin-right: 0;
    }
    
    .admin-menu-toggle {
        display: flex;
    }
}

.admin-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-xs);
    background: none;
    border: none;
    cursor: pointer;
}

.admin-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-black);
}

/* ========================================
   NEW HOMEPAGE SECTIONS
   ======================================== */

/* Featured Categories Section */
.categories-section {
    padding: var(--spacing-xxl) 0;
    background: var(--color-white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-lg);
    transition: all 0.4s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%);
}

.category-overlay h3 {
    color: var(--color-white);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.category-card:hover .category-overlay h3 {
    transform: translateY(0);
}

.category-overlay p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.category-card:hover .category-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* Marquee Section */
.marquee-section {
    background: var(--color-black);
    padding: var(--spacing-lg) 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xxl);
    padding-right: var(--spacing-xxl);
    white-space: nowrap;
}

.marquee-item {
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-style: italic;
    letter-spacing: 0.2em;
    opacity: 0.7;
}

.marquee-separator {
    color: var(--color-white);
    opacity: 0.3;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Features Section */
.features-section {
    padding: var(--spacing-xxl) 0;
    background: var(--color-grey-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-black);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: var(--color-black);
    color: var(--color-white);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-xs);
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--color-grey);
    line-height: 1.6;
}

/* Bestsellers Section */
.bestsellers-section {
    padding: var(--spacing-xxl) 0;
    background: var(--color-black);
    color: var(--color-white);
}

.bestsellers-section .section-header h2 {
    color: var(--color-white);
}

.bestsellers-section .section-header h2::after {
    background: var(--color-white);
}

.bestsellers-section .section-header p {
    color: rgba(255,255,255,0.6);
}

.bestsellers-scroll {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    padding: var(--spacing-md) 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.bestsellers-scroll::-webkit-scrollbar {
    display: none;
}

.bestseller-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    transition: all 0.4s ease;
}

.bestseller-card:hover {
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-5px);
}

.bestseller-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.bestseller-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: all 0.6s ease;
}

.bestseller-card:hover .bestseller-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.bestseller-rank {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    width: 40px;
    height: 40px;
    background: var(--color-white);
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.bestseller-info {
    padding: var(--spacing-md);
    text-align: center;
}

.bestseller-info h4 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.05em;
}

.bestseller-info .price {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--spacing-xxl) 0;
    background: var(--color-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    padding: var(--spacing-xl);
    border: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    border-color: var(--color-black);
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: var(--color-grey-dark);
}

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    line-height: 0;
    display: block;
    margin-bottom: var(--spacing-sm);
    opacity: 0.2;
}

.testimonial-author {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.testimonial-location {
    font-size: 0.8rem;
    color: var(--color-grey);
    margin-top: 4px;
}

/* Instagram Section */
.instagram-section {
    padding: var(--spacing-xxl) 0 0;
    background: var(--color-white);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}

@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.instagram-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.instagram-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay svg {
    width: 30px;
    height: 30px;
    color: var(--color-white);
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-xxl) 0;
    background: var(--color-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    margin-top: var(--spacing-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--color-black);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-text h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-text p {
    color: var(--color-gray);
    font-size: 0.95rem;
}

.contact-social {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.contact-social .social-link {
    width: 45px;
    height: 45px;
    background: var(--color-black);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.contact-social .social-link:hover {
    background: var(--color-gold);
    transform: translateY(-3px);
}

.contact-social .social-link svg {
    width: 20px;
    height: 20px;
}

.contact-form {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.contact-form .form-group {
    margin-bottom: var(--spacing-md);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--color-beige-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-black);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.contact-form button:hover {
    background: var(--color-gold);
    color: var(--color-black);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .contact-form {
        padding: var(--spacing-lg);
    }
}

/* Newsletter Section */
.newsletter-section {
    padding: var(--spacing-xxl) 0;
    background: var(--color-black);
    color: var(--color-white);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-weight: 200;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.newsletter-content p {
    opacity: 0.7;
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: var(--spacing-md);
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: var(--color-white);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-white);
}

.newsletter-form button {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-white);
    color: var(--color-black);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--color-white);
    cursor: pointer;
    transition: all 0.4s ease;
}

.newsletter-form button:hover {
    background: transparent;
    color: var(--color-white);
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .cart-drawer, .modal-overlay, .toast-container {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .products-section {
        padding: 0;
        background: white;
    }
}

/* ========================================
   ADVANCED ANIMATIONS & EFFECTS
   ======================================== */

/* Reveal on scroll animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerIn 0.6s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

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

/* Magnetic button effect */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cursor follower styles */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-black);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5000;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;
    mix-blend-mode: difference;
}

/* Hide cursor follower on mobile */
@media (max-width: 968px) {
    .cursor-follower {
        display: none !important;
    }
}

.cursor-follower.hover {
    width: 50px;
    height: 50px;
    background: var(--color-white);
}

/* Smooth image loading */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Text reveal animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
    to {
        transform: translateY(0);
    }
}

/* Parallax effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Line draw animation */
.line-draw {
    position: relative;
}

.line-draw::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-black);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.line-draw:hover::after {
    width: 100%;
}

/* Fade scale animation */
@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Rotate in animation */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* Slide from left */
@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide from right */
@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Breathing animation for elements */
.breathing {
    animation: breathing 4s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #000 0%, #333 50%, #000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Noise texture overlay */
.noise-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Smooth scroll indicator pulse */
.scroll-pulse {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* Button ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Card tilt effect on hover */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
}

/* Underline animation */
.underline-anim {
    position: relative;
    display: inline-block;
}

.underline-anim::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.underline-anim:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Loading dots animation */
.loading-dots span {
    animation: loadingDots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingDots {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

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

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

.back-to-top:hover {
    background: var(--color-gold);
    color: var(--color-black);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
