/* ============ CSS VARIABLES – Black & White Only ============ */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8e8;
    --bg-card: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 0, 0, 0.2);
    --glass-highlight: rgba(0, 0, 0, 0.02);
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-tertiary: #777777;
    --text-accent: #000000;
    --gold: #000000;
    --gold-light: #444444;
    --gold-dark: #000000;
    --rose: #cccccc;
    --rose-dark: #aaaaaa;
    --champagne: #f0f0f0;
    --cream: #fafafa;
    --deep-purple: #222222;
    --midnight: #111111;
    --accent-glow: rgba(0,0,0,0.1);
    --accent-glow-strong: rgba(0,0,0,0.25);
    --card-shadow: 0 8px 40px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-full: 9999px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-display:  serif;
    --font-body:   system-ui, sans-serif;
    --font-mono:   monospace;
    --navbar-height: 80px;
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: rgba(20, 20, 20, 0.8);
    --glass-bg: rgba(0, 0, 0, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --glass-highlight: rgba(255, 255, 255, 0.02);
    --text-primary: #ffffff;
    --text-secondary: #bbbbbb;
    --text-tertiary: #666666;
    --text-accent: #ffffff;
    --gold: #ffffff;
    --gold-light: #888888;
    --gold-dark: #cccccc;
    --rose: #444444;
    --rose-dark: #666666;
    --champagne: #1a1a1a;
    --cream: #0a0a0a;
    --deep-purple: #333333;
    --midnight: #222222;
    --accent-glow: rgba(255,255,255,0.05);
    --accent-glow-strong: rgba(255,255,255,0.15);
    --card-shadow: 0 8px 40px rgba(0,0,0,0.6);
    --card-shadow-hover: 0 20px 60px rgba(0,0,0,0.8);
}

/* ============ GLOBAL RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; font-size: 16px; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: default;
     overflow: auto !important;
    touch-action: auto;
}

::selection { background: var(--gold); color: #0a0a0f; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201, 168, 124, 0.3); border-radius: 3px; }

/* ============ CUSTOM CURSOR ============ */
.custom-cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    opacity: 0;
}
.custom-cursor.active {
    transform: translate(-50%, -50%) scale(1.8);
    border-color: var(--gold-light);
    background: rgba(201, 168, 124, 0.15);
}
.custom-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    opacity: 0;
}
@media (max-width: 1024px) {
    .custom-cursor, .custom-cursor-dot { display: none; }
}

/* ============ PRELOADER ============ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #0a0a0f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.preloader-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    animation: preloaderFloat 3s ease-in-out infinite;
    opacity: 0;
}
@keyframes preloaderFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0; }
    20% { opacity: 0.8; }
    50% { transform: translateY(-120px) scale(2); opacity: 0.4; }
    80% { opacity: 0.1; }
}
.preloader-logo-container { position: relative; z-index: 2; text-align: center; }
.preloader-logo {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: transparent;
    background: linear-gradient(135deg, #c9a87c 0%, #f0e4d0 40%, #e0c9a8 70%, #c9a87c 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmerGold 2s ease-in-out infinite;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes shimmerGold {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.preloader-tagline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(10px);
}
.preloader-counter {
    position: absolute;
    bottom: 60px;
    right: 60px;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    z-index: 2;
    opacity: 0;
}
.preloader-line {
    position: absolute;
    bottom: 50px;
    left: 60px;
    right: 60px;
    height: 1px;
    background: rgba(201, 168, 124, 0.2);
    z-index: 2;
    overflow: hidden;
}
.preloader-line-fill {
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    width: 0%;
    transition: width 0.3s ease;
}
@media (max-width: 768px) {
    .preloader-logo { font-size: 2.8rem; }
    .preloader-counter { bottom: 40px; right: 30px; font-size: 1rem; }
    .preloader-line { left: 30px; right: 30px; bottom: 35px; }
}

/* ============ HERO SECTION ============ */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    margin-top: 0;
}
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    transform: scale(1.05);
    transition: transform 8s ease;
}
.hero-slide.active .hero-bg { transform: scale(1); }
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(10,10,15,0.85) 100%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 800px;
    padding: 40px;
}
.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25,0.1,0.25,1) 0.2s;
}
.hero-slide.active .hero-eyebrow { opacity: 1; transform: translateY(0); }
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.05;
    color: var(--cream);
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.25,0.1,0.25,1) 0.35s;
}
.hero-slide.active .hero-headline { opacity: 1; transform: translateY(0); }
.hero-headline em { font-style: italic; color: var(--gold-light); }
.hero-subheadline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s cubic-bezier(0.25,0.1,0.25,1) 0.5s;
    font-weight: 300;
    line-height: 1.7;
}
.hero-slide.active .hero-subheadline { opacity: 1; transform: translateY(0); }
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s cubic-bezier(0.25,0.1,0.25,1) 0.65s;
}
.hero-slide.active .hero-buttons { opacity: 1; transform: translateY(0); }
.btn-primary {
    display: inline-block;
    padding: 16px 36px;
    background: var(--gold);
    color: var(--bg-primary) !important;      /* يتغير مع الثيم */
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
    font-family: var(--font-body);
}
.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px var(--accent-glow-strong);
    color: var(--bg-primary) !important;
}
.btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
    font-family: var(--font-body);
}
.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,168,124,0.06);
    transform: translateY(-3px);
}
.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.hero-indicator {
    width: 48px;
    height: 3px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
}
.hero-indicator.active { background: var(--gold); width: 64px; }
@media (max-width: 768px) {
    #hero { min-height: 600px; height: 90vh; }
    .hero-content { padding: 20px; }
    .hero-headline { font-size: 2.2rem; }
    .hero-subheadline { font-size: 0.9rem; }
    .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 0.75rem; }
    .hero-indicators { bottom: 24px; gap: 8px; }
    .hero-indicator { width: 30px; height: 2px; }
    .hero-indicator.active { width: 40px; }
}

/* ============ TRUST BAR ============ */
#trust-bar {
    position: relative;
    z-index: 10;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    overflow: hidden;
}
.trust-bar-track {
    display: flex;
    gap: 60px;
    animation: scrollTrust 25s linear infinite;
    width: max-content;
}
@keyframes scrollTrust {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 500;
}
.trust-icon { font-size: 1.2rem; color: var(--gold); }
@media (max-width: 768px) {
    .trust-bar-track { gap: 30px; animation-duration: 18s; }
    .trust-item { font-size: 0.7rem; gap: 6px; }
}

/* ============ SECTION STYLES ============ */
.section { padding: 100px 40px; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.5em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 1.15;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 12px;
    font-weight: 300;
    letter-spacing: 0.03em;
}
.container { max-width: 1300px; margin: 0 auto; }
@media (max-width: 768px) {
    .section { padding: 60px 16px; }
    .section-header { margin-bottom: 36px; }
}

/* ============ CATEGORY CARDS ============ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.25,0.1,0.25,1);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    backdrop-filter: blur(10px);
    text-decoration: none;
}
.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--card-shadow-hover), 0 0 60px var(--accent-glow);
}
.category-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
    filter: brightness(0.5);
}
.category-card:hover .category-card-bg { transform: scale(1.08); }
.category-card-content { position: relative; z-index: 2; }
.category-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.category-card-count {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.category-glow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 60px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.category-card:hover .category-glow { opacity: 1; }
@media (max-width: 1200px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 768px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-card { aspect-ratio: 1/1.1; padding: 16px; }
    .category-card-title { font-size: 1rem; }
}


/* ============ PRODUCT CARDS – تصميم مسطح بدون كارد ============ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;                      /* مسافة بين المنتجات */
}

.product-card {
    position: relative;
    background: transparent;        /* لا خلفية */
    border: none;                   /* لا حدود */
    border-radius: 0;               /* لا زوايا دائرية */
    box-shadow: none;               /* لا ظل */
    overflow: visible;              /* المحتوى يظهر كاملاً دون اقتصاص */
    transition: none;
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 3 / 4;            /* الصورة مستطيلة (طول > عرض) */
    overflow: hidden;
    background: var(--bg-tertiary); /* خلفية احتياطية أثناء التحميل */
    border-radius: 0;               /* إزالة أي انحناء */
    border: none;
}

/* صور المنتج */
.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.primary-image { z-index: 1; opacity: 1; }
.hover-image  { z-index: 2; opacity: 0; }

.product-card:hover .primary-image { opacity: 0; }
.product-card:hover .hover-image  { opacity: 1; }

/* الشارات (خصم، جديد) */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: #000;               /* أسود أنيق */
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 0;               /* لا زوايا دائرية */
    z-index: 3;
    text-transform: uppercase;
}
.product-badge.sale { background: #c9a87c; color: #000; }

/* المفضلة */
.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 0;               /* مربع */
    background: rgba(255,255,255,0.9);
    border: none;
    color: #000;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s;
    text-decoration: none;
}
.product-wishlist:hover,
.product-wishlist.active {
    background: #000;
    color: #fff;
}

/* منطقة النص تحت الصورة */
.product-info {
    padding: 10px 0 0;             /* مسافة صغيرة فوق النص فقط */
    background: transparent;
}

.product-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
    transition: color 0.2s;
}
.product-name:hover { color: var(--gold); }

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.product-price-old {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

/* زر المشاهدة السريعة – اختياري */
.product-quick-view {
    display: none;                  /* يمكنك إظهاره إذا أردت */
}

/* عرض شبكي متجاوب */
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ============ FLASH SALE ============ */
#flash-sale {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bg-tertiary) 0%, var(--bg-primary) 60%);
    border-radius: var(--radius-xl);
    margin: 0 40px 100px;
    padding: 60px;
    border: 1px solid var(--glass-border);
}
.flash-sale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.flash-sale-image { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--card-shadow-hover); }
.flash-countdown { display: flex; gap: 16px; margin: 24px 0; flex-wrap: wrap; }
.countdown-unit { text-align: center; min-width: 70px; }
.countdown-value {
    font-family: var(--font-mono);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.04em;
    line-height: 1;
}
.countdown-label {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-top: 4px;
}
.flash-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 20px 0;
    overflow: hidden;
}
.flash-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    border-radius: 2px;
    transition: width 1s ease;
}
.flash-meta {
    display: flex;
    gap: 30px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    flex-wrap: wrap;
}
@media (max-width: 1024px) {
    #flash-sale { margin: 0 20px 60px; padding: 30px; border-radius: var(--radius-lg); }
    .flash-sale-grid { grid-template-columns: 1fr; gap: 30px; }
    .countdown-value { font-size: 2rem; }
}
@media (max-width: 768px) {
    #flash-sale { margin: 0 10px 40px; padding: 20px; }
    .countdown-value { font-size: 1.6rem; }
    .countdown-unit { min-width: 50px; }
    .flash-sale-grid { gap: 20px; }
}

/* ============ BEFORE & AFTER ============ */
.comparison-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
}
.comparison-before, .comparison-after {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.comparison-before { z-index: 2; clip-path: inset(0 50% 0 0); }
.comparison-after { z-index: 1; }
.comparison-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
}
.comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    z-index: 4;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    font-size: 1rem;
    color: #0a0a0f;
}
.comparison-label {
    position: absolute;
    bottom: 20px;
    padding: 8px 18px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    z-index: 3;
    pointer-events: none;
    backdrop-filter: blur(6px);
    text-transform: uppercase;
}
.comparison-label.before { left: 20px; }
.comparison-label.after { right: 20px; }
@media (max-width: 768px) {
    .comparison-container { aspect-ratio: 4/5; max-width: 100%; }
    .comparison-handle { width: 36px; height: 36px; }
}

/* ============ SOCIAL PROOF ============ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item { padding: 30px; }
.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -0.02em;
    line-height: 1;
}
.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 8px;
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-number { font-size: 2.4rem; }
    .stat-item { padding: 16px; }
}

/* ============ TESTIMONIALS ============ */
.testimonials-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    scrollbar-width: none;
}
.testimonials-carousel::-webkit-scrollbar { display: none; }
.testimonial-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}
.testimonial-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}
.testimonial-stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; }
.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-tertiary); object-fit: cover; }
.testimonial-name { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); }
.testimonial-verified { font-size: 0.65rem; color: #6b9; letter-spacing: 0.04em; }
@media (max-width: 768px) {
    .testimonial-card { flex: 0 0 280px; padding: 20px; }
}

/* ============ INSTAGRAM ============ */
.instagram-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.instagram-item {
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--bg-tertiary);
    transition: all 0.4s ease;
}
.instagram-item:hover { transform: scale(1.03); box-shadow: var(--card-shadow); }
.instagram-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.instagram-item:hover img { transform: scale(1.1); }
.instagram-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.5rem;
    color: #fff;
}
.instagram-item:hover .instagram-overlay { opacity: 1; }
@media (max-width: 768px) {
    .instagram-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
}

/* ============ NEWSLETTER ============ */
#newsletter {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--deep-purple) 0%, var(--midnight) 50%, var(--bg-primary) 100%);
    border-radius: var(--radius-xl);
    margin: 0 40px 100px;
    padding: 70px 50px;
    text-align: center;
    border: 1px solid var(--glass-border);
}
.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 30px auto 0;
    flex-wrap: wrap;
    justify-content: center;
}
.newsletter-input {
    flex: 1;
    min-width: 240px;
    padding: 16px 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}
.newsletter-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 30px var(--accent-glow);
}
@media (max-width: 768px) {
    #newsletter { margin: 0 10px 40px; padding: 40px 20px; border-radius: var(--radius-lg); }
    .newsletter-input { min-width: 100%; }
}

/* ============ FOOTER ============ */
#footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 70px 40px 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}
.footer-col a {
    display: block;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.78rem;
    padding: 5px 0;
    transition: color 0.3s ease;
    letter-spacing: 0.03em;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1300px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.7rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.footer-social a:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,168,124,0.06);
}
.footer-payment-icons {
    display: flex;
    gap: 10px;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    flex-wrap: wrap;
}
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
}
@media (max-width: 768px) {
    #footer { padding: 40px 16px 20px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25,0.1,0.25,1), transform 0.8s cubic-bezier(0.25,0.1,0.25,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============ SHOP PAGE ============ */
.shop-layout { display: flex; gap: 40px; margin: 0 auto; max-width: 1300px; }
.shop-sidebar { width: 280px; flex-shrink: 0; }
.shop-main { flex: 1; min-width: 0; }
.filter-block { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--glass-border); }
.filter-block h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 12px; color: var(--text-primary); }
.filter-block ul { list-style: none; padding: 0; }
.filter-block li a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 4px 0;
    display: block;
    text-decoration: none;
    transition: color 0.2s;
}
.filter-block li a:hover, .filter-block li a.active { color: var(--gold); }
.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 6px;
}
.filter-option input[type="checkbox"] { accent-color: var(--gold); }
.color-swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); }
.filter-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
}
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.sort-form select {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}
.pagination-wrapper { margin-top: 40px; display: flex; justify-content: center; }
.products-grid.loading { opacity: 0.5; pointer-events: none; transition: opacity 0.3s ease; }
.category-filter.active { color: var(--gold) !important; font-weight: 600; }
.empty-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
}
.main-image-container { overflow: hidden; }
.main-image-container:hover .main-image { cursor: crosshair; }

/* ============ AUTH PAGES ============ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 40px;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 460px;
    width: 100%;
    backdrop-filter: blur(10px);
}
.auth-title { font-family: var(--font-display); font-size: 2rem; text-align: center; margin-bottom: 8px; }
.auth-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 30px; font-size: 0.9rem; }
.social-login-buttons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.social-btn:hover { border-color: var(--gold); background: rgba(201,168,124,0.05); }
.social-btn img { width: 20px; height: 20px; }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-tertiary);
    font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}
.forgot-link { color: var(--gold); font-size: 0.85rem; text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }
.auth-footer { text-align: center; margin-top: 20px; color: var(--text-secondary); font-size: 0.9rem; }
.auth-footer a { color: var(--gold); text-decoration: none; font-weight: 600; }
.error-text { color: #e74c3c; font-size: 0.8rem; margin-top: 4px; display: block; }

/* ============ PROFILE PAGE ============ */
.profile-container { max-width: 900px; margin: 0 auto; padding: 120px 20px 40px; }
.profile-header { text-align: center; margin-bottom: 40px; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); margin-bottom: 16px; }
.profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 30px;
    overflow-x: auto;
}
.profile-tabs .tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.profile-tabs .tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.profile-tab-content { display: none; }
.profile-tab-content.active { display: block; }
.profile-form { max-width: 500px; }
.empty-state { text-align: center; color: var(--text-tertiary); padding: 60px 20px; }

/* ============ FORM ELEMENTS ============ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; color: var(--text-primary); font-weight: 500; font-size: 0.9rem; }
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--accent-glow);
}
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-body);
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
}
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ============ PRODUCT DETAIL ============ */
.product-detail-wrapper { max-width: 1300px; margin: 0 auto; padding: 100px 40px 40px; }
.product-main { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 80px; }
.product-gallery { position: sticky; top: 100px; }
.main-image-container {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
    cursor: zoom-in;
}
.main-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.main-image-container:hover .main-image { transform: scale(1.5); }
.thumbnail-list { display: flex; gap: 12px; overflow-x: auto; }
.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.thumbnail-item.active { border-color: var(--gold); }
.thumbnail-item img { width: 100%; height: 100%; object-fit: cover; }
.product-badge-detail {
    display: inline-block;
    padding: 8px 16px;
  background: var(--gold) !important;
    color: var(--bg-primary) !important; 
    font-weight: 700;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    margin-bottom: 16px;
}
.product-title-detail { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; margin-bottom: 12px; }
.product-price-block { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.current-price { font-size: 2rem; font-weight: 700; color: var(--gold); }
.old-price { font-size: 1.2rem; color: var(--text-tertiary); text-decoration: line-through; }
.discount-badge { background: #e74c3c; color: white; padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; }
.rating-block { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.stars { color: var(--gold); font-size: 1.2rem; }
.rating-text { color: var(--text-secondary); font-size: 0.9rem; }
.product-description { color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; }
.attribute-selector { margin-bottom: 24px; }
.attribute-label { font-weight: 600; margin-bottom: 10px; color: var(--text-primary); }
.attribute-options { display: flex; gap: 10px; flex-wrap: wrap; }
.size-option, .color-option {
    padding: 10px 20px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.size-option:hover, .size-option.selected-option,
.color-option:hover, .color-option.selected-option {
    border-color: var(--gold);
    background: rgba(201,168,124,0.2);
}
.color-swatch-large {
    width: 30px; height: 30px; border-radius: 50%; display: inline-block; border: 2px solid transparent;
}
.color-option.selected-option .color-swatch-large { border-color: var(--gold); }
.quantity-selector { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.qty-btn {
    width: 36px; height: 36px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}
.qty-btn:hover { border-color: var(--gold); }
.qty-input {
    width: 60px; height: 36px;
    text-align: center;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
}
.add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background: var(--gold) !important;
    color: var(--bg-primary) !important; 
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}
.add-to-cart-btn:hover {
   background: var(--gold-light) !important;
    color: var(--bg-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow-strong);
}
.product-meta { border-top: 1px solid var(--glass-border); padding-top: 20px; margin-top: 20px; }
.meta-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--text-secondary); font-size: 0.85rem; }

.product-tabs { margin-bottom: 60px; }
.tab-buttons {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 30px;
    overflow-x: auto;
}
.tab-btn {
    padding: 14px 28px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-content { display: none; color: var(--text-secondary); line-height: 1.8; }
.tab-content.active { display: block; }

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.review-user { display: flex; align-items: center; gap: 12px; }
.review-avatar {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}
.review-verified { color: #6b9; font-size: 0.75rem; }
.review-form {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-top: 40px;
}
.star-rating-input { display: flex; gap: 5px; font-size: 1.5rem; cursor: pointer; }
.star-rating-input .star { color: var(--text-tertiary); transition: color 0.2s ease; }
.star-rating-input .star:hover, .star-rating-input .star.selected { color: var(--gold); }

.rating-summary { display: flex; gap: 30px; align-items: center; margin-bottom: 40px; flex-wrap: wrap; }
.rating-big { text-align: center; }
.rating-number { font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; }
.rating-bars { flex: 1; min-width: 250px; }
.rating-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.85rem; }
.rating-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--gold); border-radius: 4px; }
.related-products { margin-top: 80px; }
@media (max-width: 768px) {
    .product-main { grid-template-columns: 1fr; gap: 30px; }
    .product-gallery { position: static; }
    .product-title-detail { font-size: 1.8rem; }
}
.selected-option { border-color: var(--gold) !important; background: rgba(201,168,124,0.2) !important; }
.color-option.selected-option .color-swatch-large { border: 2px solid var(--gold); }

/* ============ ORDERS & CHECKOUT ============ */
.orders-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.orders-table th {
    text-align: left; padding: 12px; border-bottom: 1px solid var(--glass-border);
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary);
}
.orders-table td { padding: 12px; border-bottom: 1px solid var(--glass-border); vertical-align: top; font-size: 0.9rem; }
.order-status {
    display: inline-block; padding: 4px 12px; border-radius: var(--radius-full);
    font-size: 0.75rem; font-weight: 600; text-transform: capitalize;
}
.order-status.pending { background: rgba(255,193,7,0.15); color: #ffc107; }
.order-status.processing { background: rgba(59,130,246,0.15); color: #3b82f6; }
.order-status.completed { background: rgba(34,197,94,0.15); color: #22c55e; }
.order-status.cancelled { background: rgba(239,68,68,0.15); color: #ef4444; }

.profile-avatar-wrapper { position: relative; display: inline-block; }
.avatar-glow {
    position: absolute; inset: -5px; border-radius: 50%;
    background: transparent; border: 2px solid var(--gold); opacity: 0.6;
    animation: avatarPulse 2s infinite;
}
@keyframes avatarPulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.6; }
}
.profile-name { font-size: 2rem; margin: 10px 0 5px; }
.profile-email { color: var(--text-secondary); }
.tab-icon { margin-right: 8px; }

.orders-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 20px;
}
.order-card {
    background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s ease;
}
.order-card:hover { border-color: var(--glass-border-hover); box-shadow: var(--card-shadow-hover); }
.order-card-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; background: var(--glass-highlight); border-bottom: 1px solid var(--glass-border);
}
.order-id { display: flex; flex-direction: column; }
.order-label { font-size: 0.7rem; color: var(--text-tertiary); text-transform: uppercase; }
.order-number { font-family: var(--font-mono); font-weight: 600; color: var(--gold); }
.order-items-preview { display: flex; gap: 8px; padding: 16px 20px; }
.order-item-mini { width: 55px; height: 55px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--glass-border); }
.order-item-mini img { width: 100%; height: 100%; object-fit: cover; }
.no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg-tertiary); font-size: 1.5rem; }
.more-items {
    width: 55px; height: 55px; border-radius: var(--radius-sm);
    background: var(--glass-highlight); display: flex; align-items: center; justify-content: center;
    font-weight: 600; color: var(--text-secondary);
}
.order-details { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 6px; }
.detail-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-secondary); }
.order-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px; border-top: 1px solid var(--glass-border);
}
.view-details { color: var(--gold); font-size: 0.85rem; text-decoration: none; }
.view-details:hover { text-decoration: underline; }

.checkout-container { max-width: 1200px; margin: 0 auto; padding: 120px 20px 60px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.checkout-heading { font-size: 1.2rem; margin-bottom: 20px; color: var(--text-primary); }
.checkout-item {
    display: flex; gap: 20px; padding: 20px; border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); margin-bottom: 16px; background: var(--bg-card); align-items: center;
}
.checkout-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); }
.checkout-item-info { flex: 1; }
.checkout-item-info h4 { font-size: 1rem; margin-bottom: 4px; }
.checkout-options { display: flex; gap: 6px; margin: 6px 0; }
.checkout-options span { background: var(--glass-highlight); padding: 2px 8px; border-radius: var(--radius-full); font-size: 0.75rem; color: var(--text-secondary); }
.checkout-item-price { font-size: 0.9rem; color: var(--text-secondary); }
.checkout-item-total { font-weight: 700; color: var(--gold); font-size: 1.1rem; }
.grand-total { font-size: 1.8rem; font-weight: 700; color: var(--gold); }
@media (max-width: 768px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .orders-grid { grid-template-columns: 1fr; }
}

/* ============ SUCCESS PAGE ============ */
.success-container {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 20px 60px;
}
.success-card {
    background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
    padding: 50px 40px; max-width: 650px; width: 100%; text-align: center; backdrop-filter: blur(10px); box-shadow: var(--card-shadow-hover);
}
.success-icon-wrapper { position: relative; margin-bottom: 25px; display: inline-block; }
.success-icon {
    width: 80px; height: 80px; background: rgba(34,197,94,0.15); border: 2px solid rgba(34,197,94,0.4);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; color: #22c55e; animation: successBounce 0.6s ease;
}
.success-icon svg { width: 40px; height: 40px; }
@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.success-sparkles { position: absolute; inset: -15px; pointer-events: none; }
.success-sparkles span {
    position: absolute; font-size: 1.2rem; animation: sparkleFloat 2s infinite;
}
.success-sparkles span:nth-child(1) { top: 0; left: 50%; animation-delay: 0s; }
.success-sparkles span:nth-child(2) { bottom: 0; left: 10%; animation-delay: 0.5s; }
.success-sparkles span:nth-child(3) { bottom: 10%; right: 0; animation-delay: 1s; }
@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-10px) scale(1.4); opacity: 1; }
}
.success-title { font-family: var(--font-display); font-size: 2rem; margin-bottom: 10px; color: var(--text-primary); }
.success-subtitle { color: var(--text-secondary); margin-bottom: 30px; font-size: 1rem; }
.success-details {
    background: var(--glass-highlight); border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    padding: 20px; margin-bottom: 30px; text-align: left;
}
.detail-block { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.detail-label { font-size: 0.85rem; color: var(--text-tertiary); }
.detail-value { font-weight: 600; color: var(--text-primary); }
.order-number-highlight { font-family: var(--font-mono); color: var(--gold); font-size: 0.95rem; }
.status-badge { padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.8rem; }
.status-badge.pending { background: rgba(255,193,7,0.15); color: #ffc107; }
.status-badge.processing { background: rgba(59,130,246,0.15); color: #3b82f6; }
.status-badge.completed { background: rgba(34,197,94,0.15); color: #22c55e; }
.status-badge.cancelled { background: rgba(239,68,68,0.15); color: #ef4444; }
.address { font-size: 0.9rem; text-align: right; max-width: 60%; }
.detail-divider { height: 1px; background: var(--glass-border); margin: 5px 0; }
.success-items { margin-bottom: 30px; text-align: left; }
.success-items h3 { font-size: 1.1rem; margin-bottom: 15px; color: var(--text-primary); }
.items-list { display: flex; flex-direction: column; gap: 12px; }
.success-item {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    background: var(--glass-highlight); border-radius: var(--radius-md); border: 1px solid var(--glass-border);
}
.success-item-img { width: 45px; height: 45px; border-radius: var(--radius-sm); object-fit: cover; }
.no-image-small { width: 45px; height: 45px; border-radius: var(--radius-sm); background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.success-item-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.item-name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.item-qty { font-size: 0.8rem; color: var(--text-tertiary); }
.item-price { font-weight: 700; color: var(--gold); font-size: 0.95rem; }
.success-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.success-actions .btn-primary, .success-actions .btn-secondary { min-width: 180px; }

/* ============================================================
   NAVBAR – SOLID BACKGROUND & MOBILE LAYOUT (CLEAN VERSION)
   ============================================================ */

/* --- Base --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: var(--bg-primary) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: var(--navbar-height);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: var(--bg-primary) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important;
}
[data-theme="dark"] #navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.5) !important;
}

/* --- Mobile Left --- */
.nav-left-mobile {
    display: none;
    align-items: center;
    gap: 8px;
}

/* --- Brand --- */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}
.nav-brand:hover .brand-name { color: var(--gold); }
.nav-logo { height: 36px; width: auto; }
.brand-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    transition: color 0.3s;
}

/* --- Desktop Links --- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}
.nav-item { position: relative; }

/* --- Nav Link --- */
.nav-link {
    position: relative;
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
    padding: 10px 16px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-full);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link:hover { color: var(--text-primary) !important; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold) !important;
    transition: all 0.35s cubic-bezier(0.25,0.8,0.25,1.2);
    transform: translateX(-50%);
    border-radius: 2px;
}
.nav-link:hover::after { width: 50%; }
.nav-highlight { color: var(--gold) !important; font-weight: 600; }
.nav-sale { color: #e8607a !important; font-weight: 600; }
.nav-badge {
    background: #e8607a; color: #fff; font-size: 0.6rem; padding: 2px 7px; border-radius: var(--radius-full); font-weight: 700;
}
.nav-arrow { font-size: 0.6rem; transition: transform 0.3s ease; }
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* --- Right Icons --- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.nav-icon-btn {
    color: var(--text-secondary) !important;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
}
.nav-icon-btn:hover {
    color: var(--text-primary) !important;
    background: var(--glass-highlight);
    border-color: var(--glass-border-hover);
}
.nav-icon-btn svg { width: 20px; height: 20px; }

/* --- Login --- */
.nav-login-btn {
    display: flex; align-items: center; gap: 8px; padding: 8px 16px;
    border-radius: var(--radius-full); border: 1px solid var(--gold) !important;
    color: var(--gold) !important; text-decoration: none; font-size: 0.8rem;
    font-weight: 500; transition: all 0.3s ease; white-space: nowrap;
}
.nav-login-btn:hover { background: var(--gold) !important; color: #000 !important; }

/* --- Theme Toggle --- */
.theme-toggle {
    width: 48px; height: 26px;
    background: var(--glass-border) !important;
    border-radius: 13px; border: 1px solid var(--glass-border);
    cursor: pointer; position: relative; transition: all 0.3s ease;
}
.theme-toggle-knob {
    position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
    background: var(--gold) !important; border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
[data-theme="light"] .theme-toggle-knob {
    left: 25px; background: #0a0a0f !important;
}

/* --- Count Badges --- */
.nav-count {
    position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px;
    padding: 0 4px; border-radius: 50%; font-size: 0.55rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    background: var(--text-primary) !important; color: var(--bg-primary) !important;
    border: 1px solid var(--glass-border); box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.cart-count {
    background: var(--text-primary) !important;
    color: var(--bg-primary) !important;
}
.wishlist-count {
    background: #e8607a !important; color: #fff !important; border: none !important;
}

/* --- User Dropdown --- */
.nav-user-menu { position: relative; }
.nav-user-avatar img {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--gold); transition: all 0.3s ease; cursor: pointer;
}
.nav-user-avatar img:hover { box-shadow: 0 0 20px var(--accent-glow); }
.nav-user-dropdown {
    position: absolute; top: 120%; right: 0; background: var(--bg-primary) !important;
    backdrop-filter: none !important; border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-md); padding: 8px; min-width: 200px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(8px); transition: all 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.nav-user-menu:hover .nav-user-dropdown { opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0); }
.nav-user-dropdown a {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    color: var(--text-secondary) !important; text-decoration: none; font-size: 0.82rem;
    border-radius: var(--radius-sm); transition: all 0.2s ease;
}
.nav-user-dropdown a:hover { background: var(--glass-highlight) !important; color: var(--text-primary) !important; }
.dropdown-divider { height: 1px; background: var(--glass-border); margin: 6px 0; }
.dropdown-logout {
    width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    background: none; border: none; color: #e8607a; font-size: 0.82rem;
    cursor: pointer; border-radius: var(--radius-sm); transition: all 0.2s ease;
    font-family: inherit;
}
.dropdown-logout:hover { background: rgba(231,76,60,0.1); }
.nav-divider { width: 1px; height: 24px; background: var(--glass-border); margin: 0 8px; }

/* --- Hamburger --- */
.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; flex-direction: column; gap: 5px;
}
.mobile-menu-btn span {
    display: block; width: 22px; height: 2px;
    background: var(--text-primary) !important; transition: all 0.3s ease; border-radius: 2px;
}

/* --- Mega Menu --- */
.mega-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(12px);
    background: var(--bg-primary) !important; backdrop-filter: none !important;
    border: 1px solid var(--glass-border) !important; border-radius: var(--radius-lg);
    padding: 0; opacity: 0; visibility: hidden; pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
    min-width: 750px; z-index: 100;
}
[data-theme="dark"] .mega-menu { box-shadow: 0 20px 60px rgba(0,0,0,0.6) !important; }
.nav-item:hover .mega-menu { opacity: 1; visibility: visible; pointer-events: all; transform: translateX(-50%) translateY(8px); }
.mega-inner { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 0; }
.mega-column { padding: 30px 24px; border-right: 1px solid var(--glass-border); }
.mega-column:last-child { border-right: none; }
.mega-icon { font-size: 1.5rem; margin-bottom: 12px; }
.mega-column h4 {
    font-family: var(--font-display); font-size: 0.85rem; color: var(--gold) !important;
    letter-spacing: 0.06em; margin-bottom: 14px; text-transform: uppercase;
}
.mega-column a {
    display: block; color: var(--text-secondary) !important; text-decoration: none;
    font-size: 0.78rem; padding: 5px 0; transition: all 0.3s ease; letter-spacing: 0.03em;
}
.mega-column a:hover { color: var(--text-primary) !important; padding-left: 8px; }
.mega-featured {
    background: var(--glass-highlight); padding: 24px;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.mega-featured-image { width: 100%; height: 120px; background: url('https://images.unsplash.com/photo-1596462502278-27bfdc403348?w=300&q=80') center/cover; border-radius: var(--radius-sm); margin-bottom: 12px; }
.mega-badge { background: var(--gold); color: #000; font-size: 0.6rem; padding: 3px 10px; border-radius: var(--radius-full); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.mega-featured p { color: var(--text-secondary); font-size: 0.8rem; margin-bottom: 10px; }
.mega-cta { color: var(--gold) !important; font-weight: 600; font-size: 0.78rem; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: all 0.3s ease; }
.mega-cta:hover { color: var(--text-primary) !important; border-color: var(--text-primary) !important; }

/* ============================================================
   MOBILE SIDEBAR MENU (SLIDE FROM LEFT)
   ============================================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 80%;
    height: 100vh;
    background: var(--bg-primary) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 99999;
    padding: 20px 20px 30px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25,0.1,0.25,1);
    box-shadow: 2px 0 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
.mobile-menu-overlay.open { transform: translateX(0); }

/* --- Header (Theme + Icons) --- */
.mobile-menu-header {
    display: flex;
    align-items: center;
 
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}
.mobile-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: var(--glass-highlight);
    border: 1px solid transparent;
}
.mobile-icon-btn:hover { color: var(--text-primary); border-color: var(--glass-border-hover); }
.mobile-icon-btn svg { width: 22px; height: 22px; stroke: currentColor; }
.mobile-badge {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
    padding: 0 5px; border-radius: 50%; font-size: 0.55rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    background: var(--text-primary) !important; color: var(--bg-primary) !important;
    border: 1px solid var(--glass-border); box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.mobile-badge.wishlist-count { background: #e8607a !important; color: #fff !important; border: none !important; }

.mobile-theme-toggle {
    width: 44px; height: 24px; background: var(--glass-border) !important;
    border-radius: 12px; border: 1px solid var(--glass-border);
    cursor: pointer; position: relative; transition: all 0.3s ease; flex-shrink: 0;
}
.mobile-theme-toggle .theme-toggle-knob {
    position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
    background: var(--gold) !important; border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
[data-theme="light"] .mobile-theme-toggle .theme-toggle-knob {
    left: 22px; background: #0a0a0f !important;
}

/* --- Links --- */
.mobile-menu-links { flex: 1; overflow-y: auto; }
.mobile-menu-links .mobile-link {
    display: block;
    padding: 14px 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--glass-border);
    transition: color 0.3s ease, padding 0.3s ease;
}
.mobile-menu-links .mobile-link:hover { color: var(--gold); padding-left: 10px; }

/* --- Close Button --- */
.mobile-menu-close {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; color: var(--text-primary);
    font-size: 2rem; cursor: pointer; padding: 8px; line-height: 1;
    transition: transform 0.3s ease; z-index: 10;
}
.mobile-menu-close:hover { transform: rotate(90deg); }

/* ============================================================
   MOBILE PROFILE (WITHOUT BORDER)
   ============================================================ */
.mobile-profile .nav-user-avatar img {
    border: none !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}
.mobile-profile .nav-user-avatar img:hover {
    box-shadow: 0 0 0 2px var(--gold) !important;
}

.mobile-profile.nav-login-btn {
    border: none !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    color: var(--gold) !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}
.mobile-profile.nav-login-btn:hover {
    background: var(--gold) !important;
    color: var(--bg-primary) !important;
}
.mobile-profile.nav-login-btn span { display: none; }
.mobile-profile.nav-login-btn svg { width: 22px; height: 22px; stroke: currentColor; }

/* ============================================================
   RESPONSIVE : MOBILE (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .nav-links { display: none !important; }
    .nav-left-mobile { display: flex !important; order: 1; }
    .nav-brand { order: 2; flex: 1; justify-content: center; gap: 8px; }
    .nav-right { order: 3; gap: 4px !important; }
    #navbar { padding: 0 16px; height: 64px; }
    .nav-icon-btn { width: 34px; height: 34px; }
    .nav-icon-btn svg { width: 18px; height: 18px; }
    .nav-logo { height: 28px; }
    .brand-name { font-size: 1.1rem; }
    .theme-toggle { width: 40px; height: 22px; }
    .theme-toggle-knob { width: 14px; height: 14px; top: 3px; left: 3px; }
    [data-theme="light"] .theme-toggle-knob { left: 22px; }
    .nav-count { width: 16px; height: 16px; font-size: 0.5rem; top: 0; right: 0; min-width: 16px; }
    .mobile-menu-btn { display: flex !important; }
    .mobile-menu-btn span { width: 20px; height: 2px; }
    .nav-login-btn span { display: none; }
    .nav-login-btn { padding: 4px 6px; border: none !important; color: var(--text-secondary) !important; }
    .nav-login-btn svg { width: 20px; height: 20px; }
    .desktop-only { display: none !important; }

    /* Mobile profile size */
    .mobile-profile .nav-user-avatar img { width: 34px; height: 34px; }
    .mobile-profile.nav-login-btn { width: 34px; height: 34px; }
    .mobile-profile.nav-login-btn svg { width: 18px; height: 18px; }
}

@media (max-width: 480px) {
    .brand-name { font-size: 0.9rem; }
    .nav-logo { height: 22px; }
    .nav-icon-btn { width: 28px; height: 28px; }
    .nav-icon-btn svg { width: 16px; height: 16px; }
    #navbar { padding: 0 10px; height: 56px; }
    .mobile-menu-overlay { width: 280px; padding: 16px 16px 20px; }
    .mobile-icon-btn { width: 36px; height: 36px; }
    .mobile-icon-btn svg { width: 18px; height: 18px; }
    .mobile-menu-links .mobile-link { font-size: 1.1rem; padding: 12px 0; }
    .mobile-badge { min-width: 16px; height: 16px; font-size: 0.45rem; }
    .mobile-theme-toggle { width: 38px; height: 20px; }
    .mobile-theme-toggle .theme-toggle-knob { width: 14px; height: 14px; top: 2px; left: 2px; }
    [data-theme="light"] .mobile-theme-toggle .theme-toggle-knob { left: 20px; }

    .mobile-profile .nav-user-avatar img { width: 28px; height: 28px; }
    .mobile-profile.nav-login-btn { width: 28px; height: 28px; }
    .mobile-profile.nav-login-btn svg { width: 16px; height: 16px; }
}

/* ============================================================
   RTL SUPPORT
   ============================================================ */
[dir="rtl"] .mobile-menu-overlay {
    left: auto; right: 0;
    transform: translateX(100%);
    box-shadow: -2px 0 30px rgba(0,0,0,0.1);
}
[dir="rtl"] .mobile-menu-overlay.open { transform: translateX(0); }
[dir="rtl"] .mobile-menu-links .mobile-link:hover { padding-left: 0; padding-right: 10px; }
[dir="rtl"] .mobile-menu-close { right: auto; left: 20px; }

[dir="rtl"] .nav-link::after { left: auto; right: 50%; transform: translateX(50%); }
[dir="rtl"] .product-badge { left: auto; right: 14px; }
[dir="rtl"] .product-wishlist { right: auto; left: 14px; }
[dir="rtl"] .category-card-content { text-align: right; }
[dir="rtl"] .comparison-label.before { left: auto; right: 20px; }
[dir="rtl"] .comparison-label.after { right: auto; left: 20px; }
[dir="rtl"] .preloader-counter { right: auto; left: 60px; }
[dir="rtl"] .preloader-line { left: 60px; right: 60px; }
[dir="rtl"] .nav-brand-dot { margin-left: 0; margin-right: 2px; }
[dir="rtl"] .mega-menu { left: auto; right: 50%; transform: translateX(50%) translateY(8px); }
[dir="rtl"] .nav-item:hover .mega-menu { transform: translateX(50%) translateY(0); }
[dir="rtl"] .mega-menu-column a:hover { transform: translateX(-6px); }
[dir="rtl"] .shop-sidebar { text-align: right; }
[dir="rtl"] .filter-option { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .product-price-row { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .profile-tabs { justify-content: flex-end; }
[dir="rtl"] .flash-sale-grid { direction: rtl; }
[dir="rtl"] .footer-social { justify-content: flex-end; }
[dir="rtl"] .footer-payment-icons { justify-content: flex-end; }
[dir="rtl"] .shop-toolbar { flex-direction: row-reverse; }
[dir="rtl"] .testimonial-text { text-align: right; }
[dir="rtl"] .countdown-unit { text-align: center; }
[dir="rtl"] body {
    font-family: 'Almarai', sans-serif;
    letter-spacing: 0;
}
[dir="rtl"] .section-eyebrow, [dir="rtl"] .hero-headline, 
[dir="rtl"] .product-quick-view, [dir="rtl"] .btn-primary, 
[dir="rtl"] .btn-secondary, [dir="rtl"] .nav-link, 
[dir="rtl"] .product-name, [dir="rtl"] .category-card-title {
    font-family: 'Almarai', sans-serif;
    letter-spacing: 0;
}
[dir="rtl"] .hero-headline em { font-style: normal; color: var(--gold); }
@media (max-width: 768px) {
    [dir="rtl"] .profile-tabs { justify-content: flex-start; }
}

/* ============ LOGO THEME SWITCH ============ */
.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

/* تأكد من أن اللوجو له نفس الحجم في الوضعين */
.nav-logo {
    height: 36px;
    width: auto;
}
@media (max-width: 1024px) {
    .nav-logo { height: 28px; }
}
@media (max-width: 480px) {
    .nav-logo { height: 22px; }
}

/* ---------- Premium Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.page-item .page-link {
    border: 1.5px solid #e0d8cc;
    background: white;
    color: #5a5a5a;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    text-decoration: none;
    min-width: 38px;
    text-align: center;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #c9a87c, #b08d5c);
    border-color: #c9a87c;
    color: white;
    box-shadow: 0 4px 16px rgba(201,168,124,0.3);
    font-weight: 600;
}

.page-item .page-link:hover {
    background: #f5efe5;
    border-color: #c9a87c;
    color: #c9a87c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201,168,124,0.2);
}

.page-item.active .page-link:hover {
    background: linear-gradient(135deg, #b08d5c, #8c6d42);
    color: white;
}

.page-item.disabled .page-link {
    background: #faf9f7;
    border-color: #e8e3d8;
    color: #b0a99e;
    pointer-events: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 576px) {
    .page-item .page-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
        min-width: 34px;
    }
}


/* شبكة الفئات داخل القائمة المنسدلة (عمودين) */
.categories-grid-mega {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

.categories-grid-mega a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 0;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.categories-grid-mega a:hover {
    color: var(--gold);
    padding-left: 6px;
}