:root {
    --bg-color: #0a0a0a;
    --surface-color: #141414;
    --surface-hover: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent-color: #D4AF37; /* Soft Gold */
    --accent-hover: #F3E5AB;
    --border-color: #262626;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: auto; /* Overridden by Lenis */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, mix-blend-mode 0.3s ease;
    mix-blend-mode: exclusion;
}

.cursor.hovered {
    width: 60px;
    height: 60px;
    background-color: #fff;
    mix-blend-mode: difference;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.preloader-text {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--accent-color);
    letter-spacing: 8px;
    margin-bottom: 2rem;
    opacity: 0;
    text-transform: uppercase;
    font-weight: 400;
}

.preloader-bar-wrap {
    width: 200px;
    height: 2px;
    background: #333;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.preloader-bar {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
}


html[lang="ar"] body, html[lang="ar"] .btn, html[lang="ar"] .filter-btn, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
    font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .brand-logo, html[lang="ar"] .product-title {
    /* Keep elegant serif for english names or use cairo if translated */
    font-family: 'Cairo', sans-serif;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, .brand-logo {
    font-family: var(--font-heading);
    font-weight: 400;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.brand-logo {
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: var(--accent-color);
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-icon {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

.lang-toggle {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: #000;
    font-size: 0.7rem;
    font-weight: 600;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Subtle dim to make text pop */
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* About Section */
.about {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-videos {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-wrapper {
    position: absolute;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.main-vid {
    width: 80%;
    height: 80%;
    z-index: 1;
}

.sub-vid {
    width: 50%;
    height: 50%;
    bottom: -10%;
    right: -10%;
    z-index: 2;
    border: 4px solid var(--bg-color);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Shop Section */
.shop {
    padding: 8rem 0;
    background-color: var(--surface-color);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    group: product;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

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

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.product-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(10,10,10,0.9), transparent);
    display: flex;
    justify-content: center;
    transition: var(--transition-smooth);
}

.product-card:hover .product-overlay {
    bottom: 0;
}

.add-to-cart-btn {
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
    width: 100%;
}

.add-to-cart-btn:hover {
    background: var(--accent-color);
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--accent-color);
    font-weight: 500;
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--surface-color);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

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

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

.close-cart {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-item-img {
    width: 80px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
}

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

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

.cart-item-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.cart-item-price {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
}

.cart-empty {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 2rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--surface-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.checkout-btn {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 6rem 0 2rem;
}

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

.footer-brand h2 {
    color: var(--accent-color);
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer h3 {
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer ul a, .social-link {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer ul a:hover, .social-link:hover {
    color: var(--accent-color);
}

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

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

@media (max-width: 992px) {
    .hero-title { font-size: 4rem; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { grid-row: 1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-left { display: none; }
    .hero-title { font-size: 2.5rem; }
    .preloader-text { font-size: 1.8rem; letter-spacing: 4px; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-videos { height: 350px; }
    .main-vid { width: 100%; height: 75%; }
    .sub-vid { width: 60%; height: 50%; bottom: 0; right: 0; border-width: 2px; }
    .cursor { display: none; } /* Hide custom cursor on mobile */
    body { cursor: auto; } /* Restore native cursor just in case */
}
