/* 
   Maison Aura & WOOWGIFTS - Custom Luxury Design System
   Vanilla CSS with premium typography, variables, transitions and animations
   Supports dark/light themes and English/Arabic (RTL) layouts
*/

/* --- Variables & Core Tokens --- */
:root {
    /* Light Theme (Default) */
    --color-bg-light: #F7F5F0;     /* Soft ivory cream */
    --color-bg-white: #FAFAFA;     /* Pure Alabaster white */
    --color-bg-dark: #0A0A0A;      /* Deep obsidian black */
    --color-text-dark: #1A1A1A;    /* Luxury high contrast body */
    --color-text-light: #FAFAFA;   /* White text */
    --color-text-muted: #767676;   /* Subtle grey text */
    --color-gold: #C5A059;         /* Premium muted gold */
    --color-gold-hover: #D4AF37;   /* Vibrant champagne gold */
    --color-gold-light: #F2ECE0;   /* Cream gold wash */
    
    /* Layout & Details */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-quick: all 0.2s ease;
    --border-luxury: 1px solid rgba(197, 160, 89, 0.2);
    --border-luxury-active: 1px solid rgba(197, 160, 89, 0.8);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-luxury: 0 15px 40px rgba(197, 160, 89, 0.08);
}

/* --- Dark Theme Variables --- */
.dark-theme {
    --color-bg-light: #121212;      /* Deep dark grey */
    --color-bg-white: #1A1A1A;      /* Obsidian card background */
    --color-bg-dark: #F5F5F5;       /* Contrast elements are light */
    --color-text-dark: #F5F5F5;     /* Light body text */
    --color-text-light: #121212;    /* Dark text on light buttons */
    --color-text-muted: #A0A0A0;    /* Greyed text */
    --color-gold-light: #2A241A;    /* Dark gold wash */
    
    --border-luxury: 1px solid rgba(197, 160, 89, 0.15);
    --border-luxury-active: 1px solid rgba(197, 160, 89, 0.6);
    --shadow-soft: 0 10px 35px rgba(0, 0, 0, 0.3);
    --shadow-luxury: 0 15px 40px rgba(197, 160, 89, 0.04);
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

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

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

button, input, select {
    font-family: inherit;
    background: none;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.mt-2 {
    margin-top: 10px;
}

.w-100 {
    width: 100%;
}

.font-gold {
    color: var(--color-gold);
}

.modal-divider {
    height: 1px;
    background-color: rgba(197, 160, 89, 0.15);
    margin: 20px 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.08em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.4rem;
    letter-spacing: 0.1em;
}

h4 {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

p {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    display: inline-block;
    margin-bottom: 10px;
}

/* --- UAE Delivery Banner --- */
.uae-notice-banner {
    background-color: var(--color-gold-light);
    color: var(--color-text-dark);
    padding: 12px 20px;
    font-size: 0.8rem;
    font-weight: 400;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

.uae-notice-banner .notice-text {
    margin-bottom: 0;
    color: var(--color-text-dark);
}

/* --- Common Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 0;
}

.btn-primary {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    border: 1px solid var(--color-bg-dark);
}

.btn-primary:hover {
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    border: 1px solid var(--color-text-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-dark);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.btn-secondary:hover {
    border-color: var(--color-text-dark);
    background-color: var(--color-bg-light);
}

.btn-luxury {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-luxury:hover {
    color: #FAFAFA; /* Static light text */
}

.btn-luxury:hover::before {
    left: 0;
}

/* --- Announcement Bar --- */
.announcement-bar {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    font-weight: 400;
}

/* --- Header Navigation --- */
.main-header {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.18em;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-item {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

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

.nav-item:hover {
    color: var(--color-gold);
}

.header-utilities {
    display: flex;
    align-items: center;
    gap: 20px;
}

.utility-btn {
    cursor: pointer;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    position: relative;
}

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

.lang-btn {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border: 1.5px solid rgba(197, 160, 89, 0.4);
    padding: 6px 16px;
    min-width: 75px;
    text-align: center;
    border-radius: 30px;
    transition: var(--transition-quick);
}

.lang-btn:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: #FAFAFA;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--color-gold);
    color: #FAFAFA; /* Static light text */
    font-size: 0.6rem;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--color-text-dark);
}

.theme-icon.hidden {
    display: none;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FAFAFA; /* Keep hero content light always for visual contrast */
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: zoomBackground 20s infinite alternate;
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s forwards 0.4s;
}

.hero-suptitle {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.hero-title {
    margin-bottom: 25px;
    font-weight: 300;
}

.hero-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    margin-top: 10px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 6px;
    background-color: var(--color-gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite;
}

/* --- Heritage Section --- */
.heritage-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.heritage-text h2 {
    margin-bottom: 25px;
}

.heritage-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.heritage-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    padding-top: 30px;
}

.detail-item {
    text-align: left;
}

.detail-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-gold);
    line-height: 1.1;
}

.detail-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.heritage-image-wrapper {
    position: relative;
}

.heritage-img {
    width: 100%;
    box-shadow: var(--shadow-soft);
}

/* --- Products Section --- */
.products-section {
    padding: 120px 0;
    background-color: var(--color-bg-white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-desc {
    font-size: 1rem;
    margin-bottom: 30px;
}

.filter-tabs {
    display: inline-flex;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    padding-bottom: 5px;
    gap: 30px;
}

.filter-tab {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 8px 5px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-quick);
}

.filter-tab::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-text-dark);
    transition: var(--transition-quick);
}

.filter-tab.active {
    color: var(--color-text-dark);
    font-weight: 600;
}

.filter-tab.active::after {
    width: 100%;
}

.filter-tab:hover {
    color: var(--color-text-dark);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: var(--color-bg-white);
    border: var(--border-luxury);
    padding: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-luxury);
    border-color: var(--color-gold);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: var(--color-bg-light);
}

.product-img {
    width: 100%;
    transition: var(--transition-smooth);
}

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

.card-utilities {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    gap: 1px;
    transition: var(--transition-smooth);
    opacity: 0;
}

.product-card:hover .card-utilities {
    bottom: 0;
    opacity: 1;
}

.card-util-btn {
    flex: 1;
    background-color: rgba(10, 10, 10, 0.95);
    color: #FAFAFA;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 14px 10px;
    cursor: pointer;
    transition: var(--transition-quick);
}

.card-util-btn:hover {
    background-color: var(--color-gold);
}

.product-meta {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-gold);
}

/* --- Drawers & Overlays --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Drawer Common styles */
.mobile-menu-drawer,
.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: var(--color-bg-white);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.mobile-menu-drawer.active,
.cart-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 30px 40px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-header h3 {
    text-transform: uppercase;
    font-size: 1.1rem;
}

.close-drawer {
    font-size: 2rem;
    font-weight: 200;
    cursor: pointer;
    color: var(--color-text-dark);
}

.close-drawer:hover {
    color: var(--color-gold);
}

.drawer-body {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
}

/* Mobile Menu Drawer specifics */
.mobile-menu-drawer {
    left: -400px;
    right: auto;
    max-width: 400px;
}

.mobile-menu-drawer.active {
    left: 0;
}

.mobile-nav-link {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--color-text-dark);
}

.mobile-nav-link:hover {
    color: var(--color-gold);
}

/* Cart Drawer specifics */
.cart-drawer-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.cart-item-img-wrapper {
    width: 80px;
    height: 80px;
    background-color: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.cart-item-meta {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.cart-item-qty-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.qty-btn {
    padding: 3px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--color-text-dark);
}

.qty-btn:hover {
    background-color: var(--color-bg-light);
}

.qty-num {
    padding: 0 8px;
    font-size: 0.75rem;
}

.cart-item-price {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1rem;
}

.remove-item-btn {
    color: var(--color-text-muted);
    font-size: 0.7rem;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 6px;
    display: inline-block;
}

.remove-item-btn:hover {
    color: #b02a2a;
}

.drawer-footer {
    padding: 30px 40px;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    background-color: var(--color-bg-light);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.total-line {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-text-dark);
    margin-top: 15px;
    margin-bottom: 20px;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    padding-top: 15px;
}

.free-badge {
    color: #2e7d32;
    font-weight: 500;
}

.stripe-notice {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.empty-cart-message {
    text-align: center;
    padding: 50px 0;
}

.empty-cart-message svg {
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

/* --- Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-white);
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.search-container {
    width: 100%;
    max-width: 800px;
    position: relative;
    padding: 0 40px;
}

.search-input {
    width: 100%;
    border-bottom: 1px solid var(--color-gold);
    font-family: var(--font-heading);
    font-size: 2.2rem;
    padding: 10px 0;
    color: var(--color-text-dark);
}

.close-search {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    font-size: 2.5rem;
    font-weight: 200;
    cursor: pointer;
}

.close-search:hover {
    color: var(--color-gold);
}

/* --- Modals --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1005;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--color-bg-white);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    animation: modalSlideUp 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: var(--border-luxury);
}

.size-guide-content {
    max-width: 600px;
    padding: 40px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.2rem;
    font-weight: 200;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    color: var(--color-text-dark);
}

.close-modal:hover {
    color: var(--color-gold);
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.modal-gallery {
    background-color: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-main-image {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
}

.modal-details {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-collection {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-bottom: 5px;
}

.modal-title {
    font-size: 2rem;
}

.modal-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-gold);
}

.modal-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-specs {
    margin-bottom: 25px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.spec-label {
    font-weight: 500;
    color: var(--color-text-dark);
}

.spec-val {
    color: var(--color-text-muted);
}

.size-selector-container {
    margin-bottom: 30px;
}

.size-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.size-select {
    width: 100%;
    border: 1px solid rgba(197, 160, 89, 0.25);
    padding: 12px 15px;
    font-size: 0.85rem;
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    cursor: pointer;
    transition: var(--transition-quick);
}

.size-select:hover {
    border-color: var(--color-text-dark);
}

.size-guide-link {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--color-gold);
    text-decoration: underline;
    margin-top: 8px;
}

.boutique-guarantees {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.guarantee-item svg {
    color: var(--color-gold);
}

/* Size Guide modal specifics */
.size-guide-title {
    margin-bottom: 20px;
    text-align: center;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.85rem;
}

.size-table th, .size-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.size-table th {
    font-weight: 500;
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.size-guide-body .note {
    font-size: 0.8rem;
    margin-top: 15px;
}

/* --- Boutique Section --- */
.boutique-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
    text-align: center;
}

.boutique-section h2 {
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background-color: var(--color-bg-white);
    padding: 40px;
    border: var(--border-luxury);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-luxury);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    color: var(--color-gold);
    background-color: var(--color-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    margin-bottom: 15px;
    font-weight: 400;
}

.service-card p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* --- Newsletter Section --- */
.newsletter-section {
    padding: 100px 0;
    background-color: #0E0E0E; /* Keep dark always */
    color: #FAFAFA;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin: 15px auto 35px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-input {
    flex: 1;
    padding: 15px 0;
    color: #FAFAFA;
    font-size: 0.95rem;
}

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

.newsletter-form button {
    padding: 10px 20px;
}

.form-feedback {
    font-size: 0.8rem;
    margin-top: 15px;
    height: 20px;
}

.form-feedback.success {
    color: #4caf50;
}

.form-feedback.error {
    color: #f44336;
}

/* --- Footer --- */
.main-footer {
    background-color: #080808; /* Static deep dark */
    color: rgba(255, 255, 255, 0.5);
    padding: 80px 0 40px;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-col h4 {
    color: #FAFAFA;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer-col p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.75rem;
}

/* --- Bilingual / RTL support overrides --- */
[dir="rtl"] {
    font-family: 'Cairo', var(--font-body);
}

[dir="rtl"] body {
    font-family: 'Cairo', var(--font-body);
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .logo {
    font-family: 'Cairo', var(--font-heading);
    letter-spacing: 0;
}

[dir="rtl"] .section-label {
    letter-spacing: 0.1em;
}

[dir="rtl"] .detail-item {
    text-align: right;
}

/* RTL Header Layout shifts */
[dir="rtl"] .cart-count {
    right: auto;
    left: -8px;
}

/* RTL Modals shifts */
[dir="rtl"] .close-modal {
    right: auto;
    left: 20px;
}

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

[dir="rtl"] .guarantee-item {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* RTL Drawers shifts */
[dir="rtl"] .cart-drawer {
    right: auto;
    left: -450px;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.05);
}

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

[dir="rtl"] .mobile-menu-drawer {
    left: auto;
    right: -400px;
}

[dir="rtl"] .mobile-menu-drawer.active {
    left: auto;
    right: 0;
}

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

/* --- Animations --- */
@keyframes zoomBackground {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

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

@keyframes scrollMouse {
    0% {
        top: 6px;
        opacity: 1;
    }
    100% {
        top: 20px;
        opacity: 0;
    }
}

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

.floating-img {
    animation: floatAnimation 4s ease-in-out infinite;
}

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

/* --- Responsive Layouts --- */
@media (max-width: 1366px) {
    .container {
        max-width: 1100px;
        padding: 0 30px;
    }
    .grid-2 {
        gap: 40px;
    }
    .header-container {
        padding: 15px 30px;
    }
    .nav-links {
        gap: 25px;
    }
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .modal-content {
        max-width: 780px;
    }
    .modal-details {
        padding: 30px;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }
    
    .grid-2 {
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 15px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .modal-body-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-gallery {
        padding: 20px;
    }
    
    .modal-details {
        padding: 30px;
    }
    
    .hero-section {
        height: 75vh;
    }
    
    h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .header-container {
        padding: 15px 20px;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .cart-drawer {
        max-width: 100%;
    }
    
    .mobile-menu-drawer {
        max-width: 100%;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

/* --- Checkout Panel & Stripe Elements --- */
.checkout-panel {
    position: fixed;
    top: 0;
    right: -850px;
    width: 100%;
    max-width: 850px;
    height: 100%;
    background-color: var(--color-bg-white);
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.08);
    z-index: 1005;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.checkout-panel.active {
    right: 0;
}

.checkout-panel-header {
    padding: 30px 40px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout-panel-header h3 {
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: var(--color-text-dark);
}

.close-checkout {
    font-size: 2.2rem;
    font-weight: 200;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-text-dark);
    transition: var(--transition-quick);
}

.close-checkout:hover {
    color: var(--color-gold);
}

.checkout-panel-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
}

.checkout-form-column {
    padding: 40px;
    overflow-y: auto;
    border-inline-end: 1px solid rgba(197, 160, 89, 0.1);
}

.checkout-summary-column {
    padding: 40px;
    background-color: var(--color-bg-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.checkout-section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(197, 160, 89, 0.2);
    color: var(--color-gold);
}

/* Summary items */
.checkout-summary-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 25px;
}

.checkout-summary-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.05);
    align-items: center;
}

.checkout-summary-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    background-color: var(--color-bg-white);
    border: 1px solid rgba(197, 160, 89, 0.1);
    border-radius: 4px;
}

.checkout-summary-details {
    flex: 1;
}

.checkout-summary-title {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--color-text-dark);
}

.checkout-summary-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.checkout-summary-price {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-gold);
    margin-top: 5px;
}

.checkout-summary-totals {
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    padding-top: 20px;
}

/* Spinner styling */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    margin-inline-start: 10px;
    vertical-align: middle;
}

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

.payment-message {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 15px;
    text-align: center;
    background-color: rgba(255, 77, 77, 0.05);
    padding: 10px;
    border-radius: 4px;
}

/* RTL overrides for Checkout Panel */
[dir="rtl"] .checkout-panel {
    right: auto;
    left: -850px;
    box-shadow: 15px 0 45px rgba(0, 0, 0, 0.08);
}

[dir="rtl"] .checkout-panel.active {
    left: 0;
    right: auto;
}

[dir="rtl"] .checkout-form-column {
    border-left: 1px solid rgba(197, 160, 89, 0.1);
    border-right: none;
}

/* Responsive checkout layout */
@media (max-width: 850px) {
    .checkout-panel {
        max-width: 100%;
        right: -100%;
    }
    [dir="rtl"] .checkout-panel {
        left: -100%;
        right: auto;
    }
    .checkout-panel-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    .checkout-form-column {
        border-inline-end: none;
        border-bottom: 1px solid rgba(197, 160, 89, 0.1);
        overflow-y: visible;
        padding: 30px;
    }
    .checkout-summary-column {
        overflow-y: visible;
        padding: 30px;
    }
}

