/* =====================================================================
   ليلة الاحتفال — نظام التصميم
   متجر مستلزمات الحفلات · فخامة ليلية × دفء عاجي × ذهبي شمبانيا
   RTL Arabic-first design system
   ===================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* لوحة الألوان — قابلة للتخصيص من لوحة الأدمن */
  --ink: #1c1128;          /* بنفسجي ليلي عميق */
  --ink-2: #2a1b3d;
  --ink-3: #3a2a52;
  --ink-glass: rgba(28, 17, 40, .82);
  --bg: #fbf7ef;           /* عاجي دافئ */
  --bg-alt: #f4ecdd;       /* كريمي */
  --card: #ffffff;
  --text: #241a2e;
  --text-2: #6f6279;
  --text-inv: #f7f2e9;
  --text-inv-2: #cabfd8;
  --gold: #c9a45c;         /* ذهبي شمبانيا */
  --gold-2: #e7c983;
  --gold-3: #9a7a3a;
  --gold-grad: linear-gradient(120deg, #b98f3e 0%, #ecd28e 45%, #c9a45c 100%);
  --blush: #f2b8c6;
  --blush-deep: #d76a8b;
  --aqua: #9ad7ce;
  --line: #e8dfce;
  --line-dark: rgba(231, 201, 131, .18);
  --danger: #c14b3f;
  --success: #4c9a6d;

  /* الخطوط */
  --font-display: 'El Messiri', 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;

  /* الأبعاد */
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --container: 1240px;
  --header-h: 76px;

  /* الظلال */
  --shadow-soft: 0 18px 50px -18px rgba(28, 17, 40, .22);
  --shadow-lift: 0 28px 60px -20px rgba(28, 17, 40, .32);
  --shadow-gold: 0 12px 34px -10px rgba(201, 164, 92, .45);

  /* الحركة */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =====================================================================
   الأزرار
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 30px;
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  transition: transform .25s var(--ease-spring), box-shadow .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
  touch-action: manipulation;
  text-align: center;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--gold {
  background: var(--gold-grad); color: var(--ink);
  box-shadow: var(--shadow-gold);
  background-size: 200% 100%;
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -12px rgba(201,164,92,.6); background-position: 90% 0; }
.btn--gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(150%); transition: transform .8s ease;
}
.btn--gold:hover::after { transform: translateX(-150%); }

.btn--ink { background: var(--ink); color: var(--text-inv); }
.btn--ink:hover { background: var(--ink-2); transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.btn--ghost { border: 1.6px solid var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-3); transform: translateY(-2px); }

.btn--ghost-light { border: 1.6px solid rgba(247,242,233,.4); color: var(--text-inv); background: rgba(247,242,233,.06); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { border-color: var(--gold-2); color: var(--gold-2); transform: translateY(-2px); }

.btn--wa { background: #1eb955; color: #fff; }
.btn--wa:hover { background: #169c46; transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(30,185,85,.5); }

.btn--sm { min-height: 42px; padding: 8px 20px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* =====================================================================
   شريط الإعلان العلوي
   ===================================================================== */
.announce {
  background: var(--gold-grad); color: var(--ink);
  font-weight: 600; font-size: .92rem;
  overflow: hidden; white-space: nowrap; position: relative; z-index: 60;
}
.announce__track { display: inline-flex; gap: 48px; padding: 9px 0; animation: marquee 28s linear infinite; will-change: transform; }
.announce__track span { display: inline-flex; align-items: center; gap: 10px; }
.announce__track svg { width: 15px; height: 15px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* =====================================================================
   الهيدر
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink-glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-inv);
}
.site-header__in {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__logo { height: 40px; width: auto; }
.brand__logo--img { filter: brightness(0) invert(1); } /* الشعار الأصلي داكن — نعكسه للهيدر الليلي */
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--text-inv); letter-spacing: .5px; }
.brand__name em { color: var(--gold-2); font-style: normal; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 8px; flex: 1; }
.main-nav a {
  position: relative; padding: 10px 14px; font-weight: 500; font-size: .98rem;
  color: var(--text-inv-2); border-radius: 10px; transition: color .25s ease;
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px;
  background: var(--gold-grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform .3s var(--ease-out);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--gold-2); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; color: var(--text-inv);
  transition: background .25s ease, color .25s ease, transform .2s var(--ease-spring);
}
.icon-btn:hover { background: rgba(231,201,131,.14); color: var(--gold-2); transform: translateY(-2px); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn__badge {
  position: absolute; top: 4px; inset-inline-start: 26px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blush-deep); color: #fff;
  font-size: .72rem; font-weight: 700; border-radius: 999px;
  transform: scale(0); transition: transform .3s var(--ease-spring);
}
.icon-btn__badge.is-on { transform: scale(1); }

.nav-toggle { display: none; }

/* ---------- قائمة الجوال (مودرن) ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: 80; display: none; }
.mobile-nav.is-open { display: block; }
.mobile-nav__scrim {
  position: absolute; inset: 0; background: rgba(15,8,24,.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s ease;
}
.mobile-nav.is-open .mobile-nav__scrim { opacity: 1; }
.mobile-nav__panel {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0;
  width: min(360px, 90vw);
  background:
    radial-gradient(420px 300px at 100% 0%, rgba(201,164,92,.16), transparent 60%),
    var(--ink);
  color: var(--text-inv);
  display: flex; flex-direction: column;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .4s var(--ease-out);
  box-shadow: -24px 0 60px rgba(15,8,24,.5);
  border-inline-start: 1px solid var(--line-dark);
}
html[dir="rtl"] .mobile-nav__panel { transform: translateX(-100%); }
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }

.mnav__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line-dark);
}
.mnav__brand .brand__name { font-size: 1.5rem; color: var(--text-inv); }
.mnav__brand .brand__name em { color: var(--gold-2); font-style: normal; }
.mnav__close {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247,242,233,.07); color: var(--text-inv);
  transition: background .25s ease, color .25s ease, transform .2s var(--ease-spring);
}
.mnav__close:hover { background: rgba(231,201,131,.16); color: var(--gold-2); transform: rotate(90deg); }
.mnav__close svg { width: 20px; height: 20px; }

.mnav__nav { display: grid; gap: 6px; padding: 14px 0; }
.mnav__link {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 12px; border-radius: 15px;
  color: var(--text-inv-2); position: relative;
  transition: background .25s ease, color .25s ease, transform .2s var(--ease-out);
}
.mnav__link:active { transform: scale(.98); }
.mnav__ic {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247,242,233,.06); color: var(--gold-2);
  transition: background .25s ease, color .25s ease;
}
.mnav__ic svg { width: 21px; height: 21px; }
.mnav__label { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; flex: 1; }
.mnav__chev {
  width: 20px; height: 20px; flex: none; color: var(--text-inv-2); opacity: .5;
  transition: transform .25s var(--ease-out), opacity .25s ease, color .25s ease;
}
.mnav__chev svg { width: 20px; height: 20px; }
.mnav__link:hover { background: rgba(247,242,233,.05); color: var(--text-inv); }
.mnav__link:hover .mnav__chev { opacity: 1; transform: translateX(-4px); color: var(--gold-2); }
.mnav__link:hover .mnav__ic { background: rgba(231,201,131,.16); }
.mnav__link.is-active { background: rgba(231,201,131,.12); color: var(--gold-2); }
.mnav__link.is-active .mnav__ic { background: var(--gold-grad); color: var(--ink); }
.mnav__link.is-active::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 22%; bottom: 22%;
  width: 3px; border-radius: 3px; background: var(--gold-grad);
}

.mnav__section { padding: 6px 4px 14px; }
.mnav__title {
  font-size: .82rem; font-weight: 600; letter-spacing: .5px;
  color: var(--text-inv-2); text-transform: none;
  margin: 0 0 12px; display: flex; align-items: center; gap: 8px;
}
.mnav__title::before, .mnav__title::after { content: ""; height: 1px; background: var(--line-dark); flex: 1; }
.mnav__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mnav__chip {
  padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: rgba(247,242,233,.06); border: 1px solid var(--line-dark);
  color: var(--text-inv-2);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s var(--ease-spring);
}
.mnav__chip:hover { background: rgba(231,201,131,.14); color: var(--gold-2); border-color: rgba(231,201,131,.4); transform: translateY(-2px); }

.mnav__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-dark); display: grid; gap: 14px; }
.mnav__foot .btn--wa svg { width: 20px; height: 20px; }
.mnav__social { display: flex; align-items: center; gap: 12px; }
.mnav__social a {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247,242,233,.07); color: var(--text-inv);
  transition: background .3s ease, color .3s ease, transform .25s var(--ease-spring);
}
.mnav__social a:hover { background: var(--gold-grad); color: var(--ink); transform: translateY(-2px); }
.mnav__social a svg { width: 19px; height: 19px; }
.mnav__cr { font-size: .74rem; color: var(--text-inv-2); opacity: .7; line-height: 1.4; }

/* =====================================================================
   الهيرو
   ===================================================================== */
.hero {
  position: relative; color: var(--text-inv);
  background: radial-gradient(1200px 600px at 80% -10%, #3a2a52 0%, var(--ink) 55%);
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h);
}
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover; opacity: .34;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,17,40,.4) 0%, rgba(28,17,40,.55) 55%, var(--ink) 100%);
}
.hero__in {
  position: relative; z-index: 2;
  min-height: calc(92vh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(70px, 12vh, 130px) clamp(90px, 14vh, 150px);
  max-width: 780px;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--gold-2); font-size: 1rem; letter-spacing: .4px;
  margin-bottom: 18px;
}
.hero__kicker::before { content: ""; width: 44px; height: 2px; background: var(--gold-grad); border-radius: 2px; }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.3rem);
  line-height: 1.22; margin-bottom: 20px; font-weight: 700;
}
.hero h1 .gold {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--text-inv-2); max-width: 560px; margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; }
.hero__points span { display: inline-flex; align-items: center; gap: 9px; color: var(--text-inv-2); font-size: .95rem; }
.hero__points svg { width: 18px; height: 18px; color: var(--gold-2); flex: none; }

/* بالونات عائمة */
.float-balloon { position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.float-balloon--1 { width: clamp(120px, 16vw, 230px); inset-inline-end: 6%; top: 16%; animation: floaty 7s ease-in-out infinite; }
.float-balloon--2 { width: clamp(70px, 9vw, 130px); inset-inline-end: 24%; bottom: 14%; animation: floaty 9s ease-in-out -2.5s infinite; opacity: .85; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-26px) rotate(3deg); }
}
/* width/height صريحة ضرورية: الكانفس عنصر replaced و inset وحدها لا تمدده */
#confetti-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* حافة سفلية منحنية للهيرو */
.hero__curve { position: absolute; bottom: -1px; inset-inline: 0; z-index: 3; display: block; width: 100%; height: 60px; }
.hero__curve path { fill: var(--bg); }

/* =====================================================================
   شريط الأرقام / الثقة
   ===================================================================== */
.trust { padding-block: clamp(36px, 6vw, 64px) 0; }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-soft);
  margin-top: -70px; position: relative; z-index: 5;
}
.stat { text-align: center; padding: 8px; }
.stat__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__num em { color: var(--gold); font-style: normal; }
.stat__label { color: var(--text-2); font-size: .95rem; }

/* =====================================================================
   ترويسات الأقسام
   ===================================================================== */
.section { padding-block: clamp(56px, 9vw, 110px); }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--ink); color: var(--text-inv); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 5vw, 48px); }
.sec-head__txt { max-width: 640px; }
.sec-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-3); font-weight: 600; font-size: .95rem; margin-bottom: 10px;
}
.section--ink .sec-kicker { color: var(--gold-2); }
.sec-kicker::before { content: "✦"; font-size: .8em; }
.sec-title { font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin: 0; }
.sec-sub { color: var(--text-2); margin: 10px 0 0; font-size: 1.05rem; }
.section--ink .sec-sub { color: var(--text-inv-2); }
.sec-head__link { flex: none; }

/* =====================================================================
   شبكة الأقسام (بنتو)
   ===================================================================== */
.cat-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 18px; }
.cat-card {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: var(--ink-2); isolation: isolate;
}
.cat-card--tall { grid-row: span 2; }
.cat-card--wide { grid-column: span 2; }
.cat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out); z-index: -1;
}
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(190deg, rgba(28,17,40,0) 30%, rgba(28,17,40,.86) 100%);
  transition: background .4s ease;
}
.cat-card:hover img { transform: scale(1.08) rotate(.6deg); }
.cat-card__body {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 1;
  padding: 18px 20px; color: var(--text-inv);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.cat-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; margin: 0; }
.cat-card__count { font-size: .82rem; color: var(--gold-2); }
.cat-card__arrow {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247,242,233,.14); backdrop-filter: blur(6px);
  transition: background .3s ease, transform .3s var(--ease-spring);
}
.cat-card__arrow svg { width: 18px; height: 18px; }
.cat-card:hover .cat-card__arrow { background: var(--gold); color: var(--ink); transform: translateX(-4px); }

/* =====================================================================
   بطاقات المنتجات
   ===================================================================== */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 23vw, 300px);
  gap: 20px; overflow-x: auto; padding: 6px 4px 22px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.prod-carousel > * { scroll-snap-align: start; }

.p-card {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s ease;
}
.p-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); border-color: var(--gold-2); }
.p-card__imgwrap {
  position: relative; aspect-ratio: 1; background: #fdfbf6; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.p-card__imgwrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.p-card:hover .p-card__imgwrap img { transform: scale(1.06); }
.p-card__badge {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  background: var(--ink); color: var(--gold-2);
  font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.p-card__badge--blush { background: var(--blush-deep); color: #fff; }
.p-card__quick {
  position: absolute; bottom: 12px; inset-inline: 12px; z-index: 2;
  display: flex; gap: 8px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s var(--ease-out);
}
.p-card:hover .p-card__quick, .p-card:focus-within .p-card__quick { opacity: 1; transform: translateY(0); }
.p-card__quick .btn { min-height: 44px; flex: 1; font-size: .92rem; padding-inline: 12px; }
.p-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card__cat { font-size: .8rem; color: var(--gold-3); font-weight: 600; }
.p-card__title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.p-card__title a::after { content: ""; position: absolute; inset: 0; }
.p-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.price { font-weight: 700; font-size: 1.12rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.price small { font-weight: 500; font-size: .72em; color: var(--text-2); margin-inline-start: 3px; }

/* زر إضافة دائري */
.add-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-alt); color: var(--ink);
  transition: background .3s ease, color .3s ease, transform .25s var(--ease-spring);
  position: relative; z-index: 3;
}
.add-btn:hover { background: var(--gold-grad); transform: scale(1.1); }
.add-btn svg { width: 20px; height: 20px; }

/* =====================================================================
   قسم "كيف نشتغل"
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 30px 26px 26px;
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.step-card::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 18px; inset-inline-end: 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--gold-2);
  opacity: .8;
}
.step-card__icon {
  width: 58px; height: 58px; border-radius: 18px;
  background: var(--ink); color: var(--gold-2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step-card__icon svg { width: 28px; height: 28px; }
.step-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step-card p { color: var(--text-2); margin: 0; font-size: .98rem; }

/* =====================================================================
   قسم عن المتجر (سبليت)
   ===================================================================== */
.about-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.about-split__media { position: relative; }
.about-split__media > img:first-child {
  border-radius: var(--r-lg); box-shadow: var(--shadow-lift); width: 100%;
}
.about-split__media .bloop {
  position: absolute; width: 34%; filter: drop-shadow(0 20px 30px rgba(28,17,40,.25));
}
.about-split__media .bloop--1 { top: -8%; inset-inline-start: -6%; animation: floaty 8s ease-in-out infinite; }
.about-split__media .bloop--2 { bottom: -10%; inset-inline-end: -5%; width: 26%; animation: floaty 10s ease-in-out -3s infinite; }
.about-split h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.about-split .checklist { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 13px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-weight: 500; }
.checklist svg { width: 22px; height: 22px; color: var(--gold-3); flex: none; margin-top: 3px; }

/* =====================================================================
   معرض الاحتفالات (ماركيه)
   ===================================================================== */
.gallery-marquee { overflow: hidden; display: grid; gap: 16px; }
.gallery-track { display: flex; gap: 16px; width: max-content; animation: marquee-g 44s linear infinite; }
.gallery-track--rev { animation-direction: reverse; animation-duration: 52s; }
@keyframes marquee-g { from { transform: translateX(0); } to { transform: translateX(50%); } }
.gallery-track img {
  height: clamp(170px, 24vw, 260px); width: auto; border-radius: var(--r-md);
  object-fit: cover; aspect-ratio: 4 / 3;
  transition: transform .4s var(--ease-out), filter .4s ease;
}
.gallery-track img:hover { transform: scale(1.04); filter: brightness(1.06); }
.gallery-marquee:hover .gallery-track { animation-play-state: paused; }

/* =====================================================================
   آراء العملاء
   ===================================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  background: rgba(247,242,233,.05); border: 1px solid var(--line-dark);
  border-radius: var(--r-md); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s var(--ease-out), border-color .3s ease, background .3s ease;
}
.testi-card:hover { transform: translateY(-6px); border-color: rgba(231,201,131,.5); background: rgba(247,242,233,.08); }
.testi-card__stars { color: var(--gold-2); display: flex; gap: 3px; }
.testi-card__stars svg { width: 17px; height: 17px; }
.testi-card__text { font-size: 1.05rem; line-height: 1.8; color: var(--text-inv); margin: 0; font-family: var(--font-display); }
.testi-card__name { color: var(--text-inv-2); font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.testi-card__name::before { content: ""; width: 26px; height: 2px; background: var(--gold-grad); border-radius: 2px; }

/* =====================================================================
   بانر CTA
   ===================================================================== */
.cta-banner {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(900px 400px at 15% 0%, #3a2a52 0%, var(--ink) 60%);
  color: var(--text-inv); padding: clamp(44px, 7vw, 80px) clamp(24px, 6vw, 70px);
  text-align: center; isolation: isolate;
}
.cta-banner::before, .cta-banner::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; opacity: .5;
}
.cta-banner::before { width: 300px; height: 300px; background: var(--gold-3); top: -120px; inset-inline-start: -80px; }
.cta-banner::after { width: 260px; height: 260px; background: var(--blush-deep); bottom: -130px; inset-inline-end: -60px; }
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); margin-bottom: 12px; }
.cta-banner p { color: var(--text-inv-2); max-width: 520px; margin: 0 auto 30px; font-size: 1.08rem; }

/* =====================================================================
   الفوتر
   ===================================================================== */
.site-footer {
  background: var(--ink); color: var(--text-inv-2);
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line-dark);
}
.site-footer::before {
  content: ""; position: absolute; inset-inline-end: -80px; top: -60px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,92,.14) 0%, transparent 65%);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 5vw, 60px);
  padding-block: clamp(48px, 7vw, 80px) 40px; position: relative;
}
.footer-brand p { max-width: 320px; font-size: .97rem; }
.footer-col h4 { color: var(--text-inv); font-size: 1.1rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--text-inv-2); transition: color .25s ease, padding .25s ease; font-size: .96rem; }
.footer-col a:hover { color: var(--gold-2); padding-inline-start: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247,242,233,.07); color: var(--text-inv);
  transition: background .3s ease, color .3s ease, transform .25s var(--ease-spring);
}
.footer-social a:hover { background: var(--gold-grad); color: var(--ink); transform: translateY(-3px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .88rem;
}
.footer-pay { display: flex; gap: 8px; align-items: center; }
.footer-pay span {
  background: rgba(247,242,233,.08); border: 1px solid var(--line-dark);
  border-radius: 8px; padding: 4px 12px; font-size: .8rem; color: var(--text-inv);
}

/* =====================================================================
   سلة جانبية (Drawer)
   ===================================================================== */
.drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(15,8,24,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0;
  width: min(430px, 94vw); background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .38s var(--ease-out);
  box-shadow: -30px 0 60px rgba(28,17,40,.3);
}
html[dir="rtl"] .drawer__panel { transform: translateX(-100%); }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
  background: var(--card);
}
.drawer__head h3 { margin: 0; font-size: 1.25rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 24px; display: grid; gap: 14px; align-content: start; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 24px 22px; background: var(--card); display: grid; gap: 12px; }
.drawer__total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; }

.cart-line {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px;
}
.cart-line img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; background: #fdfbf6; }
.cart-line__title { font-weight: 600; font-size: .95rem; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-line__price { color: var(--gold-3); font-weight: 700; font-size: .95rem; }
.qty-stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--bg-alt); border-radius: 999px; padding: 3px; }
.qty-stepper button {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; transition: background .2s ease;
}
.qty-stepper button:hover { background: var(--gold-2); }
.qty-stepper output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-line__remove { color: var(--text-2); transition: color .2s ease; align-self: start; }
.cart-line__remove:hover { color: var(--danger); }
.cart-line__remove svg { width: 17px; height: 17px; }

.drawer-empty { text-align: center; padding: 50px 10px; color: var(--text-2); }
.drawer-empty svg { width: 64px; height: 64px; margin-inline: auto; color: var(--gold-2); margin-bottom: 14px; }

/* =====================================================================
   واتساب عائم + توست
   ===================================================================== */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1eb955; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px -8px rgba(30,185,85,.55);
  transition: transform .3s var(--ease-spring), box-shadow .3s ease;
}
.wa-float:hover { transform: scale(1.1) rotate(6deg); box-shadow: 0 18px 42px -8px rgba(30,185,85,.7); }
.wa-float svg { width: 30px; height: 30px; }

.toast-stack { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 120; display: grid; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--text-inv);
  border: 1px solid var(--line-dark); border-radius: 14px;
  padding: 13px 18px; min-width: 240px; max-width: 340px;
  box-shadow: var(--shadow-lift);
  animation: toast-in .4s var(--ease-spring);
  font-size: .95rem;
}
.toast svg { width: 20px; height: 20px; color: var(--gold-2); flex: none; }
.toast.is-out { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* =====================================================================
   صفحات داخلية — ترويسة صفحة
   ===================================================================== */
.page-hero {
  background: radial-gradient(900px 420px at 85% -20%, #3a2a52 0%, var(--ink) 60%);
  color: var(--text-inv); text-align: center;
  padding-block: clamp(48px, 8vw, 90px);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,92,.22), transparent 65%);
  top: -60px; inset-inline-start: 8%;
}
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-bottom: 8px; }
.page-hero p { color: var(--text-inv-2); max-width: 560px; margin-inline: auto; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  font-size: .88rem; color: var(--text-inv-2); margin-bottom: 14px;
}
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb .sep { opacity: .5; }

/* =====================================================================
   فلاتر المتجر
   ===================================================================== */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--card); border: 1.4px solid var(--line);
  font-weight: 500; font-size: .93rem; color: var(--text);
  transition: all .25s ease; cursor: pointer;
}
.chip:hover { border-color: var(--gold); color: var(--gold-3); transform: translateY(-2px); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--gold-2); }

.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .93rem; }
.field .hint { font-size: .82rem; color: var(--text-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 16px;
  background: var(--card); border: 1.4px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,92,.15); }
textarea.input { min-height: 110px; resize: vertical; }
.input--error { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .84rem; display: none; }
.field.has-error .field__error { display: block; }

/* =====================================================================
   أكورديون
   ===================================================================== */
.accordion { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--card); }
.accordion + .accordion { margin-top: 12px; }
.accordion summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-weight: 600; font-family: var(--font-display); font-size: 1.05rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { width: 20px; height: 20px; color: var(--gold-3); transition: transform .3s var(--ease-out); flex: none; }
.accordion[open] summary svg { transform: rotate(45deg); }
.accordion__body { padding: 0 22px 20px; color: var(--text-2); }

/* =====================================================================
   Reveal on scroll
   ===================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }

/* سكيلتون */
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, #efe6d2 50%, var(--bg-alt) 75%);
  background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--r-sm);
}
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-bento { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .about-split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .cat-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .hero__in { min-height: calc(78vh - var(--header-h)); }
  /* البالونات العائمة تزاحم النص على الشاشات الصغيرة — نصغّرها ونبعدها للأطراف */
  .float-balloon--1 { width: 84px; top: 6%; inset-inline-end: 3%; opacity: .55; }
  .float-balloon--2 { display: none; }
}
@media (max-width: 620px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .testi-grid { grid-template-columns: 1fr; }
  .p-card__quick { opacity: 1; transform: none; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cat-card--wide { grid-column: span 2; }
  .hero__ctas .btn { flex: 1; }
  /* منع تجاوز عرض الشاشة في الهيرو: السطر الذهبي والكيكر لا يلتفّان افتراضياً */
  .hero__kicker { flex-wrap: wrap; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.4rem); }
  .hero h1 .gold { white-space: normal; }
  /* البالونات الديكورية (bloop) تخرج عن عرض الشاشة بالهوامش السالبة */
  .about-split__media .bloop--1 { inset-inline-start: 0; }
  .about-split__media .bloop--2 { inset-inline-end: 0; }
}

/* =====================================================================
   تقليل الحركة
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .announce__track, .gallery-track, .float-balloon { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
