/* ==========================================================
   SARAB — Luxe design system (index)
   Brand palette is untouched: black · white · Sarab red (+ existing gold hairline)
   Mobile-first, RTL.
   ========================================================== */
:root {
  --red: #e30613;
  --red-deep: #8e0000;
  --gold: #c5a059;
  --gold-soft: rgba(197, 160, 89, 0.35);
  --ink: #050505;
  --ink-2: #0b0b0b;
  --ink-3: #121212;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f0ea;
  --muted: #9a958c;
  --cream: #f4efe6;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --header-h: 64px;
  --bottom-h: 64px;
  --radius: 18px;
  --font-ar: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Reem Kufi", "Tajawal", sans-serif;
  --font-en: "Cormorant Garamond", Georgia, serif;
}

*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-ar);
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
body.lock { overflow: hidden; }

/* grain + ambient glow behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 85% 0%, rgba(227, 6, 19, 0.12), transparent 70%),
    radial-gradient(50% 35% at 0% 60%, rgba(197, 160, 89, 0.06), transparent 70%),
    var(--ink);
}

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ---------- announcement ---------- */
.announce {
  background: var(--red-deep);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  text-align: center;
  padding: 7px 14px;
  position: relative; z-index: 1002;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled { background: rgba(5, 5, 5, 0.92); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.nav {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.nav-start { display: flex; align-items: center; gap: 4px; justify-self: start; }
.nav-end { display: flex; align-items: center; gap: 2px; justify-self: end; }
.brand { justify-self: center; display: flex; align-items: center; }
.brand img { height: 44px; width: auto; border-radius: 6px; }
.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 1.1rem; color: var(--text);
  border-radius: 50%;
  transition: background 0.3s, color 0.3s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.07); color: var(--red); }
.badge {
  position: absolute; top: 4px; left: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--red); color: #fff;
  font-size: 0.65rem; font-weight: 700; line-height: 18px; text-align: center;
  border-radius: 9px; border: 2px solid var(--ink);
}
.nav-links { display: none; }
#auth-area { display: none; }
#auth-area a { font-size: 0.85rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; color: var(--text) !important; }

/* search drawer */
.search-bar {
  position: absolute; inset-inline: 0; top: 100%;
  background: rgba(8, 8, 8, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: 0.35s var(--ease);
}
.search-bar.open { transform: none; opacity: 1; visibility: visible; }
.search-bar .field {
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 50px;
  padding: 0 18px;
}
.search-bar input {
  flex: 1; height: 48px; background: transparent; border: 0; outline: 0;
  color: var(--text); font: inherit; font-size: 1rem;
}
.search-bar i { color: var(--muted); }

/* ---------- sidebar ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 1950;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: 0.4s var(--ease);
}
.overlay.active { opacity: 1; visibility: visible; }
.sidebar {
  position: fixed; top: 0; bottom: 0; right: 0;
  width: min(86vw, 340px);
  background: linear-gradient(180deg, #0c0c0c, #050505);
  border-left: 1px solid var(--gold-soft);
  z-index: 2050;
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.5s var(--ease);
}
.sidebar.active { transform: none; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.sidebar-header img { height: 40px; border-radius: 6px; }
.sidebar-header button { font-size: 1.3rem; color: var(--red); width: 40px; height: 40px; }
.sidebar-content { flex: 1; overflow-y: auto; padding: 22px; }
.sidebar-content h3 { font-size: 0.75rem; letter-spacing: 3px; color: var(--muted); margin-bottom: 14px; font-weight: 500; }
.side-links li a {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 4px; font-size: 1.05rem; font-family: var(--font-display);
  border-bottom: 1px solid var(--line);
  transition: 0.3s var(--ease);
}
.side-links li a i { width: 22px; color: var(--red); text-align: center; }
.side-links li a:hover { padding-inline-start: 12px; color: var(--gold); }
.sidebar-support { margin-top: 26px; padding: 20px; border: 1px solid var(--gold-soft); border-radius: var(--radius); background: rgba(197, 160, 89, 0.04); }
.sidebar-support h4 { font-family: var(--font-display); color: var(--gold); margin-bottom: 6px; }
.sidebar-support p { font-size: 0.85rem; color: var(--muted); }
.support-actions { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.support-actions a { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.sidebar-footer { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: none; }
.sidebar-footer button { width: 100%; padding: 13px; border-radius: 12px; color: #ff6b6b; border: 1px solid rgba(227, 6, 19, 0.3); background: rgba(227, 6, 19, 0.08); font-weight: 700; display: flex; justify-content: center; gap: 10px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 30px;
  font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.3px;
  border-radius: 50px; transition: 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(227, 6, 19, 0.35); }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(227, 6, 19, 0.5); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.25); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-wa { background: #25d366; color: #04210f; font-weight: 700; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h) - 34px - var(--bottom-h));
  display: flex; align-items: center;
  padding: 20px 0 48px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -20%; z-index: -1;
  background:
    radial-gradient(40% 40% at 70% 40%, rgba(227, 6, 19, 0.22), transparent 70%),
    radial-gradient(35% 35% at 20% 80%, rgba(197, 160, 89, 0.12), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(4%, -3%, 0) scale(1.08); } }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-style: italic; font-size: 1.05rem;
  color: var(--gold); letter-spacing: 3px; text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: 0.6; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 4.8rem);
  line-height: 1.12; font-weight: 700; margin: 14px 0 16px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { color: #cfc9be; font-size: clamp(1rem, 3.6vw, 1.2rem); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }
.hero-stats span { font-size: 0.8rem; color: var(--muted); }

.hero-visual { position: relative; height: 250px; display: grid; place-items: center; order: -1; margin-top: 4px; }
.hero-copy { text-align: center; }
.hero-copy .lead { margin-inline: auto; }
.hero-cta { justify-content: center; }
.arch {
  position: absolute; width: 46%; aspect-ratio: 3 / 4.4;
  border-radius: 999px 999px 18px 18px;
  background: var(--cream);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--gold-soft);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; mix-blend-mode: multiply; transform: scale(1.12); }
.arch.a1 { right: 27%; z-index: 3; transform: translateY(-4%); animation: float 7s ease-in-out infinite; }
.arch.a2 { right: -2%; z-index: 2; width: 38%; transform: translateY(8%) rotate(5deg); animation: float 8s ease-in-out -2s infinite; filter: saturate(1.05); }
.arch.a3 { left: -2%; z-index: 1; width: 38%; transform: translateY(8%) rotate(-5deg); animation: float 9s ease-in-out -4s infinite; }
@keyframes float { 50% { translate: 0 -12px; } }
.hero-ring {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed var(--gold-soft); animation: spin 60s linear infinite; z-index: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-hint { display: none; }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden; padding: 16px 0; direction: ltr;
}
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: 1.15rem; color: #d9d3c7; white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.marquee span::after { content: "◆"; color: var(--red); font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 64px 0 24px; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head .kicker { font-family: var(--font-en); font-style: italic; color: var(--gold); letter-spacing: 4px; font-size: 0.95rem; text-transform: uppercase; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 6vw, 2.8rem); font-weight: 700; margin-top: 4px; }
.section-head h2 span { color: inherit; }
.section-head h2 .em { color: var(--red); }
.section-head .rule { width: 64px; height: 2px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* category chips */
.chips {
  position: sticky; top: var(--header-h); z-index: 50;
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 20px; margin: 0 -20px 26px;
  background: linear-gradient(180deg, var(--ink) 60%, transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 42px; padding: 0 22px; border-radius: 50px;
  border: 1px solid var(--line); background: var(--ink-3); color: #cfc9be;
  font-size: 0.92rem; transition: 0.3s var(--ease);
}
.chip.active { background: var(--text); color: #000; border-color: var(--text); font-weight: 700; }
.chip:not(.active):hover { border-color: var(--gold); color: var(--gold); }

/* ---------- product grid / cards ---------- */
.perfumes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
  animation: rise 0.7s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.product-card:hover { transform: translateY(-6px); border-color: var(--gold-soft); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55); }
.product-image {
  position: relative; aspect-ratio: 1 / 1.12; cursor: pointer; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #fff, var(--cream) 80%);
}
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform 0.8s var(--ease); mix-blend-mode: multiply; }
.product-card:hover .product-image img { transform: scale(1.07); }
.discount-badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: var(--red); color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 4px 11px; border-radius: 50px; letter-spacing: 0.3px;
}
.gender-icon-container {
  position: absolute; bottom: 10px; left: 10px; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5, 5, 5, 0.85); font-size: 0.8rem;
}
.icon-men { color: #5aa9ff; } .icon-women { color: #ff7eb6; } .icon-unisex { color: var(--gold); }
.product-info { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.product-info h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.4; cursor: pointer; min-height: 2.8em; }
.price-area { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; flex-wrap: wrap; }
.current-price { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); }
.old-price { font-size: 0.82rem; color: var(--muted); text-decoration: line-through; }
.stock-info { font-size: 0.74rem; color: var(--muted); }
.stock-info.in::before, .stock-info.out::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-inline-end: 6px; background: #3ddc84; }
.stock-info.out::before { background: var(--red); }
.card-btns { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.add-to-cart-btn {
  flex: 1; height: 44px; border-radius: 12px;
  background: var(--text); color: #000; font-weight: 700; font-size: 0.88rem;
  transition: 0.35s var(--ease);
}
.add-to-cart-btn:hover:not(:disabled) { background: var(--red); color: #fff; }
.add-to-cart-btn:active { transform: scale(0.97); }
.add-to-cart-btn:disabled { background: #222; color: #666; cursor: not-allowed; }
.view-details-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); transition: 0.3s; }
.view-details-btn:hover { border-color: var(--gold); color: var(--gold); }
.empty-msg, .no-offers-msg { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* skeleton */
.skeleton { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1 / 1.7; position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%); animation: shimmer 1.4s infinite; transform: translateX(-100%); }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- offers band ---------- */
.offers {
  margin-top: 56px; padding: 56px 0 36px; position: relative;
  background: linear-gradient(180deg, transparent, rgba(142, 0, 0, 0.18) 20%, rgba(142, 0, 0, 0.18) 80%, transparent);
}

/* ---------- story ---------- */
.story { padding: 72px 0 24px; }
.story-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--gold-soft); border-radius: 28px;
  padding: 44px 26px; text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(227, 6, 19, 0.16), transparent 70%),
    var(--ink-2);
}
.story-card img { width: 108px; height: 108px; margin: 0 auto 22px; border-radius: 50%; box-shadow: 0 0 0 1px var(--gold-soft), 0 0 0 8px rgba(197, 160, 89, 0.08); }
.story-card h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 6vw, 2.5rem); margin-bottom: 14px; }
.story-card p { color: #c9c3b8; max-width: 620px; margin: 0 auto; font-size: 1.02rem; }

/* ---------- values ---------- */
.values { display: grid; gap: 14px; padding-top: 28px; }
.value { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); transition: 0.4s var(--ease); }
.value:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
.value i { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(227, 6, 19, 0.12); color: var(--red); font-size: 1.15rem; }
.value h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 2px; }
.value p { font-size: 0.9rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: 56px 0 72px; }
.cta-box { text-align: center; padding: 48px 24px; border-radius: 28px; background: linear-gradient(135deg, var(--red-deep), #3a0000); border: 1px solid rgba(255, 255, 255, 0.1); position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.18); left: -120px; bottom: -150px; }
.cta-box h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2.4rem); margin-bottom: 8px; }
.cta-box p { color: #f0d6d6; margin-bottom: 24px; }

/* ---------- footer ---------- */
.main-footer { background: #000; border-top: 1px solid var(--gold-soft); padding: 54px 0 24px; }
.footer-grid { display: grid; gap: 34px; }
.footer-brand img { height: 60px; border-radius: 6px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 300px; font-size: 0.95rem; }
.main-footer h4 { font-family: var(--font-display); color: var(--gold); font-size: 1.05rem; margin-bottom: 16px; }
.main-footer li { margin-bottom: 11px; }
.main-footer li a { color: #bdb7ac; transition: 0.3s; }
.main-footer li a:hover { color: var(--red); padding-inline-start: 6px; }
.social { display: flex; gap: 12px; margin-bottom: 18px; }
.social a { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; transition: 0.4s var(--ease); }
.social a:hover { background: var(--red); border-color: var(--red); transform: translateY(-4px); }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; color: #6f6a62; font-size: 0.82rem; display: grid; gap: 6px; }
.footer-bottom b { color: var(--red); }
.footer-bottom a { color: var(--red); border-bottom: 1px solid var(--red-deep); }

/* ---------- mobile bottom nav ---------- */
.bottom-nav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 990;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(8, 8, 8, 0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--gold-soft);
}
.bottom-nav a, .bottom-nav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 0.68rem; color: var(--muted); position: relative; transition: color 0.3s;
}
.bottom-nav i { font-size: 1.2rem; }
.bottom-nav a.active, .bottom-nav a:hover, .bottom-nav button:hover { color: var(--text); }
.bottom-nav a.active i { color: var(--red); }
.bottom-nav .badge { top: 6px; left: calc(50% - 22px); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 3000; inset-inline: 16px; bottom: calc(var(--bottom-h) + 18px + env(safe-area-inset-bottom));
  max-width: 420px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 16px;
  background: rgba(20, 20, 20, 0.96); border: 1px solid var(--gold-soft); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(30px); opacity: 0; pointer-events: none; transition: 0.5s var(--ease);
}
.toast.show { transform: none; opacity: 1; }
.toast i { color: #3ddc84; font-size: 1.2rem; }

/* ---------- modals & sheets ---------- */
.panel-overlay { position: fixed; inset: 0; z-index: 1900; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(5px); opacity: 0; visibility: hidden; transition: 0.4s var(--ease); display: block !important; }
.panel-overlay.active { opacity: 1; visibility: visible; }
.sarab-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; opacity: 0; transition: 0.4s var(--ease); pointer-events: none; }
.sarab-modal.active { visibility: visible; opacity: 1; pointer-events: auto; }
.sarab-modal::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(5px); }
.modal-content {
  position: relative; width: 100%; max-width: 920px; max-height: 92svh; overflow-y: auto;
  background: var(--ink-2); border: 1px solid var(--gold-soft); border-bottom: 0;
  border-radius: 28px 28px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform 0.55s var(--ease);
}
.sarab-modal.active .modal-content { transform: none; }
.modal-content::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: #333; margin: -6px auto 16px; }
.close-modal { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.07); font-size: 1.5rem; cursor: pointer; z-index: 3; }
.pd { display: grid; gap: 22px; }
.pd-media { position: relative; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff, var(--cream) 80%); aspect-ratio: 1 / 0.8; }
.pd-media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
#modalGenderIcon { position: absolute; bottom: 12px; left: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(5, 5, 5, 0.85); }
.pd-info h2 { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.3; }
.pd-info p.desc { color: #bdb7ac; margin: 10px 0 16px; }
.pd-meta { display: flex; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-block: 1px solid var(--line); color: var(--gold); font-size: 0.92rem; }
.pd-price { font-family: var(--font-display); font-size: 2rem; color: var(--gold); margin: 16px 0; }
.pd-price small { font-size: 0.9rem; color: var(--muted); }
.pd-info .add-to-cart-btn { width: 100%; height: 54px; font-size: 1rem; background: var(--red); color: #fff; border-radius: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; flex: none; }

/* profile panel */
.profile-slide-panel { position: fixed; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); background: #0a0a0a; border-right: 1px solid var(--gold-soft); z-index: 2100; transform: translateX(-105%); transition: transform 0.5s var(--ease); }
.profile-slide-panel.active { transform: none; }
.panel-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.panel-header h3 { font-family: var(--font-display); }
.close-panel { font-size: 2rem; cursor: pointer; line-height: 1; }
.edit-icon { color: var(--red); cursor: pointer; }
.panel-content { padding: 20px; }
.info-group { margin-bottom: 18px; }
.info-group label { display: block; color: var(--muted); font-size: 0.78rem; margin-bottom: 2px; }
.info-group input { width: 100%; padding: 8px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: inherit; outline: 0; }
#saveProfileBtn { display: none; width: 100%; padding: 13px; background: var(--red); color: #fff; border-radius: 12px; font-weight: 700; margin-top: 8px; }

/* tracking */
#order-tracking-section { display: none; padding: 40px 0 70px; min-height: 70vh; }
.orders-grid { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.order-rect { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; background: var(--ink-3); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: 0.3s; }
.order-rect:hover { border-color: var(--gold-soft); transform: translateX(-4px); }
.rect-info { display: flex; flex-direction: column; }
.rect-id { font-family: var(--font-display); }
.rect-status-badge { font-size: 0.7rem; padding: 4px 12px; border-radius: 50px; background: #222; color: #ccc; text-transform: uppercase; }
.rect-status-badge.pending { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.rect-status-badge.processing { background: rgba(33, 150, 243, 0.15); color: #64b5f6; }
.rect-status-badge.shipped { background: rgba(156, 39, 176, 0.15); color: #ce93d8; }
.rect-status-badge.delivered { background: rgba(61, 220, 132, 0.15); color: #3ddc84; }
.back-home { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); margin-bottom: 20px; font-size: 0.95rem; }
.receipt-header { text-align: center; margin-bottom: 18px; }
.receipt-logo { height: 52px; margin: 0 auto 8px; border-radius: 6px; }
.ref-number { color: var(--gold); font-family: var(--font-en); letter-spacing: 2px; }
.modal-grid { display: grid; gap: 14px; }
.stepper { display: flex; justify-content: space-between; position: relative; padding: 6px 0; }
.stepper::before { content: ""; position: absolute; top: 28px; right: 8%; left: 8%; height: 2px; background: #222; }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; font-size: 0.72rem; color: var(--muted); }
.step .circle { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #161616; border: 2px solid #2a2a2a; transition: 0.4s; }
.step.active { color: var(--text); }
.step.active .circle { background: var(--red); border-color: var(--red); box-shadow: 0 0 20px rgba(227, 6, 19, 0.5); }
.info-card, .receipt-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-3); }
.info-card h3, .receipt-card h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 10px; color: var(--gold); }
.info-card p { font-size: 0.9rem; color: #cfc9be; }
.receipt-row { display: flex; justify-content: space-between; padding: 6px 0; }
.receipt-row.total { font-weight: 700; color: var(--gold); font-size: 1.1rem; }
.receipt-card hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.modal-actions { display: grid; gap: 10px; margin-top: 16px; }
.btn-print, .btn-support { height: 50px; border-radius: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; }
.btn-print { border: 1px solid var(--line); }
.btn-support { background: #25d366; color: #04210f; }

.no-search-results { display: none; text-align: center; padding: 50px 20px; grid-column: 1 / -1; }
.no-search-results i { font-size: 2.4rem; color: var(--gold); margin-bottom: 12px; }
.no-search-results h3 { font-family: var(--font-display); margin-bottom: 6px; }
.no-search-results p { color: var(--muted); margin-bottom: 18px; }
.no-search-results .btn-support { display: inline-flex; padding: 0 26px; }

/* ==========================================================
   Larger screens
   ========================================================== */
@media (min-width: 700px) {
  .wrap { padding: 0 32px; }
  .perfumes-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .product-info h3 { font-size: 1.05rem; }
  .sarab-modal { align-items: center; }
  .modal-content { border-radius: 28px; border-bottom: 1px solid var(--gold-soft); padding: 30px; transform: translateY(40px) scale(0.97); }
  .sarab-modal.active .modal-content { transform: none; }
  .modal-content::before { display: none; }
  .pd { grid-template-columns: 1fr 1fr; align-items: center; }
  .pd-media { aspect-ratio: 1 / 1; }
  .modal-grid { grid-template-columns: 1fr 1fr; }
  .modal-grid .status-tracker-box { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  :root { --header-h: 78px; }
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .brand img { height: 54px; }
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav-links { display: flex; gap: 30px; margin-inline-start: 24px; }
  .nav-links a { font-family: var(--font-display); font-size: 0.98rem; color: #d9d3c7; position: relative; padding: 6px 0; }
  .nav-links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--red); transform: scaleX(0); transition: 0.4s var(--ease); }
  .nav-links a:hover { color: #fff; }
  .nav-links a:hover::after { transform: scaleX(1); }
  #auth-area { display: flex; }
  .hero { min-height: calc(100vh - var(--header-h) - 34px); }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 60px; }
  .hero-visual { order: 0; }
  .hero-copy { text-align: start; }
  .hero-copy .lead { margin-inline: 0; }
  .hero-cta { justify-content: flex-start; }
  .hero-visual { height: 560px; }
  .scroll-hint { display: block; position: absolute; bottom: 22px; left: 50%; translate: -50% 0; color: var(--muted); font-size: 0.75rem; letter-spacing: 3px; animation: float 2.4s ease-in-out infinite; }
  .perfumes-grid { grid-template-columns: repeat(4, 1fr); }
  .chips { justify-content: center; margin-inline: 0; }
  .toast { bottom: 28px; }
  .section { padding-top: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Announcement bar (controlled from admin)
   ========================================================== */
.announce { position: relative; z-index: 1002; display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 6px 44px; font-size: 0.82rem; color: #fff; background: var(--red-deep); overflow: hidden; }
.announce.gold { background: linear-gradient(90deg, #8a6a2c, var(--gold), #8a6a2c); color: #1a1204; }
.announce.black { background: #000; color: var(--text); border-bottom: 1px solid var(--gold-soft); }
.announce[hidden] { display: none; }
.announce-in { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; min-width: 0; max-width: 100%; line-height: 1.5; }
.ann-track { min-width: 0; }
.announce.scroll .ann-track { display: block; width: min(80vw, 760px); overflow: hidden; white-space: nowrap; }
.announce.scroll #annText { display: inline-block; padding-inline-start: 100%; animation: annScroll 18s linear infinite; }
@keyframes annScroll { to { transform: translateX(100%); } }
.announce a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ann-timer { font-family: ui-monospace, monospace; font-size: 0.78rem; padding: 2px 10px; border-radius: 50px; background: rgba(0, 0, 0, 0.28); white-space: nowrap; direction: ltr; }
.ann-x { position: absolute; inset-inline-end: 6px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; display: grid; place-items: center; opacity: 0.8; }
.ann-x:hover { opacity: 1; }

/* ==========================================================
   Category tiles (Ibraq / Qurashi style)
   ========================================================== */
.section-head h2 .em { color: var(--red); }
.cats { padding-top: 56px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-tile {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #fff, var(--cream) 85%);
  border: 1px solid var(--gold-soft); isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.6s;
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; mix-blend-mode: multiply; transition: transform 1s var(--ease); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 5, 0.92)); z-index: 1; }
.cat-tile span { position: absolute; z-index: 2; inset-inline: 0; bottom: 16px; text-align: center; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.5px; }
.cat-tile span::after { content: ""; display: block; width: 28px; height: 2px; margin: 6px auto 0; background: var(--red); transition: width 0.5s var(--ease); }
.cat-tile:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6); }
.cat-tile:hover img { transform: scale(1.08); }
.cat-tile:hover span::after { width: 64px; }

/* ==========================================================
   Horizontal rails (sections created in admin)
   ========================================================== */
.rail-section { padding: 52px 0 8px; }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rail-head .kicker { font-family: var(--font-en); font-style: italic; color: var(--gold); letter-spacing: 3px; font-size: 0.9rem; text-transform: uppercase; }
.rail-head h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 5vw, 2.3rem); line-height: 1.2; }
.rail-head h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 10px; background: var(--red); }
.rail-nav { display: none; gap: 8px; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink-3); transition: 0.3s; }
.rail-nav button:hover { border-color: var(--gold); color: var(--gold); }
.rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -20px; padding: 4px 20px 18px; scroll-padding-inline: 20px;
}
.rail::-webkit-scrollbar { display: none; }
.rail .product-card { flex: 0 0 62%; max-width: 270px; scroll-snap-align: start; }
@media (min-width: 700px) { .rail { margin: 0 -32px; padding-inline: 32px; } .rail .product-card { flex-basis: 30%; } .rail-nav { display: flex; } }
@media (min-width: 1024px) { .rail { margin: 0; padding-inline: 0; } .rail .product-card { flex-basis: calc((100% - 56px) / 4); max-width: none; } .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
