@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Montserrat:wght@300;400;500;600;700&family=Cairo:wght@300;400;600;700;900&display=swap');

/* --- DESIGN TOKENS --- */
:root {
  --bg-primary: #050505;
  --bg-secondary: #0d0d0d;
  --bg-tertiary: #141414;
  --bg-card: #121212;
  --bg-header-scrolled: rgba(5, 5, 5, 0.95);
  --bg-footer: #030303;
  
  --gold-light: #f3e5ab;
  --gold-primary: #d4af37;
  --gold-dark: #aa8412;
  --gold-gradient: linear-gradient(135deg, #f9f5e8 0%, #d4af37 50%, #aa8412 100%);
  --gold-glow-gradient: linear-gradient(135deg, rgba(243, 229, 171, 0.4) 0%, rgba(212, 175, 55, 0.4) 50%, rgba(170, 132, 18, 0.4) 100%);
  
  --text-primary: #ffffff;
  --text-secondary: #b5b3ad;
  --text-muted: #6e6d68;
  
  --border-gold: rgba(212, 175, 55, 0.15);
  --border-gold-focus: rgba(212, 175, 55, 0.5);
  
  --glass-bg: rgba(13, 13, 13, 0.75);
  --glass-border: rgba(212, 175, 55, 0.15);
  --glass-blur: blur(12px) saturate(180%);
  
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.1);
  --shadow-gold-hover: 0 8px 30px rgba(212, 175, 55, 0.25);
  
  --font-heading-en: 'Cinzel', serif;
  --font-body-en: 'Montserrat', sans-serif;
  --font-heading-ar: 'Cairo', sans-serif;
  --font-body-ar: 'Cairo', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.light-mode {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f3f5;
  --bg-card: #ffffff;
  --bg-header-scrolled: rgba(255, 255, 255, 0.98);
  --bg-footer: #e9ecef;
  
  --gold-light: #aa8412;        /* Darker gold for text readability on white */
  --gold-primary: #94720d;      /* Primary gold */
  --gold-dark: #6b520a;         /* Darker gold accent */
  --gold-gradient: linear-gradient(135deg, #aa8412 0%, #94720d 50%, #6b520a 100%);
  --gold-glow-gradient: linear-gradient(135deg, rgba(170, 132, 18, 0.2) 0%, rgba(148, 114, 13, 0.2) 50%, rgba(107, 82, 10, 0.2) 100%);

  --text-primary: #1a1a1a;
  --text-secondary: #495057;
  --text-muted: #868e96;
  
  --border-gold: rgba(148, 114, 13, 0.25);
  --border-gold-focus: rgba(148, 114, 13, 0.6);
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(148, 114, 13, 0.2);
  
  --shadow-gold: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-gold-hover: 0 8px 30px rgba(148, 114, 13, 0.15);
}

/* --- BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) var(--bg-primary);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body-en);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease;
}

/* RTL Override for Body Font */
body[dir="rtl"] {
  font-family: var(--font-body-ar);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* --- TYPOGRAPHY & UTILITIES --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading-en);
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4,
body[dir="rtl"] h5,
body[dir="rtl"] h6 {
  font-family: var(--font-heading-ar);
  letter-spacing: 0;
}

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

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-btn {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--text-primary);
  padding: 0.8rem 2rem;
  font-size: 0.85rem;
  font-family: var(--font-body-en);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  z-index: 1;
}

body[dir="rtl"] .gold-btn {
  font-family: var(--font-body-ar);
  letter-spacing: 0;
}

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

.gold-btn:hover {
  color: #000;
  box-shadow: var(--shadow-gold-hover);
  border-color: transparent;
}

.gold-btn:hover::before {
  width: 100%;
}

.gold-btn-solid {
  background: var(--gold-gradient);
  border: 1px solid transparent;
  color: #000;
  padding: 0.8rem 2rem;
  font-size: 0.85rem;
  font-family: var(--font-body-en);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

body[dir="rtl"] .gold-btn-solid {
  font-family: var(--font-body-ar);
  letter-spacing: 0;
}

.gold-btn-solid:hover {
  background: transparent;
  border-color: var(--gold-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-gold-hover);
}

/* --- LAYOUT HEADER / NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.5rem 0;
  background: var(--bg-header-scrolled);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 55px;
  object-fit: contain;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
}

header.scrolled .logo-img {
  height: 45px;
}

header .logo-img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  background-color: var(--bg-secondary);
}

header.scrolled .logo-img {
  width: 45px;
  height: 45px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links li.active a {
  color: var(--gold-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-gradient);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links li.active a::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  color: var(--gold-primary);
  transform: scale(1.1);
}

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

.lang-switch-btn {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.lang-switch-btn:hover {
  background: var(--gold-gradient);
  color: #000;
  border-color: transparent;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
}

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

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(5,5,5,0.95) 90%);
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  padding: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 1rem;
  font-weight: 600;
}

body[dir="rtl"] .hero-subtitle {
  letter-spacing: 0;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  background: linear-gradient(to right, #ffffff, #d4af37, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

body[dir="rtl"] .hero-title {
  font-size: 3.5rem;
  line-height: 1.4;
}

.hero-desc {
  font-size: 1.1rem;
  color: #b5b3ad;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* --- MAIN VIEWS CONTAINER --- */
main {
  margin-top: 0;
}

.page-section {
  padding: 8rem 2rem 5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

body[dir="rtl"] .section-subtitle {
  letter-spacing: 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

body[dir="rtl"] .section-title {
  font-size: 2.2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gold-gradient);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
}

/* --- HOME SECTION SPECIFIC --- */

/* Categories Banner Grid */
.categories-banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 6rem;
}

.category-banner-card {
  position: relative;
  height: 380px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-smooth);
}

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

.category-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.category-banner-card:hover .category-banner-img {
  transform: scale(1.1);
}

.category-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.2) 60%, rgba(5,5,5,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.category-banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.category-banner-count {
  font-size: 0.8rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Best Sellers / Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Floating Cart Button */
.floating-cart-btn {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gold-gradient);
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body-ar);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.floating-cart-btn.visible {
  transform: translateX(-50%) translateY(0);
}

.floating-cart-btn:hover {
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.7);
  transform: translateX(-50%) translateY(-3px);
}

.floating-cart-badge {
  background: #000;
  color: var(--gold-primary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
}

/* Mobile Filter Toggle Button */
.filter-toggle-mobile {
  display: none;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body-ar);
  cursor: pointer;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  transition: var(--transition-smooth);
}

.filter-toggle-mobile:hover {
  background: rgba(212, 175, 55, 0.1);
}

.filter-toggle-mobile i {
  transition: transform 0.3s ease;
}

.filter-toggle-mobile.open i.fa-chevron-down {
  transform: rotate(180deg);
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

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

.product-card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Square ratio */
  overflow: hidden;
  background-color: var(--bg-card);
}

.product-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

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

.product-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold-gradient);
  color: #000;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}

body[dir="rtl"] .product-card-badge {
  left: auto;
  right: 1rem;
}

.wishlist-toggle-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--border-gold);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 2;
  transition: var(--transition-smooth);
}

body[dir="rtl"] .wishlist-toggle-btn {
  right: auto;
  left: 1rem;
}

.wishlist-toggle-btn:hover {
  color: #ff3b30;
  border-color: #ff3b30;
  background: rgba(255, 59, 48, 0.1);
}

.wishlist-toggle-btn.active {
  color: #ff3b30;
  border-color: #ff3b30;
  background: rgba(255, 59, 48, 0.15);
}

.product-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.4) 100%);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  z-index: 3;
}

.product-card:hover .product-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.product-overlay-btn {
  flex: 1;
  background: rgba(13, 13, 13, 0.9);
  border: 1px solid var(--border-gold);
  color: #ffffff;
  padding: 0.6rem;
  font-size: 0.75rem;
  font-family: var(--font-body-en);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

body[dir="rtl"] .product-overlay-btn {
  font-family: var(--font-body-ar);
  letter-spacing: 0;
}

.product-overlay-btn:hover {
  background: var(--gold-gradient);
  color: #000;
  border-color: transparent;
}

.product-card-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  border-top: 1px solid var(--border-gold);
}

.product-card-brand {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
  font-weight: 600;
}

.product-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--gold-primary);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.product-card-rating span {
  color: var(--text-secondary);
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
}

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

.product-card-btn {
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid transparent;
}

.product-card-btn:hover {
  background: var(--gold-gradient);
  color: #000;
  transform: scale(1.1);
}

/* --- SHOP SECTION WITH FILTERS --- */
.shop-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.shop-sidebar {
  width: 300px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  padding: 2rem;
  position: sticky;
  top: 100px;
  z-index: 10;
}

.filter-group {
  margin-bottom: 2.5rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-list, .brand-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-checkbox-label:hover {
  color: var(--text-primary);
}

.filter-checkbox-label input {
  accent-color: var(--gold-primary);
  width: 16px;
  height: 16px;
}

/* Price Range Slider */
.price-slider-wrapper {
  padding: 0.5rem 0;
}

.price-range-slider {
  width: 100%;
  accent-color: var(--gold-primary);
  cursor: pointer;
  background: var(--bg-tertiary);
  height: 4px;
  border-radius: 2px;
}

.price-range-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  color: var(--text-secondary);
}

/* Shop Catalog Content */
.shop-catalog {
  flex-grow: 1;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.search-input-wrapper {
  position: relative;
  max-width: 350px;
  width: 100%;
}

.search-input-wrapper input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-gold);
  padding: 0.6rem 1rem;
  padding-inline-end: 2.5rem;
  color: var(--text-primary);
  font-family: var(--font-body-en);
  font-size: 0.85rem;
}

body[dir="rtl"] .search-input-wrapper input {
  font-family: var(--font-body-ar);
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
}

body[dir="rtl"] .search-icon {
  right: auto;
  left: 1rem;
}

.sort-select-wrapper select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-gold);
  color: var(--text-secondary);
  padding: 0.6rem 1rem;
  font-family: var(--font-body-en);
  font-size: 0.85rem;
  cursor: pointer;
}

body[dir="rtl"] .sort-select-wrapper select {
  font-family: var(--font-body-ar);
}

.sort-select-wrapper select:focus {
  outline: none;
  border-color: var(--gold-primary);
}

/* --- ABOUT SECTION --- */
.about-container {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.about-text {
  flex: 1;
}

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

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-gold);
  padding-top: 2rem;
}

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

.stat-num {
  font-size: 2.5rem;
  font-family: var(--font-heading-en);
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.about-image-wrapper {
  flex: 1;
  position: relative;
}

.about-image-border {
  border: 1px solid var(--gold-primary);
  padding: 1.5rem;
  position: relative;
}

.about-image-border::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  pointer-events: none;
}

.about-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: grayscale(20%);
  box-shadow: var(--shadow-gold-hover);
}

/* --- CONTACT SECTION --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold);
}

.contact-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: var(--gold-light);
}

.contact-details p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-socials {
  margin-top: auto;
}

.social-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background: var(--gold-gradient);
  color: #000;
  border-color: transparent;
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  padding: 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-light);
}

.form-group input,
.form-group textarea {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-gold);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body-en);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

body[dir="rtl"] .form-group input,
body[dir="rtl"] .form-group textarea {
  font-family: var(--font-body-ar);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.map-container {
  grid-column: span 2;
  margin-top: 2rem;
  border: 1px solid var(--border-gold);
  height: 250px;
  overflow: hidden;
}

/* --- SHOPPING CART DRAWER --- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-gold);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.8);
}

body[dir="rtl"] .cart-drawer {
  right: auto;
  left: -450px;
  border-left: none;
  border-right: 1px solid var(--border-gold);
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.open .cart-drawer {
  right: 0;
}

body[dir="rtl"] .cart-drawer-overlay.open .cart-drawer {
  left: 0;
}

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

.cart-close-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cart-close-btn:hover {
  color: var(--gold-primary);
}

.cart-body-scroll {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.cart-items-wrapper {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-empty-message {
  text-align: center;
  color: var(--text-muted);
  margin-top: 5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  padding-bottom: 1.5rem;
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background-color: var(--bg-card);
  padding: 0;
  border: 1px solid var(--border-gold);
  flex-shrink: 0;
}

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

.cart-item-brand {
  font-size: 0.7rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-gold);
  background: var(--bg-tertiary);
}

.qty-btn {
  background: transparent;
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

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

.qty-val {
  padding: 0 0.5rem;
  font-size: 0.85rem;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.cart-item-remove:hover {
  color: #ff3b30;
}

.cart-checkout-form {
  padding: 1.5rem;
  border-top: 1px solid var(--border-gold);
  background: rgba(255, 255, 255, 0.02);
}

.cart-checkout-form h4 {
  font-size: 1rem;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  color: var(--gold-light);
}

.cart-checkout-form .form-group {
  margin-bottom: 1rem;
}

.cart-checkout-form .form-group:last-child {
  margin-bottom: 0.5rem;
}

.cart-checkout-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.cart-checkout-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.cart-checkout-form input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.05);
}

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

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cart-total-row.grand-total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding-top: 0.8rem;
}

.cart-footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* --- QUICK VIEW DETAILS MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 2rem;
}

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

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(212, 175, 55, 0.15);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--border-gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

body[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 1.5rem;
}

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

.modal-img-wrapper {
  position: relative;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  max-height: 500px;
}

.modal-info-panel {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-brand {
  font-size: 0.8rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.modal-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
}

.modal-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.modal-specs {
  list-style: none;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.modal-specs li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-specs li::before {
  content: '✦';
  color: var(--gold-primary);
  font-size: 0.7rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
}

.modal-actions button {
  flex: 1;
}

/* --- FOOTER SECTION --- */
footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-gold);
  padding: 5rem 2rem 2rem;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-col h3 {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--gold-light);
}

.footer-col p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-inline-start: 5px;
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  border: 1px solid var(--border-gold);
}

.newsletter-form input {
  flex-grow: 1;
  background: var(--bg-tertiary);
  border: none;
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body-en);
  font-size: 0.85rem;
}

body[dir="rtl"] .newsletter-form input {
  font-family: var(--font-body-ar);
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-btn {
  background: var(--gold-gradient);
  border: none;
  color: #000;
  padding: 0 1.5rem;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.newsletter-btn:hover {
  background: #fff;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.payment-methods {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

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

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* --- RESPONSIVE DESIGNS --- */
@media (max-width: 1024px) {
  .categories-banner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-container {
    flex-direction: column;
    gap: 3rem;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .modal-box {
    grid-template-columns: 1fr;
  }
  .modal-img {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  body[dir="rtl"] .hero-title {
    font-size: 2.2rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .shop-layout {
    flex-direction: column;
  }
  .shop-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    margin-bottom: 0;
    overflow: hidden;
    max-height: 0;
    padding: 0;
    border: none;
    transition: max-height 0.4s ease, padding 0.3s ease;
  }
  .shop-sidebar.open {
    max-height: 2000px;
    padding: 1.5rem;
    border: 1px solid var(--border-gold);
    margin-bottom: 1rem;
  }
  .filter-toggle-mobile {
    display: flex;
  }
  /* 2 products per row on mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .product-card-title {
    font-size: 0.85rem;
  }
  .product-card-price {
    font-size: 0.95rem;
  }
  .product-card-info {
    padding: 0.8rem;
  }
  .product-card-brand {
    font-size: 0.65rem;
  }
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
  body[dir="rtl"] .cart-drawer {
    left: -100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .shop-toolbar {
    flex-direction: column;
    gap: 0.8rem;
    align-items: stretch;
  }
  .search-input-wrapper {
    max-width: 100%;
  }
}

/* --- CATEGORY CARD MICRO-INTERACTIONS --- */
.category-banner-card:hover .category-banner-img {
  transform: scale(1.08) !important;
}
.category-banner-card:hover .category-banner-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%) !important;
}

/* --- CATEGORY-SPECIFIC PRODUCT IMAGE STYLING --- */
/* Watches, Shoes, Glasses, Perfumes now inherit the global full-bleed styles. */

/* Smooth theme transition */
body, header, footer, .product-card, .shop-sidebar, .shop-toolbar, .contact-info-panel, .contact-form-panel, .modal-box, .cart-drawer, input, textarea, select {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Hero section button overrides to maintain visibility against the dark background in both modes */
.hero .gold-btn {
  color: #ffffff;
  border-color: #d4af37;
}

.hero .gold-btn-solid {
  color: #000000;
  background: linear-gradient(135deg, #f9f5e8 0%, #d4af37 50%, #aa8412 100%);
}
