@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Tajawal:wght@300;400;500;700;800&family=Cairo:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #C5A572;
  --gold-light: #D4BC8A;
  --gold-dark: #A88B5D;
  --dark-gold: #8B7355;
  --orange: #E8843C;
  --orange-light: #F09A5A;
  --orange-dark: #D06E2A;
  --black: #1A1A1A;
  --dark: #2D2D2D;
  --gray: #6B6B6B;
  --light-gray: #EBEBEB;
  --white: #D9D9D9;
  --success: #28a745;
  --danger: #dc3545;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  background-color: var(--white);
  color: var(--black);
  line-height: 1.6;
  direction: rtl;
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== NAVBAR ===== */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #CA4205, #D86F31);
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.nav-container { display: flex; align-items: center; height: 74px; gap: 16px; }
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 68px; width: auto; }
.nav-menu { display: flex; list-style: none; gap: 2px; align-items: center; margin-left: auto; flex-shrink: 0; }
.nav-menu a {
  color: #fff; font-size: 0.95rem; font-weight: 600; padding: 8px 16px;
  border-radius: 8px; text-decoration: none; transition: 0.2s;
  white-space: nowrap; flex-shrink: 0;
}
.nav-menu a:hover { color: #fff; background: rgba(255,255,255,0.18); }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-right: auto; }
.nav-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: none;
  background: rgba(255,255,255,0.16); color: #fff; font-size: 1rem; cursor: pointer;
  transition: 0.2s; text-decoration: none; position: relative;
}
.nav-btn:hover { background: rgba(255,255,255,0.32); color: #fff; }
.theme-toggle { transition: transform 0.3s ease; }
.theme-toggle:hover { transform: rotate(30deg); }
html[data-theme="dark"] .theme-toggle { color: #f0c040; }
.nav-admin { background: var(--dark-gold); color: #fff; display: none; }
.nav-admin:hover { opacity: 0.85; background: var(--dark-gold); color: #fff; }
.nav-user-avatar {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  display: block;
}
.nav-user-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #fff; font-size: 0.75rem; font-weight: 700;
}
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: #fff; color: #CA4205; font-size: 0.6rem;
  min-width: 17px; height: 17px; border-radius: 50%; padding: 0 4px;
  display: none; align-items: center; justify-content: center; font-weight: 700;
  border: 2px solid #fff; line-height: 1;
}
.main-nav.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.nav-hamburger { display: none; background: none; border: none; font-size: 1.3rem; color: #fff; cursor: pointer; }

/* Nav Search */
.nav-search-wrap { position: relative; }
.nav-search-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 300px; background: #D9D9D9; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: 0.25s; z-index: 100;
}
.nav-search-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-search-dropdown input {
  width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid #eee;
  font-size: 0.9rem; font-family: 'Tajawal', sans-serif; outline: none;
}
.nav-search-dropdown input:focus { border-color: var(--gold); }

/* Search Results */
.search-results-list {
  display: none; margin-top: 6px; max-height: 300px; overflow-y: auto;
}
.search-results-list.show { display: block; }
.sr-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 8px; text-decoration: none; color: #333; transition: 0.15s;
}
.sr-item:hover { background: #fdf8f0; }
.sr-item img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: #E5E5E5; }
.sr-item-info { flex: 1; min-width: 0; }
.sr-item-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-item-price { font-size: 0.8rem; color: var(--gold); font-weight: 700; }
.sr-empty { padding: 20px; text-align: center; color: #999; font-size: 0.85rem; }

/* ===== MOBILE SIDEBAR ===== */
.nav-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 1100; opacity: 0; transition: opacity 0.3s;
}
.nav-overlay.active { display: block; opacity: 1; }
.nav-sidebar {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
  background: #D9D9D9; z-index: 1200; transition: right 0.3s ease;
  display: flex; flex-direction: column; box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.nav-sidebar.active { right: 0; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.sidebar-logo { height: 35px; }
.sidebar-close { background: none; border: none; font-size: 1.2rem; color: #666; cursor: pointer; }
.sidebar-search {
  position: relative; padding: 12px 20px; border-bottom: 1px solid #f0f0f0;
}
.sidebar-search i { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); color: #bbb; font-size: 0.85rem; }
.sidebar-search input {
  width: 100%; padding: 9px 12px 9px 34px; border-radius: 8px;
  border: 1px solid #eee; font-size: 0.85rem; font-family: 'Tajawal', sans-serif;
  outline: none; background: #E5E5E5;
}
.sidebar-search input:focus { border-color: var(--gold); }
.sidebar-links { flex: 1; overflow-y: auto; padding: 10px 0; }
.sidebar-links a {
  display: flex; align-items: center; gap: 10px; padding: 11px 20px;
  color: #444; text-decoration: none; font-size: 0.9rem; transition: 0.15s;
}
.sidebar-links a:hover { background: #fdf8f0; color: var(--gold); }
.sidebar-links a i { width: 18px; text-align: center; font-size: 0.85rem; color: var(--gold); }
.sidebar-sub { padding-right: 48px; font-size: 0.82rem !important; }
.sidebar-bottom { padding: 12px 20px; border-top: 1px solid #f0f0f0; }
.sidebar-login {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px; border-radius: 10px; background: var(--orange);
  color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 600;
  transition: 0.2s;
}
.sidebar-login:hover { opacity: 0.9; }

/* Language Buttons */
.nav-langs { position: relative; }
.lang-toggle-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; border-radius: 10px; padding: 0 14px;
  border: 1.5px solid rgba(255,255,255,0.5); background: rgba(255,255,255,0.16); color: #fff;
  cursor: pointer; font-size: 0.85rem; font-weight: 600;
  transition: 0.2s; position: relative; white-space: nowrap;
}
.lang-toggle-btn:hover { background: rgba(255,255,255,0.32); color: #fff; }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #D9D9D9; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  padding: 6px; min-width: 170px; z-index: 200; flex-direction: column; gap: 2px;
}
.lang-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border: none; background: none; border-radius: 8px; cursor: pointer;
  font-size: 0.88rem; color: #444; font-family: 'Tajawal', sans-serif;
  transition: 0.15s; width: 100%; text-align: right;
}
.lang-option:hover { background: #fdf8f0; color: var(--gold); }
.lang-option.active { background: var(--gold); color: #fff; font-weight: 600; }
.lang-flag { font-size: 1.15rem; line-height: 1; }

/* ===== MOBILE BOTTOM BAR ===== */
.bottom-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: #D9D9D9; border-top: 1px solid #eee; z-index: 1000;
  padding: 4px 0 max(4px, env(safe-area-inset-bottom));
}
.bottom-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; text-decoration: none; color: #999; font-size: 0.52rem;
  padding: 2px 0; gap: 1px; background: none; border: none; cursor: pointer; transition: 0.2s;
  min-width: 0;
}
.bottom-item i { font-size: 0.95rem; }
.bottom-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bottom-item:hover, .bottom-item.active { color: var(--gold); }

/* ===== LANGUAGE PICKER ===== */
.lang-picker-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 5000; backdrop-filter: blur(4px);
}
.lang-picker-overlay.active { display: block; }
.lang-picker {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: #D9D9D9; border-radius: 20px 20px 0 0; z-index: 5001;
  max-height: 70vh; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom);
  animation: slideUp 0.3s ease;
}
.lang-picker.active { display: block; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.lang-picker-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #eee; position: sticky; top: 0;
  background: #D9D9D9; border-radius: 20px 20px 0 0;
}
.lang-picker-header h3 { margin: 0; font-size: 1.1rem; color: #333; }
.lang-picker-header button { background: none; border: none; font-size: 1.2rem; color: #999; cursor: pointer; padding: 4px; }
.lang-picker-list { padding: 8px 12px; }
.lang-picker-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px;
  border: none; background: none; font-size: 1rem; cursor: pointer; border-radius: 12px;
  transition: 0.2s; text-align: right; font-family: 'Tajawal', sans-serif; color: #333;
}
.lang-picker-item:hover { background: #E5E5E5; }
.lang-picker-item.active { background: rgba(197,165,114,0.1); color: var(--gold); font-weight: 600; }
.lang-picker-flag { font-size: 1.6rem; }
.lang-picker-name { flex: 1; }
.lang-picker-item .fas.fa-check { color: var(--gold); font-size: 0.85rem; }

/* ===== MOBILE FULL SEARCH ===== */
.full-search {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 2000; padding-top: 60px;
}
.full-search.active { display: flex; justify-content: center; align-items: flex-start; }
.full-search-inner { width: 90%; max-width: 400px; position: relative; }
.full-search-inner input {
  width: 100%; padding: 14px 46px 14px 16px; border-radius: 14px;
  border: 2px solid var(--gold); font-size: 1rem; font-family: 'Tajawal', sans-serif;
  outline: none; direction: rtl;
}
.full-search-close {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 1.1rem; color: #999; cursor: pointer;
}
.full-search .search-results-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #D9D9D9; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); max-height: 50vh; overflow-y: auto; }
.full-search .sr-item { padding: 10px 14px; }




/* ===== HERO SUBCATEGORIES ===== */
.hero-subcats {
  position: relative; z-index: 10;
  background: linear-gradient(135deg, #CA4205, #D86F31);
  border-top: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.18);
  padding: 10px 0; margin-top: 78px;
}
.hero-cats-scroll {
  display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 2px 0;
}
.hero-cats-scroll::-webkit-scrollbar { display: none; }
.hero-cat-pill {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.16); color: #fff;
  font-family: inherit; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all 0.25s ease;
  scroll-snap-align: start;
}
.hero-cat-pill:hover { background: rgba(255,255,255,0.3); border-color: #fff; color: #fff; }
.hero-cat-pill.active {
  background: var(--gold); border-color: var(--gold); color: #141210;
  box-shadow: 0 6px 16px rgba(197,165,114,0.35);
}
.hero-cat-pill i { font-size: 0.68rem; transition: transform 0.25s ease; }
.hero-cat-pill.active i { transform: rotate(180deg); }

.hero-cat-menu {
  position: absolute; top: calc(100% + 8px); inset-inline: 0;
  background: #fff; border: 1px solid #eee; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.16);
  padding: 14px;
  z-index: 40;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.hero-cat-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.hero-cat-menu-loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 22px; color: #999; font-size: 0.9rem;
}
.hero-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.hero-cat-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  color: #333; text-decoration: none; font-size: 0.88rem; font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.hero-cat-link:hover { background: #f6f2ea; color: var(--gold); }
.hero-cat-link img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.hero-cat-link .cat-noimg {
  width: 40px; height: 40px; border-radius: 8px; background: #eee;
  display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 0.9rem; flex-shrink: 0;
}
.hero-cat-link-empty { padding: 16px; text-align: center; color: #999; font-size: 0.9rem; }

@media (max-width: 768px) {
  .hero-subcats { padding: 8px 0; margin-top: 78px; }
  .hero-cat-pill { padding: 8px 14px; font-size: 0.86rem; }
  .hero-cat-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .hero-cat-menu { inset-inline: 6px; }
}

/* ===== HERO SLIDER ===== */
.hero {
  height: calc(100vh - 200px); min-height: 450px;
  position: relative; overflow: hidden; margin-top: 0;
}

.hero-slider {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
}
.hero-slider-mobile { display: none; }

.hero-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  opacity: 0; transition: none; pointer-events: none;
}
.hero-slide.active { opacity: 1; z-index: 1; pointer-events: auto; }

.hero-slide::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(45,45,45,0.6) 50%, rgba(26,26,26,0.75) 100%);
}

.hero-slide::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(to top, rgba(26,26,26,0.9), transparent);
}

/* Floating Particles */
.hero-particles {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; overflow: hidden;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,165,114,0.3), rgba(197,165,114,0.05));
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 800px; padding: 0 20px; text-align: center;
  top: 50%; transform: translateY(-50%);
}

.hero-logo {
  width: 300px; margin: 0 auto 25px;
  display: flex; align-items: center; justify-content: center;
  animation: fadeInDown 0.8s ease;
}
.hero-logo img { width: 300px; height: auto; object-fit: contain; }

.hero h1 {
  font-size: 4.5rem; color: var(--white); margin-bottom: 15px;
  animation: fadeInUp 0.8s ease 0.1s both;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
  letter-spacing: 3px;
}
.hero h1 span { 
  color: var(--gold);
  text-shadow: 0 0 30px rgba(197,165,114,0.4);
}

.hero-subtitle {
  font-size: 1.5rem; color: #e0e0e0; margin-bottom: 30px;
  animation: fadeInUp 0.8s ease 0.3s both;
  min-height: 2em;
  direction: rtl;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.typing-cursor {
  display: inline-block;
  color: var(--gold);
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Hero Tags */
.hero-tags {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 30px;
  animation: fadeInUp 0.8s ease 0.5s both;
  flex-wrap: wrap;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(232,132,60,0.25), rgba(232,132,60,0.1));
  border: 1px solid rgba(232,132,60,0.5);
  padding: 10px 22px; border-radius: 30px;
  color: var(--white); font-size: 0.9rem; font-weight: 600;
  transition: var(--transition);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.hero-tag:hover {
  background: linear-gradient(135deg, rgba(232,132,60,0.5), rgba(232,132,60,0.25));
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(232,132,60,0.3);
}
.hero-tag i {
  color: var(--orange); font-size: 0.95rem;
  filter: drop-shadow(0 1px 3px rgba(197,165,114,0.5));
}

.hero-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: var(--white);
  padding: 15px 40px; border-radius: 30px; font-size: 1.1rem;
  font-weight: 600; transition: var(--transition); 
  animation: fadeInUp 0.8s ease 0.7s both;
  position: relative; overflow: hidden;
}
.hero-btn::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}
.hero-btn:hover::before { left: 100%; }
.hero-btn:hover {
  background: linear-gradient(135deg, var(--orange-light), var(--orange)); transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(232,132,60,0.5);
}
.hero-btn i { transition: transform 0.3s; }
.hero-btn:hover i { transform: translateX(-5px); }

.hero-dots {
  position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}

.hero-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.3); border: 2px solid rgba(197,165,114,0.6);
  cursor: pointer; transition: var(--transition);
}
.hero-dot.active { background: var(--gold); transform: scale(1.3); border-color: var(--gold); }
.hero-dot:hover { background: rgba(197,165,114,0.6); }

.hero-arrows { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); z-index: 5; pointer-events: none; padding: 0 14px; display: flex; justify-content: space-between; }
.hero-arrow {
  pointer-events: auto; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.85); color: #222;
  font-size: 1rem; cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15); backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--gold); color: #fff; transform: scale(1.1); }
.hero-dots {
  display: none; justify-content: center; gap: 10px;
  position: absolute; bottom: 24px; left: 0; right: 0; z-index: 5;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.7);
  background: transparent; cursor: pointer; transition: all 0.3s; padding: 0;
}
.hero-dot.active { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }
.hero-dot:hover { background: rgba(197,165,114,0.6); }

@media (max-width: 768px) {
  .hero-arrows { padding: 0 10px; }
  .hero-arrow { width: 36px; height: 36px; font-size: 0.85rem; }
  .hero-dots { bottom: 16px; gap: 8px; }
  .hero-dot { width: 8px; height: 8px; }
}

/* Scroll Indicator - Mouse Style */
.scroll-indicator {
  position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeInUp 1s ease 1s both;
}

.scroll-text {
  font-size: 0.75rem; color: rgba(255,255,255,0.5);
  letter-spacing: 1px; text-transform: uppercase;
}

.scroll-mouse {
  width: 26px; height: 40px; border: 2px solid rgba(197,165,114,0.5);
  border-radius: 13px; position: relative;
}

.scroll-wheel {
  width: 4px; height: 8px; background: var(--gold);
  border-radius: 2px; position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* ===== SEARCH & FILTERS ===== */
.search-bar {
  display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap;
  justify-content: center; align-items: center;
}

.search-input-wrapper {
  position: relative; flex: 1; max-width: 400px;
}

.search-input-wrapper i {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--gray);
}

.search-input {
  width: 100%; padding: 13px 15px 13px 45px;
  border: 2px solid #e9ecef; border-radius: 12px;
  font-size: 1rem; font-family: 'Tajawal', 'Cairo', sans-serif;
  transition: var(--transition); background: var(--white);
}
.search-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,165,114,0.1); }

.price-filter {
  display: flex; gap: 10px; align-items: center;
}

.price-input {
  width: 100px; padding: 10px; border: 2px solid #ddd;
  border-radius: 10px; font-size: 0.95rem; text-align: center;
  font-family: 'Tajawal', 'Cairo', sans-serif;
}
.price-input:focus { outline: none; border-color: var(--gold); }

.price-separator { color: var(--gray); font-weight: 600; }

/* ===== SECTION ===== */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
  font-size: 2.8rem; color: var(--black); margin-bottom: 15px;
  position: relative; display: inline-block;
}
.section-header h2::after {
  content: ''; position: absolute; bottom: -10px; left: 50%;
  transform: translateX(-50%); width: 80px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}
.section-header p { color: var(--gray); font-size: 1.1rem; margin-top: 20px; }

/* ===== GALLERY ===== */
.gallery { background: var(--light-gray); }

.gallery-filters {
  display: flex; justify-content: center; gap: 12px;
  margin-bottom: 40px; flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 28px; border: 2px solid var(--orange);
  background: transparent; color: var(--black);
  border-radius: 30px; cursor: pointer;
  font-family: 'Tajawal', 'Cairo', sans-serif; font-size: 0.95rem; font-weight: 600;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--orange); color: var(--white);
  box-shadow: 0 4px 15px rgba(232,132,60,0.3);
}

.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 25px; column-gap: 6px;
  position: relative; width: calc(100vw - 40px); left: 50%; right: 50%; margin-left: calc(-50vw + 20px); margin-right: calc(-50vw + 20px);
}

.product-card {
  background: none; border-radius: 0; overflow: visible;
  box-shadow: none; transition: none;
  border: none; cursor: pointer; text-decoration: none; color: inherit; display: block;
}
.product-card:hover { transform: none; box-shadow: none; }

.product-image { position: relative; height: 260px; overflow: hidden; background: #E5E5E5; border-radius: 14px; }
.product-image img {
  width: 100%; height: 100%; object-fit: cover; transition: var(--transition);
  image-rendering: -webkit-optimize-contrast;
}
.product-card:hover .product-image img { transform: scale(1.03); }

.product-badge { display: none; }

.product-quick-view { display: none; }

.product-share { display: none; }

.product-info { padding: 10px 0 0; text-align: center; }
.product-info h3 { font-size: 1rem; margin-bottom: 4px; color: var(--black); line-height: 1.4; font-weight: 600; }
.product-info p { display: none; }

.product-footer { display: flex; justify-content: center; align-items: center; }
.product-price { font-size: 1.15rem; font-weight: 700; color: #222; }

/* Product Rating */
.product-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.product-rating .stars { display: flex; gap: 1px; }
.product-rating .stars i { color: var(--orange); font-size: 0.85rem; }
.rating-count { color: var(--gray); font-size: 0.8rem; }

.product-details-btn {
  background: var(--black); color: var(--white);
  padding: 8px 22px; border-radius: 20px; font-size: 0.85rem; transition: var(--transition);
  font-weight: 600;
}
.product-details-btn:hover { background: var(--gold); color: var(--white); }

/* ===== QUICK VIEW MODAL ===== */
.modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); display: none;
  align-items: center; justify-content: center; z-index: 2000;
}
.modal.active { display: flex; }

.modal-content {
  background: var(--white); border-radius: 20px; padding: 30px;
  max-width: 900px; width: 90%; max-height: 90vh; overflow-y: auto;
}

.quickview-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
}

.quickview-image {
  border-radius: 15px; overflow: hidden;
}
.quickview-image img { width: 100%; height: 350px; object-fit: contain; background: #E5E5E5; }

.quickview-info h2 { font-size: 2rem; margin-bottom: 15px; color: var(--black); }
.quickview-info .price { font-size: 1.8rem; color: var(--gold-dark); font-weight: 700; margin-bottom: 15px; }
.quickview-info .description { color: var(--gray); line-height: 1.8; margin-bottom: 20px; }

.quickview-actions { display: flex; gap: 10px; }

/* ===== COUNTER SECTION ===== */
.counter-section {
  background: linear-gradient(135deg, var(--black) 0%, #1a1a2e 50%, var(--dark) 100%);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.counter-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C5A572' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.counter-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  text-align: center;
}

.counter-item {
  color: var(--white);
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  padding: 30px 20px;
  border: 1px solid rgba(197,165,114,0.15);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.counter-item:hover {
  background: rgba(197,165,114,0.1);
  border-color: rgba(197,165,114,0.3);
  transform: translateY(-5px);
}

.counter-icon {
  width: 60px; height: 60px; margin: 0 auto 15px;
  background: rgba(232,132,60,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.counter-icon i {
  font-size: 1.5rem; color: var(--orange);
}

.counter-number {
  font-size: 3.2rem; font-weight: 700; color: var(--gold);
  font-family: 'Playfair Display', serif;
}

.counter-label {
  color: #aaa; font-size: 1rem; margin-top: 8px; font-weight: 500;
}

/* ===== CONTACT ===== */
.contact { background: var(--white); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start;
}

.contact-map { margin-top: 20px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.contact-map iframe { width: 100%; height: 350px; border: none; border-radius: 16px; }

.contact-form-wrapper {
  background: var(--light-gray); padding: 35px; border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.04);
}

.contact-form-wrapper h3 {
  font-size: 1.6rem; margin-bottom: 25px; color: var(--black);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }

.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 15px; border: 2px solid #eee;
  border-radius: 10px; font-size: 1rem; font-family: 'Tajawal', 'Cairo', sans-serif;
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: none; border-radius: 8px;
  font-family: 'Tajawal', 'Cairo', sans-serif; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-info { background: #17a2b8; color: var(--white); }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-group { display: flex; gap: 8px; }

/* ===== FOOTER ===== */
.footer { background: #D9D9D9; color: #333; padding: 70px 0 30px; border-top: 1px solid #eee; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-about h3 { font-size: 1.8rem; color: var(--gold); margin-bottom: 15px; }
.footer-about p { color: #666; line-height: 1.8; font-size: 0.95rem; }
.footer-links h4 { font-size: 1.1rem; color: var(--gold); margin-bottom: 20px; font-weight: 600; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #555; transition: var(--transition); font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold); padding-right: 5px; }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 12px;
  background: #E5E5E5; color: #555;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: var(--transition);
  border: 1px solid #eee;
}
.footer-social a:hover { background: var(--gold); color: #fff; transform: translateY(-3px); border-color: var(--gold); }

.footer-bottom {
  border-top: 1px solid #eee; padding-top: 20px;
  text-align: center; color: #999;
}

/* ===== FOOTER POLICIES ===== */
.footer-policies {
  border-top: 1px solid #eee;
  padding-top: 30px; margin-top: 10px; margin-bottom: 20px;
}
.footer-policies h4 {
  color: var(--gold); font-size: 1.1rem; text-align: center;
  margin-bottom: 20px; font-weight: 600;
}
.footer-policies-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.footer-policy-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px;
  background: #E5E5E5;
  color: #555; font-size: 0.9rem;
  transition: var(--transition);
  border: 1px solid #eee;
}
.footer-policy-item:hover {
  background: rgba(232,132,60,0.15); color: var(--orange);
  border-color: rgba(232,132,60,0.3); transform: translateY(-2px);
}
.footer-policy-item i {
  color: var(--orange); font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0;
}

@media (max-width: 992px) {
  .footer-policies-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .footer-policies-grid { grid-template-columns: 1fr; }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed; top: 90px; left: 20px;
  z-index: 3000; display: flex; flex-direction: column; gap: 10px;
}

.toast {
  background: var(--white); padding: 15px 25px;
  border-radius: 10px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  animation: slideIn 0.3s ease;
  min-width: 300px; border-right: 4px solid;
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.info { border-color: #17a2b8; }

.toast i { font-size: 1.3rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.info i { color: #17a2b8; }

.toast-close {
  margin-right: auto; background: none; border: none;
  cursor: pointer; color: var(--gray); font-size: 1rem;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== PRODUCT CAROUSEL ===== */
.product-carousel-section { padding: 80px 0 60px; background: var(--light-gray); }
.carousel-grid-wrapper {
  display: flex; align-items: center; gap: 15px;
}
.carousel-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  flex: 1; min-width: 0;
}
.carousel-grid-wrapper { margin: 0; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #ccc;
  cursor: pointer; transition: var(--transition);
}
.carousel-dot.active { background: var(--orange); transform: scale(1.2); }
.carousel-card {
  flex: 0 0 280px; background: var(--white); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow); transition: var(--transition);
  text-decoration: none; color: var(--black);
}
.carousel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.carousel-card-img {
  height: 200px; overflow: hidden; background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
}
.carousel-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.carousel-card:hover .carousel-card-img img { transform: scale(1.08); }
.carousel-card-img i { font-size: 2.5rem; color: #ccc; }
.carousel-card-info { padding: 16px; }
.carousel-card-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--black); }
.carousel-card-info .price { color: var(--gold); font-weight: 700; font-size: 1.05rem; }
.carousel-card { position: relative; }
.carousel-controls { text-align: center; margin-top: 30px; }
.carousel-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 30px; border: 2px solid var(--orange); color: var(--orange);
  border-radius: 30px; font-weight: 700; font-size: 1rem;
  transition: var(--transition); background: transparent;
}
.carousel-more-btn:hover { background: var(--orange); color: var(--white); transform: translateY(-2px); }
.carousel-more-btn i { font-size: 0.9rem; }

/* ===== FEATURED PRODUCT ===== */
.featured-section { padding: 0; margin: 0; max-width: none; width: 100%; }
.featured-wrapper {
  position: relative; overflow: hidden;
  height: 100vh; min-height: 600px;
  background: var(--black);
}
.featured-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
}
.featured-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 35%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.3) 100%);
}
.featured-info {
  position: absolute; top: 0; right: 0; z-index: 2;
  padding: 30px 40px; max-width: 450px; text-align: right;
}
.featured-badge {
  display: inline-block; padding: 6px 18px; border-radius: 20px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white); font-size: 0.85rem; font-weight: 700;
  margin-bottom: 15px;
}
.featured-name {
  font-size: 2.5rem; color: var(--white); margin-bottom: 12px;
  font-family: 'Playfair Display', serif; line-height: 1.3;
}
.featured-price .price {
  font-size: 1.8rem; color: var(--gold); font-weight: 700;
  display: inline-block;
}
.featured-desc {
  color: #ccc; font-size: 1rem; line-height: 1.8;
  margin: 15px 0 25px; max-height: 100px; overflow: hidden;
}
.featured-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.featured-actions .btn { padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; }
.btn-outline {
  border: 2px solid var(--orange); color: var(--orange);
  background: transparent; cursor: pointer; transition: var(--transition);
  font-family: 'Tajawal', 'Cairo', sans-serif; display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { background: var(--orange); color: var(--white); }

@media (max-width: 992px) {
  .featured-wrapper { grid-template-columns: 1fr; }
  .featured-image { min-height: 250px; max-height: 300px; }
  .featured-info { padding: 30px; }
}
@media (max-width: 768px) {
  .carousel-card { flex: 0 0 240px; }
  .featured-name { font-size: 1.6rem; }
  .featured-info { padding: 25px 20px; }
  .featured-actions { flex-direction: column; }
}

/* ===== SETTINGS PANEL ===== */
.settings-panel-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 5000;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.settings-panel-overlay.active { opacity: 1; pointer-events: all; }
.settings-panel {
  position: fixed; top: 0; left: 0; width: 380px; max-width: 90vw; height: 100vh;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 5001;
  transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  box-shadow: 5px 0 30px rgba(0, 0, 0, 0.25);
}
.settings-panel.active { transform: translateX(0); }
.sp-header {
  background: var(--black); padding: 24px 20px; display: flex; align-items: center;
  justify-content: space-between; flex-shrink: 0;
}
.sp-header-info { display: flex; align-items: center; gap: 14px; }
.sp-avatar {
  width: 50px; height: 50px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--gold); flex-shrink: 0;
}
.sp-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.sp-username { color: var(--white); font-weight: 700; font-size: 1.05rem; }
.sp-role { color: var(--gold); font-size: 0.82rem; margin-top: 2px; }
.sp-close {
  background: none; border: none; color: var(--white); font-size: 1.2rem;
  cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; border-radius: 50%; transition: var(--transition);
}
.sp-close:hover { background: rgba(255,255,255,0.1); color: var(--gold); }
.sp-tabs {
  display: flex; background: rgba(0,0,0,0.15); border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.sp-tab {
  flex: 1; padding: 12px 8px; border: none; background: none; cursor: pointer;
  font-family: 'Tajawal', 'Cairo', sans-serif; font-size: 0.8rem; font-weight: 600;
  color: rgba(255,255,255,0.6); transition: var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.sp-tab:hover { color: var(--orange); }
.sp-tab.active { color: var(--orange); border-bottom: 2px solid var(--orange); background: rgba(255,255,255,0.08); }
.sp-tab i { font-size: 1rem; }
.sp-body {
  flex: 1; overflow-y: auto; padding: 20px; color: var(--white);
}
.sp-section { display: none; }
.sp-section.active { display: block; }
.sp-info-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sp-info-row i { color: var(--gold); margin-top: 3px; width: 18px; text-align: center; }
.sp-info-row label { font-size: 0.75rem; color: rgba(255,255,255,0.5); display: block; margin-bottom: 2px; }
.sp-info-row p { font-size: 0.95rem; font-weight: 600; margin: 0; color: var(--white); }
.sp-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 18px 0; }
.sp-section h4 { font-size: 0.95rem; margin-bottom: 12px; color: var(--white); font-family: 'Tajawal', 'Cairo', sans-serif; }
.sp-form { display: flex; flex-direction: column; gap: 10px; }
.sp-form input {
  width: 100%; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
  font-family: 'Tajawal', 'Cairo', sans-serif; font-size: 0.9rem; transition: var(--transition);
  background: rgba(255,255,255,0.1); color: var(--white);
}
.sp-form input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,132,60,0.15); }
.sp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border: none; border-radius: 8px;
  background: var(--orange); color: var(--white); font-family: 'Tajawal', 'Cairo', sans-serif;
  font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: var(--transition);
}
.sp-btn:hover { background: var(--orange-light); transform: translateY(-1px); }
.sp-btn-google { background: #4285f4; color: var(--white); }
.sp-btn-google:hover { background: #357ae8; }
.sp-strength-bar {
  width: 100%; height: 4px; background: rgba(255,255,255,0.15); border-radius: 4px; overflow: hidden;
}
.sp-strength-fill { height: 100%; width: 0; transition: width 0.3s ease, background 0.3s ease; border-radius: 4px; }
.sp-msg-card {
  background: rgba(255,255,255,0.08); border-radius: 10px; padding: 14px;
  margin-bottom: 12px; border: 1px solid rgba(255,255,255,0.1);
}
.sp-msg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sp-msg-subject { font-weight: 700; font-size: 0.9rem; color: var(--white); }
.sp-msg-date { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.sp-msg-body { font-size: 0.88rem; color: rgba(255,255,255,0.8); line-height: 1.5; margin-bottom: 8px; }
.sp-msg-reply {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(232,132,60,0.3); border-radius: 8px;
  padding: 10px 12px; margin-top: 8px;
}
.sp-msg-reply-label { font-size: 0.78rem; color: var(--orange); font-weight: 700; margin-bottom: 4px; }
.sp-msg-reply-label i { margin-left: 4px; }
.sp-msg-reply p { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin: 0; }
.sp-empty { text-align: center; padding: 40px 20px; color: rgba(255,255,255,0.4); }
.sp-empty i { font-size: 2.5rem; color: var(--gold); margin-bottom: 12px; display: block; }
.sp-empty p { font-size: 0.95rem; }
.sp-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 15px; }
.sp-page-btn {
  width: 32px; height: 32px; border: 1px solid #ddd; border-radius: 6px;
  background: var(--white); color: var(--black); cursor: pointer;
  font-family: 'Tajawal', 'Cairo', sans-serif; font-weight: 600; font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.sp-page-btn:hover { border-color: var(--orange); color: var(--orange); }
.sp-page-btn.active { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== LOADING ===== */
.loading { display: flex; justify-content: center; align-items: center; padding: 40px; }
.spinner {
  width: 50px; height: 50px; border: 4px solid var(--light-gray);
  border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite;
}

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }
.empty-state i { font-size: 4rem; margin-bottom: 20px; color: var(--gold); display: block; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--black); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .counter-grid { grid-template-columns: repeat(3, 1fr); }
  .quickview-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu, .nav-right { display: none; }
  .nav-hamburger { display: block; margin-left: auto; }
  .bottom-bar { display: flex; }
  body { padding-bottom: 65px; }

  /* Hero mobile slider */
  .hero-slider { display: block; }
  .hero-slider-mobile { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  .hero { min-height: 500px; }
  .hero h1 { font-size: 2rem; letter-spacing: 1px; }
  .hero-content { padding: 20px; top: 45%; }
  .hero-subtitle { font-size: 0.95rem; min-height: 1.5em; }
  .hero-logo { width: 200px; margin-bottom: 15px; }
  .hero-logo img { width: 200px; }
  .hero-tags { gap: 8px; flex-wrap: wrap; justify-content: center; }
  .hero-tag { padding: 6px 14px; font-size: 0.78rem; }
  .hero-btn { padding: 12px 28px; font-size: 1rem; }
  .scroll-text { display: none; }
  .scroll-mouse { width: 22px; height: 34px; }

  /* Sections */
  .section { padding: 50px 0; }
  .section-header { margin-bottom: 30px; }
  .section-header h2 { font-size: 1.6rem; }
  .section-header p { font-size: 0.9rem; }

  /* Glass boxes on mobile */
  .carousel-card { background: rgba(217,217,217,0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(217,217,217,0.3); }
  .counter-item { background: rgba(217,217,217,0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(217,217,217,0.3); border-radius: 14px; }
  .product-image { background: rgba(217,217,217,0.4); }
  .featured-info { background: rgba(217,217,217,0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .settings-panel { background: rgba(217,217,217,0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

  /* Carousel */
  .product-carousel-section { padding: 50px 0 40px; }
  .carousel-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .carousel-card-img { height: 140px; }

  /* Featured */
  .featured-wrapper { height: auto; flex-direction: column; }
  .featured-bg { position: relative; height: 400px; background-size: cover !important; }
  .featured-overlay { display: none; }
  .featured-info { position: relative; padding: 20px; max-width: none; text-align: center; }
  .featured-name { font-size: 1.5rem; color: var(--black); }
  .featured-price .price { font-size: 1.4rem; }
  .featured-desc { font-size: 0.9rem; max-height: 60px; color: #666; }
  .featured-actions { flex-direction: column; }
  .featured-actions .btn { width: 100%; justify-content: center; }

  /* Gallery & Products */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-image { height: 180px; }
  .product-info { padding: 8px 0 0; }
  .product-info h3 { font-size: 0.95rem; }
  .product-price { font-size: 1.05rem; }

  /* Counter */
  .counter-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .counter-item { padding: 15px 8px; }
  .counter-icon { width: 45px; height: 45px; }
  .counter-icon i { font-size: 1.2rem; }
  .counter-number { font-size: 1.8rem; }
  .counter-label { font-size: 0.75rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .search-bar { flex-direction: column; gap: 10px; }

  /* Footer */
  .footer { padding: 50px 0 25px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-policies-grid { grid-template-columns: 1fr; }

  /* Toast & Buttons */
  .toast { min-width: auto; margin: 0 10px; font-size: 0.85rem; }
  .toast-container { left: 10px; right: 10px; }

  /* Settings Panel */
  .settings-panel { width: 100%; max-width: 100%; }
  .sp-info-row { flex-direction: row; }
}

@media (max-width: 480px) {
  .hero { min-height: 450px; }
  .hero h1 { font-size: 1.6rem; letter-spacing: 0; }
  .hero-subtitle { font-size: 0.85rem; min-height: 1.2em; }
  .hero-logo { width: 150px; margin-bottom: 12px; }
  .hero-logo img { width: 150px; }
  .hero-tags { gap: 6px; }
  .hero-tag { padding: 5px 10px; font-size: 0.7rem; gap: 5px; }
  .hero-tag i { font-size: 0.8rem; }
  .hero-btn { padding: 10px 24px; font-size: 0.9rem; gap: 6px; }
  .hero-content { padding: 15px; top: 42%; }

  .section { padding: 40px 0; }
  .section-header h2 { font-size: 1.4rem; }
  .section-header p { font-size: 0.85rem; }

  .carousel-card-img { height: 120px; }
  .carousel-card-info h4 { font-size: 0.85rem; }
  .carousel-card-info .price { font-size: 0.9rem; }

  .featured-bg { height: 220px; }
  .featured-info { padding: 20px 15px; }
  .featured-badge { font-size: 0.75rem; padding: 5px 14px; }
  .featured-name { font-size: 1.3rem; }
  .featured-price .price { font-size: 1.2rem; }
  .featured-desc { font-size: 0.85rem; max-height: 50px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-image { height: 150px; }
  .product-info { padding: 6px 0 0; }
  .product-info h3 { font-size: 0.85rem; }
  .product-price { font-size: 0.95rem; }

  .counter-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .counter-item { padding: 12px 5px; }
  .counter-number { font-size: 1.4rem; }
  .counter-label { font-size: 0.68rem; }

  .footer-about h3 { font-size: 1.4rem; }
  .footer-links h4 { font-size: 0.95rem; }
  .footer-links a { font-size: 0.85rem; }
  .footer-policy-item { padding: 10px 12px; font-size: 0.82rem; }
}

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  z-index: 99999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 1; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader.hide { opacity: 0; pointer-events: none; visibility: hidden; }
.loader-ring {
  width: 64px; height: 64px; position: relative; margin-bottom: 20px;
}
.loader-ring-inner {
  width: 100%; height: 100%; border-radius: 50%;
  border: 3px solid rgba(197,165,114,0.15);
  border-top-color: var(--gold); border-right-color: var(--gold);
  animation: loaderSpin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}
.loader-ring-dot {
  position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
  background: var(--gold); border-radius: 50%; transform: translate(-50%, -50%);
  animation: loaderPulse 1.2s ease-in-out infinite;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.6; } }
.loader-brand {
  font-family: 'Cairo', 'Tajawal', sans-serif; font-size: 1.8rem; font-weight: 800;
  color: #C5A572; letter-spacing: 6px; text-transform: uppercase;
}
.loader-tagline {
  font-family: 'Tajawal', sans-serif; font-size: 0.75rem; font-weight: 400;
  color: rgba(197,165,114,0.5); letter-spacing: 4px; text-transform: uppercase; margin-top: 6px;
}

/* ===== LTR DIRECTION ===== */
html[dir="ltr"] .nav-sidebar { right: auto; left: -300px; }
html[dir="ltr"] .nav-sidebar.active { left: 0; }
html[dir="ltr"] .footer-col { text-align: left; }
html[dir="ltr"] .product-info h3 { text-align: left; }
html[dir="ltr"] .hero-content { text-align: left; }
html[dir="ltr"] .hero-title span { direction: ltr; }
html[dir="ltr"] .typing-text { direction: ltr; }
html[dir="ltr"] .hero-tag { direction: ltr; }
html[dir="ltr"] .product-card { text-align: left; }
html[dir="ltr"] .contact-info { text-align: left; }
html[dir="ltr"] .section-header { text-align: left; }
html[dir="ltr"] .hero-cats-scroll { direction: ltr; }
html[dir="ltr"] .contact-section .section-header { text-align: left; }
html[dir="ltr"] .footer-about { text-align: left; }
html[dir="ltr"] .footer-links { text-align: left; }
html[dir="ltr"] .search-results-list { direction: ltr; text-align: left; }
html[dir="ltr"] .nav-search-dropdown input { text-align: left; }
html[dir="ltr"] .nav-menu { margin-left: 0; margin-right: auto; }
html[dir="ltr"] .nav-right { margin-right: 0; margin-left: auto; }
html[dir="ltr"] .nav-search-dropdown { left: 0; right: auto; }
html[dir="ltr"] .lang-dropdown { left: auto; right: 0; transform: none; }

/* ===== DARK MODE ===== */
html[data-theme="dark"] {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2128;
  --bg-elevated: #21262d;
  --bg-input: #0d1117;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --border-color: #30363d;
  --border-light: #21262d;
  --shadow-color: rgba(0,0,0,0.4);
  --white: #1c2128;
  --light-gray: #161b22;
  --black: #e6edf3;
  --dark: #c9d1d9;
  --gray: #8b949e;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
}

html[data-theme="dark"] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}
html[data-theme="dark"] .main-nav {
  background: linear-gradient(135deg, #CA4205, #D86F31);
  border-color: rgba(255,255,255,0.18);
}
html[data-theme="dark"] .main-nav.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
html[data-theme="dark"] .nav-menu a {
  color: #fff;
}
html[data-theme="dark"] .nav-menu a:hover {
  color: #fff;
  background: rgba(255,255,255,0.18);
}
html[data-theme="dark"] .nav-btn {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-color: transparent;
}
html[data-theme="dark"] .nav-btn:hover {
  background: rgba(255,255,255,0.32);
  color: #fff;
  border-color: transparent;
}
html[data-theme="dark"] .nav-admin {
  background: var(--dark-gold);
  color: #fff;
  border-color: var(--dark-gold);
}
html[data-theme="dark"] .lang-toggle-btn {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
html[data-theme="dark"] .lang-toggle-btn:hover {
  background: rgba(255,255,255,0.32);
  color: #fff;
}
html[data-theme="dark"] .lang-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 30px var(--shadow-color);
}
html[data-theme="dark"] .lang-option {
  color: var(--text-primary);
}
html[data-theme="dark"] .lang-option:hover,
html[data-theme="dark"] .lang-option.active {
  background: rgba(197,165,114,0.1);
  color: var(--gold);
}

/* Sidebar */
html[data-theme="dark"] .nav-sidebar {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}
html[data-theme="dark"] .sidebar-top {
  border-color: var(--border-color);
}
html[data-theme="dark"] .sidebar-close {
  color: var(--text-secondary);
}
html[data-theme="dark"] .sidebar-search {
  border-color: var(--border-color);
}
html[data-theme="dark"] .sidebar-search input {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-color);
}
html[data-theme="dark"] .sidebar-links a {
  color: var(--text-secondary);
}
html[data-theme="dark"] .sidebar-links a:hover {
  background: rgba(197,165,114,0.1);
  color: var(--gold);
}
html[data-theme="dark"] .sidebar-links a i {
  color: var(--gold);
}
html[data-theme="dark"] .sidebar-bottom {
  border-color: var(--border-color);
}
html[data-theme="dark"] .sidebar-login {
  background: var(--orange);
  color: #fff;
}

/* Search */
html[data-theme="dark"] .nav-search-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 30px var(--shadow-color);
}
html[data-theme="dark"] .nav-search-dropdown input {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-color);
}
html[data-theme="dark"] .sr-item {
  color: var(--text-primary);
}
html[data-theme="dark"] .sr-item:hover {
  background: rgba(197,165,114,0.1);
}
html[data-theme="dark"] .sr-item-name {
  color: var(--text-primary);
}
html[data-theme="dark"] .sr-item-price {
  color: var(--gold);
}
html[data-theme="dark"] .sr-empty {
  color: var(--text-muted);
}

/* Bottom Bar */
html[data-theme="dark"] .bottom-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}
html[data-theme="dark"] .bottom-item {
  color: var(--text-secondary);
}
html[data-theme="dark"] .bottom-item.active,
html[data-theme="dark"] .bottom-item:hover {
  color: var(--gold);
}

/* Language Picker Dark */
html[data-theme="dark"] .lang-picker { background: var(--bg-secondary); }
html[data-theme="dark"] .lang-picker-header { background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); }
html[data-theme="dark"] .lang-picker-header h3 { color: var(--text-primary); }
html[data-theme="dark"] .lang-picker-header button { color: var(--text-secondary); }
html[data-theme="dark"] .lang-picker-item { color: var(--text-primary); }
html[data-theme="dark"] .lang-picker-item:hover { background: var(--bg-elevated); }
html[data-theme="dark"] .lang-picker-item.active { background: rgba(197,165,114,0.15); }

/* Full Search */
html[data-theme="dark"] .full-search {
  background: rgba(13,17,23,0.95);
}
html[data-theme="dark"] .full-search-inner {
  background: var(--bg-card);
  border-color: var(--border-color);
}

/* ===== Hero ===== */
html[data-theme="dark"] .hero-slide {
  background-color: var(--bg-secondary);
}
html[data-theme="dark"] .hero-content h1,
html[data-theme="dark"] .hero-title {
  color: var(--text-primary);
}
html[data-theme="dark"] .hero-content p,
html[data-theme="dark"] .hero-tag {
  color: var(--text-secondary);
}
html[data-theme="dark"] .hero-subcats {
  background: linear-gradient(135deg, #CA4205, #D86F31);
  border-top: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.18);
}
html[data-theme="dark"] .hero-cat-pill {
  background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.45); color: #fff;
}
html[data-theme="dark"] .hero-cat-pill:hover { background: rgba(255,255,255,0.3); border-color: #fff; color: #fff; }
html[data-theme="dark"] .hero-cat-pill.active { background: var(--gold); border-color: var(--gold); color: #141210; }
html[data-theme="dark"] .hero-cat-menu { background: #161616; border-color: #2a2a2a; }
html[data-theme="dark"] .hero-cat-link { color: var(--text-primary); }
html[data-theme="dark"] .hero-cat-link:hover { background: #1f1f1f; color: var(--gold); }
html[data-theme="dark"] .hero-cat-link .cat-noimg { background: #1f1f1f; color: var(--text-muted); }
html[data-theme="dark"] .hero-cat-link-empty { color: var(--text-muted); }

/* ===== Sections ===== */
html[data-theme="dark"] .section-header h2,
html[data-theme="dark"] .section-header p {
  color: var(--text-primary);
}
html[data-theme="dark"] .section-header p {
  color: var(--text-secondary);
}

/* ===== Gallery ===== */
html[data-theme="dark"] .cat-chip {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
html[data-theme="dark"] .cat-chip:hover,
html[data-theme="dark"] .cat-chip.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
html[data-theme="dark"] .chips-arrow {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
html[data-theme="dark"] .filter-bar {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}
html[data-theme="dark"] .filter-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
html[data-theme="dark"] .filter-btn:hover,
html[data-theme="dark"] .filter-btn.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* ===== Product Cards ===== */
html[data-theme="dark"] .gallery-grid .product-card,
html[data-theme="dark"] .product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-color);
}
html[data-theme="dark"] .product-image {
  background: var(--bg-elevated);
}
html[data-theme="dark"] .product-info h3 {
  color: var(--text-primary);
}
html[data-theme="dark"] .product-info .product-desc {
  color: var(--text-secondary);
}
html[data-theme="dark"] .product-price {
  color: var(--gold);
}
html[data-theme="dark"] .product-old-price {
  color: var(--text-muted);
  text-decoration: line-through;
}
html[data-theme="dark"] .product-badge {
  background: var(--orange);
  color: #fff;
}
html[data-theme="dark"] .product-btn {
  background: var(--gold);
  color: #fff;
}
html[data-theme="dark"] .product-btn:hover {
  background: var(--gold-dark);
}
html[data-theme="dark"] .product-quick-view {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* ===== Quick View Modal ===== */
html[data-theme="dark"] .qv-modal-content {
  background: var(--bg-card);
  color: var(--text-primary);
}
html[data-theme="dark"] .qv-close {
  color: var(--text-secondary);
}
html[data-theme="dark"] .qv-title {
  color: var(--text-primary);
}
html[data-theme="dark"] .qv-desc {
  color: var(--text-secondary);
}
html[data-theme="dark"] .qv-price {
  color: var(--gold);
}
html[data-theme="dark"] .qty-btn {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-color);
}
html[data-theme="dark"] .qty-input {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-color);
}

/* ===== Counter / Stats ===== */
html[data-theme="dark"] .counter-section {
  background: var(--bg-secondary);
}
html[data-theme="dark"] .counter-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}
html[data-theme="dark"] .counter-number {
  color: var(--gold);
}
html[data-theme="dark"] .counter-label {
  color: var(--text-secondary);
}

/* ===== Contact ===== */
html[data-theme="dark"] .contact-section {
  background: var(--bg-secondary);
}
html[data-theme="dark"] .contact-info {
  color: var(--text-primary);
}
html[data-theme="dark"] .contact-info h3 {
  color: var(--text-primary);
}
html[data-theme="dark"] .contact-info p {
  color: var(--text-secondary);
}
html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea,
html[data-theme="dark"] .contact-form select {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-color);
}
html[data-theme="dark"] .contact-form input:focus,
html[data-theme="dark"] .contact-form textarea:focus,
html[data-theme="dark"] .contact-form select:focus {
  border-color: var(--gold);
}
html[data-theme="dark"] .contact-form label {
  color: var(--text-secondary);
}

/* ===== Footer ===== */
html[data-theme="dark"] .site-footer {
  background: #0a0e14;
  border-top: 1px solid var(--border-color);
}
html[data-theme="dark"] .footer {
  background: #111; border-top: 1px solid #222; color: var(--text-primary);
}
html[data-theme="dark"] .footer-about p { color: var(--text-secondary); }
html[data-theme="dark"] .footer-links a { color: var(--text-secondary); }
html[data-theme="dark"] .footer-links a:hover { color: var(--gold); }
html[data-theme="dark"] .footer-social a {
  background: #1a1a1a; color: var(--text-secondary); border-color: #2a2a2a;
}
html[data-theme="dark"] .footer-social a:hover { background: var(--gold); color: #111; }
html[data-theme="dark"] .footer-bottom {
  border-color: #222; color: var(--text-muted);
}
html[data-theme="dark"] .footer-policies {
  border-color: #222;
}
html[data-theme="dark"] .footer-policy-item {
  background: #1a1a1a;
  border-color: #2a2a2a;
  color: var(--text-secondary);
}
html[data-theme="dark"] .footer-policy-item:hover {
  background: rgba(232,132,60,0.15); color: var(--orange);
}

/* Subscribe Form Dark */
html[data-theme="dark"] #subscribeEmail {
  background: #1a1a1a !important; border-color: #333 !important; color: var(--text-primary) !important;
}

/* ===== Product Page ===== */
html[data-theme="dark"] .breadcrumb {
  color: var(--text-secondary);
}
html[data-theme="dark"] .breadcrumb a {
  color: var(--text-secondary);
}
html[data-theme="dark"] .breadcrumb a:hover {
  color: var(--gold);
}
html[data-theme="dark"] .gallery-main img {
  background: var(--bg-card);
}
html[data-theme="dark"] .gallery-thumb {
  border-color: var(--border-color);
}
html[data-theme="dark"] .gallery-thumb.active,
html[data-theme="dark"] .gallery-thumb:hover {
  border-color: var(--gold);
}
html[data-theme="dark"] .pdp-title {
  color: var(--text-primary);
}
html[data-theme="dark"] .pdp-desc {
  color: var(--text-secondary);
}
html[data-theme="dark"] .pdp-price {
  color: var(--gold);
}
html[data-theme="dark"] .pdp-specs {
  background: var(--bg-card);
  border-color: var(--border-color);
}
html[data-theme="dark"] .pdp-specs dt {
  color: var(--text-secondary);
}
html[data-theme="dark"] .pdp-specs dd {
  color: var(--text-primary);
}

/* ===== Cart ===== */
html[data-theme="dark"] .cart-item {
  background: var(--bg-card);
  border-color: var(--border-color);
}
html[data-theme="dark"] .cart-item-name {
  color: var(--text-primary);
}
html[data-theme="dark"] .cart-item-price {
  color: var(--gold);
}
html[data-theme="dark"] .cart-summary {
  background: var(--bg-card);
  border-color: var(--border-color);
}
html[data-theme="dark"] .cart-summary h3 {
  color: var(--text-primary);
}
html[data-theme="dark"] .cart-empty {
  color: var(--text-secondary);
}
html[data-theme="dark"] .cart-total {
  color: var(--text-primary);
}

/* ===== Forms (Account, Login, Register, Settings) ===== */
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .account-card {
  background: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: 0 4px 20px var(--shadow-color);
}
html[data-theme="dark"] .auth-card h2,
html[data-theme="dark"] .settings-card h2,
html[data-theme="dark"] .account-card h2 {
  color: var(--text-primary);
}
html[data-theme="dark"] .form-group label {
  color: var(--text-secondary);
}
html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-color);
}
html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group select:focus,
html[data-theme="dark"] .form-group textarea:focus {
  border-color: var(--gold);
}

/* ===== Track Order ===== */
html[data-theme="dark"] .track-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}
html[data-theme="dark"] .track-step {
  color: var(--text-secondary);
}
html[data-theme="dark"] .track-step.active {
  color: var(--gold);
}

/* ===== Custom Design ===== */
html[data-theme="dark"] .cd-hero {
  background-color: var(--bg-secondary);
}
html[data-theme="dark"] .cd-hero-content h1 {
  color: var(--text-primary);
}
html[data-theme="dark"] .cd-hero-content p {
  color: var(--text-secondary);
}
html[data-theme="dark"] .cd-feature-text h3 {
  color: var(--text-primary);
}
html[data-theme="dark"] .cd-feature-text p {
  color: var(--text-secondary);
}
html[data-theme="dark"] .cd-cta-box {
  background: var(--bg-card);
  border-color: var(--border-color);
}
html[data-theme="dark"] .cd-cta-box h3 {
  color: var(--text-primary);
}
html[data-theme="dark"] .cd-cta-box p {
  color: var(--text-secondary);
}

/* ===== Settings Panel ===== */
html[data-theme="dark"] .settings-overlay {
  background: rgba(0,0,0,0.6);
}
html[data-theme="dark"] .settings-panel {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}
html[data-theme="dark"] .settings-panel h2 {
  color: var(--text-primary);
}
html[data-theme="dark"] .settings-close {
  color: var(--text-secondary);
}

/* ===== Toast ===== */
html[data-theme="dark"] .toast {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: 0 4px 20px var(--shadow-color);
}

/* ===== Product Carousel ===== */
html[data-theme="dark"] .pc-section {
  background: var(--bg-secondary);
}
html[data-theme="dark"] .pc-arrow {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
html[data-theme="dark"] .pc-arrow:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* ===== Featured Product ===== */
html[data-theme="dark"] .featured-section {
  background: var(--bg-secondary);
}
html[data-theme="dark"] .featured-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}
html[data-theme="dark"] .featured-title {
  color: var(--text-primary);
}
html[data-theme="dark"] .featured-desc {
  color: var(--text-secondary);
}

/* ===== Category Page ===== */
html[data-theme="dark"] .cat-page-header {
  background: var(--bg-secondary);
}
html[data-theme="dark"] .cat-page-header h1 {
  color: var(--text-primary);
}
html[data-theme="dark"] .cat-page-header p {
  color: var(--text-secondary);
}

/* ===== Tabs ===== */
html[data-theme="dark"] .tabs-nav {
  border-color: var(--border-color);
}
html[data-theme="dark"] .tab-btn {
  color: var(--text-secondary);
  border-color: transparent;
}
html[data-theme="dark"] .tab-btn.active,
html[data-theme="dark"] .tab-btn:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
html[data-theme="dark"] .tab-content {
  color: var(--text-primary);
}

/* ===== Offers Page ===== */
html[data-theme="dark"] .offers-hero {
  background: var(--bg-secondary);
}
html[data-theme="dark"] .offers-hero h1 {
  color: var(--text-primary);
}

/* ===== Tables ===== */
html[data-theme="dark"] table {
  border-color: var(--border-color);
}
html[data-theme="dark"] th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-color);
}
html[data-theme="dark"] td {
  border-color: var(--border-color);
  color: var(--text-primary);
}
html[data-theme="dark"] tr:hover {
  background: rgba(197,165,114,0.05);
}

/* ===== Buttons ===== */
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-gold,
html[data-theme="dark"] .btn {
  background: var(--gold);
  color: #fff;
}
html[data-theme="dark"] .btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
html[data-theme="dark"] .btn-outline:hover {
  background: var(--gold);
  color: #fff;
}
html[data-theme="dark"] .btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-color);
}

/* ===== Page Loader ===== */
html[data-theme="dark"] .page-loader {
  background: linear-gradient(135deg, #0a0e14 0%, #0d1117 50%, #161b22 100%);
}

/* ===== Scrollbar ===== */
html[data-theme="dark"] ::-webkit-scrollbar { width: 8px; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--bg-primary); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Login / Register Pages */
html[data-theme="dark"] body.login-page,
html[data-theme="dark"] body.register-page {
  background: linear-gradient(135deg, #0a0e14 0%, #0d1117 100%);
}
html[data-theme="dark"] .login-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}
html[data-theme="dark"] .login-header {
  background: var(--bg-primary);
}
html[data-theme="dark"] .form-group label {
  color: var(--text-primary);
}
html[data-theme="dark"] .form-group input {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-color);
}
html[data-theme="dark"] .form-group input:focus {
  border-color: var(--gold);
}
html[data-theme="dark"] .form-group .input-wrapper i {
  color: var(--text-muted);
}
html[data-theme="dark"] .login-btn {
  color: #fff;
}
html[data-theme="dark"] .error-message {
  background: rgba(220,53,69,0.15);
  color: #ff6b6b;
}
html[data-theme="dark"] .back-link a {
  color: var(--text-secondary);
}
html[data-theme="dark"] .links a {
  color: var(--gold);
}
html[data-theme="dark"] .password-strength {
  background: var(--bg-elevated);
}

/* ===== DARK MODE: Section backgrounds ===== */
html[data-theme="dark"] .product-carousel-section { background: var(--bg-secondary) !important; }
html[data-theme="dark"] .section.offers-section,
html[data-theme="dark"] .offers-section { background: var(--bg-primary) !important; }
html[data-theme="dark"] .contact { background: var(--bg-secondary) !important; }
html[data-theme="dark"] .contact-form-wrapper { background: var(--bg-card) !important; border-color: var(--border-color) !important; }
html[data-theme="dark"] .contact-form-wrapper h3 { color: var(--text-primary) !important; }
html[data-theme="dark"] .contact-item { color: var(--text-primary) !important; }
html[data-theme="dark"] .contact-item i { color: var(--gold) !important; }
html[data-theme="dark"] .contact-item h4 { color: var(--text-primary) !important; }
html[data-theme="dark"] .contact-item p { color: var(--text-secondary) !important; }
html[data-theme="dark"] .contact-grid { background: var(--bg-card) !important; border-color: var(--border-color) !important; border-radius: 16px; }
html[data-theme="dark"] .contact-form input, html[data-theme="dark"] .contact-form textarea { background: var(--bg-input) !important; color: var(--text-primary) !important; border-color: var(--border-color) !important; }
html[data-theme="dark"] .section { color: var(--text-primary) !important; }

/* Carousel Cards Dark */
html[data-theme="dark"] .carousel-card { background: var(--bg-card) !important; color: var(--text-primary) !important; border: 1px solid var(--border-color) !important; }
html[data-theme="dark"] .carousel-card-img { background: var(--bg-elevated) !important; }
html[data-theme="dark"] .carousel-card-img i { color: var(--text-muted) !important; }
html[data-theme="dark"] .carousel-card-info h4 { color: var(--text-primary) !important; }

/* Section Headers Dark */
html[data-theme="dark"] .section-header h2 { color: var(--text-primary) !important; }
html[data-theme="dark"] .section-header p { color: var(--text-secondary) !important; }
html[data-theme="dark"] .section-header .section-line { background: var(--gold) !important; }

/* Gallery grid dark */
html[data-theme="dark"] .gallery-grid .product-card { background: var(--bg-card) !important; border-color: var(--border-color) !important; }
html[data-theme="dark"] .gallery-grid .product-info h3 { color: var(--text-primary) !important; }
html[data-theme="dark"] .gallery-grid .product-desc { color: var(--text-secondary) !important; }

/* ===== DARK MODE: Hardcoded class overrides ===== */
html[data-theme="dark"] .cat-hero { background: var(--bg-secondary); }
html[data-theme="dark"] .cat-hero p { color: var(--text-secondary); }
html[data-theme="dark"] .cat-hero .breadcrumb,
html[data-theme="dark"] .breadcrumb { color: var(--text-muted); }
html[data-theme="dark"] .breadcrumb a { color: var(--text-muted); }
html[data-theme="dark"] .breadcrumb a:hover { color: var(--gold); }
html[data-theme="dark"] .subcats-title h2 { color: var(--text-primary); }
html[data-theme="dark"] .subcats-title p { color: var(--text-secondary); }
html[data-theme="dark"] .subcat-card { background: var(--bg-card); border-color: var(--border-color); }
html[data-theme="dark"] .subcat-card:hover { border-color: var(--gold); }
html[data-theme="dark"] .subcat-card-img { background: var(--bg-elevated); }
html[data-theme="dark"] .subcat-card-body h3 { color: var(--text-primary); }
html[data-theme="dark"] .subcat-card-body span { color: var(--text-muted); }
html[data-theme="dark"] .cat-empty { color: var(--text-muted); }
html[data-theme="dark"] .pd-nav { color: var(--text-secondary); }
html[data-theme="dark"] .pd-nav a { color: var(--text-secondary); }
html[data-theme="dark"] .pd-img-main { background: var(--bg-elevated); }
html[data-theme="dark"] .pd-title { color: var(--text-primary); }
html[data-theme="dark"] .pd-desc { color: var(--text-secondary); }
html[data-theme="dark"] .pd-section-title { color: var(--text-primary); border-color: var(--border-color); }
html[data-theme="dark"] .pd-qty { background: var(--bg-card); border-color: var(--border-color); }
html[data-theme="dark"] .pd-qty button { background: var(--bg-elevated); color: var(--text-primary); border-color: var(--border-color); }
html[data-theme="dark"] .pd-qty input { background: var(--bg-input); color: var(--text-primary); border-color: var(--border-color); }
html[data-theme="dark"] .pd-specs { background: var(--bg-card); border-color: var(--border-color); }
html[data-theme="dark"] .pd-pcard { background: var(--bg-card); border-color: var(--border-color); }
html[data-theme="dark"] .pd-pcard .pp { color: var(--text-primary); }
html[data-theme="dark"] .pd-pcard .img-w { background: var(--bg-elevated); }
html[data-theme="dark"] .pd-qk { background: var(--bg-card); border-color: var(--border-color); }
html[data-theme="dark"] .pd-qk a { color: var(--text-primary); background: var(--bg-elevated); border-color: var(--border-color); }
html[data-theme="dark"] .pd-qk a:hover { background: var(--gold); color: #fff; }

/* Cart */
html[data-theme="dark"] .cart-item { background: var(--bg-card); border-color: var(--border-color); }
html[data-theme="dark"] .cart-item-img { background: var(--bg-elevated); }
html[data-theme="dark"] .cart-item-name { color: var(--text-primary); }
html[data-theme="dark"] .cart-item-subtotal { color: var(--text-secondary); }
html[data-theme="dark"] .cart-item-qty { background: var(--bg-input); border-color: var(--border-color); }
html[data-theme="dark"] .cart-item-qty button { background: var(--bg-elevated); color: var(--text-primary); border-color: var(--border-color); }
html[data-theme="dark"] .cart-summary { background: var(--bg-card); border-color: var(--border-color); }
html[data-theme="dark"] .cart-summary h3 { color: var(--text-primary); border-color: var(--border-color); }
html[data-theme="dark"] .summary-row { color: var(--text-secondary); }
html[data-theme="dark"] .summary-row.total { border-color: var(--border-color); color: var(--text-primary); }
html[data-theme="dark"] .cart-empty { color: var(--text-muted); }
html[data-theme="dark"] .cart-actions a { color: var(--text-secondary); border-color: var(--border-color); }
html[data-theme="dark"] .cart-actions a:hover { color: var(--gold); border-color: var(--gold); }
html[data-theme="dark"] .map-picker-label { color: var(--text-muted); }
html[data-theme="dark"] .map-detect-btn { background: var(--bg-card); color: var(--text-primary); border-color: var(--border-color); }
html[data-theme="dark"] .form-group input, html[data-theme="dark"] .form-group textarea { background: var(--bg-input); color: var(--text-primary); border-color: var(--border-color); }
html[data-theme="dark"] .form-group input:focus, html[data-theme="dark"] .form-group textarea:focus { border-color: var(--gold); }
html[data-theme="dark"] .form-group label { color: var(--text-secondary); }

/* Account */
html[data-theme="dark"] .profile-card { background: var(--bg-card); border-color: var(--border-color); }
html[data-theme="dark"] .profile-cover { background: linear-gradient(135deg, var(--dark), #1a1a2e); }
html[data-theme="dark"] .profile-name { color: var(--text-primary); }
html[data-theme="dark"] .profile-role-badge.admin { color: #fff; }
html[data-theme="dark"] .profile-info-item span { color: var(--text-primary); }
html[data-theme="dark"] .profile-info-item i { color: var(--gold); }
html[data-theme="dark"] .profile-actions .btn-gold { color: #fff; }

/* Settings */
html[data-theme="dark"] .settings-card { background: var(--bg-card); border-color: var(--border-color); }
html[data-theme="dark"] .settings-header p { color: var(--text-secondary); }
html[data-theme="dark"] .settings-card h2 { color: var(--text-primary); }
html[data-theme="dark"] .btn-save { color: #fff; }
html[data-theme="dark"] .btn-back { color: var(--text-secondary); border-color: var(--border-color); }
html[data-theme="dark"] .btn-back:hover { color: var(--gold); }
html[data-theme="dark"] .user-info-item span { color: var(--text-primary); }
html[data-theme="dark"] .user-info-item i { color: var(--gold); }

/* Track Order */
html[data-theme="dark"] .track-box { background: var(--bg-card); border-color: var(--border-color); }
html[data-theme="dark"] .track-box h1 { color: var(--text-primary); }
html[data-theme="dark"] .track-box .subtitle { color: var(--text-secondary); }
html[data-theme="dark"] .track-empty { color: var(--text-muted); }
html[data-theme="dark"] .track-order-id { color: var(--text-primary); }
html[data-theme="dark"] .track-order-date { color: var(--text-muted); }
html[data-theme="dark"] .track-order { border-color: var(--border-color); }
html[data-theme="dark"] .track-order-items { color: var(--text-secondary); }
html[data-theme="dark"] .track-step-label { color: var(--text-muted); }
html[data-theme="dark"] .track-step.done .track-step-label { color: var(--text-primary); }

/* Custom Design */
html[data-theme="dark"] .cd-feature-num { color: var(--gold); }
html[data-theme="dark"] .cd-btn-whatsapp, html[data-theme="dark"] .cd-btn-website { border-color: var(--border-color); }
html[data-theme="dark"] .cd-whatsapp-number { color: var(--text-secondary); }

/* Offers */
html[data-theme="dark"] .offer-badge { background: var(--orange); color: #fff; }
html[data-theme="dark"] .offer-card { background: var(--bg-card); border-color: var(--border-color); }

/* Newsletter */
html[data-theme="dark"] .newsletter-section { background: var(--bg-secondary); }
html[data-theme="dark"] .newsletter-section h2 { color: var(--text-primary); }
html[data-theme="dark"] .newsletter-section p { color: var(--text-secondary); }
html[data-theme="dark"] .newsletter-form input { background: var(--bg-input); color: var(--text-primary); border-color: var(--border-color); }

/* Login / Google button */
html[data-theme="dark"] .google-btn { background: var(--bg-card); color: var(--text-primary); border-color: var(--border-color); }
html[data-theme="dark"] .google-btn:hover { background: var(--bg-elevated); }
html[data-theme="dark"] .or-sep { color: var(--text-muted); }
html[data-theme="dark"] .or-sep::before, html[data-theme="dark"] .or-sep::after { background: var(--border-color); }

/* ===== DARK MODE: Inline style attribute overrides ===== */
html[data-theme="dark"] [style*="color: #333"] { color: var(--text-primary) !important; }
html[data-theme="dark"] [style*="color:#333"] { color: var(--text-primary) !important; }
html[data-theme="dark"] [style*="color: #444"] { color: var(--text-primary) !important; }
html[data-theme="dark"] [style*="color:#444"] { color: var(--text-primary) !important; }
html[data-theme="dark"] [style*="color: #555"] { color: var(--text-secondary) !important; }
html[data-theme="dark"] [style*="color:#555"] { color: var(--text-secondary) !important; }
html[data-theme="dark"] [style*="color: #666"] { color: var(--text-secondary) !important; }
html[data-theme="dark"] [style*="color:#666"] { color: var(--text-secondary) !important; }
html[data-theme="dark"] [style*="color: #888"] { color: var(--text-secondary) !important; }
html[data-theme="dark"] [style*="color:#888"] { color: var(--text-secondary) !important; }
html[data-theme="dark"] [style*="color: #999"] { color: var(--text-muted) !important; }
html[data-theme="dark"] [style*="color:#999"] { color: var(--text-muted) !important; }
html[data-theme="dark"] [style*="color: #aaa"] { color: var(--text-muted) !important; }
html[data-theme="dark"] [style*="color:#aaa"] { color: var(--text-muted) !important; }
html[data-theme="dark"] [style*="color: #ccc"] { color: var(--text-secondary) !important; }
html[data-theme="dark"] [style*="color:#ccc"] { color: var(--text-secondary) !important; }
html[data-theme="dark"] [style*="color: var(--black)"] { color: var(--text-primary) !important; }
html[data-theme="dark"] [style*="color:var(--black)"] { color: var(--text-primary) !important; }
html[data-theme="dark"] [style*="color: var(--gray)"] { color: var(--text-secondary) !important; }
html[data-theme="dark"] [style*="color:var(--gray)"] { color: var(--text-secondary) !important; }

/* Inline backgrounds */
html[data-theme="dark"] [style*="background: #fff"] { background: var(--bg-card) !important; }
html[data-theme="dark"] [style*="background:#fff"] { background: var(--bg-card) !important; }
html[data-theme="dark"] [style*="background-color: #fff"] { background-color: var(--bg-card) !important; }
html[data-theme="dark"] [style*="background-color:#fff"] { background-color: var(--bg-card) !important; }
html[data-theme="dark"] [style*="background: var(--white)"] { background: var(--bg-card) !important; }
html[data-theme="dark"] [style*="background:var(--white)"] { background: var(--bg-card) !important; }
html[data-theme="dark"] [style*="background: #f9f9f9"] { background: var(--bg-primary) !important; }
html[data-theme="dark"] [style*="background:#f9f9f9"] { background: var(--bg-primary) !important; }
html[data-theme="dark"] [style*="background: #f5f5f5"] { background: var(--bg-elevated) !important; }
html[data-theme="dark"] [style*="background:#f5f5f5"] { background: var(--bg-elevated) !important; }
html[data-theme="dark"] [style*="background: #fafafa"] { background: var(--bg-card) !important; }
html[data-theme="dark"] [style*="background:#fafafa"] { background: var(--bg-card) !important; }

/* Inline borders */
html[data-theme="dark"] [style*="border: 1px solid #eee"] { border-color: var(--border-color) !important; }
html[data-theme="dark"] [style*="border:1px solid #eee"] { border-color: var(--border-color) !important; }
html[data-theme="dark"] [style*="border: 2px solid #eee"] { border-color: var(--border-color) !important; }
html[data-theme="dark"] [style*="border:2px solid #eee"] { border-color: var(--border-color) !important; }
html[data-theme="dark"] [style*="border: 1px solid #ddd"] { border-color: var(--border-color) !important; }
html[data-theme="dark"] [style*="border:1px solid #ddd"] { border-color: var(--border-color) !important; }
html[data-theme="dark"] [style*="border: 2px solid #e5e5e5"] { border-color: var(--border-color) !important; }
html[data-theme="dark"] [style*="border:2px solid #e5e5e5"] { border-color: var(--border-color) !important; }

/* Mobile glassmorphism dark */
@media (max-width: 768px) {
  html[data-theme="dark"] .carousel-card { background: var(--bg-card) !important; backdrop-filter: none !important; border: 1px solid var(--border-color) !important; }
  html[data-theme="dark"] .counter-item { background: var(--bg-card) !important; backdrop-filter: none !important; border: 1px solid var(--border-color) !important; }
  html[data-theme="dark"] .product-image { background: var(--bg-elevated) !important; }
  html[data-theme="dark"] .featured-info { background: var(--bg-card) !important; backdrop-filter: none !important; }
  html[data-theme="dark"] .settings-panel { background: var(--bg-secondary) !important; backdrop-filter: none !important; }
}

/* ===== LANGUAGE LOADING OVERLAY ===== */
.lang-loading-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lang-loading-overlay.active { opacity: 1; visibility: visible; }
.lang-loading-overlay.hiding { opacity: 0; visibility: hidden; }

.lang-loading-card {
  background: #D9D9D9; border-radius: 24px; padding: 50px 60px;
  text-align: center; position: relative; min-width: 320px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.3);
  transform: scale(0.9); transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.lang-loading-overlay.active .lang-loading-card { transform: scale(1); }

.lang-loading-spinner {
  width: 80px; height: 80px; margin: 0 auto 20px; position: relative;
}
.lang-loading-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 4px solid rgba(197,165,114,0.15);
  border-top-color: var(--gold); animation: langSpin 1s linear infinite;
}
.lang-loading-ring-inner {
  position: absolute; inset: 10px; border-radius: 50%;
  border: 3px solid rgba(197,165,114,0.1);
  border-bottom-color: var(--orange); animation: langSpin 1.5s linear infinite reverse;
}
.lang-loading-dot {
  position: absolute; top: 50%; left: 50%; width: 12px; height: 12px;
  background: var(--gold); border-radius: 50%; transform: translate(-50%,-50%);
  animation: langPulse 1.5s ease-in-out infinite;
}
@keyframes langSpin { to { transform: rotate(360deg); } }
@keyframes langPulse { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 1; } 50% { transform: translate(-50%,-50%) scale(1.4); opacity: 0.6; } }

.lang-loading-flag {
  font-size: 3rem; margin-bottom: 12px;
  animation: langFlagPop 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.3s both;
}
@keyframes langFlagPop { from { transform: scale(0) rotate(-20deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }

.lang-loading-title {
  font-size: 1.25rem; font-weight: 700; color: #333; margin: 0 0 6px;
}
.lang-loading-subtitle {
  font-size: 0.9rem; color: #888; margin: 0 0 24px;
}

.lang-loading-progress-wrap { display: flex; align-items: center; gap: 12px; }
.lang-loading-progress-bar {
  flex: 1; height: 6px; background: #eee; border-radius: 3px; overflow: hidden;
}
.lang-loading-progress-fill {
  height: 100%; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transition: width 0.4s ease;
}
.lang-loading-progress-text {
  font-size: 0.85rem; font-weight: 700; color: var(--gold); min-width: 40px; text-align: left;
}

/* Dark mode */
html[data-theme="dark"] .lang-loading-card {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
}
html[data-theme="dark"] .lang-loading-title { color: var(--text-primary); }
html[data-theme="dark"] .lang-loading-subtitle { color: var(--text-muted); }
html[data-theme="dark"] .lang-loading-progress-bar { background: var(--bg-elevated); }

/* End of file */
