/* ===================================================
   مركز المدينة الحديث - Light Luxury Design System
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&display=swap');

/* ─── CSS Variables ─────────────────────────────── */
:root {
  /* Brand Luxury Palette - Al Madena Warm Gold & Refined Charcoal */
  --primary: #C5943A;          /* Royal Warm Gold matching Al Madena logo */
  --primary-light: #D8A953;
  --primary-dark: #9E7220;
  
  --emerald: #1B5E3B;          /* Natural touch for organic marks */
  --emerald-light: #2E7D54;
  --emerald-subtle: rgba(27, 94, 59, 0.08);

  --accent: #C5943A;
  --accent-light: #E0BA72;
  --accent-dark: #8C6215;

  /* Bright & Light Theme */
  --bg: #FAFAF7;
  --bg-2: #F4F1EA;
  --bg-3: #ECE7DD;
  --surface: #FFFFFF;
  --surface-2: #FBF9F5;

  /* Borders */
  --border: rgba(0, 0, 0, 0.07);
  --border-accent: rgba(197, 148, 58, 0.35);

  /* Typography Colors */
  --text: #191919;
  --text-2: #383838;
  --text-muted: #666666;
  --text-subtle: #999999;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 8px 30px rgba(197, 148, 58, 0.18);

  /* Spacing & Sizes */
  --nav-height: 76px;
  --section-pad: 88px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --trans: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }

a { text-decoration: none; color: inherit; transition: var(--trans); }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: 'Cairo', sans-serif; }
input, select, textarea { font-family: 'Cairo', sans-serif; direction: rtl; }

/* ─── Typography ────────────────────────────────── */
.display-title {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.25; }
.section-subtitle { font-size: 1rem; color: var(--text-muted); line-height: 1.8; max-width: 580px; }
.accent-text { color: var(--primary); }
.green-text { color: var(--emerald); }

/* ─── Layout ────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-2); }

/* ─── Navigation ─────────────────────────────────── */
.navbar {
  position: fixed; top: 0; width: 100%; height: var(--nav-height);
  z-index: 1002; transition: var(--trans); padding: 0 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner { max-width: 1280px; margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo-img { height: 52px; width: auto; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-main { font-size: 1.05rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.nav-logo-sub { font-size: 0.72rem; color: var(--primary); font-weight: 700; letter-spacing: 0.05em; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a { padding: 9px 18px; border-radius: 100px; font-size: 0.92rem; font-weight: 600; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--primary-dark); background: rgba(197, 148, 58, 0.1); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ─── Compact Currency Toggle Button ────────────── */
.currency-toggle-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 100px;
  background: #FFFFFF; border: 1.5px solid var(--border);
  font-size: 0.78rem; font-weight: 800; color: var(--text);
  cursor: pointer; transition: var(--trans);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.currency-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: rgba(197, 148, 58, 0.05);
}
.cur-flag-txt { font-size: 0.78rem; }
.cur-switch-icon {
  font-size: 0.85rem; color: var(--primary);
  opacity: 0.8;
}

/* ─── Segmented Currency Switcher (Fallback / Mobile menu) */
.currency-switcher {
  display: inline-flex; align-items: center;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 100px; padding: 2px; gap: 2px;
}
.currency-btn {
  padding: 4px 10px; border-radius: 100px;
  font-size: 0.74rem; font-weight: 800;
  color: var(--text-muted); background: transparent;
  transition: var(--trans); cursor: pointer; border: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.currency-btn:hover { color: var(--primary); }
.currency-btn.active {
  background: var(--primary); color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(197, 148, 58, 0.3);
}

/* ─── Navbar Cart Button & Badge ─────────────────── */
.nav-cart-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: #FFFFFF; border: 1.5px solid var(--border);
  color: var(--text); cursor: pointer; transition: var(--trans);
}
.nav-cart-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: rgba(197, 148, 58, 0.08);
  transform: translateY(-1px);
}
.cart-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; border-radius: 10px;
  background: #E53935; color: #FFFFFF;
  font-size: 0.68rem; font-weight: 900;
  display: none; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(229, 57, 53, 0.4);
}
@keyframes badgePop {
  0% { transform: scale(0.6); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.cart-badge.badge-pop {
  animation: badgePop 0.3s ease-out;
}

.nav-whatsapp {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #25D366, #1AA855);
  border-radius: 100px; font-size: 0.88rem; font-weight: 700; color: white;
}
.nav-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.3); }

/* ─── Animated Hamburger Toggle ──────────────────── */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5.5px; cursor: pointer; padding: 8px; z-index: 1005;
  background: transparent; border: none; outline: none;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: var(--primary);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: var(--primary);
}

.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px);
  z-index: 1000; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  opacity: 0; pointer-events: none;
  transform: translateY(-15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
}
.mobile-menu.open {
  opacity: 1; pointer-events: all;
  transform: translateY(0);
}
.mobile-menu a { font-size: 1.35rem; font-weight: 700; color: var(--text); }
.mobile-menu a:hover { color: var(--primary); }
.mobile-close { display: none; }

/* ─── Cart Drawer ────────────────────────────────── */
.cart-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-drawer-overlay.open {
  opacity: 1; pointer-events: all;
}
.cart-drawer {
  position: absolute; top: 0; left: 0;
  width: 400px; max-width: 100vw; height: 100%;
  background: #FFFFFF;
  box-shadow: 6px 0 35px rgba(0, 0, 0, 0.2);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer-overlay.open .cart-drawer {
  transform: translateX(0);
}
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1.5px solid var(--border);
  background: #FAF8F5;
}
.cart-header-title {
  font-size: 1.05rem; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.cart-header-count {
  font-size: 0.8rem; color: var(--text-muted); font-weight: 600;
}
.cart-close-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: #FFFFFF;
  font-size: 0.95rem; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.cart-close-btn:hover {
  background: #E53935; color: #FFFFFF; border-color: #E53935;
}
.cart-items-wrap {
  flex: 1; overflow-y: auto; padding: 18px 20px;
}
.cart-empty {
  text-align: center; padding: 60px 20px;
}
.cart-empty-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.8; }
.cart-empty h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.cart-empty p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.cart-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px dashed rgba(0,0,0,0.08);
}
.cart-item-img {
  width: 60px; height: 60px; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--border); flex-shrink: 0; background: #FAF8F5;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.88rem; font-weight: 800; color: var(--text);
  line-height: 1.35; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-unit {
  font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px;
}
.cart-item-bottom {
  display: flex; align-items: center; justify-content: space-between;
}
.cart-qty-ctrl {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 4px;
}
.cart-qty-btn {
  width: 22px; height: 22px; border: none; background: transparent;
  font-size: 0.95rem; font-weight: bold; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.cart-qty-val { font-size: 0.85rem; font-weight: 800; min-width: 18px; text-align: center; }
.cart-item-subtotal { font-size: 0.88rem; font-weight: 900; color: var(--primary-dark); }
.cart-item-del {
  background: none; border: none; font-size: 1.05rem; cursor: pointer;
  opacity: 0.5; transition: opacity 0.2s; padding: 6px;
}
.cart-item-del:hover { opacity: 1; }
.cart-footer {
  padding: 20px 22px; border-top: 1.5px solid var(--border);
  background: #FAF8F5;
}
.cart-total-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1.05rem; font-weight: 800; color: var(--text);
  margin-bottom: 8px;
}
.cart-total-val {
  font-size: 1.3rem; font-weight: 900; color: var(--primary-dark);
}
.cart-delivery-note {
  font-size: 0.76rem; color: var(--text-muted); margin-bottom: 14px;
  display: flex; align-items: center; gap: 4px;
}
.cart-actions { display: flex; flex-direction: column; gap: 10px; }
.cart-checkout-btn { font-size: 0.95rem; padding: 13px; }
.cart-wa-btn {
  font-size: 0.88rem; padding: 11px;
  color: #1AA855; border-color: rgba(37, 211, 102, 0.4);
}
.cart-wa-btn:hover {
  background: rgba(37, 211, 102, 0.08); border-color: #25D366; color: #1AA855;
}

/* ─── Card Quick Add-to-Cart Button ──────────────── */
.card-add-cart-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 100px;
  background: rgba(197, 148, 58, 0.1);
  border: 1px solid rgba(197, 148, 58, 0.3);
  color: var(--primary-dark); font-size: 0.76rem; font-weight: 800;
  cursor: pointer; transition: var(--trans);
}
.card-add-cart-btn:hover {
  background: var(--primary); color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(197, 148, 58, 0.3);
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 100px;
  font-size: 0.92rem; font-weight: 700; transition: var(--trans); white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 18px rgba(197, 148, 58, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(197, 148, 58, 0.4);
}
.btn-accent {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-outline-gold {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.btn-outline-gold:hover {
  background: var(--primary);
  color: white;
}
.btn-lg { padding: 15px 36px; font-size: 0.98rem; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-full { width: 100%; }

/* ─── Cards ──────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: var(--trans);
  box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--border-accent); }

/* ─── Product Card ───────────────────────────────── */
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--trans); display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  border-color: var(--border-accent);
}
.product-card-img {
  position: relative; width: 100%; padding-top: 80%;
  overflow: hidden; background: #FAF9F6;
}
.product-card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: var(--trans-slow);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 5px 12px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 800; z-index: 1;
}
.badge-bestseller {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 2px 10px rgba(197, 148, 58, 0.3);
}
.badge-new {
  background: var(--emerald);
  color: white;
}
.product-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card-brand {
  font-size: 0.72rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px;
}
.product-card-name {
  font-size: 1rem; font-weight: 800; color: var(--text);
  margin-bottom: 8px; line-height: 1.4;
}
.product-card-desc {
  font-size: 0.84rem; color: var(--text-muted); line-height: 1.65;
  flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
}
.price-yer { font-size: 1.15rem; font-weight: 900; color: var(--primary-dark); }
.price-sar { font-size: 0.78rem; color: var(--text-subtle); margin-top: 2px; }
.product-price { display: flex; flex-direction: column; }
.product-rating { display: flex; align-items: center; gap: 3px; font-size: 0.85rem; color: var(--primary); }
.stars { display: flex; align-items: center; gap: 1px; }
.star { color: #D4A85A; }
.star-empty { color: #E0DACF; }

/* ─── Category Pills ─────────────────────────────── */
.category-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.category-pill {
  padding: 10px 24px; border-radius: 100px; font-size: 0.88rem; font-weight: 700;
  cursor: pointer; transition: var(--trans);
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text-muted);
}
.category-pill:hover { border-color: var(--primary); color: var(--primary); }
.category-pill.active {
  background: var(--primary); border-color: var(--primary); color: white;
  box-shadow: 0 4px 14px rgba(197, 148, 58, 0.25);
}

/* ─── Search ────────────────────────────────────── */
.search-wrap { position: relative; max-width: 480px; width: 100%; }
.search-input {
  width: 100%; padding: 13px 22px 13px 46px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 100px; color: var(--text); font-size: 0.92rem; transition: var(--trans);
  box-shadow: var(--shadow-sm);
}
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(197, 148, 58, 0.15); }
.search-input::placeholder { color: var(--text-subtle); }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

/* ─── Section Header ─────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 800;
  color: var(--primary-dark); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 12px; padding: 6px 18px; border-radius: 100px;
  background: rgba(197, 148, 58, 0.1); border: 1px solid rgba(197, 148, 58, 0.2);
}
.section-divider {
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-light));
  margin: 18px auto 0; border-radius: 2px;
}

/* ─── Forms ──────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--text-2); margin-bottom: 7px; }
.form-label .required { color: #E53935; margin-right: 3px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 13px 16px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 0.92rem; transition: var(--trans);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(197, 148, 58, 0.12); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-subtle); }
.form-select { -webkit-appearance: none; appearance: none; }
.form-textarea { min-height: 110px; resize: vertical; line-height: 1.7; }

/* ─── Loading ────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 60px 20px; color: var(--text-muted); font-size: 0.88rem; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--text-muted); }
.empty-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.5; }

/* ─── Footer ─────────────────────────────────────── */
.footer { background: #161616; color: #E5E0D8; padding: 68px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 56px; margin-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; }
.footer-logo-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-logo-img { height: 58px; width: auto; object-fit: contain; }
.footer-brand-name { font-size: 1.1rem; font-weight: 800; color: white; }
.footer-brand-sub { font-size: 0.74rem; color: var(--accent-light); font-weight: 700; letter-spacing: 0.06em; }
.footer-desc { font-size: 0.88rem; color: rgba(229,224,216,0.65); line-height: 1.85; margin-bottom: 22px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(229,224,216,0.7); font-size: 0.95rem; transition: var(--trans);
}
.social-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.social-btn.whatsapp:hover { border-color: #25D366; color: #25D366; }
.footer-heading { font-size: 0.82rem; font-weight: 800; color: white; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.88rem; color: rgba(229,224,216,0.65); }
.footer-links a:hover { color: var(--accent-light); }
.footer-contact-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: rgba(229,224,216,0.65); margin-bottom: 12px; }
.footer-contact-item a:hover { color: var(--accent-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-copy { font-size: 0.82rem; color: rgba(229,224,216,0.45); }
.footer-copy span { color: var(--accent-light); }

/* ─── Page Hero ──────────────────────────────────── */
.page-hero { padding-top: calc(var(--nav-height) + 52px); padding-bottom: 52px; text-align: center; }
.page-hero-bg { background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F5 100%); border-bottom: 1px solid var(--border); }

/* ─── Products Grid ──────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }

/* ─── Toast ──────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  padding: 14px 28px; border-radius: 100px; font-size: 0.88rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px; z-index: 9999;
  opacity: 0; transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap; box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-success { background: #1B5E3B; color: white; }
.toast-error { background: #C62828; color: white; }

/* ─── Back to Top ────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); color: var(--primary-dark);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  z-index: 998; opacity: 0; transform: translateY(16px); transition: var(--trans);
  box-shadow: var(--shadow-md); cursor: pointer;
}
#back-to-top.show { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-3px); }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 68px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --section-pad: 54px; --nav-height: 68px; }
  .nav-links, .nav-cta .nav-whatsapp { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* 2 Products Side-by-Side on Mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .product-card-body {
    padding: 12px !important;
  }
  .product-card-brand {
    font-size: 0.7rem !important;
    margin-bottom: 3px !important;
  }
  .product-card-name {
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
    margin-bottom: 4px !important;
  }
  .product-card-desc {
    display: none !important; /* Keep mobile cards neat and compact */
  }
  .product-card-footer {
    margin-top: 8px !important;
    padding-top: 8px !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .product-price .price-yer {
    font-size: 0.92rem !important;
  }
  .product-price .price-sar {
    font-size: 0.72rem !important;
  }
  .card-add-cart-btn {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
  }
  .section-header { margin-bottom: 36px; }
}
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .product-card-body {
    padding: 10px 8px !important;
  }
  .product-card-name {
    font-size: 0.82rem !important;
  }
  .product-price .price-yer {
    font-size: 0.85rem !important;
  }
  .btn-lg { padding: 13px 26px; font-size: 0.92rem; }
  .cart-drawer { width: 100vw; }
}
