/* ========================================
   متجر الشقيري - التصميم الاحترافي الكامل
   Green #0f5132 + Gold #d4af37
   RTL Arabic - Dark Mode - Responsive
   ======================================== */

/* ===== CSS VARIABLES (Light Theme) ===== */
:root {
  --primary: #0f5132;
  --primary-light: #1a7a4c;
  --primary-dark: #0a3d26;
  --gold: #d4af37;
  --gold-light: #e6c85a;
  --gold-dark: #b8962e;
  --bg: #f4f6f5;
  --bg-alt: #e8ede9;
  --card-bg: #ffffff;
  --card-bg-hover: #fafdfb;
  --text: #1a1a2e;
  --text-light: #5a5a6e;
  --text-muted: #8a8a9a;
  --border: #d8ddd9;
  --border-light: #e8ede9;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --shadow-gold: 0 4px 20px rgba(212,175,55,0.25);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --amazon: #ff9900;
  --amazon-bg: #fff7e6;
  --noon: #fEEE00;
  --noon-text: #3a3a3a;
  --noon-bg: #fffde6;
  --danger: #dc3545;
  --success: #198754;
  --info: #0d6efd;
  --warning: #ffc107;
  --overlay: rgba(0,0,0,0.5);
  --header-h: 70px;
  --topbar-h: 38px;
  --nav-h: 48px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-ar: 'Cairo', 'Tajawal', sans-serif;
  --font-en: 'Inter', 'Segoe UI', sans-serif;
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --primary: #1a7a4c;
  --primary-light: #22a060;
  --primary-dark: #0f5132;
  --gold: #e6c85a;
  --gold-light: #f0d87a;
  --gold-dark: #d4af37;
  --bg: #0d1117;
  --bg-alt: #161b22;
  --card-bg: #1c2128;
  --card-bg-hover: #242b35;
  --text: #e6edf3;
  --text-light: #9da8b5;
  --text-muted: #6a7585;
  --border: #30363d;
  --border-light: #21262d;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 20px rgba(230,200,90,0.2);
  --overlay: rgba(0,0,0,0.7);
  --amazon-bg: #2d1f00;
  --noon-bg: #2d2a00;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}
body.en {
  font-family: var(--font-en);
  direction: ltr;
  text-align: left;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}
input, select {
  font-family: inherit;
  outline: none;
  border: none;
  transition: var(--transition);
}
ul, ol { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary-dark);
  color: #e0e0e0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  position: relative;
  z-index: 100;
  overflow: hidden;
}
.top-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark));
  opacity: 0.6;
}
.top-bar span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-bar .gold-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.top-bar-close {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: #ccc;
  font-size: 18px;
  z-index: 2;
  line-height: 1;
}
body.en .top-bar-close { left: auto; right: 12px; }
.top-bar.hidden { display: none; }

/* ===== HEADER ===== */
.header {
  background: var(--card-bg);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow);
  gap: 16px;
  border-bottom: 2px solid var(--gold);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}
.header-logo h1 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.header-logo .logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 600px;
  position: relative;
}
.header-search input {
  width: 100%;
  height: 44px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 25px;
  padding: 0 48px 0 20px;
  font-size: 14px;
  color: var(--text);
  direction: rtl;
}
body.en .header-search input {
  direction: ltr;
  padding: 0 20px 0 48px;
}
.header-search input:focus {
  border-color: var(--primary);
  background: var(--card-bg);
  box-shadow: 0 0 0 3px rgba(15,81,50,0.15);
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search .search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  pointer-events: none;
}
body.en .header-search .search-icon {
  right: auto;
  left: 16px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.header-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-light);
  position: relative;
}
.header-btn:hover {
  background: var(--primary);
  color: #fff;
}
.header-btn .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--gold);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
body.en .header-btn .badge {
  right: auto;
  left: 2px;
}
.lang-btn {
  font-size: 12px !important;
  font-weight: 700;
  width: auto !important;
  padding: 0 12px;
  border-radius: 20px !important;
  letter-spacing: 0.5px;
}

/* ===== NAVIGATION ===== */
.nav {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: var(--header-h);
  z-index: 85;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 24px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-light);
  border-radius: var(--radius-xs);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.nav-link:hover, .nav-link.active {
  background: var(--primary);
  color: #fff;
}
.nav-link .nav-count {
  font-size: 10px;
  background: var(--gold);
  color: var(--primary-dark);
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}
.nav-link.active .nav-count {
  background: rgba(255,255,255,0.3);
  color: #fff;
}
.nav-divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
  flex-shrink: 0;
}
.nav-store {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  border: 2px solid transparent;
}
.nav-store.amazon {
  color: var(--amazon);
  border-color: var(--amazon);
}

.nav-store:hover, .nav-store.active { opacity: 0.8; }
.nav-store.active { font-weight: 800; }
.nav-store .store-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.nav-store.amazon .store-dot { background: var(--amazon); }

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
  padding: 50px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.hero h2 {
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.3;
}
.hero h2 .gold { color: var(--gold); }
.hero p {
  font-size: clamp(14px, 2.5vw, 18px);
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.8;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat .stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
}
.hero-stat .stat-label {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}
.hero.hidden { display: none; }

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  gap: 24px;
  min-height: 60vh;
}

/* ===== FILTER SIDEBAR ===== */
.filter-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 20px);
  height: fit-content;
  max-height: calc(100vh - var(--header-h) - var(--nav-h) - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.filter-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
.filter-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-title .clear-btn {
  font-size: 12px;
  color: var(--danger);
  cursor: pointer;
  font-weight: 600;
  background: none;
}
.filter-title .clear-btn:hover { text-decoration: underline; }

/* Store Filter */
.store-filter {
  display: flex;
  gap: 8px;
}
.store-chip {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text-light);
  transition: var(--transition);
}
.store-chip:hover { border-color: var(--primary); }
.store-chip.active.amazon {
  border-color: var(--amazon);
  background: var(--amazon-bg);
  color: #b36b00;
}


/* Category Filter */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cat-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-light);
  transition: var(--transition);
}
.cat-chip:hover { border-color: var(--primary); }
.cat-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Price Range */
.price-range-wrap {
  padding: 0 4px;
}
.price-range-wrap input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 3px;
  outline: none;
  margin: 10px 0;
}
.price-range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid var(--card-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}
.price-labels .current-price {
  color: var(--primary);
  font-size: 14px;
}

/* Rating Filter */
.rating-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-light);
}
.rating-option:hover { color: var(--text); }
.rating-option.active { color: var(--gold-dark); font-weight: 600; }
.rating-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 1px;
}

/* Sort */
.sort-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.sort-select:focus { border-color: var(--primary); }

/* Mobile Filter Toggle */
.filter-toggle-mobile {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  gap: 8px;
  align-items: center;
}
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 95;
  opacity: 0;
  transition: opacity 0.3s;
}
.filter-overlay.active { opacity: 1; }

/* ===== PRODUCT AREA ===== */
.product-area {
  flex: 1;
  min-width: 0;
}
.product-area-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-count {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 600;
}
.results-count strong {
  color: var(--primary);
}
.sort-mobile {
  display: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.card-img-wrap {
  position: relative;
  padding-top: 100%;
  background: var(--bg-alt);
  overflow: hidden;
}
.card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s ease;
}
.product-card:hover .card-img-wrap img {
  transform: scale(1.05);
}
.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--danger);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}
body.en .card-badge { right: auto; left: 10px; }
.card-store-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}
body.en .card-store-badge { left: auto; right: 10px; }
.card-store-badge.amazon {
  background: var(--amazon);
  color: #fff;
}
.card-wishlist {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  z-index: 2;
  opacity: 0;
  transition: var(--transition);
}
body.en .card-wishlist { left: auto; right: 10px; }
.product-card:hover .card-wishlist { opacity: 1; }
.card-wishlist:hover { color: var(--danger); }
.card-wishlist.active { opacity: 1; color: var(--danger); }
.card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-category {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}
.card-rating .stars {
  color: var(--gold);
  font-size: 13px;
}
.card-rating .rate-num {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}
.card-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}
.card-old-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.card-currency {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.btn-cart {
  flex: 1;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-cart:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: var(--shadow-gold);
}
.btn-details {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 2px solid var(--border);
}
.btn-details:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== SKELETON LOADING ===== */
.skeleton-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.skeleton-img {
  padding-top: 100%;
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border-light) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-body { padding: 16px; }
.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border-light) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 10px;
}
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.h-lg { height: 20px; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.no-results .nr-icon {
  font-size: 60px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.no-results h3 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}
.no-results p { font-size: 14px; }

/* ===== PRODUCT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.modal-overlay.active {
  display: flex;
  opacity: 1;
}
.modal {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { transform: scale(0.95) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-light);
  z-index: 5;
}
body.en .modal-close { right: auto; left: 16px; }
.modal-close:hover { background: var(--danger); color: #fff; }
.modal-body {
  display: flex;
  gap: 0;
}
.modal-img-section {
  flex: 1;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  min-height: 350px;
}
.modal-img-section img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}
.modal-info {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.modal-store-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  width: fit-content;
}
.modal-store-tag.amazon { background: var(--amazon-bg); color: #b36b00; }
.modal-store-tag.noon { background: var(--noon-bg); color: var(--noon-text); }
.modal-product-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 12px;
}
.modal-category {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}
.modal-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.modal-rating .stars { color: var(--gold); font-size: 16px; }
.modal-rating .rate-text { font-size: 13px; color: var(--text-light); }
.modal-price-section {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.modal-price-current {
  font-size: 30px;
  font-weight: 900;
  color: var(--primary);
}
.modal-price-old {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 8px;
}
body.en .modal-price-old { margin-left: 0; margin-right: 8px; }
.modal-discount-badge {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}
.modal-savings {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
  margin-top: 6px;
}
.modal-features {
  margin-bottom: 20px;
  flex: 1;
}
.modal-features h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.modal-features ul {
  list-style: none;
  padding: 0;
}
.modal-features ul li {
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-features ul li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.btn-buy {
  flex: 1;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}
.btn-buy:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
.btn-buy.amazon-btn { background: linear-gradient(135deg, #e68a00, var(--amazon)); }
.btn-buy
.btn-cart-modal {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.btn-cart-modal:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 300;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cart-overlay.active { display: block; opacity: 1; }
.cart-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--card-bg);
  z-index: 301;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
body.en .cart-sidebar { left: auto; right: 0; transform: translateX(100%); }
body.en .cart-sidebar.active { transform: translateX(0); }
.cart-sidebar.active { transform: translateX(0); }
.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  color: #fff;
}
.cart-header h3 {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-header .cart-count-badge {
  background: var(--gold);
  color: var(--primary-dark);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}
.cart-close {
  background: none;
  color: #fff;
  font-size: 24px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.cart-close:hover { background: rgba(255,255,255,0.2); }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.cart-empty .empty-icon { font-size: 50px; margin-bottom: 12px; opacity: 0.4; }
.cart-empty p { font-size: 14px; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 10px;
  position: relative;
  transition: var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow); }
.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--card-bg);
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cart-item-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}
.cart-item-store {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}
.cart-item-store.amazon { background: var(--amazon-bg); color: #b36b00; }
.cart-item-store.noon { background: var(--noon-bg); color: var(--noon-text); }
.cart-item-remove {
  position: absolute;
  top: 8px;
  left: 8px;
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
body.en .cart-item-remove { left: auto; right: 8px; }
.cart-item-remove:hover { color: var(--danger); background: rgba(220,53,69,0.1); }
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cart-total .total-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.cart-total .total-amount {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}
.btn-checkout {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.btn-checkout:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}
.btn-clear-cart {
  width: 100%;
  height: 38px;
  background: none;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--danger);
}
.btn-clear-cart:hover {
  background: var(--danger);
  color: #fff;
}

/* ===== ADMIN PANEL ===== */
.admin-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-overlay.active { display: flex; }
.admin-panel {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}
.admin-header {
  padding: 20px 24px;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.admin-header h3 {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-close {
  background: none;
  color: #fff;
  font-size: 24px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.admin-close:hover { background: rgba(255,255,255,0.2); }
.admin-body { padding: 24px; }
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0;
}
.admin-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  background: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.admin-tab:hover { color: var(--primary); }
.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--gold);
}
.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.admin-form .full-width { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,81,50,0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.admin-actions-bar {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.btn-admin-save {
  flex: 1;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
}
.btn-admin-save:hover { background: var(--primary-light); }
.btn-admin-cancel {
  height: 44px;
  padding: 0 24px;
  background: var(--bg);
  color: var(--text-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--border);
}
.btn-admin-cancel:hover { border-color: var(--danger); color: var(--danger); }
.btn-admin-export {
  height: 44px;
  padding: 0 24px;
  background: var(--gold);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
}
.btn-admin-export:hover { background: var(--gold-light); }

/* Admin Product List */
.admin-product-list { margin-top: 16px; }
.admin-product-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 8px;
  transition: var(--transition);
}
.admin-product-row:hover { box-shadow: var(--shadow); }
.admin-product-row img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: var(--radius-xs);
  background: var(--card-bg);
  padding: 4px;
  flex-shrink: 0;
}
.admin-product-row .apr-info {
  flex: 1;
  min-width: 0;
}
.admin-product-row .apr-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-product-row .apr-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.admin-product-row .apr-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.apr-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-light);
  border: 1px solid var(--border);
}
.apr-btn:hover { border-color: var(--primary); color: var(--primary); }
.apr-btn.delete:hover { border-color: var(--danger); color: var(--danger); }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: #ccc;
  padding: 50px 24px 20px;
  margin-top: 40px;
}
.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--gold);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
body.en .footer-col h4::after { right: auto; left: 0; }
.footer-col p, .footer-col a {
  font-size: 13px;
  line-height: 2;
  color: #aaa;
}
.footer-col a:hover { color: var(--gold); }
.footer-blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(212,175,55,0.15);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
  transition: var(--transition);
}
.footer-blog-link:hover {
  background: var(--gold);
  color: var(--primary-dark);
}
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #777;
}
.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 70;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}
body.en .scroll-top { right: auto; left: 24px; }
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--gold);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

/* ===== TOAST NOTIFICATION ===== */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.toast {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.success { background: var(--success); color: #fff; }
.toast.error { background: var(--danger); color: #fff; }
.toast.info { background: var(--info); color: #fff; }
@keyframes toastIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-10px); }
}

/* ===== LOADING SPINNER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.5s;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1024px) {
  .filter-sidebar { width: 240px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .modal-body { flex-direction: column; }
  .modal-img-section { min-height: 250px; padding: 20px; }
  .modal-info { padding: 20px; }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
    --topbar-h: 34px;
  }
  .header { padding: 0 12px; gap: 10px; }
  .header-logo h1 { font-size: 15px; }
  .header-logo .logo-icon { width: 36px; height: 36px; font-size: 16px; }
  .header-logo .logo-sub { display: none; }
  .header-search input { height: 40px; font-size: 13px; }
  .header-btn { width: 38px; height: 38px; font-size: 16px; }
  .lang-btn { font-size: 11px !important; padding: 0 10px; }

  .filter-sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    z-index: 96;
    background: var(--card-bg);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  body.en .filter-sidebar {
    right: auto;
    left: 0;
    transform: translateX(-100%);
  }
  .filter-sidebar.mobile-open {
    display: block;
    transform: translateX(0);
  }
  .filter-toggle-mobile { display: flex; }
  .filter-close-mobile {
    display: block;
    position: absolute;
    top: 16px;
    left: 16px;
    background: none;
    font-size: 22px;
    color: var(--text-muted);
  }
  body.en .filter-close-mobile { left: auto; right: 16px; }

  .hero { padding: 30px 16px 40px; }
  .hero-stats { gap: 24px; }
  .hero-stat .stat-num { font-size: 22px; }

  .main-content { flex-direction: column; padding: 16px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .sort-mobile { display: block; }

  .modal { max-height: 95vh; border-radius: var(--radius); margin: 10px; }
  .modal-info { padding: 16px; }
  .modal-product-name { font-size: 18px; }
  .modal-price-current { font-size: 24px; }
  .modal-actions { flex-direction: column; }

  .cart-sidebar { width: 100%; max-width: 100vw; }

  .footer { padding: 30px 16px 16px; }
  .footer-grid { gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .scroll-top { bottom: 80px; right: 16px; width: 42px; height: 42px; }
  body.en .scroll-top { right: auto; left: 16px; }
}

/* ===== RESPONSIVE - SMALL MOBILE ===== */
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 12px; }
  .card-price { font-size: 15px; }
  .card-actions { flex-direction: column; gap: 6px; }
  .btn-cart { height: 34px; font-size: 12px; }
  .btn-details { width: 34px; height: 34px; font-size: 14px; }
  .admin-form { grid-template-columns: 1fr; }
}

/* ===== PRINT STYLES ===== */
@media print {
  .header, .nav, .hero, .filter-sidebar, .cart-sidebar,
  .modal-overlay, .admin-overlay, .scroll-top, .filter-toggle-mobile,
  .top-bar, .toast-container { display: none !important; }
  .main-content { display: block !important; }
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .product-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ===== CAMPAIGN BANNER ===== */
.campaign-banner {
  position: relative;
  background: linear-gradient(135deg, #0f5132 0%, #1a7a4c 40%, #0a3d26 100%);
  padding: 0;
  overflow: hidden;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
}
.campaign-banner.hidden {
  display: none !important;
}
.campaign-banner.expired {
  display: none !important;
}
.campaign-pulse {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212,175,55,0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: campaignPulse 3s ease-in-out infinite;
}
.campaign-pulse:nth-child(1) {
  right: auto;
  left: -5%;
  top: -60%;
  animation-delay: 1.5s;
}
@keyframes campaignPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}
.campaign-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.campaign-icon {
  font-size: 36px;
  flex-shrink: 0;
  animation: fireFlicker 1.5s ease-in-out infinite;
  line-height: 1;
}
@keyframes fireFlicker {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  25% { transform: scale(1.1) rotate(3deg); }
  50% { transform: scale(1) rotate(-2deg); }
  75% { transform: scale(1.05) rotate(2deg); }
}
.campaign-info {
  flex: 1;
  min-width: 0;
}
.campaign-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-ar);
  display: flex;
  align-items: center;
  gap: 8px;
}
.campaign-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: dotBlink 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.campaign-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-ar);
}
.campaign-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  direction: ltr;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 48px;
  backdrop-filter: blur(4px);
}
.countdown-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Inter', monospace;
  line-height: 1.2;
}
.countdown-label {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-ar);
  margin-top: 2px;
}
.countdown-sep {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.6;
  margin-top: -8px;
}
.campaign-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0f5132;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  flex-shrink: 0;
  font-family: var(--font-ar);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(212,175,55,0.4);
  white-space: nowrap;
}
.campaign-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(212,175,55,0.6);
}
.campaign-cta span:last-child {
  font-size: 18px;
  transition: transform 0.3s ease;
}
.campaign-cta:hover span:last-child {
  transform: translate(-3px, -3px);
}
.campaign-close {
  position: absolute;
  top: 8px;
  left: 12px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}
.campaign-close:hover {
  background: rgba(255,255,255,0.3);
  color: #fff;
}
.en .campaign-close {
  left: auto;
  right: 12px;
}

/* Campaign badge on product cards */
.card-campaign-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #dc3545, #ff6b6b);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: campaignBadgePulse 2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(220,53,69,0.4);
}
.card-campaign-badge::before {
  content: '\1F525';
  font-size: 12px;
}
@keyframes campaignBadgePulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(220,53,69,0.4); }
  50% { box-shadow: 0 2px 16px rgba(220,53,69,0.7); }
}
.en .card-campaign-badge {
  left: auto;
  right: 10px;
}

/* Campaign responsive */
@media (max-width: 768px) {
  .campaign-content {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 10px;
    text-align: center;
    justify-content: center;
  }
  .campaign-icon {
    font-size: 28px;
  }
  .campaign-title {
    font-size: 16px;
    justify-content: center;
  }
  .campaign-desc {
    font-size: 12px;
  }
  .campaign-countdown {
    justify-content: center;
  }
  .countdown-item {
    padding: 5px 8px;
    min-width: 42px;
  }
  .countdown-num {
    font-size: 16px;
  }
  .countdown-label {
    font-size: 9px;
  }
  .campaign-cta {
    width: 100%;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
  }
  .campaign-close {
    top: 6px;
    left: 8px;
    width: 26px;
    height: 26px;
    font-size: 18px;
  }
  .en .campaign-close {
    left: auto;
    right: 8px;
  }
}
@media (max-width: 480px) {
  .campaign-content {
    padding: 10px 12px;
    gap: 8px;
  }
  .campaign-icon {
    font-size: 24px;
  }
  .campaign-title {
    font-size: 14px;
  }
  .countdown-item {
    padding: 4px 6px;
    min-width: 38px;
  }
  .countdown-num {
    font-size: 14px;
  }
}

/* ===== ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.slide-up {
  animation: slideUp 0.5s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== TRUST SECTION ===== */
.trust-section {
  padding: 50px 20px;
  background: linear-gradient(135deg, #f8faf8 0%, #eef5ee 100%);
  border-bottom: 1px solid rgba(15, 81, 50, 0.08);
}
.trust-container {
  max-width: 1100px;
  margin: 0 auto;
}
.trust-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary, #1a1a2e);
  margin-bottom: 35px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(15, 81, 50, 0.06);
}
.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(15, 81, 50, 0.1);
}
.trust-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f5132, #1a7a4c);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.trust-icon {
  width: 26px;
  height: 26px;
  color: #d4af37;
}
.trust-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #1a1a2e);
  margin-bottom: 10px;
}
.trust-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary, #555);
}
/* Trust section dark mode */
[data-theme="dark"] .trust-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .trust-card {
  background: #1e2a3a;
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .trust-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .trust-title {
  color: #e8e8e8;
}
[data-theme="dark"] .trust-card h3 {
  color: #e8e8e8;
}
[data-theme="dark"] .trust-card p {
  color: #aaa;
}
/* Trust section responsive */
@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .trust-section {
    padding: 30px 16px;
  }
  .trust-title {
    font-size: 1.25rem;
  }
  .trust-card {
    padding: 22px 18px;
  }
}