/* =========================================================
   حلويات كارولين — الصفحة الرئيسية
   تصميم فاخر · عربي بالكامل · دعم كامل للاتجاه من اليمين لليسار
   ========================================================= */

/* ---------- المتغيرات ---------- */
:root {
  --cocoa-950: #140e0c;
  --cocoa-900: #1b1310;
  --cocoa-800: #2a1e19;
  --cocoa-700: #3d2c24;
  --cream-50:  #fbf7f1;
  --cream-100: #f5ede1;
  --cream-200: #eadfcd;
  --gold-300:  #e6cf9a;
  --gold-400:  #d4b373;
  --gold-500:  #c19a55;
  --gold-600:  #a07c3c;
  --rose-400:  #c98d7f;
  --ink:       #2a1e19;
  --ink-soft:  #6b5a50;

  --gold-grad: linear-gradient(135deg, #f0dcae 0%, #c9a35c 45%, #a07c3c 100%);

  --font-display: "Aref Ruqaa", "Amiri", serif;
  --font-serif:   "Amiri", serif;
  --font-body:    "Tajawal", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;

  --shadow-sm: 0 4px 14px rgba(27, 19, 16, .08);
  --shadow:    0 18px 50px -18px rgba(27, 19, 16, .35);
  --shadow-lg: 0 40px 90px -30px rgba(20, 14, 12, .55);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
  --promo-h: 0px;   /* ارتفاع شريط التهاني — يتفعّل مع ثيم الأعياد */
  --container: 1240px;
}

/* ---------- الأساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--promo-h));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream-50);
  direction: inherit;   /* comes from html dir */
  text-align: start;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

::selection { background: var(--gold-400); color: var(--cocoa-900); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.section { padding-block: clamp(72px, 10vw, 140px); }

/* =========================================================
   قاعدة الصور التلقائية
   أي صورة داخل .media تملأ إطارها بالكامل وتُقص بذكاء
   دون تشويه، مهما كانت أبعادها الأصلية.
   ========================================================= */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 5);
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(212, 179, 115, .35), transparent 60%),
    linear-gradient(160deg, var(--cocoa-700), var(--cocoa-900));
  isolation: isolate;
}

.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
}

/* حالة عدم وجود صورة بعد: زخرفة أنيقة بدل أيقونة الصورة المكسورة */
.media.is-empty::after {
  content: "ك";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  color: rgba(230, 207, 154, .28);
  background-image:
    repeating-linear-gradient(45deg, rgba(230, 207, 154, .05) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(230, 207, 154, .05) 0 1px, transparent 1px 22px);
  z-index: -1;
}

/* ---------- عناصر مشتركة ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--gold-500);
  margin-block-end: 18px;
}
.eyebrow__line {
  display: inline-block;
  inline-size: 38px;
  block-size: 1px;
  background: currentColor;
  opacity: .8;
}
.eyebrow--center { justify-content: center; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(48px, 6vw, 72px);
}
.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  text-align: start;
}
.section-head--split .section-lead { max-width: 420px; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.35;
  color: var(--cocoa-900);
}
.section-lead {
  margin-block-start: 14px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* ---------- الأزرار ---------- */
.btn {
  --pad-y: 15px;
  --pad-x: 34px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { --pad-y: 11px; --pad-x: 24px; font-size: .95rem; }

.btn--gold {
  background: var(--gold-grad);
  color: var(--cocoa-900);
  box-shadow: 0 10px 30px -10px rgba(193, 154, 85, .7), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn--gold::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -60%;
  inline-size: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  transition: inset-inline-start .8s var(--ease);
}
.btn--gold:hover::after { inset-inline-start: 130%; }
.btn--gold:hover { box-shadow: 0 16px 40px -12px rgba(193, 154, 85, .85), inset 0 1px 0 rgba(255, 255, 255, .5); }

.btn--ghost {
  color: var(--cream-50);
  border-color: rgba(245, 237, 225, .45);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(245, 237, 225, .12); border-color: var(--gold-300); }

.btn--dark { background: var(--cocoa-900); color: var(--cream-50); }
.btn--dark:hover { background: var(--cocoa-700); box-shadow: var(--shadow); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-300);
  font-weight: 500;
}
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover span { transform: translateX(-6px); }

/* =========================================================
   شريط التنقل
   ========================================================= */
.site-header {
  position: fixed;
  inset-block-start: var(--promo-h);
  inset-inline: 0;
  z-index: 100;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(20, 14, 12, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(230, 207, 154, .12), 0 20px 40px -24px rgba(0, 0, 0, .6);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  block-size: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream-50);
}
.brand__mark {
  display: grid;
  place-items: center;
  inline-size: 46px;
  block-size: 46px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  padding-block-end: 4px;
  color: var(--cocoa-900);
  background: var(--gold-grad);
  box-shadow: 0 0 0 4px rgba(230, 207, 154, .14);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gold-300);
}
.brand__tag { font-size: .78rem; color: rgba(245, 237, 225, .7); letter-spacing: .02em; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}
.nav__links a {
  position: relative;
  color: rgba(245, 237, 225, .82);
  font-weight: 500;
  font-size: 1rem;
  padding-block: 6px;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -2px;
  block-size: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--gold-300); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__toggle { display: none; }
.nav__burger { display: none; }

/* =========================================================
   القسم الرئيسي
   ========================================================= */
.hero {
  position: relative;
  min-block-size: 100vh;
  min-block-size: 100svh;
  display: flex;
  align-items: center;
  color: var(--cream-50);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 70% at 15% 30%, rgba(193, 154, 85, .28), transparent 60%),
    radial-gradient(50% 60% at 90% 90%, rgba(201, 141, 127, .18), transparent 60%),
    linear-gradient(160deg, #2a1e19 0%, #140e0c 70%);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(270deg, rgba(20, 14, 12, .92) 0%, rgba(20, 14, 12, .65) 45%, rgba(20, 14, 12, .25) 100%),
    linear-gradient(0deg, rgba(20, 14, 12, .85) 0%, transparent 35%);
}
/* زخرفة هندسية ذهبية خفيفة */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background-image:
    radial-gradient(circle at center, rgba(230, 207, 154, .14) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(270deg, transparent 30%, #000 100%);
          mask-image: linear-gradient(270deg, transparent 30%, #000 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
  padding-block: calc(var(--header-h) + var(--promo-h) + 60px) 110px;
}

.hero__content { max-width: 680px; }
.hero__content > * { animation: rise 1s var(--ease) both; }
.hero__content > *:nth-child(2) { animation-delay: .1s; }
.hero__content > *:nth-child(3) { animation-delay: .2s; }
.hero__content > *:nth-child(4) { animation-delay: .3s; }
.hero__content > *:nth-child(5) { animation-delay: .4s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.hero .eyebrow { color: var(--gold-300); }

.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.25;
  margin-block-end: 26px;
  text-wrap: balance;
}
.hero__title-accent {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--gold-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  padding-block: .05em .15em;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: rgba(245, 237, 225, .82);
  max-width: 560px;
  margin-block-end: 38px;
  font-weight: 300;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-block-end: 56px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  padding-block-start: 28px;
  border-block-start: 1px solid rgba(230, 207, 154, .2);
}
.hero__stats li { display: flex; flex-direction: column; gap: 2px; }
.hero__stats strong {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--gold-300);
}
.hero__stats span { font-size: .92rem; color: rgba(245, 237, 225, .65); }

.hero__card {
  position: relative;
  padding: 34px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(230, 207, 154, .22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  animation: rise 1.1s .5s var(--ease) both;
}
.hero__card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--radius-lg) - 8px);
  border: 1px dashed rgba(230, 207, 154, .18);
  pointer-events: none;
}
.hero__card-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--cocoa-900);
  background: var(--gold-grad);
  margin-block-end: 16px;
}
.hero__card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--cream-50);
  margin-block-end: 10px;
}
.hero__card p {
  color: rgba(245, 237, 225, .72);
  font-size: .98rem;
  margin-block-end: 18px;
}

.hero__scroll {
  position: absolute;
  inset-block-end: 28px;
  inset-inline-start: 50%;
  translate: 50% 0;
  inline-size: 26px;
  block-size: 42px;
  border-radius: 20px;
  border: 1px solid rgba(230, 207, 154, .45);
}
.hero__scroll span {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 50%;
  inline-size: 4px;
  block-size: 8px;
  margin-inline-start: -2px;
  border-radius: 4px;
  background: var(--gold-300);
  animation: scrollDot 2s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* =========================================================
   شريط القيم
   ========================================================= */
.ribbon {
  background: var(--cocoa-900);
  color: var(--cream-100);
  border-block: 1px solid rgba(230, 207, 154, .14);
}
.ribbon__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 22px;
}
.ribbon__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: .98rem;
}
.ribbon__icon { color: var(--gold-400); font-size: .85rem; }

/* =========================================================
   التشكيلة
   ========================================================= */
.collection { background: var(--cream-50); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-200);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card:hover .media > img { transform: scale(1.07); }

.card__media { --ratio: 4 / 5; }
.card__body { padding: 22px 22px 26px; }
.card__kicker {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold-600);
}
.card__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--cocoa-900);
  margin-block: 4px 6px;
}
.card__body p { color: var(--ink-soft); font-size: .96rem; line-height: 1.75; }

/* =========================================================
   معرض الصور
   شبكة متجاوبة؛ كل خلية لها نسبة أبعاد ثابتة،
   والصور تُقص تلقائيًا بـ object-fit: cover.
   ========================================================= */
.gallery-section {
  background:
    linear-gradient(180deg, var(--cream-100), var(--cream-50));
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(12px, 1.6vw, 22px);
}

.gallery__item {
  --ratio: 1 / 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
/* عند تمدد الخلية على عدة صفوف/أعمدة، نترك الشبكة تحدد الارتفاع */
.gallery__item--feature { grid-column: span 2; grid-row: span 2; --ratio: 1 / 1; }
.gallery__item--tall    { grid-row: span 2; --ratio: auto; }
.gallery__item--wide    { grid-column: span 2; --ratio: auto; }

.gallery__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(20, 14, 12, .78) 0%, rgba(20, 14, 12, 0) 55%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.gallery__item figcaption {
  position: absolute;
  inset-inline: 22px;
  inset-block-end: 18px;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--cream-50);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.gallery__item:hover::before,
.gallery__item:focus-within::before { opacity: 1; }
.gallery__item:hover figcaption,
.gallery__item:focus-within figcaption { opacity: 1; transform: none; }
.gallery__item:hover > img { transform: scale(1.06); }

/* الصور الفارغة تُظهر عناوينها دائمًا */
.gallery__item.is-empty::before { opacity: 1; }
.gallery__item.is-empty figcaption { opacity: .9; transform: none; }

/* =========================================================
   قصتنا
   ========================================================= */
.story { background: var(--cream-50); }
.story__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}
.story__media {
  --ratio: 4 / 5;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  outline: 1px solid var(--gold-400);
  outline-offset: 14px;
  margin: 14px;
}
.story__content p { color: var(--ink-soft); margin-block: 18px 26px; }
.story__quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.6;
  color: var(--gold-600);
  padding-inline-start: 22px;
  border-inline-start: 3px solid var(--gold-400);
  margin-block-end: 34px;
}

/* ---------- ورشات الأطفال ---------- */
.workshop { background: var(--cream-100); }
.workshop .story__media { border-radius: var(--radius-lg) var(--radius-lg) 200px 200px; }
.workshop__list { display: grid; gap: 14px; margin-block-end: 32px; }
.workshop__list li {
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  border-inline-start: 3px solid var(--gold-400);
  background: rgba(255, 255, 255, .6);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
[dir="rtl"] .workshop__list li { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.workshop__list strong { font-family: var(--font-serif); font-size: 1.2rem; color: var(--cocoa-900); }
.workshop__list span { color: var(--ink-soft); font-size: .95rem; }

/* =========================================================
   دعوة للطلب
   ========================================================= */
.cta {
  position: relative;
  color: var(--cream-50);
  text-align: center;
  padding-block: clamp(80px, 10vw, 130px);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(193, 154, 85, .32), transparent 70%),
    linear-gradient(180deg, var(--cocoa-800), var(--cocoa-950));
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image:
    repeating-linear-gradient(45deg, rgba(230, 207, 154, .06) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-45deg, rgba(230, 207, 154, .06) 0 1px, transparent 1px 26px);
}
.cta__inner { position: relative; max-width: 760px; }
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.45;
  background: var(--gold-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  margin-block-end: 16px;
}
.cta p { color: rgba(245, 237, 225, .78); font-size: 1.12rem; margin-block-end: 36px; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   التذييل
   ========================================================= */
.site-footer {
  background: var(--cocoa-950);
  color: rgba(245, 237, 225, .7);
  font-size: .96rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-block: 72px 48px;
}
.footer__brand p { margin-block-start: 18px; max-width: 320px; }
.footer__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-300);
  margin-block-end: 14px;
}
.footer__list li { margin-block-end: 8px; }
.footer__list a { transition: color .3s var(--ease); }
.footer__list a:hover { color: var(--gold-300); }
.footer__bottom {
  border-block-start: 1px solid rgba(230, 207, 154, .12);
  padding-block: 22px;
  font-size: .88rem;
  text-align: center;
}

/* =========================================================
   زر "شاهد جميع الصور" في الصفحة الرئيسية
   ========================================================= */
.gallery__more { display: flex; justify-content: center; margin-block-start: clamp(36px, 5vw, 56px); }

/* =========================================================
   صفحة معرض الصور
   ========================================================= */
.page-head {
  position: relative;
  color: var(--cream-50);
  text-align: center;
  padding-block: calc(var(--header-h) + clamp(56px, 8vw, 96px)) clamp(56px, 7vw, 88px);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(193, 154, 85, .3), transparent 70%),
    linear-gradient(180deg, var(--cocoa-800), var(--cocoa-950));
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: radial-gradient(circle at center, rgba(230, 207, 154, .14) 1px, transparent 1.5px);
  background-size: 28px 28px;
}
.page-head__inner { position: relative; max-width: 760px; }
.page-head .eyebrow { color: var(--gold-300); }
.page-head__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.4;
  background: var(--gold-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  margin-block-end: 14px;
}
.page-head__lead { color: rgba(245, 237, 225, .78); font-size: 1.1rem; }

.album-section { padding-block-start: clamp(40px, 5vw, 64px); }

/* أزرار التصفية */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-block-end: clamp(32px, 4vw, 48px);
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--cream-200);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.filter span {
  min-inline-size: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: .78rem;
  background: var(--cream-100);
  color: var(--ink-soft);
}
.filter:hover { border-color: var(--gold-400); }
.filter.is-active {
  background: var(--cocoa-900);
  border-color: var(--cocoa-900);
  color: var(--gold-300);
  box-shadow: var(--shadow-sm);
}
.filter.is-active span { background: rgba(230, 207, 154, .18); color: var(--gold-300); }

/* شبكة الصور — كل الصور بنفس النسبة، تُقص تلقائيًا */
.album {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.album__item[hidden] { display: none; }
.album__item { animation: rise .6s var(--ease) both; }
.album__btn {
  --ratio: 4 / 5;
  display: block;
  inline-size: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.album__btn:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.album__btn:hover > img { transform: scale(1.05); }
.album__cap {
  display: flex;
  flex-direction: column;
  margin-block-start: 12px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--cocoa-900);
}
.album__cap span {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-600);
}

.album__cta {
  margin-block-start: clamp(48px, 6vw, 80px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.album__cta p { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--cocoa-900); }

/* عارض الصور */
.lightbox {
  inline-size: 100vw;
  block-size: 100vh;
  block-size: 100dvh;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  padding: clamp(16px, 4vw, 48px);
  border: 0;
  background: rgba(20, 14, 12, .94);
  color: var(--cream-50);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(20, 14, 12, .6); }
.lightbox__figure {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-inline-size: min(1100px, 100%);
}
.lightbox__figure img {
  max-inline-size: 100%;
  max-block-size: calc(100dvh - 140px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox__figure figcaption { font-family: var(--font-serif); font-size: 1.25rem; color: var(--gold-300); }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  border-radius: 50%;
  border: 1px solid rgba(230, 207, 154, .35);
  background: rgba(255, 255, 255, .06);
  color: var(--gold-300);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .3s var(--ease);
  z-index: 1;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(230, 207, 154, .18); }
.lightbox__close { inset-block-start: 18px; inset-inline-end: 18px; font-size: 1.1rem; }
.lightbox__nav { inset-block-start: 50%; translate: 0 -50%; font-size: 2rem; padding-block-end: 4px; }
.lightbox__nav--prev { inset-inline-start: 18px; }
.lightbox__nav--next { inset-inline-end: 18px; }

@media (max-width: 560px) {
  .album { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .album__cap { font-size: .95rem; margin-block-start: 8px; }
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-block-end: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .lightbox__nav { inset-block-start: auto; inset-block-end: 20px; translate: none; }
}

/* =========================================================
   التجاوب مع الشاشات
   ========================================================= */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .hero__card { max-width: 440px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .site-header { background: rgba(20, 14, 12, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

  .nav__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    inline-size: 44px;
    block-size: 44px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(230, 207, 154, .3);
    cursor: pointer;
    z-index: 2;
  }
  .nav__burger span {
    display: block;
    block-size: 1.5px;
    background: var(--gold-300);
    border-radius: 2px;
    transition: transform .4s var(--ease), opacity .3s var(--ease);
  }
  .nav__toggle:checked + .nav__burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav__toggle:checked + .nav__burger span:nth-child(2) { opacity: 0; }
  .nav__toggle:checked + .nav__burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .nav__menu {
    position: fixed;
    inset-block-start: calc(var(--header-h) + var(--promo-h));
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 28px clamp(16px, 4vw, 40px) 36px;
    background: rgba(20, 14, 12, .97);
    border-block-end: 1px solid rgba(230, 207, 154, .15);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    visibility: hidden;
    transition: clip-path .5s var(--ease), opacity .4s var(--ease), visibility .5s;
  }
  .nav__toggle:checked ~ .nav__menu { clip-path: inset(0 0 0 0); opacity: 1; visibility: visible; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__links a { display: block; padding-block: 12px; font-size: 1.15rem; border-block-end: 1px solid rgba(230, 207, 154, .08); }
  .nav__links a::after { display: none; }
  .nav__menu .btn { align-self: flex-start; }

  .hero__inner { padding-block: calc(var(--header-h) + var(--promo-h) + 48px) 96px; }
  .hero__veil {
    background:
      linear-gradient(0deg, rgba(20, 14, 12, .95) 0%, rgba(20, 14, 12, .7) 50%, rgba(20, 14, 12, .45) 100%);
  }

  .section-head--split { flex-direction: column; align-items: flex-start; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item--feature { grid-column: span 2; grid-row: auto; --ratio: 4 / 3; }
  .gallery__item--tall    { grid-row: auto; --ratio: 3 / 4; }
  .gallery__item--wide    { grid-column: span 2; --ratio: 16 / 9; }
  .gallery__item figcaption { opacity: 1; transform: none; font-size: 1.05rem; inset-inline: 16px; inset-block-end: 12px; }
  .gallery__item::before { opacity: 1; }

  .story__inner { grid-template-columns: 1fr; }
  .story__media { max-width: 460px; margin-inline: auto; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .card__media { --ratio: 4 / 3; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__stats strong { font-size: 1.5rem; }
  .hero__card { padding: 28px 24px; }
  .ribbon__inner { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .brand__tag { display: none; }
  .story__media { outline-offset: 8px; margin: 8px; }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   ثيم الأعياد — الميلاد ورأس السنة
   (يتفعّل بإضافة الصنف festive على عنصر html)
   ========================================================= */
:root.festive { --promo-h: 40px; }

/* ---------- شريط التهاني المتحرّك ---------- */
.festive-bar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 101;
  block-size: var(--promo-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, var(--cocoa-950), var(--cocoa-800) 50%, var(--cocoa-950));
  border-block-end: 1px solid rgba(230, 207, 154, .22);
  color: var(--gold-300);
  font-size: .9rem;
  letter-spacing: .01em;
  white-space: nowrap;
  /* تلاشي ناعم عند الطرفين */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.festive-bar__track {
  display: flex;
  inline-size: max-content;
  animation: festive-slide 48s linear infinite;
  will-change: transform;
}
.festive-bar:hover .festive-bar__track,
.festive-bar:focus-within .festive-bar__track { animation-play-state: paused; }
.festive-bar__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.festive-bar__group li {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-inline-end: 18px;
}
.festive-bar__group li::after {
  content: "✦";
  color: var(--gold-500);
  font-size: .7rem;
}
.festive-bar__group strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--gold-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.festive-bar a { color: var(--cream-50); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold-500); }

/* في اتجاه RTL يدخل النص من اليسار ويتحرك يمينًا، فتُقرأ بداية الجملة أولًا */
@keyframes festive-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

/* ---------- الثلج الذهبي ---------- */
.snow {
  position: fixed;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  z-index: 90;              /* فوق المحتوى وتحت شريط التنقل */
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s var(--ease);
}
.snow.is-on { opacity: 1; }

/* ---------- نافذة عرض الموسم ---------- */
.promo {
  inline-size: min(880px, calc(100% - 32px));
  max-block-size: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--cocoa-900);
  color: var(--cream-100);
  box-shadow: 0 0 0 1px rgba(230, 207, 154, .25), var(--shadow-lg);
  overflow: hidden;
}
.promo::backdrop {
  background: rgba(20, 14, 12, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.promo[open] { animation: promo-in .7s var(--ease) both; }
.promo[open]::backdrop { animation: promo-fade .5s var(--ease) both; }
.promo.is-closing { animation: promo-out .35s var(--ease) both; }
.promo.is-closing::backdrop { animation: promo-fade .35s var(--ease) reverse both; }

@keyframes promo-in  { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes promo-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes promo-fade { from { opacity: 0; } to { opacity: 1; } }

html:has(.promo[open]) { overflow: hidden; }

.promo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  min-block-size: 480px;
}
.promo__media { --ratio: auto; block-size: 100%; }
.promo__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(27, 19, 16, 0) 55%, rgba(27, 19, 16, .85) 100%);
}
.promo__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(193, 154, 85, .16), transparent 60%),
    var(--cocoa-900);
}
.promo__body::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(230, 207, 154, .16);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
}
.promo__eyebrow {
  margin: 0;
  color: var(--gold-400);
  font-size: .9rem;
  letter-spacing: .04em;
}
.promo__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.25;
  font-weight: 700;
  background: var(--gold-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.promo__text { margin: 0; color: rgba(245, 237, 225, .78); }
.promo__list {
  display: grid;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
}
.promo__list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--cream-100);
}
.promo__list li::before { content: "✦"; color: var(--gold-400); font-size: .8rem; }
.promo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.promo__later {
  padding: 8px 2px;
  border: 0;
  background: none;
  color: rgba(245, 237, 225, .7);
  font: inherit;
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(230, 207, 154, .4);
  cursor: pointer;
}
.promo__later:hover { color: var(--gold-300); }
.promo__close {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  border: 1px solid rgba(230, 207, 154, .35);
  background: rgba(20, 14, 12, .55);
  color: var(--gold-300);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s var(--ease);
}
.promo__close:hover { transform: rotate(90deg); background: rgba(20, 14, 12, .85); }
.promo__close:focus-visible,
.promo__later:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }

@media (max-width: 760px) {
  .promo { inline-size: calc(100% - 24px); max-block-size: calc(100dvh - 24px); overflow-y: auto; }
  .promo__grid { grid-template-columns: 1fr; min-block-size: 0; }
  .promo__media { --ratio: 16 / 10; block-size: auto; }
  .promo__media::after { background: linear-gradient(0deg, rgba(27, 19, 16, .9) 0%, rgba(27, 19, 16, 0) 45%); }
  .promo__body { padding: 24px 22px 28px; gap: 10px; }
  .promo__body::before { inset: 8px; }
  .promo__title { font-size: 1.9rem; }
  .promo__actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 560px) {
  :root.festive { --promo-h: 34px; }
  .festive-bar { font-size: .82rem; }
  .festive-bar__group strong { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .festive-bar__track { animation: none; }
  .snow { display: none; }
}

/* في الهاتف: نافذة أقصر كي تظهر كل الأزرار دون تمرير */
@media (max-width: 560px) {
  .promo__media { --ratio: 16 / 9; }
  .promo__list { display: none; }
  .promo__actions { gap: 10px; }
  .promo__actions .btn { flex-basis: 100%; }
  .promo__later { margin-inline: auto; }
}

.workshop__more {
  display: inline-block;
  margin-inline-start: 18px;
  color: var(--cocoa-900);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold-500, #c19a55);
  text-underline-offset: 6px;
}
.workshop__more:hover { color: var(--cocoa-700); }

/* =========================================================
   سانتا يطلّ من أسفل الشاشة (الصفحة الرئيسية)
   لا يعترض النقرات — حركة transform فقط لأداء سلس
   ========================================================= */
.santa-peek {
  position: fixed;
  inset-block-end: 0;
  left: clamp(10px, 3vw, 44px);           /* زاوية أسفل اليسار = نهاية السطر في RTL */
  z-index: 30;
  inline-size: clamp(88px, 9vw, 134px);
  pointer-events: none;
  transform: translate3d(0, 110%, 0);
  transform-origin: 50% 100%;
  animation: santa-peek 22s cubic-bezier(.45, 0, .2, 1) 6s infinite;
  will-change: transform;
}
.santa-peek::before {                     /* هالة ذهبية خفيفة خلفه */
  content: "";
  position: absolute;
  inset: 18% -18% -10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 220, 174, .38), rgba(240, 220, 174, 0));
}
.santa-peek svg {
  position: relative;
  display: block;
  inline-size: 100%;
  block-size: auto;
  filter: drop-shadow(0 -6px 14px rgba(20, 14, 12, .45));
}
.santa-peek__bob { animation: santa-bob 2.4s ease-in-out infinite; }
.santa-peek .santa__arm { transform-origin: 126px 146px; animation: santa-wave .8s ease-in-out infinite alternate; }
.santa-peek .santa__hat { transform-origin: 80px 60px; animation: santa-hat 2.4s ease-in-out infinite; }

@keyframes santa-peek {
  0%, 3%   { transform: translate3d(0, 110%, 0) rotate(0); }
  8%       { transform: translate3d(0, 0, 0) rotate(-5deg); }
  10%      { transform: translate3d(0, 6%, 0) rotate(3deg); }
  12%, 24% { transform: translate3d(0, 4%, 0) rotate(-1deg); }
  27%      { transform: translate3d(0, 10%, 0) rotate(4deg); }
  32%, 100% { transform: translate3d(0, 110%, 0) rotate(0); }
}
@keyframes santa-wave { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
@keyframes santa-bob  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes santa-hat  { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg); } }

@media (max-width: 560px) {
  .santa-peek { inline-size: 84px; left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .santa-peek { display: none; }
}

/* فلتر الأعياد في المعرض: قبعة سانتا وألوان الموسم */
.filter--xmas { position: relative; padding-inline-start: 40px; }
.filter__hat {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-start: 50%;
  inline-size: 22px;
  block-size: 17px;
  transform: translateY(-58%) rotate(-8deg);
  transition: transform .4s var(--ease);
}
.filter--xmas:hover .filter__hat { transform: translateY(-62%) rotate(6deg); }
.filter--xmas.is-active {
  background: linear-gradient(120deg, #7a1628, #3b0a14 60%, #173527);
  border-color: #d4b373;
  color: var(--cream-50);
}

/* =========================================================
   تبديل اللغة — العربية · English · עברית
   ========================================================= */
.i18n-pending body { opacity: 0; }
body { transition: opacity .18s ease; }
.lang-fading body { opacity: .25; }

.lang-switch {
  order: 3;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(230, 207, 154, .35);
  background: rgba(20, 14, 12, .35);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  flex: none;
}
.lang-switch__btn {
  min-inline-size: 38px;
  block-size: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(245, 237, 225, .75);
  font: 700 .82rem/1 var(--font-body);
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.lang-switch__btn[lang="ar"] { font-family: "Amiri", serif; font-size: 1.05rem; }
.lang-switch__btn[lang="he"] { font-family: "Heebo", sans-serif; }
.lang-switch__btn:hover { color: var(--gold-300); }
.lang-switch__btn:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 2px; }
.lang-switch__btn.is-active {
  color: var(--cocoa-900);
  background: var(--gold-grad);
  box-shadow: 0 4px 14px -6px rgba(212, 179, 115, .7);
}
.nav__menu { order: 2; }
.brand { order: 0; }

@media (max-width: 900px) {
  .lang-switch { order: 1; margin-inline-start: auto; }
  .nav__burger { order: 2; }
  .nav { gap: 12px; }
}
@media (max-width: 380px) {
  .lang-switch__btn { min-inline-size: 32px; padding: 0 7px; }
  .brand__tag { display: none; }
}

/* ---------- الخطوط حسب اللغة ---------- */
:root[lang="en"] {
  --font-display: "Cormorant Garamond", "Amiri", serif;
  --font-serif:   "Cormorant Garamond", "Amiri", serif;
  --font-body:    "Tajawal", system-ui, sans-serif;
}
:root[lang="he"] {
  --font-display: "Frank Ruhl Libre", "Amiri", serif;
  --font-serif:   "Frank Ruhl Libre", "Amiri", serif;
  --font-body:    "Heebo", "Tajawal", system-ui, sans-serif;
}
:root[lang="en"] .hero__title,
:root[lang="en"] .xhero__title { letter-spacing: -.01em; }
:root[lang="en"] .section-title,
:root[lang="en"] .xsec-head h2 { letter-spacing: .005em; }

/* ---------- عناصر تعتمد على الاتجاه في الإنجليزية ---------- */
[dir="ltr"] .link-arrow span,
[dir="ltr"] .btn > span[aria-hidden="true"] { display: inline-block; transform: scaleX(-1); }
[dir="ltr"] .link-arrow:hover span { transform: scaleX(-1) translateX(-6px); }
[dir="ltr"] .lightbox__nav { transform: scaleX(-1); }
[dir="ltr"] .festive-bar__track { animation-name: festive-slide-ltr; }
@keyframes festive-slide-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="ltr"] .santa-peek { left: auto; right: clamp(10px, 3vw, 44px); }
@media (max-width: 560px) { [dir="ltr"] .santa-peek { right: 8px; } }

/* =========================================================
   «اطلبوا كيكة مثل هذه» — الصور القابلة للطلب
   ========================================================= */
.is-orderable { cursor: pointer; }
.is-orderable:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 4px; }
.order-hint {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-start: 14px;
  z-index: 3;
  padding: 7px 14px;
  border-radius: 999px;
  font: 700 .82rem/1.2 var(--font-body);
  color: var(--cocoa-900);
  background: var(--gold-grad);
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}
.is-orderable:hover .order-hint,
.is-orderable:focus-visible .order-hint { opacity: 1; transform: none; }
@media (hover: none) {                    /* على الهاتف: تلميح صغير ظاهر دائمًا */
  .order-hint { opacity: .95; transform: none; padding: 5px 11px; font-size: .75rem; }
}
.gallery__item .order-hint { inset-block-end: auto; inset-block-start: 14px; }

/* ---------- النافذة ---------- */
.order-modal {
  inline-size: min(880px, calc(100vw - 32px));
  max-block-size: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream-50);
  overflow: visible;
}
.order-modal[open] { animation: promo-in .5s var(--ease) both; }
.order-modal[open]::backdrop { background: rgba(12, 8, 7, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: promo-fade .4s ease both; }
.order-modal.is-closing { animation: promo-out .35s var(--ease) both; }
.order-modal.is-closing::backdrop { opacity: 0; transition: opacity .35s; }
.order-modal__card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  max-block-size: calc(100dvh - 32px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(212, 179, 115, .14), transparent 60%),
    linear-gradient(160deg, var(--cocoa-900), var(--cocoa-950));
  border: 1px solid rgba(230, 207, 154, .35);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 0 6px rgba(212, 179, 115, .06);
}
.order-modal__media { margin: 0; position: relative; min-block-size: 320px; background: var(--cocoa-950); }
.order-modal__media img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.order-modal__media::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(230, 207, 154, .18);
  background: linear-gradient(0deg, rgba(20, 14, 12, .35), transparent 40%);
  pointer-events: none;
}
.order-modal__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 4vw, 44px); overflow-y: auto; }
.order-modal__eyebrow { margin: 0 0 8px; color: var(--gold-300); font-size: .88rem; letter-spacing: .05em; }
.order-modal__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.3;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.order-modal__name { margin: 0 0 12px; font-family: var(--font-serif); font-size: 1.2rem; color: var(--cream-50); }
.order-modal__text { margin: 0 0 24px; color: rgba(245, 237, 225, .72); line-height: 1.8; font-size: .98rem; }
.order-modal__actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.order-modal__actions .btn { justify-content: center; gap: 10px; }
.order-modal__wa svg { inline-size: 20px; block-size: 20px; flex: none; }
.order-modal__copy {
  align-self: center;
  margin-block-start: 4px;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: rgba(245, 237, 225, .7);
  font: 500 .9rem var(--font-body);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(212, 179, 115, .6);
  cursor: pointer;
}
.order-modal__copy:hover { color: var(--gold-300); }
.order-modal__close {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  inline-size: 40px; block-size: 40px;
  border-radius: 50%;
  border: 1px solid rgba(230, 207, 154, .5);
  background: rgba(20, 14, 12, .6);
  color: var(--cream-50);
  font-size: 1rem;
  cursor: pointer;
  transition: background .3s var(--ease);
}
.order-modal__close:hover { background: rgba(230, 207, 154, .2); }

@media (max-width: 680px) {
  .order-modal__card { display: block; overflow-y: auto; }
  .order-modal__media { min-block-size: 0; }
  .order-modal__media img { position: relative; display: block; block-size: auto; aspect-ratio: 4 / 3; }
  .order-modal__body { padding: 22px 20px 24px; overflow: visible; }
  .order-modal__title { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .order-modal[open], .order-modal.is-closing, .order-modal[open]::backdrop { animation: none; }
  .order-hint { transition: none; }
}

/* زر الطلب داخل عارض المعرض */
.lightbox__order { margin-block-start: 14px; }

/* =========================================================
   المفضّلة / قائمة الأمنيات
   ========================================================= */
.wish-host { position: relative; }

.wish-heart {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(230, 207, 154, .55);
  background: rgba(20, 14, 12, .45);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: var(--cream-50);
  cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.wish-heart svg { inline-size: 19px; block-size: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill .3s var(--ease), stroke .3s var(--ease); }
.wish-heart:hover { transform: scale(1.08); border-color: var(--gold-300); }
.wish-heart:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; }
.wish-heart.is-on { background: rgba(20, 14, 12, .7); border-color: var(--gold-300); color: var(--gold-300); }
.wish-heart.is-on svg { fill: var(--gold-300); stroke: var(--gold-300); }
.wish-heart.is-pop { animation: wish-pop .5s var(--ease); }
@keyframes wish-pop { 0% { transform: scale(1); } 35% { transform: scale(1.32); } 65% { transform: scale(.92); } 100% { transform: scale(1); } }

/* أماكن خاصة */
.xcard__media .wish-heart { inset-block-start: auto; inset-block-end: 14px; }
.gallery__item .wish-heart { inset-block-start: 14px; }
.album__item .wish-heart { inset-block-start: 12px; inset-inline-end: 12px; }

/* ---------- زر العدّاد في الترويسة ---------- */
.wish-nav {
  order: 3;
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 42px;
  block-size: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(230, 207, 154, .35);
  background: rgba(20, 14, 12, .35);
  color: var(--cream-50);
  cursor: pointer;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.wish-nav svg { inline-size: 19px; block-size: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.wish-nav:hover, .wish-nav.has-items { color: var(--gold-300); border-color: rgba(230, 207, 154, .7); }
.wish-nav.has-items svg { fill: var(--gold-300); stroke: var(--gold-300); }
.wish-nav:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; }
.wish-nav__badge {
  position: absolute;
  inset-block-start: -5px;
  inset-inline-end: -5px;
  min-inline-size: 20px;
  block-size: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font: 700 .72rem/1 var(--font-body);
  color: var(--cocoa-900);
  background: var(--gold-grad);
  box-shadow: 0 0 0 2px var(--cocoa-950);
  transform: scale(0);
  transition: transform .35s var(--ease);
}
.wish-nav.has-items .wish-nav__badge { transform: scale(1); }
.wish-nav.is-bump { animation: wish-pop .5s var(--ease); }

@media (max-width: 900px) {
  .wish-nav { order: 1; margin-inline-start: auto; inline-size: 40px; block-size: 40px; }
  .wish-nav ~ .lang-switch { margin-inline-start: 0; }
}
@media (max-width: 480px) {
  .lang-switch__btn { min-inline-size: 30px; padding: 0 6px; block-size: 30px; }
  .nav { gap: 8px; }
  .brand { gap: 8px; }
  .brand__mark { inline-size: 40px; block-size: 40px; font-size: 1.35rem; }
  .brand__name { font-size: 1.4rem; }
  .brand__tag { display: none; }
}

/* ---------- الدرج الجانبي ---------- */
.wish-drawer {
  position: fixed;
  inset: 0;
  inset-inline-start: auto;
  margin: 0;
  padding: 0;
  inline-size: min(420px, 100vw);
  max-inline-size: 100vw;
  block-size: 100dvh;
  max-block-size: 100dvh;
  border: 0;
  background: transparent;
  color: var(--cream-50);
  overflow: visible;
}
.wish-drawer::backdrop { background: rgba(12, 8, 7, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: promo-fade .35s ease both; }
.wish-drawer[open] .wish-drawer__panel { animation: wish-in .45s var(--ease) both; }
.wish-drawer.is-closing .wish-drawer__panel { animation: wish-out .38s var(--ease) both; }
.wish-drawer.is-closing::backdrop { opacity: 0; transition: opacity .35s; }
@keyframes wish-in  { from { transform: translateX(var(--wish-from, -100%)); } to { transform: none; } }
@keyframes wish-out { from { transform: none; } to { transform: translateX(var(--wish-from, -100%)); } }
[dir="ltr"] .wish-drawer { --wish-from: 100%; }

.wish-drawer__panel {
  display: flex;
  flex-direction: column;
  block-size: 100%;
  background:
    radial-gradient(80% 40% at 50% 0%, rgba(212, 179, 115, .14), transparent 70%),
    linear-gradient(180deg, var(--cocoa-900), var(--cocoa-950));
  border-inline-start: 1px solid rgba(230, 207, 154, .3);
  box-shadow: 0 0 70px -20px rgba(0, 0, 0, .85);
}
.wish-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 24px 8px;
}
.wish-drawer__eyebrow { margin: 0 0 4px; color: var(--gold-300); font-size: .85rem; letter-spacing: .05em; }
.wish-drawer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1.25;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.wish-drawer__count { margin: 4px 0 0; color: rgba(245, 237, 225, .65); font-size: .9rem; }
.wish-drawer__close {
  flex: none;
  inline-size: 40px; block-size: 40px;
  border-radius: 50%;
  border: 1px solid rgba(230, 207, 154, .45);
  background: transparent;
  color: var(--cream-50);
  cursor: pointer;
}
.wish-drawer__close:hover { background: rgba(230, 207, 154, .15); }
.wish-drawer__lead { margin: 6px 24px 16px; color: rgba(245, 237, 225, .7); font-size: .95rem; line-height: 1.7; }

.wish-drawer__list {
  list-style: none;
  margin: 0;
  padding: 4px 24px 16px;
  flex: 1;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 12px;
}
.wish-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 244, 221, .04);
  border: 1px solid rgba(230, 207, 154, .16);
  animation: rise .45s var(--ease) both;
  transition: opacity .26s var(--ease), transform .26s var(--ease);
}
.wish-item.is-leaving { opacity: 0; transform: scale(.96); }
.wish-item img { inline-size: 72px; block-size: 72px; object-fit: cover; border-radius: 12px; background: var(--cocoa-950); }
.wish-item__title { margin: 0 0 4px; font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.45; color: var(--cream-50); }
.wish-item__link { font-size: .85rem; color: var(--gold-300); text-decoration: underline; text-underline-offset: 4px; }
.wish-item__remove {
  inline-size: 38px; block-size: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(230, 207, 154, .35);
  background: transparent;
  color: var(--gold-300);
  cursor: pointer;
  transition: background .3s var(--ease);
}
.wish-item__remove svg { inline-size: 17px; block-size: 17px; fill: var(--gold-300); }
.wish-item__remove:hover { background: rgba(230, 207, 154, .14); }
.wish-item__remove:hover svg { fill: none; stroke: var(--gold-300); stroke-width: 1.8; }

.wish-drawer__empty { display: none; flex: 1; padding: 40px 32px; text-align: center; align-content: center; justify-items: center; gap: 8px; }
.wish-drawer.is-empty .wish-drawer__empty { display: grid; }
.wish-drawer.is-empty .wish-drawer__list { display: none; }
.wish-drawer__empty svg { inline-size: 54px; block-size: 54px; fill: none; stroke: var(--gold-300); stroke-width: 1.2; opacity: .8; margin-block-end: 8px; }
.wish-drawer__empty-title { margin: 0; font-family: var(--font-serif); font-size: 1.3rem; color: var(--cream-50); }
.wish-drawer__empty-text { margin: 0 0 14px; color: rgba(245, 237, 225, .65); }

.wish-drawer__foot {
  display: grid;
  gap: 8px;
  padding: 18px 24px calc(20px + env(safe-area-inset-bottom));
  border-block-start: 1px solid rgba(230, 207, 154, .15);
  background: rgba(20, 14, 12, .6);
}
.wish-drawer__send { justify-content: center; gap: 10px; }
.wish-drawer__send svg { inline-size: 20px; block-size: 20px; }
.wish-drawer__send[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.wish-drawer__clear {
  justify-self: center;
  border: 0; background: none; padding: 6px 10px;
  color: rgba(245, 237, 225, .6);
  font: 500 .88rem var(--font-body);
  text-decoration: underline; text-underline-offset: 4px;
  cursor: pointer;
}
.wish-drawer__clear:hover { color: var(--gold-300); }
.wish-drawer.is-empty .wish-drawer__foot { display: none; }

/* ---------- رسالة قصيرة ---------- */
.wish-toast {
  position: fixed;
  inset-block-end: calc(22px + env(safe-area-inset-bottom));
  inset-inline-start: 50%;
  z-index: 120;
  padding: 10px 20px;
  border-radius: 999px;
  font: 600 .92rem/1.3 var(--font-body);
  color: var(--cocoa-900);
  background: var(--gold-grad);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translate3d(50%, 16px, 0);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
[dir="ltr"] .wish-toast { transform: translate3d(-50%, 16px, 0); }
.wish-toast.is-on { opacity: 1; transform: translate3d(50%, 0, 0); }
[dir="ltr"] .wish-toast.is-on { transform: translate3d(-50%, 0, 0); }

@media (prefers-reduced-motion: reduce) {
  .wish-heart.is-pop, .wish-nav.is-bump, .wish-drawer[open] .wish-drawer__panel, .wish-drawer.is-closing .wish-drawer__panel, .wish-item { animation: none !important; }
}
