/* ============================================
   LUXE 2026 - Design System
   ============================================ */

:root {
    /* Color Palette - Copper & Slate */
    --color-primary: #B87333;
    --color-primary-light: #D4A574;
    --color-primary-dark: #8B5A2B;
    --color-slate: #2F3640;
    --color-slate-light: #4A5568;
    --color-cream: #F5F0EB;
    --color-cream-dark: #E8E0D5;
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    
    /* Typography */
    --font-display: 'Clash Display', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-slate);
    background-color: var(--color-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    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");
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(245, 240, 235, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(47, 54, 64, 0.05);
    transition: var(--transition-base);
}

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-slate);
    letter-spacing: 0.05em;
}

.nav-year {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-light);
    text-decoration: none;
    position: relative;
    transition: var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-base);
}

.nav-links a:hover {
    color: var(--color-slate);
}

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

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

.language-selector {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.lang-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-slate-light);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--color-slate);
}

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

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--color-slate);
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-primary);
    border-radius: var(--radius-full);
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-bounce);
}

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

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--space-3xl) + 80px) var(--space-lg) var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(184, 115, 51, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 600;
    line-height: 1;
    color: var(--color-slate);
    margin-bottom: var(--space-md);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-slate-light);
    margin-bottom: var(--space-xl);
    max-width: 480px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-visual {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    height: 80%;
    z-index: 1;
}

.hero-shape {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.15;
    animation: morphShape 15s ease-in-out infinite;
}

.hero-shape-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    right: 10%;
    top: 20%;
    background: linear-gradient(135deg, var(--color-slate) 0%, var(--color-slate-light) 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    opacity: 0.08;
    animation: morphShape 12s ease-in-out infinite reverse;
}

@keyframes morphShape {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg);
    }
    25% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(90deg);
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(180deg);
    }
    75% {
        border-radius: 60% 40% 60% 40% / 70% 30% 50% 50%;
        transform: rotate(270deg);
    }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    color: var(--color-white);
    background: var(--color-primary);
    box-shadow: 0 4px 14px rgba(184, 115, 51, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 115, 51, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    color: var(--color-slate);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--color-cream-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Features Section
   ============================================ */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    padding: var(--space-2xl) var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: var(--space-xl);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--color-primary);
    background: rgba(184, 115, 51, 0.1);
    border-radius: var(--radius-full);
}

.feature h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-slate);
    margin-bottom: var(--space-xs);
}

.feature p {
    font-size: 0.875rem;
    color: var(--color-slate-light);
}

/* ============================================
   Products Section
   ============================================ */

.products {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--color-white);
}

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

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--color-slate);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

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

.product-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-cream-dark) 0%, var(--color-cream) 100%);
    position: relative;
}

.product-1 { background: linear-gradient(135deg, #E8DDD4 0%, #D4C4B0 100%); }
.product-2 { background: linear-gradient(135deg, #E4DED5 0%, #C9B8A0 100%); }
.product-3 { background: linear-gradient(135deg, #D4C4B0 0%, #B8A090 100%); }
.product-4 { background: linear-gradient(135deg, #C9B8A0 0%, #A89080 100%); }
.product-5 { background: linear-gradient(135deg, #E8E0D5 0%, #D4C9BC 100%); }
.product-6 { background: linear-gradient(135deg, #F0E8E0 0%, #E0D4C8 100%); }

.product-wishlist {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate);
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

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

.product-wishlist:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

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

.product-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-slate);
    margin-bottom: 4px;
}

.product-category {
    font-size: 0.75rem;
    color: var(--color-slate-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

.btn-add-cart {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-slate);
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn-add-cart:hover {
    color: var(--color-white);
    background: var(--color-primary);
    transform: scale(1.05);
}

/* ============================================
   About Section
   ============================================ */

.about {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--color-slate);
    color: var(--color-cream);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about .section-label {
    color: var(--color-primary-light);
}

.about .section-title {
    color: var(--color-cream);
    margin-bottom: var(--space-lg);
}

.about p {
    font-size: 1.125rem;
    color: rgba(245, 240, 235, 0.8);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-primary-light);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(245, 240, 235, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
    background: var(--color-black);
    color: var(--color-cream);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto var(--space-xl);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-cream);
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(245, 240, 235, 0.6);
    max-width: 280px;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-cream);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a {
    display: block;
    font-size: 0.875rem;
    color: rgba(245, 240, 235, 0.6);
    text-decoration: none;
    margin-bottom: var(--space-xs);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(245, 240, 235, 0.1);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(245, 240, 235, 0.4);
}

/* ============================================
   Cart Sidebar
   ============================================ */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--color-white);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

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

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

.cart-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-slate);
}

.cart-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

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

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

.cart-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-cream);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    animation: slideIn 0.3s ease-out;
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--color-cream-dark);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

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

.cart-item-name {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
}

.cart-item-remove {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate-light);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.cart-item-remove:hover {
    color: #E74C3C;
}

.cart-empty {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--color-slate-light);
}

.cart-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--color-cream-dark);
}

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

.cart-total-amount {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-slate);
}

.btn-checkout {
    width: 100%;
}

/* ============================================
   Toast Notifications
   ============================================ */

.toast-container {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    padding: var(--space-md) var(--space-lg);
    background: var(--color-slate);
    color: var(--color-cream);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    animation: toastIn 0.3s ease-out;
    min-width: 300px;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast.success {
    background: #27AE60;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ============================================
   RTL Support
   ============================================ */

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-visual {
    right: auto;
    left: -10%;
}

[dir="rtl"] .cart-sidebar {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}

[dir="rtl"] .cart-sidebar.open {
    transform: translateX(0);
}

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

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .hero-visual {
        opacity: 0.5;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .language-selector {
        display: none;
    }
    
    .hero {
        padding-top: calc(var(--space-2xl) + 80px);
    }
    
    .hero-visual {
        display: none;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: none;
    }
    
    .cart-sidebar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* ============================================
   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;
    }
}