/* Rimal Al Khalij - Complete Design System with Video Hero and Transparent Header */

/* Google Fonts Import - Updated with Tajawal for Arabic */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/* CSS Variables - Design Tokens */
:root {
    /* Primary Colors */
    --color-charcoal: #101010;
    --color-ivory: #F6F3EE;
    --color-taupe: #B8A899;
    --color-gold: #C8AD7F;
    /* Semantic Colors */
    --color-primary: var(--color-charcoal);
    --color-background: var(--color-ivory);
    --color-surface: #FFFFFF;
    --color-accent: var(--color-gold);
    --color-secondary: var(--color-taupe);
    /* Text Colors */
    --text-primary: var(--color-charcoal);
    --text-secondary: var(--color-taupe);
    --text-light: #FFFFFF;
    --text-muted: #8B8680;
    /* Typography - Updated with Tajawal */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-arabic: 'Tajawal', sans-serif;
    /* Type Scale */
    --text-xs: 0.75rem; /* 12px */
    --text-sm: 0.875rem; /* 14px */
    --text-base: 1rem; /* 16px */
    --text-lg: 1.125rem; /* 18px */
    --text-xl: 1.25rem; /* 20px */
    --text-2xl: 1.5rem; /* 24px */
    --text-3xl: 1.875rem; /* 30px */
    --text-4xl: 2.25rem; /* 36px */
    --text-5xl: 3rem; /* 48px */
    /* Spacing Scale */
    --space-1: 0.25rem; /* 4px */
    --space-2: 0.5rem; /* 8px */
    --space-3: 0.75rem; /* 12px */
    --space-4: 1rem; /* 16px */
    --space-5: 1.25rem; /* 20px */
    --space-6: 1.5rem; /* 24px */
    --space-8: 2rem; /* 32px */
    --space-10: 2.5rem; /* 40px */
    --space-12: 3rem; /* 48px */
    --space-16: 4rem; /* 64px */
    --space-20: 5rem; /* 80px */
    /* Breakpoints */
    --breakpoint-sm: 640px; /* Mobile landscape */
    --breakpoint-md: 768px; /* Tablet */
    --breakpoint-lg: 1024px; /* Laptop */
    --breakpoint-xl: 1280px; /* Desktop */
    --breakpoint-2xl: 1536px; /* Large screens */
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(16, 16, 16, 0.05);
    --shadow-md: 0 4px 6px rgba(16, 16, 16, 0.1);
    --shadow-lg: 0 10px 15px rgba(16, 16, 16, 0.1);
    --shadow-xl: 0 20px 25px rgba(16, 16, 16, 0.1);
    /* Border Radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 16px;
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for sticky header height */
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Arabic Text Styling */
[dir="rtl"] {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
}

    [dir="rtl"] .heading-1,
    [dir="rtl"] .heading-2,
    [dir="rtl"] .heading-3,
    [dir="rtl"] .heading-4 {
        font-family: var(--font-arabic);
        font-weight: 700;
    }

/* Language-specific body styling */
body[dir="rtl"] {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
}

body[dir="ltr"] {
    font-family: var(--font-body);
    direction: ltr;
    text-align: left;
}

/* Typography Classes */
.heading-1 {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

.heading-2 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.heading-3 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
}

.heading-4 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
}

/* Arabic headings use Tajawal */
[dir="rtl"] .heading-1,
[dir="rtl"] .heading-2,
[dir="rtl"] .heading-3,
[dir="rtl"] .heading-4 {
    font-family: var(--font-arabic);
    font-weight: 700;
}

.body-large {
    font-size: var(--text-lg);
    line-height: 1.6;
}

.body-small {
    font-size: var(--text-sm);
    line-height: 1.5;
}

.text-muted {
    color: var(--text-muted);
}

.text-secondary {
    color: var(--text-secondary);
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(0);
    }

.btn-primary {
    background: var(--color-charcoal);
    color: var(--text-light);
}

    .btn-primary:hover {
        background: #2a2a2a;
        box-shadow: var(--shadow-md);
    }

.btn-secondary {
    background: transparent;
    color: var(--color-charcoal);
    border: 1px solid var(--color-charcoal);
}

    .btn-secondary:hover {
        background: var(--color-charcoal);
        color: var(--text-light);
        box-shadow: var(--shadow-md);
    }

.btn-accent {
    background: var(--color-gold);
    color: var(--color-charcoal);
}

    .btn-accent:hover {
        background: #d4b888;
        box-shadow: var(--shadow-md);
    }

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* Input Components */
.input-field {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-taupe);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--color-surface);
    transition: border-color var(--transition-normal);
}

    .input-field:focus {
        outline: none;
        border-color: var(--color-gold);
        box-shadow: 0 0 0 3px rgba(200, 173, 127, 0.1);
    }

    .input-field::placeholder {
        color: var(--text-muted);
    }

/* Card Components */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.card-padding {
    padding: var(--space-6);
}

.card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Layout Components */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-large {
    max-width: 1536px;
}

.container-small {
    max-width: 768px;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grid */
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-center {
    align-items: center;
    justify-content: center;
}

.flex-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

/* Spacing Utilities */
.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mt-12 {
    margin-top: var(--space-12);
}

.p-4 {
    padding: var(--space-4);
}

.p-6 {
    padding: var(--space-6);
}

.p-8 {
    padding: var(--space-8);
}

.py-4 {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
}

.py-6 {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
}

.py-8 {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.px-4 {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.px-6 {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.px-8 {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

/* Text Alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Background Colors */
.bg-primary {
    background-color: var(--color-charcoal);
}

.bg-secondary {
    background-color: var(--color-taupe);
}

.bg-accent {
    background-color: var(--color-gold);
}

.bg-surface {
    background-color: var(--color-surface);
}

.bg-background {
    background-color: var(--color-background);
}

/* RTL Support */
[dir="rtl"] .flex-between {
    flex-direction: row-reverse;
}

/* RTL specific adjustments */
[dir="rtl"] .hero-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-content {
    direction: rtl;
}

[dir="rtl"] .search-input {
    text-align: right;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--color-taupe);
    border-radius: 50%;
    border-top-color: var(--color-gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    .heading-1 {
        font-size: var(--text-4xl);
    }

    .heading-2 {
        font-size: var(--text-3xl);
    }

    .heading-3 {
        font-size: var(--text-2xl);
    }

    .heading-4 {
        font-size: var(--text-xl);
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Remove default Blazor styles */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHZpZXdCb3g9IjAgMCA1NiA0OSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjUgNi41TDMwLjUgMjkuNUw0Ny41IDYuNUgxMy41WiIgZmlsbD0iIzFCNkVDMiIvPgo8cGF0aCBkPSJNMzAuNSAzM0wyNi41IDI5LjVIMzQuNUwzMC41IDMzWiIgZmlsbD0iIzFCNkVDMiIvPgo8L3N2Zz4K) no-repeat 1rem/1.8rem, #b32121;
    background-color: var(--color-charcoal);
    color: var(--text-light);
}

/* Override Default Blazor Styles */
#app {
    background: var(--color-surface) !important;
    min-height: 100vh;
}

body {
    background: var(--color-surface) !important;
}

html {
    background: var(--color-surface) !important;
}

/* Override any existing gradients */
.page {
    background: var(--color-surface) !important;
}

main {
    background: var(--color-surface) !important;
}

/* =============================================== */
/* TRANSPARENT HEADER INTEGRATION */
/* =============================================== */

/* Transparent Header Overlay */
.overlay-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem 0;
}

    .overlay-header.non-home-page {
        background: rgba(16, 16, 16, 0.98) !important;
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(200, 173, 127, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    /* Header becomes sticky with background on scroll */
    .overlay-header.scrolled {
        position: fixed;
        background: rgba(16, 16, 16, 0.98) !important;
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(200, 173, 127, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        padding: 1rem 0;
    }

        .overlay-header.scrolled .brand-name,
        .overlay-header.scrolled .nav-link,
        .overlay-header.scrolled .cart-button,
        .overlay-header.non-home-page .brand-name,
        .overlay-header.non-home-page .nav-link,
        .overlay-header.non-home-page .cart-button {
            color: white !important;
            text-shadow: none !important;
        }

        /* Text color changes when scrolled */
        .overlay-header.scrolled .brand-name,
        .overlay-header.scrolled .nav-link {
            color: var(--color-charcoal) ;
            text-shadow: none !important;
        }

        .overlay-header.scrolled .brand-tagline {
            color: var(--color-gold) !important;
            text-shadow: none !important;
        }

        .overlay-header.scrolled .nav-link:hover,
        .overlay-header.scrolled .nav-link.active {
            color: var(--color-gold) !important;
        }

        /* Button styles when scrolled */
        .overlay-header.scrolled .cart-button,
        .overlay-header.scrolled .language-btn,
        .overlay-header.scrolled .mobile-menu-btn {
            background: rgba(255, 255, 255, 0.1) !important;
            border-color: rgba(255, 255, 255, 0.3) !important;
            color: white;
        }

            .overlay-header.scrolled .cart-button:hover,
            .overlay-header.scrolled .language-btn:hover {
                background: var(--color-gold) !important;
                color: var(--color-charcoal) ;
            }

            .overlay-header.scrolled .mobile-menu-btn span {
                background: var(--color-charcoal) !important;
            }

/* Header Content */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

/* Logo Section */
.logo-section {
    flex: 0 0 auto;
    min-width: 250px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

    .brand-logo:hover {
        transform: scale(1.02);
    }

.actual-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.company-logo {
    filter: drop-shadow(0 2px 8px rgba(200, 173, 127, 0.6));
    transition: all 0.3s ease;
}

.brand-logo:hover .company-logo {
    filter: drop-shadow(0 4px 12px rgba(200, 173, 127, 0.8));
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

/* Arabic brand name uses Tajawal */
[dir="rtl"] .brand-name {
    font-family: var(--font-arabic);
    font-weight: 700;
}

.brand-tagline {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-gold);
    font-style: italic;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Arabic tagline uses Tajawal */
[dir="rtl"] .brand-tagline {
    font-family: var(--font-arabic);
    font-style: normal;
    font-weight: 400;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    gap: 3rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-family: inherit;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--color-gold);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--color-gold);
            box-shadow: 0 0 8px rgba(200, 173, 127, 0.6);
        }

/* Arabic navigation uses Tajawal */
[dir="rtl"] .nav-link {
    font-family: var(--font-arabic);
    font-weight: 500;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
    min-width: 150px;
    justify-content: flex-end;
}

.cart-button {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    backdrop-filter: blur(10px);
}

    .cart-button:hover {
        background: rgba(200, 173, 127, 0.9);
        border-color: var(--color-gold);
        color: var(--color-charcoal);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(200, 173, 127, 0.4);
    }

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-gold);
    color: var(--color-charcoal);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: white;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-family: var(--font-arabic);
}

    .language-btn:hover {
        background: rgba(200, 173, 127, 0.9);
        border-color: var(--color-gold);
        color: var(--color-charcoal);
        text-shadow: none;
        box-shadow: 0 4px 15px rgba(200, 173, 127, 0.4);
    }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0.5rem;
    gap: 3px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

    .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .mobile-menu-btn span {
        width: 20px;
        height: 2px;
        background: white;
        transition: all 0.3s ease;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

.mobile-menu {
    background: rgba(16, 16, 16, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(200, 173, 127, 0.3);
    padding: 1rem 0;
    animation: slideDown 0.3s ease;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: inherit;
}

    .mobile-nav-link:hover {
        background: rgba(200, 173, 127, 0.2);
        color: var(--color-gold);
    }

/* Arabic mobile nav uses Tajawal */
[dir="rtl"] .mobile-nav-link {
    font-family: var(--font-arabic);
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================== */
/* HERO SECTION WITH TRANSPARENT HEADER */
/* =============================================== */

/* Hero Section - Full viewport height with transparent header overlay */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-charcoal);
    padding-top: 0;
}

/* Video Background Container */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.3s ease;
}

/* Video Overlay for Text Readability */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient( 135deg, rgba(16, 16, 16, 0.7) 0%, rgba(200, 173, 127, 0.4) 30%, rgba(16, 16, 16, 0.6) 70%, rgba(16, 16, 16, 0.8) 100% );
    z-index: 2;
}

/* Hero Content (Text and Buttons) */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: var(--space-20) 0 var(--space-16) 0;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Title */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: white !important;
    margin-bottom: var(--space-4);
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, #ffffff 0%, var(--color-gold) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

/* Arabic hero title uses Tajawal */
[dir="rtl"] .hero-title {
    font-family: var(--font-arabic);
    font-weight: 800;
}

/* Hero Description */
.hero-description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.95) !important;
    max-width: 500px;
    margin: 0 auto var(--space-8);
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    font-weight: 400;
    font-family: inherit;
}

/* Arabic hero description uses Tajawal */
[dir="rtl"] .hero-description {
    font-family: var(--font-arabic);
    font-weight: 400;
}

/* Enhanced Hero Actions */
.hero-actions {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s ease;
    min-width: 180px;
    text-align: center;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    font-family: inherit;
}

/* Arabic hero buttons use Tajawal */
[dir="rtl"] .btn-hero {
    font-family: var(--font-arabic);
    font-weight: 600;
}

.btn-hero.btn-primary {
    background: rgba(200, 173, 127, 0.9);
    color: var(--color-charcoal);
    box-shadow: 0 10px 30px rgba(200, 173, 127, 0.4);
    border-color: rgba(200, 173, 127, 0.5);
}

.btn-hero.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
}

.btn-hero:hover {
    transform: translateY(-4px) scale(1.05);
}

.btn-hero.btn-primary:hover {
    background: var(--color-gold);
    color: var(--color-charcoal);
    box-shadow: 0 15px 40px rgba(200, 173, 127, 0.6);
}

.btn-hero.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-charcoal);
    border-color: white;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Enhanced Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 3;
}

.scroll-arrow {
    width: 28px;
    height: 28px;
    border-right: 3px solid var(--color-gold);
    border-bottom: 3px solid var(--color-gold);
    transform: rotate(45deg);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-12px);
    }

    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

/* Fallback Background for No Video Support */
.hero-section.no-video {
    background: linear-gradient(135deg, var(--color-charcoal) 0%, #2a2a2a 50%, var(--color-charcoal) 100%);
}

    .hero-section.no-video .hero-title {
        color: white !important;
        -webkit-text-fill-color: white !important;
    }

    .hero-section.no-video .hero-description {
        color: rgba(255, 255, 255, 0.9) !important;
    }

/* Video Loading State */
.hero-video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    z-index: 2;
}

    .hero-video-loading .loading-circle {
        background: var(--color-gold);
    }

/* Add subtle animation to video container */
.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(200, 173, 127, 0.1) 49%, rgba(200, 173, 127, 0.1) 51%, transparent 52%);
    opacity: 0;
    animation: videoShimmer 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes videoShimmer {
    0%, 100% {
        opacity: 0;
        transform: translateX(-100%);
    }

    50% {
        opacity: 0.3;
        transform: translateX(100%);
    }
}

/* =============================================== */
/* LUXURY COMPONENTS & SECTIONS */
/* =============================================== */

/* Main Content Adjustment */
.main-content {
    margin-top: 0;
}

/* Sections */
.featured-section,
.categories-section {
    padding: var(--space-16) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: var(--space-3);
}

/* Arabic section titles use Tajawal */
[dir="rtl"] .section-title {
    font-family: var(--font-arabic);
    font-weight: 700;
}

.section-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: inherit;
}

/* Arabic section descriptions use Tajawal */
[dir="rtl"] .section-description {
    font-family: var(--font-arabic);
    font-weight: 400;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

/* Product Card Styles */
.product-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(16, 16, 16, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(200, 173, 127, 0.1);
}

    .product-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 60px rgba(16, 16, 16, 0.15);
        border-color: rgba(200, 173, 127, 0.3);
    }

.product-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f6f3ee 0%, #ffffff 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 16, 16, 0.7) 0%, rgba(200, 173, 127, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .action-btn:hover {
        background: var(--color-gold);
        border-color: var(--color-gold);
        color: var(--color-charcoal);
        transform: scale(1.1);
    }

.out-of-stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    font-family: inherit;
}

/* Arabic out of stock badge */
[dir="rtl"] .out-of-stock-badge {
    left: auto;
    right: 12px;
    font-family: var(--font-arabic);
}

.product-content {
    padding: 20px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.product-category,
.product-occasion {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-gold), #d4b888);
    color: var(--color-charcoal);
    font-family: inherit;
}

/* Arabic product categories */
[dir="rtl"] .product-category,
[dir="rtl"] .product-occasion {
    font-family: var(--font-arabic);
    text-transform: none;
    font-weight: 500;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-charcoal);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

/* Arabic product names use Tajawal */
[dir="rtl"] .product-name {
    font-family: var(--font-arabic);
    font-weight: 700;
}

.product-name-ar {
    font-family: var(--font-arabic);
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    direction: rtl;
    text-align: right;
    font-weight: 500;
}

.fragrance-notes {
    margin-bottom: 16px;
}

.note-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-family: inherit;
}

/* Arabic fragrance notes */
[dir="rtl"] .note-item {
    font-family: var(--font-arabic);
}

.note-label {
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 30px;
}

.note-value {
    color: var(--text-primary);
    font-style: italic;
}

/* Arabic note values */
[dir="rtl"] .note-value {
    font-style: normal;
}

.product-sizes {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.size-badge {
    font-size: 11px;
    padding: 4px 8px;
    background: rgba(184, 168, 153, 0.1);
    color: var(--text-secondary);
    border-radius: 8px;
    border: 1px solid rgba(184, 168, 153, 0.2);
    font-weight: 500;
    font-family: inherit;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.currency {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: inherit;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-charcoal);
    font-family: var(--font-heading);
}

/* Arabic prices use Tajawal */
[dir="rtl"] .price,
[dir="rtl"] .currency {
    font-family: var(--font-arabic);
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--color-charcoal) 0%, #2a2a2a 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 16, 16, 0.2);
    font-family: inherit;
}

/* Arabic add to cart button */
[dir="rtl"] .add-to-cart-btn {
    font-family: var(--font-arabic);
    font-weight: 600;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--color-gold) 0%, #d4b888 100%);
    color: var(--color-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 173, 127, 0.4);
}

.add-to-cart-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading Animation */
.loading-container {
    text-align: center;
    padding: var(--space-12) 0;
}

.luxury-loading {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.loading-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold) 0%, #d4b888 100%);
    animation: luxuryPulse 1.5s ease-in-out infinite;
}

    .loading-circle:nth-child(2) {
        animation-delay: 0.3s;
    }

    .loading-circle:nth-child(3) {
        animation-delay: 0.6s;
    }

@keyframes luxuryPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

.loading-text {
    color: var(--text-secondary);
    font-style: italic;
    font-size: var(--text-lg);
    font-family: inherit;
}

/* Arabic loading text */
[dir="rtl"] .loading-text {
    font-family: var(--font-arabic);
    font-style: normal;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.category-card {
    position: relative;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.4s ease;
}

    .category-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 60px rgba(16, 16, 16, 0.2);
    }

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 16, 16, 0.7) 0%, rgba(200, 173, 127, 0.3) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
}

.category-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

/* Arabic category titles use Tajawal */
[dir="rtl"] .category-title {
    font-family: var(--font-arabic);
    font-weight: 700;
}

.category-btn {
    padding: var(--space-3) var(--space-6);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
}

/* Arabic category buttons */
[dir="rtl"] .category-btn {
    font-family: var(--font-arabic);
    font-weight: 600;
}

.category-btn:hover {
    background: var(--color-gold);
    color: var(--color-charcoal);
    border-color: var(--color-gold);
}

/* View All Button */
.section-footer {
    text-align: center;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: linear-gradient(135deg, var(--color-gold) 0%, #d4b888 100%);
    color: var(--color-charcoal);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(200, 173, 127, 0.3);
    font-family: inherit;
}

/* Arabic view all button */
[dir="rtl"] .view-all-btn {
    font-family: var(--font-arabic);
    font-weight: 600;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(200, 173, 127, 0.4);
}

/* Enhanced animations and effects */
.featured-section {
    position: relative;
    overflow: hidden;
}

    .featured-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 10% 20%, rgba(200, 173, 127, 0.05) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(184, 168, 153, 0.05) 0%, transparent 50%);
        pointer-events: none;
    }

.categories-section {
    background: linear-gradient(135deg, #ffffff 0%, var(--color-background) 50%, #ffffff 100%);
}

/* Luxury shimmer effect for product cards */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(200, 173, 127, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover::before {
    animation: shimmer 0.8s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Intersection Observer Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

    .fade-in-left.visible {
        opacity: 1;
        transform: translateX(0);
    }

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

    .fade-in-right.visible {
        opacity: 1;
        transform: translateX(0);
    }

/* =============================================== */
/* RESPONSIVE DESIGN */
/* =============================================== */

/* Header Responsive */
@media (max-width: 1200px) {
    .main-navigation {
        gap: 2rem;
        max-width: 500px;
    }
}

@media (max-width: 1024px) {
    .main-navigation {
        gap: 1.5rem;
        max-width: 400px;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .logo-section {
        min-width: 200px;
    }

    .header-actions {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .brand-tagline {
        font-size: 0.7rem;
    }

    .company-logo {
        width: 50px;
        height: 50px;
    }

    .cart-button {
        width: 40px;
        height: 40px;
    }

    .language-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Hero Mobile Optimizations */
    .hero-section {
        min-height: 90vh;
    }

    .hero-content {
        padding: var(--space-16) 0 var(--space-12) 0;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem) !important;
    }

    .hero-description {
        font-size: var(--text-base) !important;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
    }

    .btn-hero {
        width: 250px;
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }

    .scroll-arrow {
        width: 24px;
        height: 24px;
    }

    /* Sections Mobile */
    .featured-section,
    .categories-section {
        padding: var(--space-10) 0 !important;
    }

    .products-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-4) !important;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .category-card {
        height: 250px !important;
    }

    .product-image-container {
        height: 220px !important;
    }

    .product-content {
        padding: 16px !important;
    }

    .price {
        font-size: 20px !important;
    }

    .add-to-cart-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .overlay-header {
        padding: 0.75rem 0;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .brand-tagline {
        font-size: 0.65rem;
    }

    .company-logo {
        width: 45px;
        height: 45px;
    }

    .cart-button {
        width: 38px;
        height: 38px;
    }

    .language-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }

    /* Hero Ultra Mobile */
    .hero-section {
        min-height: 85vh;
    }

    .hero-content {
        padding: var(--space-12) 0 var(--space-10) 0;
    }

    .section-header {
        margin-bottom: var(--space-8);
    }

    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
        margin-bottom: var(--space-3);
    }

    .hero-description {
        font-size: var(--text-sm) !important;
        max-width: 90%;
    }

    .section-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
    }
}

/* RTL Responsive Adjustments */
[dir="rtl"] .cart-badge {
    left: -4px;
    right: auto;
}

/* =============================================== */
/* ACCESSIBILITY & PERFORMANCE */
/* =============================================== */

/* Focus styles for accessibility */
.nav-link:focus,
.cart-button:focus,
.language-btn:focus,
.mobile-menu-btn:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .overlay-header {
        transition: none;
    }

    .hero-video {
        animation-play-state: paused;
    }

    .hero-scroll-indicator {
        animation: none;
    }

    .btn-hero:hover {
        transform: none;
    }

    .product-card:hover {
        transform: none;
    }

    .category-card:hover {
        transform: none;
    }

    .shimmer,
    .videoShimmer,
    .luxuryPulse,
    .bounce {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-video-overlay {
        background: rgba(0, 0, 0, 0.8);
    }

    .hero-title {
        color: white !important;
        -webkit-text-fill-color: white !important;
        text-shadow: 2px 2px 4px black;
    }

    .hero-description {
        color: white !important;
        text-shadow: 1px 1px 2px black;
    }

    .overlay-header.scrolled {
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 2px solid var(--color-charcoal);
    }
}

/* Video Performance */
.hero-video.paused {
    opacity: 0.8;
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .hero-video,
    .hero-video-container,
    .hero-video-overlay {
        display: none !important;
    }

    .hero-section {
        background: white !important;
        min-height: auto !important;
        padding: var(--space-8) 0 !important;
    }

    .hero-title,
    .hero-description {
        color: black !important;
        text-shadow: none !important;
    }

    .overlay-header {
        position: static !important;
        background: white !important;
    }
}
