/* ============================================
   ARESHI FEB - LUXURY BRAND SYSTEM CSS
   Premium Fashion E-Commerce Identity
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS VARIABLES - LUXURY COLOR SYSTEM
   ============================================ */
:root {
    /* Primary Palette */
    --primary: #C8A96A;
    --primary-dark: #B8924A;
    --primary-light: #E4D1A0;
    --secondary: #111111;
    --white: #FFFFFF;
    --light: #F8F6F3;
    --dark: #1A1A1A;
    
    /* Text Colors */
    --text: #333333;
    --text-light: #777777;
    --text-lighter: #BBBBBB;
    
    /* Border & Dividers */
    --border: #E5E5E5;
    --border-light: #EEEEEE;
    
    /* Status Colors */
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --sale: #D32F2F;
    
    /* Gradients */
    --gold-gradient: linear-gradient(135deg, #111111 0%, #2B2B2B 40%, #C8A96A 100%);
    --gold-gradient-vertical: linear-gradient(180deg, #E8C55A 0%, #C8A96A 50%, #B8924A 100%);
    --gold-gradient-horizontal: linear-gradient(90deg, #E8C55A 0%, #C8A96A 50%, #B8924A 100%);
    
    /* Shadows */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 15px 40px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 4px 20px rgba(200, 169, 106, 0.3);
    
    /* Typography */
    --font-serif: 'Didot', 'Bodoni MT', 'Playfair Display', 'Times New Roman', serif;
    --font-sans: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', 'Didot', 'Bodoni MT', 'Times New Roman', serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Border Radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--secondary);
}

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

.text-gold-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--primary);
}

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

.btn-gold {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-gold:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-fallback {
    display: none;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

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

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

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

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: color var(--transition-fast);
}

.nav-icon:hover {
    color: var(--primary);
}

.nav-cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.toggler-line {
    width: 24px;
    height: 2px;
    background: var(--secondary);
    transition: all var(--transition-base);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--secondary);
    color: var(--text-lighter);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-lighter);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    font-size: 0.9rem;
    color: var(--text-lighter);
    transition: color var(--transition-fast);
}

.footer ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--dark);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    position: relative;
    width: 200px;
    margin: 0 auto 2rem;
}

.preloader-svg {
    width: 100%;
    height: auto;
    display: block;
}

.preloader-spinner {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-dark);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translateX(-50%) rotate(360deg); }
}

.preloader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.preloader-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--primary);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.preloader-tagline {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--text-light);
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.6s forwards;
}

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

/* ============================================
   BRAND UTILITIES
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gold-gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all var(--transition-slow);
}

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

/* ============================================
   FORMS
   ============================================ */
.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.1);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
}

.badge-sale {
    background: var(--sale);
    color: var(--white);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .navbar-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-toggler {
        display: flex;
    }
    
    .navbar-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
    }
    
    .navbar-menu {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}
