/* =====================================================================
   NANO MEDICAL — Main Stylesheet (Luxe Black & Gold Theme)
   مستوحى من معمارية كنج الجمال مع الحفاظ على الألوان الوردية الأصلية
   ===================================================================== */
:root {
  /* === Brand Black & Gold Palette (Nano Medical) === */
  --brand: #1a1a1a;          /* signature black */
  --brand-2: #262626;        /* charcoal */
  --brand-3: #3d3d3d;        /* soft charcoal */
  --brand-light: #f2e6d0;    /* soft champagne */
  --brand-dark: #0d0d0d;     /* pure black */
  --brand-deep: #000000;     /* jet black */
  --accent: #c9a961;         /* elegant gold */
  --accent-warm: #d4b87a;    /* champagne gold */
  --accent-dark: #8f7a3d;    /* antique bronze */
  --pink-soft: #f7f1e6;      /* cream soft */
  --pink-mid: #ede0c8;       /* cream mid */
  --pink-deep: #8f7a3d;      /* deep bronze */
  --gold: #c9a961;

  /* === Backgrounds === */
  --bg: #f8f2e8;
  --bg-2: #f0e6d2;
  --bg-3: #e6d8b8;
  --surface: #ffffff;
  --surface-2: rgba(255, 253, 247, 0.95);
  --surface-3: rgba(247, 241, 230, 0.95);

  /* === Text === */
  --text: #1a1a1a;
  --text-2: #3d3d3d;
  --text-3: #6b6357;
  --text-muted: #96897a;
  --text-on-pink: #ffffff;

  /* === Borders / Glows === */
  --border: rgba(26, 26, 26, 0.14);
  --border-2: rgba(201, 169, 97, 0.42);
  --border-glow: rgba(201, 169, 97, 0.55);

  /* === System === */
  --success: #2f9e6f;
  --error: #c0392b;
  --warning: #d4a017;
  --info: #4a78b8;

  /* === Shadows === */
  --shadow-xs: 0 1px 3px rgba(20, 15, 5, 0.10);
  --shadow-sm: 0 4px 18px rgba(20, 15, 5, 0.12);
  --shadow-md: 0 18px 48px rgba(20, 15, 5, 0.18);
  --shadow-lg: 0 30px 90px rgba(20, 15, 5, 0.24);
  --shadow-pink: 0 14px 38px rgba(26, 26, 26, 0.32);
  --shadow-gold: 0 12px 32px rgba(201, 169, 97, 0.35);
  --shadow-glow: 0 0 0 4px rgba(201, 169, 97, 0.28);

  /* === Radii === */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* === Gradients (black & gold) === */
  --grad-pink: linear-gradient(135deg, #262626 0%, #1a1a1a 50%, #0d0d0d 100%);
  --grad-pink-bright: linear-gradient(135deg, #d4b87a 0%, #c9a961 55%, #8f7a3d 100%);
  --grad-soft: linear-gradient(135deg, #f8f2e8 0%, #f0e6d2 50%, #e6d8b8 100%);
  --grad-rose: linear-gradient(135deg, #d4b87a 0%, #c9a961 50%, #1a1a1a 100%);
  --grad-card: linear-gradient(160deg, rgba(255,255,255,0.96) 0%, rgba(247,241,230,0.92) 100%);
  --grad-card-hover: linear-gradient(160deg, #fff 0%, #f7f1e6 100%);
  --grad-bg: radial-gradient(ellipse at top, #f0e6d2 0%, #f8f2e8 50%, #ffffff 100%);
  --grad-text: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 40%, #c9a961 100%);
  --grad-gold: linear-gradient(135deg, #d4b87a 0%, #c9a961 50%, #8f7a3d 100%);

  --container: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--brand); color: #fff; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--grad-bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
a { color: var(--brand-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand); }
.hidden { display: none !important; }
.text-center { text-align: center; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--brand-light), var(--brand)); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-dark); }

/* ============== TOP ANNOUNCE BAR ============== */
.top-announce {
  background: var(--grad-pink);
  color: #fff;
  text-align: center;
  padding: 9px 22px;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 8;
}
.top-announce i { margin-left: 6px; }

/* ============== TICKER ============== */
.ticker {
  background: var(--bg-2);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
  position: relative;
  z-index: 7;
}
.ticker-track {
  display: flex; gap: 36px;
  animation: ticker-scroll 32s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item {
  font-size: 0.82rem; font-weight: 700; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 7px;
}
.ticker-item i { color: var(--brand); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ============== NAVBAR ============== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 245, 250, 0.92);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all 0.25s;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 22px;
}
.nav-brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
}
.nav-brand-logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad-pink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
  box-shadow: var(--shadow-pink);
  overflow: hidden;
  flex-shrink: 0;
}
.nav-brand-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-name {
  font-weight: 900; font-size: 1.08rem; color: var(--text);
  background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-brand-tag { font-size: 0.72rem; color: var(--text-3); font-weight: 700; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-inline-start: auto;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 10px;
  color: var(--text-2); font-weight: 700; font-size: 0.92rem;
  transition: all 0.2s;
}
.nav-link:hover { background: var(--bg-2); color: var(--brand-dark); }
/* ✅ النقر يتم فقط على النص نفسه - مش على المساحة الفاضية */
.nav-link.nav-link-clickable-only {
  pointer-events: none;
  background: transparent !important;
}
.nav-link.nav-link-clickable-only .nav-link-text {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 6px; border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.nav-link.nav-link-clickable-only .nav-link-text:hover {
  background: var(--bg-2);
  color: var(--brand-dark);
}
.nav-icons { display: flex; gap: 6px; align-items: center; }
.nav-icon {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  color: var(--brand-dark);
  transition: all 0.2s;
}
.nav-icon:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.nav-icon .badge {
  position: absolute; top: -4px; left: -4px;
  background: var(--brand-dark); color: #fff;
  font-size: 0.7rem; font-weight: 900;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--bg);
}
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: var(--bg-2); border-radius: 12px;
  color: var(--brand-dark); font-size: 1.1rem;
  align-items: center; justify-content: center;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; right: 0; left: 0;
    flex-direction: column;
    background: #fff;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: flex; }
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px;
  font-weight: 800; font-size: 0.92rem;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer; white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--grad-pink); color: #fff;
  box-shadow: var(--shadow-pink);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(201, 169, 97, 0.55); }
.btn-secondary {
  background: #fff;
  color: var(--brand-dark);
  border-color: var(--border-2);
}
.btn-secondary:hover:not(:disabled) { background: var(--bg-2); border-color: var(--brand); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover:not(:disabled) { background: rgba(201, 169, 97, 0.06); border-color: var(--brand); }
.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-danger { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.4); color: #dc2626; }
.btn-success { background: rgba(52,211,153,0.15); border-color: rgba(52,211,153,0.4); color: #059669; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 7px 13px; font-size: 0.82rem; border-radius: 9px; }

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; pointer-events: none;
  width: 480px; height: 480px;
  border-radius: 50%; filter: blur(100px);
  opacity: 0.55;
}
.hero-glow.g1 { background: var(--brand-light); top: -180px; right: -120px; }
.hero-glow.g2 { background: var(--accent); bottom: -200px; left: -120px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 99px;
  background: rgba(201, 169, 97, 0.12);
  border: 1px solid var(--border-2);
  color: var(--brand-dark); font-weight: 800; font-size: 0.84rem;
  margin-bottom: 18px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  animation: pulse-dot 1.6s ease infinite;
}
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.6);} 50% { box-shadow: 0 0 0 8px rgba(201, 169, 97, 0); } }

.hero-content h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 18px;
}
.hero-content h1 .grad,
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content .lead {
  font-size: 1.05rem; color: var(--text-2);
  line-height: 1.85; max-width: 540px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; max-width: 460px;
}
.hero-stat {
  text-align: center;
  padding: 14px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  backdrop-filter: blur(10px);
}
.hero-stat-value {
  font-size: 1.5rem; font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat-label { font-size: 0.78rem; color: var(--text-2); font-weight: 700; }

.hero-visual {
  position: relative;
  height: 540px;
}
@media (max-width: 980px) { .hero-visual { height: 440px; } }
.hero-card {
  position: absolute;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid #fff;
  transition: transform 0.45s;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card.main {
  width: 64%; height: 78%;
  top: 5%; right: 0;
  z-index: 3;
  transform: rotate(2deg);
  box-shadow: var(--shadow-lg);
}
.hero-card.side-1 {
  width: 44%; height: 48%;
  top: 0; left: 0;
  z-index: 2;
  transform: rotate(-4deg);
}
.hero-card.side-2 {
  width: 42%; height: 44%;
  bottom: 0; left: 8%;
  z-index: 2;
  transform: rotate(3deg);
}
.hero-card:hover { transform: translateY(-6px) rotate(0); }
.hero-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.75), transparent 55%);
  display: flex; align-items: flex-end;
  padding: 14px;
}
.hero-card-tag {
  background: var(--grad-pink);
  color: #fff;
  padding: 6px 12px; border-radius: 99px;
  font-size: 0.78rem; font-weight: 800;
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-floating-badge {
  position: absolute;
  bottom: 18px; right: 18px;
  background: #fff;
  padding: 12px 16px;
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  z-index: 4;
  border: 1px solid var(--border-2);
}
.hero-floating-badge i {
  width: 38px; height: 38px;
  background: var(--grad-pink); color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.hero-floating-badge .txt strong { display: block; font-size: 0.84rem; font-weight: 900; color: var(--text); }
.hero-floating-badge .txt span { font-size: 0.76rem; color: var(--text-2); }

/* ============== TRUST BAND ============== */
.trust-band {
  background: var(--bg-2);
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: all 0.25s;
}
.trust-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--brand); }
.trust-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--grad-pink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.trust-text strong { display: block; font-size: 0.96rem; font-weight: 900; color: var(--text); margin-bottom: 2px; }
.trust-text span { font-size: 0.82rem; color: var(--text-2); }

/* ============== SECTIONS ============== */
.section { padding: 80px 0; position: relative; }
.section-tight { padding: 50px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.84rem; font-weight: 800;
  color: var(--brand-dark);
  background: rgba(201, 169, 97, 0.10);
  padding: 6px 14px; border-radius: 99px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 12px;
}
.section-head p { color: var(--text-2); font-size: 1rem; line-height: 1.85; }

/* ============== CATEGORIES ============== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
@media (max-width: 720px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 380px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
.cat-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-pink);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 0;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.cat-card:hover::before { opacity: 0.05; }
.cat-card.active {
  background: var(--grad-pink);
  border-color: var(--brand-dark);
  box-shadow: var(--shadow-pink);
}
.cat-card.active .cat-icon { background: rgba(255,255,255,0.25); color: #fff; }
.cat-card.active .cat-name,
.cat-card.active .cat-count { color: #fff; }
.cat-icon {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: var(--grad-pink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  position: relative; z-index: 1;
  transition: all 0.25s;
}
.cat-name {
  font-weight: 900; font-size: 0.96rem;
  color: var(--text); margin-bottom: 4px;
  position: relative; z-index: 1;
}
.cat-count { font-size: 0.78rem; color: var(--text-2); position: relative; z-index: 1; }

/* ============== COLLECTIONS BANNER ============== */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 22px;
}
.collection-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 260px;
  padding: 36px 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--grad-pink);
  color: #fff;
  isolation: isolate;
}
.collection-card.alt { background: linear-gradient(135deg, #1a1a1a, #000000); }
.collection-card .col-bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  opacity: 0.42;
  transition: transform 0.5s, opacity 0.4s;
}
.collection-card:hover .col-bg { transform: scale(1.06); opacity: 0.55; }
.collection-card .eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 800;
  background: rgba(255,255,255,0.22);
  padding: 5px 11px; border-radius: 99px;
  margin-bottom: 12px;
  width: fit-content;
}
.collection-card h3 {
  font-size: 1.6rem; font-weight: 900;
  margin-bottom: 10px; line-height: 1.3;
}
.collection-card p { color: rgba(255,255,255,0.92); margin-bottom: 18px; max-width: 480px; }
.collection-card .btn { background: #fff; color: var(--brand-dark); }
.collection-card .btn:hover { background: var(--bg); }

/* ============== SHOP TOOLBAR ============== */
.shop-toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
  box-shadow: var(--shadow-xs);
}
@media (max-width: 720px) { .shop-toolbar { grid-template-columns: 1fr; } }
.search-wrap { position: relative; }
.search-wrap i {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3);
}
.search-wrap input {
  width: 100%;
  padding: 12px 40px 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  font-size: 0.94rem; color: var(--text);
}
.search-wrap input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15); }
.toolbar-select {
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font-weight: 700; font-size: 0.92rem;
  cursor: pointer;
}
.toolbar-select:focus { outline: none; border-color: var(--brand); }

/* Category chips bar — في الموبايل تلتف بدل ما تبقى في سطر واحد */
.cat-chips {
  display: flex; gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 6px 2px 14px;
  margin-bottom: 22px;
}
@media (max-width: 720px) {
  .cat-chips { gap: 7px; justify-content: flex-start; }
  .cat-chip { padding: 7px 12px !important; font-size: 0.8rem !important; }
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  color: var(--text-2); font-weight: 700; font-size: 0.86rem;
  white-space: nowrap; cursor: pointer;
  transition: all 0.2s;
}
.cat-chip:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-2px); background: var(--bg-2); }
.cat-chip.active {
  background: var(--grad-pink); color: #fff;
  border-color: var(--brand-dark);
  box-shadow: var(--shadow-pink);
}

/* ============== PRODUCTS GRID ============== */
/* ✅ حجم متوازن للبطاقات على جميع الشاشات */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
/* شاشات بيرو عريضة جداً */
@media (min-width: 1400px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
  }
}
/* لابتوب / تابلت أفقي */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
}
/* تابلت عادي */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .product-name { font-size: 1rem; }
  .product-price { font-size: 1.2rem; }
  .product-body { padding: 16px; gap: 8px; }
  .product-actions { padding: 0 16px 16px; gap: 8px; }
  .product-actions .btn { padding: 10px 10px; font-size: 0.85rem; }
}
/* تابلت صغير / موبايل أفقي */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .product-name { font-size: 0.95rem; line-height: 1.35; }
  .product-price { font-size: 1.1rem; }
  .product-cat { font-size: 0.68rem; }
  .product-rating { font-size: 0.76rem; }
  .product-body { padding: 12px; gap: 6px; }
  .product-actions { padding: 0 12px 12px; gap: 6px; }
  .product-actions .btn { padding: 9px 6px; font-size: 0.78rem; }
  .product-actions .btn i { font-size: 0.78rem; }
  .product-badge { font-size: 0.66rem; padding: 3px 8px; }
  .product-fav { width: 32px; height: 32px; font-size: 0.85rem; }
}
/* موبايل عادي */
@media (max-width: 540px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-name { font-size: 0.88rem; }
  .product-price { font-size: 1rem; }
  .product-price-old { font-size: 0.72rem; }
  .product-body { padding: 10px; gap: 5px; }
  .product-actions { padding: 0 10px 10px; gap: 5px; }
  .product-actions .btn { padding: 8px 4px; font-size: 0.72rem; gap: 4px; }
  .product-badge { font-size: 0.62rem; padding: 3px 7px; }
  .product-fav { width: 28px; height: 28px; font-size: 0.78rem; top: 6px; left: 6px; }
  .product-badges { top: 6px; right: 6px; gap: 3px; }
}
/* موبايل صغير جداً */
@media (max-width: 380px) {
  .products-grid {
    gap: 10px;
  }
  .product-name { font-size: 0.82rem; }
  .product-price { font-size: 0.95rem; }
  .product-body { padding: 8px; }
  .product-actions { padding: 0 8px 8px; gap: 4px; }
  .product-actions .btn { padding: 7px 4px; font-size: 0.66rem; gap: 3px; }
  .product-actions .btn i { font-size: 0.72rem; }
}
.product-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-2); }
.product-image-wrap {
  width: 100%; aspect-ratio: 1/1;
  background: var(--bg-2);
  position: relative; overflow: hidden;
}
.product-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-image-wrap img { transform: scale(1.07); }
.product-badges {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 5px;
  z-index: 4;
}
.product-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--grad-pink); color: #fff;
  padding: 5px 11px; border-radius: 99px;
  font-size: 0.72rem; font-weight: 900;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  text-shadow: 0 1px 1px rgba(0,0,0,0.12);
  width: fit-content;
  border: 1px solid rgba(255,255,255,0.35);
}
.product-badge i { font-size: 0.72rem; }
/* 🟢 جديد — أخضر فستقي */
.product-badge.new {
  background: linear-gradient(135deg, #10b981 0%, #059669 55%, #047857 100%);
  box-shadow: 0 4px 14px rgba(16,185,129,0.45);
}
/* 🔥 رائج — أحمر / برتقالي متدرج */
.product-badge.hot {
  background: linear-gradient(135deg, #f97316 0%, #ef4444 55%, #b91c1c 100%);
  box-shadow: 0 4px 14px rgba(239,68,68,0.45);
}
/* 👑 الأفضل — دهبي فاخر */
.product-badge.best {
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 45%, #d97706 75%, #b45309 100%);
  color: #4a2410;
  text-shadow: 0 1px 1px rgba(255,255,255,0.5);
  box-shadow: 0 4px 16px rgba(245,158,11,0.5), inset 0 1px 0 rgba(255,255,255,0.45);
  border: 1px solid rgba(180,83,9,0.55);
}
.product-badge.best i { color: #92400e; }
/* 🏷️ خصم — أحمر صريح */
.product-badge.discount {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 4px 14px rgba(220,38,38,0.45);
}
/*  بالحجز — بنفسجي */
.product-badge.made-to-order {
  background: linear-gradient(135deg, #1a1a1a 0%, #7c3aed 55%, #5b21b6 100%);
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.45);
}
/* 🔔 أخر كمية — فوسفوري */
.product-badge.low-stock {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #4a2410;
  text-shadow: 0 1px 1px rgba(255,255,255,0.4);
  box-shadow: 0 4px 14px rgba(217,119,6,0.45);
}
.product-fav {
  position: absolute; top: 10px; left: 10px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 5;
}
.product-fav:hover, .product-fav.active { background: var(--brand); color: #fff; }

.product-body {
  padding: 20px;
  display: flex; flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-cat {
  font-size: 0.74rem;
  color: var(--brand-dark); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.product-name {
  font-size: 1.18rem; font-weight: 800;
  color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--text-2);
}
.product-rating .stars { color: #f59e0b; letter-spacing: 1px; }
.product-price-row {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: auto;
}
.product-price {
  font-size: 1.42rem; font-weight: 900;
  color: var(--brand-dark);
}
.product-price-old {
  font-size: 0.86rem; color: var(--text-3);
  text-decoration: line-through;
}
.product-actions { display: flex; gap: 10px; padding: 0 20px 20px; }
.product-actions .btn { flex: 1; padding: 12px 14px; font-size: 0.95rem; }

.product-card.sold-out .product-image-wrap::after {
  content: 'نفدت الكمية';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: rgba(248, 113, 113, 0.95);
  color: #fff;
  padding: 8px 26px;
  font-weight: 900; font-size: 0.95rem;
  border-radius: 6px;
  z-index: 6;
}

/* Empty / Loading states */
.empty-state, .loading-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.empty-state i, .loading-state i {
  font-size: 3rem;
  color: var(--brand-light);
  margin-bottom: 14px;
}
.empty-state p { font-size: 1.05rem; font-weight: 700; color: var(--text-2); }
.empty-state span { display: block; margin-top: 6px; font-size: 0.88rem; }

.spinner-big {
  width: 50px; height: 50px;
  margin: 0 auto 18px;
  border: 4px solid var(--bg-2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============== WHY US ============== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.why-card {
  padding: 28px 22px;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  transition: all 0.3s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-2); }
.why-icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: var(--grad-pink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: var(--shadow-pink);
}
.why-card h3 { font-size: 1.1rem; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.why-card p { color: var(--text-2); font-size: 0.92rem; line-height: 1.85; }

/* ============== TESTIMONIALS ============== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.testi-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  transition: all 0.3s;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi-card::before {
  content: '\201C';
  position: absolute; top: 6px; right: 18px;
  font-size: 4rem; line-height: 1;
  color: var(--brand-light); font-family: serif;
}
.testi-stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 10px; }
.testi-text { color: var(--text); font-size: 0.94rem; line-height: 1.85; margin-bottom: 18px; }
.testi-meta { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad-pink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
}
.testi-name { font-weight: 900; color: var(--text); font-size: 0.94rem; }
.testi-city { font-size: 0.78rem; color: var(--text-2); }

/* ============== CTA Banner ============== */
.cta-banner-wrap {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.10), rgba(201, 169, 97, 0.08));
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner-wrap::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.18), transparent 70%);
  filter: blur(60px);
}
.cta-banner-wrap > * { position: relative; z-index: 2; }
.cta-banner-wrap h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 900;
  color: var(--text); margin-bottom: 14px;
}
.cta-banner-wrap p { color: var(--text-2); font-size: 1.04rem; max-width: 580px; margin: 0 auto 24px; line-height: 1.85; }

/* ============== FOOTER ============== */
.footer {
  background: linear-gradient(180deg, var(--bg-2), #e6d8b8);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  margin-top: 60px;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  font-size: 1rem; font-weight: 900;
  color: var(--text); margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--text-2);
  padding: 5px 0;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--brand-dark); }
/* ✅ النقر يتم فقط على النص نفسه - مش على كل العرض */
.footer-col a.footer-link-clickable-only {
  pointer-events: none;
  display: block;
  padding: 5px 0;
}
.footer-col a.footer-link-clickable-only .footer-link-text {
  pointer-events: auto;
  display: inline-block;
  cursor: pointer;
  padding: 1px 3px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.footer-col a.footer-link-clickable-only .footer-link-text:hover {
  color: var(--brand-dark);
  background: rgba(201, 169, 97, 0.08);
}
.footer-col p { color: var(--text-2); font-size: 0.92rem; margin-bottom: 8px; line-height: 1.85; }

.footer-brand {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 16px;
}
.footer-logo {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--grad-pink);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem;
  overflow: hidden;
}
.footer-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.footer-brand-name {
  font-size: 1.2rem; font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-tagline { color: var(--text-2); font-size: 0.92rem; line-height: 1.85; margin-bottom: 14px; white-space: pre-line; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 38px; height: 38px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-dark);
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--grad-pink); color: #fff; transform: translateY(-3px); }

.footer-bottom {
  margin-top: 40px;
  padding: 18px 22px;
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--text-2);
}

/* ============== MODALS ============== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 9000;
  padding: 20px;
}
.modal-overlay.active { display: flex; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: 100%; max-width: 540px;
  max-height: 92vh; overflow-y: auto;
  position: relative;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.modal-wide { max-width: 920px; }
.modal-close {
  position: absolute; top: 14px; left: 14px;
  width: 36px; height: 36px;
  background: var(--bg-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 1.1rem;
}
.modal-close:hover { background: var(--brand); color: #fff; }

/* Product detail */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 720px) { .pd-grid { grid-template-columns: 1fr; } }
.pd-img-main {
  aspect-ratio: 1/1;
  background: var(--bg-2);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 10px;
}
.pd-img-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-thumb {
  width: 64px; height: 64px;
  border-radius: 10px; overflow: hidden;
  background: var(--bg-2);
  border: 2px solid transparent;
  cursor: pointer;
}
.pd-thumb.active { border-color: var(--brand); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-title { font-size: 1.5rem; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.pd-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.pd-price { font-size: 1.6rem; font-weight: 900; color: var(--brand-dark); }
.pd-price-old { font-size: 1rem; text-decoration: line-through; color: var(--text-3); }
.pd-desc { color: var(--text-2); font-size: 0.96rem; line-height: 1.85; margin-bottom: 18px; }
.pd-meta-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 18px;
}
.pd-meta-item {
  background: var(--bg-2);
  padding: 10px 12px; border-radius: 10px;
  font-size: 0.86rem;
}
.pd-meta-item strong { display: block; color: var(--text-3); font-size: 0.74rem; margin-bottom: 2px; }
.pd-meta-item span { color: var(--text); font-weight: 700; }

/* Color swatches */
.color-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.color-row-label { font-size: 0.86rem; color: var(--text-2); font-weight: 800; margin-left: 6px; }
.color-swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--border-2);
  transition: 0.2s;
  position: relative;
}
.color-swatch:hover { transform: scale(1.12); }
.color-swatch.selected {
  box-shadow: 0 0 0 3px var(--brand);
  transform: scale(1.18);
}
.color-name-display { font-size: 0.86rem; color: var(--brand-dark); font-weight: 800; margin-right: 8px; }

.qty-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.qty-btn {
  width: 36px; height: 36px;
  background: var(--bg-2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: var(--text);
}
.qty-btn:hover { background: var(--brand); color: #fff; }
.qty-display {
  min-width: 50px; text-align: center;
  font-weight: 900; font-size: 1.05rem;
}

/* ============== CART DRAWER ============== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(4px);
  z-index: 8000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 100%; max-width: 420px; height: 100vh;
  background: #fff;
  z-index: 8500;
  transform: translateX(-105%);
  transition: transform 0.3s cubic-bezier(.7,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-header h3 { font-size: 1.1rem; font-weight: 900; color: var(--text); display: flex; align-items: center; gap: 10px; }
.cart-close {
  width: 36px; height: 36px;
  background: var(--bg-2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cart-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-footer { padding: 18px 22px; border-top: 1px solid var(--border); }
.cart-empty { text-align: center; padding: 40px 0; color: var(--text-3); }
.cart-empty i { font-size: 3.2rem; opacity: 0.35; margin-bottom: 12px; color: var(--brand-light); }
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 70px; height: 70px;
  border-radius: 10px; overflow: hidden;
  background: var(--bg-2);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: 0.92rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.cart-item-price { font-size: 0.94rem; font-weight: 900; color: var(--brand-dark); }
.cart-item-actions { display: flex; flex-direction: column; align-items: end; gap: 4px; }
.cart-item-remove { color: #dc2626; font-size: 0.86rem; }

.cart-totals { display: grid; gap: 6px; font-size: 0.94rem; margin-bottom: 12px; }
.cart-totals-row { display: flex; justify-content: space-between; }
.cart-totals-grand { font-size: 1.1rem; font-weight: 900; color: var(--brand-dark); padding-top: 8px; border-top: 1px dashed var(--border); margin-top: 6px; }

/* Floating cart fab */
.cart-fab {
  position: fixed; bottom: 26px; left: 26px;
  width: 60px; height: 60px;
  background: var(--grad-pink); color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-pink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; z-index: 95;
}
.cart-fab .badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--brand-deep); color: #fff;
  min-width: 22px; height: 22px;
  border-radius: 12px;
  border: 2px solid #fff;
  font-size: 0.74rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.fab-wa {
  position: fixed; bottom: 26px; right: 26px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e); color: #fff;
  border-radius: 50%;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; z-index: 95;
}

/* ============== TOAST ============== */
.toast {
  position: fixed;
  bottom: 100px; right: 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  z-index: 9500;
  transform: translateY(20px);
  opacity: 0; pointer-events: none;
  transition: all 0.25s;
  font-weight: 700;
  max-width: 360px;
}
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast.error { border-left-color: var(--error); color: #b91c1c; }
.toast.info { border-left-color: var(--info); }
.toast i { font-size: 1.2rem; color: var(--success); }
.toast.error i { color: var(--error); }

/* ============== STEPS / CHECKOUT ============== */
.steps {
  display: flex; align-items: center; gap: 0;
  margin: 18px auto 32px;
  max-width: 640px;
}
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; color: var(--text-3); font-weight: 800; font-size: 0.84rem; }
.step-num {
  width: 38px; height: 38px;
  background: var(--bg-2);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
}
.step.active .step-num { background: var(--grad-pink); border-color: var(--brand-dark); color: #fff; }
.step.active { color: var(--brand-dark); }
.step.done .step-num { background: var(--success); border-color: var(--success); color: #fff; }
.step.done { color: var(--success); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 12px 22px; }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  margin-bottom: 16px;
}
.form-card h3 {
  font-size: 1rem; font-weight: 900;
  color: var(--text); margin-bottom: 4px;
  display: flex; align-items: center; gap: 9px;
}
.form-card h3 i { color: var(--brand-dark); }
.form-card-sub { color: var(--text-2); font-size: 0.86rem; margin-bottom: 14px; }

.form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.form-label { display: block; font-weight: 800; color: var(--text); font-size: 0.88rem; margin-bottom: 6px; }
.form-label .req { color: var(--error); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font-size: 0.94rem;
  transition: all 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}
.form-textarea { min-height: 90px; resize: vertical; }

.pay-card {
  display: block;
  background: var(--bg-2);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.pay-card:hover { border-color: var(--brand); }
.pay-card.selected { border-color: var(--brand); background: rgba(201, 169, 97, 0.06); }
.pay-head {
  display: flex; align-items: center; gap: 12px;
}
.pay-head input[type="radio"] { accent-color: var(--brand); }
.pay-title { flex: 1; }
.pay-title .t { font-weight: 900; color: var(--text); display: flex; align-items: center; gap: 8px; font-size: 0.96rem; }
.pay-title .s { color: var(--text-2); font-size: 0.84rem; margin-top: 3px; }
.pay-amt {
  background: var(--grad-pink); color: #fff;
  padding: 4px 10px; border-radius: 99px;
  font-size: 0.74rem; font-weight: 800;
}

/* ============== RESPONSIVE FIXES ============== */
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .hero { padding: 36px 0 56px; }
  .footer-bottom { flex-direction: column; }
}

/* ============== REVEAL ANIMATIONS ============== */
.reveal { opacity: 0; transform: translateY(18px); transition: all 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
/* ✅ حل مشكلة اختفاء العناصر بعد التحميل: لو الـ IntersectionObserver فشل، العناصر تظهر بعد 2 ثانية لوحدها */
body.reveals-ready .reveal:not(.visible) { opacity: 1; transform: none; transition: none; }

/* 🔒 متجر مغلق: عطّل الأزررة التفاعلية */
body.shop-closed .cart-fab,
body.shop-closed .product-actions .btn-primary,
body.shop-closed .product-card { pointer-events: none; }
body.shop-closed .product-card { opacity: 0.85; filter: saturate(0.85); }

/* ============== EXTRA: PAY OPTIONS / CHANNELS ============== */
.pay-options { display: flex; flex-direction: column; gap: 10px; }
.pay-channel {
  display: none;
  margin-top: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  border-top: 1px dashed var(--border);
}
.pay-card.selected .pay-channel { display: block; }
.pay-channel-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pay-channel-opt {
  flex: 1; min-width: 140px; padding: 10px;
  border: 1.5px solid var(--border-2); border-radius: 10px;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; background: #fff; font-weight: 700;
  font-size: 0.88rem;
}
.pay-channel-opt.selected {
  border-color: var(--brand); background: rgba(201, 169, 97, 0.08);
}
.pay-channel-opt input[type="radio"] { accent-color: var(--brand); }

.pay-numbers-box { display: none; padding: 10px; background: rgba(201, 169, 97, 0.04); border-radius: 10px; margin-top: 8px; }
.pay-numbers-box.active { display: block; }
.pay-numbers-title { font-weight: 800; color: var(--brand-dark); margin-bottom: 6px; font-size: 0.88rem; }
.pay-instructions {
  margin-top: 8px; padding: 8px 12px;
  background: rgba(96, 165, 250, 0.06);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: #1e40af; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600;
}


/* ===== RODY — Elegant texture overlay ===== */
body {
  background:
    var(--grad-bg),
    repeating-linear-gradient(90deg, rgba(92,58,30,0.025) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(0deg,  rgba(92,58,30,0.018) 0 1px, transparent 1px 11px);
}

/* Card subtle rose inner sheen */
.card, .product-card, .hero-card, .why-card, .testimonial-card, .footer, .nav,
.cart-drawer, .checkout-section, .form-card {
  background-image:
    var(--grad-card),
    repeating-linear-gradient(90deg, rgba(92,58,30,0.025) 0 2px, transparent 2px 8px);
  background-blend-mode: normal, multiply;
}

/* Buttons: refined elegant look */
.btn-primary {
  background: var(--grad-pink) !important;
  color: #fff !important;
  border: 1px solid var(--brand-dark) !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
}
.btn-primary:hover {
  background: linear-gradient(135deg,#c9a961,#262626,#0d0d0d) !important;
}

/* رابط مباشر لكل منتج — يسهل المشاركة والوصول من خارج المتجر */
.product-direct-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 20px 18px;
  padding: 9px 12px;
  border: 1px solid rgba(139, 26, 58, 0.22);
  border-radius: 10px;
  color: var(--brand-dark, #8b1a3a);
  background: rgba(139, 26, 58, 0.045);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.product-direct-link:hover,
.product-direct-link:focus-visible {
  color: #fff;
  background: var(--brand-dark, #8b1a3a);
  transform: translateY(-1px);
  outline: none;
}
@media (max-width: 540px) {
  .product-direct-link { margin: 0 10px 12px; padding: 8px 6px; font-size: 0.72rem; }
}
.toast.success { background: linear-gradient(135deg, #10b981, #047857); }
.toast.warning { background: linear-gradient(135deg, #f59e0b, #b45309); }

/* ============== Customer service information modal ============== */
.customer-service-modal {
  width: min(560px, calc(100vw - 28px));
  max-height: min(650px, calc(100vh - 34px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(139, 26, 58, .12);
  box-shadow: 0 24px 70px rgba(58, 10, 23, .22);
}
.customer-service-modal-header {
  position: relative;
  padding: 24px 24px 19px;
  color: #fff;
  background: linear-gradient(135deg, #8b1a3a, #5c1223 72%, #3a0a17);
  overflow: hidden;
}
.customer-service-modal-header::after {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  left: -64px;
  top: -94px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
}
.customer-service-modal-header h3 {
  position: relative;
  z-index: 1;
  margin: 0 42px 4px 0;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 900;
}
.customer-service-modal-header p {
  position: relative;
  z-index: 1;
  margin: 0 42px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: .86rem;
  line-height: 1.7;
}
.customer-service-modal-header .modal-close {
  z-index: 2;
  top: 18px;
  left: 18px;
  right: auto;
  color: #fff;
  background: rgba(255, 255, 255, .13);
}
.customer-service-modal-header .modal-close:hover { background: rgba(255, 255, 255, .25); }
.customer-service-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 12px 14px 0;
  background: #fffaf6;
  border-bottom: 1px solid rgba(139, 26, 58, .09);
}
.customer-service-tab {
  min-height: 45px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font: 800 .79rem Cairo, Tajawal, sans-serif;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.customer-service-tab i { display: block; margin-bottom: 3px; color: var(--brand); font-size: .9rem; }
.customer-service-tab:hover,
.customer-service-tab.active { color: var(--brand-dark); background: rgba(201, 165, 106, .10); border-bottom-color: var(--brand); }
.customer-service-content {
  max-height: 410px;
  overflow-y: auto;
  padding: 18px 20px 22px;
  background: #fff;
}
.customer-service-panel { display: none; animation: customerServicePanelIn .18s ease-out both; }
.customer-service-panel.active { display: block; }
.customer-service-panel h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 900;
}
.customer-service-panel h4 i { color: var(--brand); }
.customer-service-body {
  white-space: pre-line;
  color: var(--text-2);
  font-size: .91rem;
  line-height: 2;
}
.customer-service-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 15px;
  padding: 11px 12px;
  border: 1px solid rgba(201, 165, 106, .22);
  border-radius: 12px;
  background: #fffaf2;
  color: var(--text-2);
  font-size: .81rem;
  line-height: 1.7;
}
.customer-service-note i { margin-top: 4px; color: var(--brand-dark); }
.customer-service-faq-list { display: grid; gap: 9px; }
.customer-service-faq-item {
  border: 1px solid rgba(139, 26, 58, .10);
  border-radius: 12px;
  background: #fffaf6;
  overflow: hidden;
}
.customer-service-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  font-size: .87rem;
  font-weight: 800;
}
.customer-service-faq-item summary::-webkit-details-marker { display: none; }
.customer-service-faq-item summary::after { content: '\f078'; color: var(--brand); font: 700 .72rem 'Font Awesome 6 Free'; transition: transform .18s ease; }
.customer-service-faq-item[open] summary::after { transform: rotate(180deg); }
.customer-service-faq-answer {
  padding: 0 13px 13px;
  color: var(--text-2);
  font-size: .84rem;
  line-height: 1.8;
  white-space: pre-line;
}
@keyframes customerServicePanelIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 520px) {
  .customer-service-modal-header { padding: 21px 18px 17px; }
  .customer-service-modal-header h3 { font-size: 1.1rem; }
  .customer-service-tabs { padding-inline: 9px; gap: 4px; }
  .customer-service-tab { font-size: .69rem; }
  .customer-service-content { padding: 16px 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .customer-service-panel { animation: none; }
}
