/* ============================================================
   بالميت — ملف التنسيق
   الألوان المعتمدة في الهوية (لا تُغيَّر):
   الأساسية: الوردي #C98083 · الأخضر #6B7D5C · الكريمي #F6EFDC
   الثانوية: الأخضر الفاتح #A4B58F · الوردي الفاتح #E2AFAF · الوردي المتوسط #D6999A
   ============================================================ */

/* ---------- الخطوط المحلية ---------- */
@font-face {
  font-family: "29LT Adir";
  src: url("fonts/29LT-Adir-Regular.woff") format("woff"),
       url("fonts/29LT-Adir-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* خط Layla Boxer خاص باسم «بالميت» في الشعار فقط */
@font-face {
  font-family: "Layla Boxer";
  src: url("fonts/Layla-Boxer.woff") format("woff"),
       url("fonts/Layla-Boxer.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ألوان الهوية */
  --pink: #C98083;
  --green: #6B7D5C;
  --cream: #F6EFDC;
  --green-light: #A4B58F;
  --pink-light: #E2AFAF;
  --pink-mid: #D6999A;

  /* لون النص الطويل: درجة عميقة من أخضر الهوية لضمان وضوح القراءة على الخلفيات الفاتحة */
  --ink: #3E4A35;
  --paper: color-mix(in srgb, var(--cream) 55%, white);

  --font: "29LT Adir", system-ui, sans-serif;

  /* سماكة الخط: الملف المتوفر هو 29LT Adir Regular فقط،
     لذلك تُغمَّق العناوين بحدّ رقيق بلون النص نفسه دون تغيير الخط.
     عند توفر ملفات Bold وSemiBold الأصلية تُضاف بـ @font-face ويُحذف هذا التغميق (انظري README). */
  --w-bold: .036em;
  --w-semi: .022em;

  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --ease-soft: cubic-bezier(.33, 1, .68, 1);
  --shadow: 0 18px 40px -22px rgba(62, 74, 53, .45);
  --shadow-lift: 0 30px 50px -26px rgba(62, 74, 53, .55);
  --wrap: 1180px;
  color-scheme: light;
}

/* ---------- الأساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.lock { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.85;
  font-synthesis: none;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--green); }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-weight: 400; line-height: 1.35; margin: 0; }
p { margin: 0; }
strong, b { font-weight: 400; -webkit-text-stroke: var(--w-semi) currentColor; }
ul, ol { margin: 0; padding: 0; list-style: none; }
bdi[dir="ltr"] { unicode-bidi: isolate; letter-spacing: .02em; }

/* درجات السماكة */
.t-bold { -webkit-text-stroke: var(--w-bold) currentColor; }
.t-semi { -webkit-text-stroke: var(--w-semi) currentColor; }

.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 8px; }
.on-green :focus-visible, .drawer-foot :focus-visible, .zoom :focus-visible { outline-color: var(--cream); }

.skip-link {
  position: fixed; top: 10px; right: 10px; z-index: 200;
  background: var(--cream); color: var(--ink);
  padding: 10px 18px; border-radius: 12px;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 120px); position: relative; }
.on-green { background: var(--green); color: var(--cream); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head h2 {
  font-size: clamp(1.85rem, 4.4vw, 2.75rem); color: var(--green);
  -webkit-text-stroke: var(--w-bold) currentColor; text-wrap: balance;
}
.section-head p { margin-top: 12px; font-size: 1.125rem; }
.section-head h2::after {
  content: ""; display: block; width: 26px; height: 26px; margin: 14px auto 0;
  background: url("assets/decor/flower-pink.svg") center / contain no-repeat;
}

/* ---------- الأزرار ---------- */
.btn {
  --bg: var(--green); --fg: var(--cream);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 28px;
  border-radius: 999px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg);
  font-size: 1.125rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  -webkit-text-stroke: var(--w-semi) currentColor;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn-primary { -webkit-text-stroke: var(--w-bold) currentColor; }
.btn .ico { transition: transform .3s var(--ease); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-ghost { --bg: transparent; --fg: var(--green); border-color: var(--green); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.btn[disabled], .btn[aria-disabled="true"] {
  --bg: var(--pink-light); --fg: var(--ink);
  border-color: var(--pink-light); cursor: not-allowed; transform: none; box-shadow: none;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .btn:hover .ico { transform: translateX(-2px) rotate(-6deg); }
  .btn-ghost:hover { background: var(--green); color: var(--cream); }
  .btn[disabled]:hover { transform: none; box-shadow: none; }
}
.link-btn {
  background: none; border: 0; padding: 8px 4px; min-height: 44px;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: inline-grid; place-items: center;
  background: transparent; transition: background-color .2s, transform .25s var(--ease);
}
.icon-btn:hover { background: rgba(107, 125, 92, .12); }

/* ---------- الترويسة ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  height: var(--header-h);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .45); }
.header-inner {
  height: 100%;
  width: min(100% - 32px, var(--wrap)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: block; flex: none; }
.brand img { height: 50px; width: auto; }

.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-size: 1.0625rem; line-height: 1.4;
  transition: background-color .25s, color .25s;
}
.main-nav a:hover { background: rgba(246, 239, 220, .14); }
.main-nav a.active { background: var(--cream); color: var(--green); -webkit-text-stroke: var(--w-semi) currentColor; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.cart-btn, .menu-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(246, 239, 220, .14); color: var(--cream);
  display: grid; place-items: center;
  transition: background-color .2s, transform .2s;
}
.cart-btn:hover, .menu-btn:hover { background: rgba(246, 239, 220, .26); }
.cart-btn .ico, .menu-btn .ico { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: -3px; left: -3px;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--cream); color: var(--green);
  font-size: .8125rem; line-height: 22px; text-align: center;
  -webkit-text-stroke: var(--w-semi) currentColor;
  box-shadow: 0 0 0 2px var(--green);
  transform: scale(0); transition: transform .3s var(--ease);
}
.cart-count.has { transform: scale(1); }
.cart-btn.bump { animation: bump .5s var(--ease); }
.cart-btn.bump .cart-count { animation: count-pop .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.16) rotate(-6deg); } 60% { transform: scale(.95); } }
@keyframes count-pop { 40% { transform: scale(1.45); background: var(--pink-light); } }
.menu-btn { display: none; }

/* ---------- القسم الرئيسي ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 7vw, 96px) clamp(90px, 10vw, 130px);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--ink); }
.eyebrow::before {
  content: ""; width: 22px; height: 22px;
  background: url("assets/decor/flower-pink.svg") center / contain no-repeat;
}
.hero h1 {
  margin-top: 14px;
  font-size: clamp(2.35rem, 6.2vw, 4.4rem);
  line-height: 1.22; color: var(--green);
  -webkit-text-stroke: var(--w-bold) currentColor;
  text-wrap: balance;
}
.hero .lead { margin-top: 20px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 34em; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* تكوين الصور: دائرة بسيطة + توهّج ضوء دافئ + ثلاث صور حقيقية */
.hero-art {
  --mx: 0; --my: 0;
  position: relative; aspect-ratio: 1 / .96;
  width: 100%; max-width: 580px; justify-self: center;
}
.art-circle {
  position: absolute; width: 80%; aspect-ratio: 1; left: 10%; top: 9%;
  border-radius: 50%; background: var(--pink-light);
}
.art-glow {
  position: absolute; width: 74%; aspect-ratio: 1; left: 13%; top: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 239, 220, .95), rgba(246, 239, 220, .55) 45%, rgba(246, 239, 220, 0) 72%);
  pointer-events: none;
}
.shot { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.shot-in { width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.s-main { width: 47%; aspect-ratio: 3 / 4; left: 26.5%; top: 6%; z-index: 2; translate: calc(var(--mx) * -6px) calc(var(--my) * -6px); }
.s-side { width: 33%; aspect-ratio: 1; z-index: 3; }
.s-a { right: 0; top: 4%; rotate: 5deg; translate: calc(var(--mx) * 12px) calc(var(--my) * 10px); }
.s-b { left: 0; bottom: 3%; rotate: -5deg; translate: calc(var(--mx) * 16px) calc(var(--my) * 12px); }
.s-a, .s-b, .s-main { transition: translate .6s var(--ease-soft); }
.hero .deco { position: absolute; pointer-events: none; }
.hero .d1 { width: 40px; top: 10%; right: 47%; }
.hero .d2 { width: 28px; bottom: 26%; right: 3%; }
.hero .d3 { width: 34px; top: 5%; left: 3%; }
.hero-art .d4 { width: 30px; left: 70%; bottom: 8%; z-index: 4; }

/* شريط الزهور (من نمط الهوية) */
.pattern-band {
  position: absolute; inset-inline: 0; bottom: 24px; height: 30px;
  background-size: 64px 30px; background-repeat: repeat-x; background-position: center;
  opacity: .5;
}
.pb-green { background-image: url("assets/decor/flower-row-green.svg"); }
.pb-cream { background-image: url("assets/decor/flower-row-cream.svg"); opacity: .35; }
.site-footer .pb-cream { position: relative; bottom: auto; top: 18px; margin-bottom: -10px; }

/* ---------- المنتجات ---------- */
.products { background: var(--cream); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 32px); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: calc(var(--radius) + 6px);
  padding: 12px;
  box-shadow: 0 0 0 1px rgba(107, 125, 92, .14), 0 0 0 rgba(62, 74, 53, 0);
  transition: translate .45s var(--ease), box-shadow .45s var(--ease);
}
.card-media {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--card-bg, var(--green));
  transition: transform .3s var(--ease);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card-media .peek {
  position: absolute; inset-inline: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--cream); color: var(--green); font-size: .9375rem;
  -webkit-text-stroke: var(--w-semi) currentColor;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .35s var(--ease);
}
.card-media:focus-visible .peek { opacity: 1; transform: none; }
.card-body { padding: 18px 10px 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-name { display: inline-flex; align-items: center; gap: 8px; }
.card-name img { width: 18px; height: 18px; transition: transform .6s var(--ease); }
.card h3 { font-size: 1.625rem; color: var(--green); -webkit-text-stroke: var(--w-semi) currentColor; }
.price { font-size: 1.25rem; white-space: nowrap; -webkit-text-stroke: var(--w-semi) currentColor; }
.card-desc { font-size: 1rem; line-height: 1.8; flex: 1; }
.card-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; margin-top: 10px; }
.card-actions .btn { padding-inline: 12px; font-size: 1.0625rem; }
.card.sold .card-media img { filter: grayscale(.55) opacity(.75); }

@media (hover: hover) {
  .card:hover { translate: 0 -8px; box-shadow: 0 0 0 1px rgba(107, 125, 92, .2), var(--shadow-lift); }
  .card:hover .card-media img { transform: scale(1.05); }
  .card:hover .peek { opacity: 1; transform: none; }
  .card:hover .card-name img { transform: rotate(72deg) scale(1.1); }
  .card:hover [data-act="add"] { box-shadow: 0 10px 22px -12px rgba(62, 74, 53, .7); }
}
/* الأجهزة اللمسية: استجابة عند الضغط بدل المرور */
@media (hover: none) {
  .card-media:active { transform: scale(.98); }
  .card:active .card-name img { transform: rotate(72deg); }
}

/* تأكيد الإضافة على زر البطاقة */
.btn.just-added { animation: added .7s var(--ease); }
.btn.just-added .ico { animation: tick .6s .1s var(--ease) both; }
@keyframes added { 0% { transform: scale(.92); } 45% { transform: scale(1.05); } 100% { transform: none; } }
@keyframes tick { from { transform: scale(0) rotate(-45deg); } to { transform: none; } }
.fly-img { position: fixed; z-index: 300; pointer-events: none; border-radius: 18px; object-fit: cover; box-shadow: var(--shadow-lift); }

.stock-badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: .9375rem; line-height: 1.4;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(164, 181, 143, .35); color: var(--ink);
}
.stock-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.stock-badge.out { background: var(--pink-light); }
.stock-badge.out::before { background: var(--pink); }
.card-media .stock-badge { position: absolute; top: 12px; right: 12px; background: var(--cream); }

.shared-facts { margin-top: clamp(32px, 5vw, 48px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.shared-facts li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid rgba(107, 125, 92, .3);
  font-size: 1rem; line-height: 1.5;
}
.shared-facts li::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: url("assets/decor/flower-green.svg") center / contain no-repeat;
}

/* ---------- بالميت في مساحتك ---------- */
.spaces { background: var(--cream); padding-top: clamp(24px, 4vw, 48px); overflow: hidden; }
.spaces-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.spaces-head { position: sticky; top: calc(var(--header-h) + 40px); padding-top: clamp(8px, 3vw, 40px); }
.spaces-head h2 { font-size: clamp(1.85rem, 4.2vw, 2.75rem); color: var(--green); -webkit-text-stroke: var(--w-bold) currentColor; line-height: 1.3; text-wrap: balance; }
.spaces-head h2::after {
  content: ""; display: block; width: 26px; height: 26px; margin-top: 14px;
  background: url("assets/decor/flower-green.svg") center / contain no-repeat;
}
.spaces-head .lead-in { margin-top: 18px; font-size: 1.25rem; color: var(--green); -webkit-text-stroke: var(--w-semi) currentColor; }
.spaces-head p + p { margin-top: 8px; font-size: 1.0625rem; }

.spaces-layout > * { min-width: 0; }
.space-track { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: clamp(14px, 2vw, 26px); align-items: start; }
.space-item {
  --shift: 0px;
  display: flex; flex-direction: column; gap: 12px; align-items: stretch;
  padding: 0; border: 0; background: none; text-align: start;
  translate: 0 var(--shift);
}
.space-item:nth-child(1) { margin-top: 72px; }
.space-item:nth-child(3) { margin-top: 150px; }
.space-frame {
  position: relative; display: block; aspect-ratio: var(--ar, 2 / 3);
  border-radius: var(--radius); overflow: hidden; background: var(--pink-light);
  box-shadow: var(--shadow);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}
.space-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.space-more {
  position: absolute; bottom: 14px; inset-inline-start: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--cream); color: var(--green); font-size: .9375rem;
  -webkit-text-stroke: var(--w-semi) currentColor;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .35s var(--ease);
}
.space-name { display: inline-flex; align-items: center; gap: 8px; font-size: 1.1875rem; color: var(--green); -webkit-text-stroke: var(--w-semi) currentColor; padding-inline: 4px; }
.space-name::before { content: ""; width: 14px; height: 14px; background: url("assets/decor/flower-pink.svg") center / contain no-repeat; transition: transform .5s var(--ease); }
@media (hover: hover) {
  .space-item:hover .space-frame { box-shadow: var(--shadow-lift); transform: translateY(-6px); }
  .space-item:hover .space-frame img { transform: scale(1.04); }
  .space-item:hover .space-more, .space-item:focus-visible .space-more { opacity: 1; transform: none; }
  .space-item:hover .space-name::before { transform: rotate(72deg) scale(1.15); }
}
.space-item:focus-visible { outline: none; }
.space-item:focus-visible .space-frame { outline: 3px solid var(--green); outline-offset: 4px; }
.space-item:active .space-frame { transform: scale(.985); }
.space-dots { display: none; }

/* ---------- قصتنا ---------- */
.story { overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.story h2 { font-size: clamp(1.85rem, 4.4vw, 2.8rem); -webkit-text-stroke: var(--w-bold) currentColor; }
.story-text p { margin-top: 18px; font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 2; }
.story-text p:first-of-type { margin-top: 24px; }

/* معرض التفاصيل: ثلاث صور بإطارات بسيطة وتكوين غير متماثل متوازن */
.story-gallery {
  position: relative; width: 100%; max-width: 540px; justify-self: center;
  container-type: inline-size;
  aspect-ratio: 1 / 1.12;
}
.sg-item {
  position: absolute; padding: 8px 8px 0; border: 0;
  background: var(--cream); border-radius: var(--radius-sm);
  box-shadow: 0 24px 44px -24px rgba(0, 0, 0, .55);
  display: flex; flex-direction: column;
  transition: rotate .5s var(--ease), translate .5s var(--ease), box-shadow .5s var(--ease);
}
.sg-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.sg-label {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; color: var(--green); font-size: 1.0625rem;
  -webkit-text-stroke: var(--w-semi) currentColor;
}
.sg-a { width: 52%; left: 44%; top: 9%; top: 9cqw; rotate: 2deg; z-index: 1; }
.sg-b { width: 38%; left: 2%; top: 0; rotate: -3.5deg; z-index: 2; }
.sg-c { width: 40%; left: 15%; top: 52%; top: 58cqw; rotate: 1.5deg; z-index: 3; }
.sg-flower { position: absolute; width: 30px; right: 2%; bottom: 4%; pointer-events: none; }
@media (hover: hover) {
  .sg-item:hover { rotate: 0deg; translate: 0 -8px; z-index: 5; box-shadow: 0 34px 50px -24px rgba(0, 0, 0, .6); }
}
.sg-item:active { translate: 0 -2px; }

/* ---------- طريقة الطلب ---------- */
.how { background: var(--pink-light); }
.how .section-head h2 { color: var(--ink); }
.how .section-head h2::after { background-image: url("assets/decor/flower-green.svg"); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.step {
  position: relative; background: var(--cream); border-radius: var(--radius);
  padding: 34px 26px 30px; text-align: center;
  transition: translate .4s var(--ease), box-shadow .4s var(--ease);
}
@media (hover: hover) { .step:hover { translate: 0 -4px; box-shadow: var(--shadow); } .step:hover .step-ico { transform: rotate(-8deg) scale(1.05); } }
.step-ico {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; background: var(--green); color: var(--cream);
  transition: transform .4s var(--ease);
}
.step-ico .ico { width: 30px; height: 30px; }
.step-num {
  position: absolute; top: 16px; right: 18px;
  width: 34px; height: 34px; border-radius: 50%; line-height: 34px;
  background: var(--pink-light); font-size: 1.0625rem; -webkit-text-stroke: var(--w-semi) currentColor;
}
.step h3 { font-size: 1.5rem; color: var(--green); -webkit-text-stroke: var(--w-semi) currentColor; }
.step p { margin-top: 8px; }
.notes { margin-top: 32px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.notes p { display: inline-flex; align-items: flex-start; gap: 10px; max-width: 760px; text-align: start; }
.notes .ico { margin-top: .3em; }
.note-main { font-size: 1.1875rem; background: var(--cream); padding: 12px 22px; border-radius: 999px; }
.note-main .ico { color: var(--green); }
.note-sub { font-size: 1rem; }

/* ---------- تواصل معنا ---------- */
.contact { overflow-x: clip; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact-card {
  height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 30px 18px; border-radius: var(--radius); text-decoration: none; text-align: center;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(107, 125, 92, .14);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.c-ico {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  background: var(--green); color: var(--cream); transition: transform .4s var(--ease);
}
.contact-grid li:nth-child(even) .c-ico { background: var(--pink); color: var(--cream); }
@media (hover: hover) {
  a.contact-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(107, 125, 92, .2), var(--shadow); }
  a.contact-card:hover .c-ico { transform: rotate(-8deg) scale(1.06); }
}
a.contact-card:active { transform: scale(.98); }
.c-ico .ico { width: 26px; height: 26px; }
.c-label { font-size: 1rem; }
.c-value { font-size: 1.1875rem; color: var(--green); overflow-wrap: anywhere; }

/* ---------- التذييل ---------- */
.site-footer { position: relative; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-block: 56px 36px; }
.f-brand img { height: 92px; width: auto; }
.f-brand p { margin-top: 16px; font-size: 1.1875rem; }
.site-footer h2 { font-size: 1.1875rem; margin-bottom: 12px; -webkit-text-stroke: var(--w-semi) currentColor; }
.f-links ul, .f-social ul { display: grid; gap: 4px; }
.site-footer a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; min-height: 40px; font-size: 1.0625rem; }
.site-footer a:hover span, .f-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.copyright {
  width: min(100% - 32px, var(--wrap)); margin-inline: auto;
  border-top: 1px solid rgba(246, 239, 220, .3); padding-top: 22px;
  font-size: 1rem; text-align: center;
}

/* ---------- الإشعار ---------- */
.toast-region {
  position: fixed; z-index: 120; inset-inline: 0; bottom: max(18px, env(safe-area-inset-bottom));
  display: grid; justify-items: center; pointer-events: none; padding-inline: 16px;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  background: var(--green); color: var(--cream);
  padding: 10px; padding-inline-start: 16px;
  border-radius: 999px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5);
  font-size: 1.0625rem; max-width: 100%;
  animation: toast-in .45s var(--ease);
}
.toast.out { animation: toast-out .3s ease forwards; }
.toast .t-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--cream); color: var(--green); display: grid; place-items: center; flex: none; }
.toast .t-ico .ico { width: 18px; height: 18px; animation: tick .5s .15s var(--ease) both; }
.toast button {
  border: 0; background: var(--cream); color: var(--green);
  padding: 6px 16px; min-height: 40px; border-radius: 999px; white-space: nowrap;
  -webkit-text-stroke: var(--w-semi) currentColor;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(14px); } }

/* ---------- النوافذ ---------- */
dialog { padding: 0; border: 0; color: var(--ink); background: var(--cream); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(45, 54, 38, .5); opacity: 0; transition: opacity .3s; }
dialog.is-open::backdrop { opacity: 1; }

.modal {
  width: min(100% - 24px, 1000px); max-height: calc(100dvh - 24px);
  border-radius: calc(var(--radius) + 6px); overflow: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(18px) scale(.98);
  transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.modal.is-open { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 12px; left: 12px; z-index: 6; background: var(--cream); box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); }
.modal-close:hover { background: var(--cream); transform: rotate(90deg); }
.pm-grid { display: grid; grid-template-columns: 1.05fr 1fr; }

/* معرض صور المنتج */
.pm-gallery { display: flex; flex-direction: column; gap: 10px; padding: 12px; padding-inline-end: 0; }
.g-stage {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  background: var(--g-bg, var(--green));
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: zoom-in;
  transition: background-color .5s var(--ease);
}
.g-stage:focus-visible { outline-offset: -4px; outline-color: var(--cream); }
.g-track { position: absolute; inset: 0; }
.g-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transform: translateX(var(--from, 0)) scale(1.02);
  transition: opacity .45s var(--ease-soft), transform .55s var(--ease-soft);
  pointer-events: none;
}
.g-slide.is-active { opacity: 1; transform: translateX(var(--drag, 0px)) scale(1); }
.g-stage.dragging .g-slide.is-active { transition: none; }
.g-slide img { width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.g-nav, .g-zoom {
  position: absolute; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: rgba(246, 239, 220, .92); color: var(--green);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45);
  transition: opacity .25s, transform .25s var(--ease), background-color .2s;
}
.g-nav { top: 50%; margin-top: -22px; }
.g-prev { right: 12px; transform: scaleX(-1); }
.g-next { left: 12px; }
.g-prev:hover { transform: scaleX(-1) scale(1.08); }
.g-next:hover { transform: scale(1.08); }
.g-zoom { top: 12px; right: 12px; }
.g-zoom:hover { transform: scale(1.08); }
.g-nav .ico, .g-zoom .ico { width: 22px; height: 22px; }
@media (hover: hover) {
  .g-nav { opacity: 0; }
  .g-stage:hover .g-nav, .g-stage:focus-within .g-nav { opacity: 1; }
}
.g-caption {
  position: absolute; z-index: 3; bottom: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(246, 239, 220, .92); color: var(--ink); font-size: .9375rem; line-height: 1.5;
}
.g-caption .g-count { color: var(--green); -webkit-text-stroke: var(--w-semi) currentColor; }
.g-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.g-thumb {
  position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  aspect-ratio: 1; background: var(--g-bg, var(--green));
  opacity: .62; transition: opacity .25s, transform .25s var(--ease), box-shadow .25s;
}
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb:hover { opacity: .9; }
.g-thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--green); }

.pm-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 12px; }
.pm-body h2 { font-size: clamp(2rem, 4vw, 2.7rem); color: var(--green); line-height: 1.2; -webkit-text-stroke: var(--w-bold) currentColor; }
.pm-price { font-size: 1.5rem; -webkit-text-stroke: var(--w-semi) currentColor; }
.pm-desc { font-size: 1.125rem; }
.pm-specs { display: grid; gap: 6px; padding: 14px 0; border-block: 1px solid rgba(107, 125, 92, .22); }
.pm-specs li { display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.pm-specs li::before { content: ""; width: 14px; height: 14px; flex: none; background: url("assets/decor/flower-pink.svg") center / contain no-repeat; }
.pm-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.pm-total { font-size: 1.125rem; }
.pm-total strong { color: var(--green); font-size: 1.3rem; }
.pm-incart { font-size: .9375rem; }

/* تكبير الصورة */
.zoom {
  width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; inset: 0;
  background: rgba(46, 55, 39, .97); color: var(--cream);
  opacity: 0; transition: opacity .3s var(--ease);
  overflow: hidden;
}
.zoom::backdrop { background: transparent; }
.zoom.is-open { opacity: 1; }
.z-stage {
  position: absolute; inset: 0; bottom: 84px; top: env(safe-area-inset-top, 0px);
  display: grid; place-items: center; overflow: hidden;
  touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none;
}
.z-stage.zoomed { cursor: grab; }
.z-stage.zoomed.panning { cursor: grabbing; }
.z-stage img {
  max-width: calc(100vw - 32px); max-height: calc(100dvh - 116px - env(safe-area-inset-top, 0px)); width: auto; height: auto;
  transform-origin: 0 0; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--s, 1));
  transition: transform .35s var(--ease); -webkit-user-drag: none;
  border-radius: 10px;
}
.z-stage.panning img, .z-stage.pinching img { transition: none; }
.z-bar {
  position: absolute; inset-inline: 0; bottom: 0; height: 84px; padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.z-btn { width: 48px; height: 48px; background: rgba(246, 239, 220, .14); color: var(--cream); }
.z-btn:hover { background: rgba(246, 239, 220, .26); }
#z-prev .ico { transform: scaleX(-1); }
.z-hint { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); inset-inline: 0; text-align: center; font-size: .9375rem; opacity: .85; pointer-events: none; }

/* خيار المصباح */
.lamp-option {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: 0 0 0 1.5px rgba(107, 125, 92, .25);
  transition: box-shadow .2s, background-color .2s;
  position: relative;
}
.lamp-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lamp-box {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  border: 2px solid var(--green); display: grid; place-items: center; color: transparent;
  transition: background-color .2s, color .2s, transform .3s var(--ease);
}
.lamp-box .ico { width: 18px; height: 18px; }
.lamp-option input:checked + .lamp-box { background: var(--green); color: var(--cream); transform: scale(1.08); }
.lamp-option:has(input:checked) { box-shadow: 0 0 0 2px var(--green); }
.lamp-option input:focus-visible + .lamp-box { outline: 3px solid var(--green); outline-offset: 3px; }
.lamp-option.is-disabled { opacity: .55; cursor: not-allowed; }
.lamp-text { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex: 1; line-height: 1.5; }
.lamp-title { font-size: 1.0625rem; }
.lamp-price { font-size: .9375rem; }

/* السلة */
.drawer {
  position: fixed; inset: 0 auto 0 0; margin: 0;
  width: min(100%, 440px); height: 100dvh; max-height: 100dvh;
  display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .45s var(--ease);
  box-shadow: 20px 0 50px -30px rgba(0, 0, 0, .5);
}
.drawer:not([open]) { display: none; }
.drawer.is-open { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; padding-top: max(16px, env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(107, 125, 92, .2);
}
.drawer-head h2 { font-size: 1.5rem; color: var(--green); -webkit-text-stroke: var(--w-bold) currentColor; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px; }
.cart-empty { text-align: center; padding: 48px 12px; display: grid; justify-items: center; gap: 10px; }
.cart-empty img { width: 64px; margin-bottom: 6px; }
.drawer.is-open .cart-empty img { animation: bloom .8s .2s var(--ease) both; }
@keyframes bloom { from { transform: scale(0) rotate(-120deg); opacity: 0; } }
.empty-title { font-size: 1.5rem; color: var(--green); -webkit-text-stroke: var(--w-bold) currentColor; }
.cart-empty .btn { margin-top: 12px; }
.cart-list { display: grid; gap: 14px; }
.cart-item {
  display: grid; grid-template-columns: 88px 1fr; gap: 14px;
  padding: 12px; border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(107, 125, 92, .14);
}
.cart-item.is-new { animation: item-in .45s var(--ease); }
@keyframes item-in { from { opacity: 0; transform: translateX(-14px); } }
.cart-item img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; }
.ci-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ci-name { font-size: 1.25rem; color: var(--green); line-height: 1.4; -webkit-text-stroke: var(--w-semi) currentColor; }
.ci-unit { font-size: .9375rem; }
.ci-remove { width: 40px; height: 40px; margin: -6px -6px 0 0; color: var(--ink); }
.ci-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: 0 0 0 1.5px rgba(107, 125, 92, .35); }
.qty button { width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; }
.qty button:hover:not(:disabled) { background: rgba(107, 125, 92, .12); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-size: 1.0625rem; }
.ci-line { font-size: 1.125rem; white-space: nowrap; -webkit-text-stroke: var(--w-semi) currentColor; }
.ci-lamp { margin-top: 10px; padding: 8px 12px; }
.ci-lamp .lamp-title { font-size: 1rem; }
.ci-limit { margin-top: 6px; font-size: .875rem; }
.cart-msg { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--pink-light); font-size: .9375rem; line-height: 1.7; }
.cart-msg.ok { background: rgba(164, 181, 143, .4); }

.drawer-foot {
  padding: 16px 20px max(18px, env(safe-area-inset-bottom));
  background: var(--green); color: var(--cream);
  border-radius: var(--radius) var(--radius) 0 0;
}
.totals { margin: 0 0 14px; display: grid; gap: 2px; }
.totals div { display: flex; justify-content: space-between; font-size: 1.0625rem; }
.totals dd { margin: 0; }
.totals .grand { margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(246, 239, 220, .3); font-size: 1.375rem; -webkit-text-stroke: var(--w-semi) currentColor; }
.drawer-foot .btn-primary { --bg: var(--cream); --fg: var(--green); }
.drawer-foot .btn-ghost { --fg: var(--cream); border-color: rgba(246, 239, 220, .6); }
.drawer-foot .btn-ghost:hover { background: var(--cream); color: var(--green); }
.foot-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.foot-note { margin-top: 10px; font-size: .875rem; line-height: 1.75; }
.copy-fallback { margin-top: 10px; }
.copy-fallback textarea {
  width: 100%; min-height: 150px; padding: 10px 12px; border-radius: 12px; border: 0;
  background: var(--cream); color: var(--ink); font: inherit; font-size: .9375rem; line-height: 1.7; resize: vertical;
}
.noscript-note { grid-column: 1 / -1; text-align: center; }

/* ============================================================
   الحركة
   كل الحركات تعمل فقط عند تشغيل JavaScript ودون تفضيل «تقليل الحركة»،
   ويبقى المحتوى ظاهرًا في جميع الحالات الأخرى.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* افتتاحية القسم الرئيسي: الصور بالتتابع، ثم العنوان، ثم الأزرار */
  .js .hero .art-circle { animation: in-scale .9s var(--ease) both; }
  .js .hero .s-main { animation: in-main .95s .08s var(--ease) both; }
  .js .hero .art-glow { animation: in-glow 1.6s .35s var(--ease-soft) both; }
  .js .hero .s-a { animation: in-side-a .9s .22s var(--ease) both; }
  .js .hero .s-b { animation: in-side-b .9s .34s var(--ease) both; }
  .js .hero .s-a .shot-in { animation: float 7s 1.3s ease-in-out infinite; }
  .js .hero .s-b .shot-in { animation: float 8s 1.6s ease-in-out infinite reverse; }
  .js .hero .eyebrow { animation: in-up .7s .1s var(--ease) both; }
  .js .hero h1 { animation: in-title .9s .18s var(--ease) both; }
  .js .hero .lead { animation: in-up .8s .32s var(--ease) both; }
  .js .hero-cta .btn { animation: in-up .7s .46s var(--ease) both; }
  .js .hero-cta .btn + .btn { animation-delay: .54s; }
  .js .hero .deco { animation: bloom .8s var(--ease) both; }
  .js .hero .d1 { animation-delay: .7s; } .js .hero .d2 { animation-delay: .85s; }
  .js .hero .d3 { animation-delay: .95s; } .js .hero .d4 { animation-delay: 1.05s; }

  @keyframes in-scale { from { opacity: 0; transform: scale(.82); } }
  @keyframes in-main { from { opacity: 0; transform: translateY(34px) scale(.95); } }
  @keyframes in-glow { from { opacity: 0; transform: scale(.55); } }
  @keyframes in-side-a { from { opacity: 0; transform: translate(26px, -18px) scale(.9); rotate: 14deg; } }
  @keyframes in-side-b { from { opacity: 0; transform: translate(-26px, 22px) scale(.9); rotate: -14deg; } }
  @keyframes in-up { from { opacity: 0; transform: translateY(16px); } }
  @keyframes in-title { from { opacity: 0; transform: translateY(22px); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -20% 0); } }
  @keyframes float { 50% { transform: translateY(-7px); } }

  /* الظهور أثناء التمرير — لكل قسم طابعه */
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .section-head h2::after, .js .spaces-head h2::after { transform: scale(0) rotate(-120deg); transition: transform .8s .3s var(--ease); }
  .js .in h2::after { transform: none; }

  /* المنتجات: ارتفاع بالتتابع */
  .js .reveal-rise { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .7s var(--ease), transform .9s var(--ease), box-shadow .45s var(--ease), translate .45s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
  .js .reveal-rise.in { opacity: 1; transform: none; }
  .js .reveal-rise.in.settled { transition-delay: 0s; }

  /* في مساحتك: ستارة تنكشف من الأسفل مع استقرار الصورة */
  .js .reveal-curtain .space-frame { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.1s var(--ease-soft), box-shadow .45s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--i, 0) * 140ms); }
  .js .reveal-curtain .space-frame img { transform: scale(1.14); transition: transform 1.6s var(--ease-soft); transition-delay: calc(var(--i, 0) * 140ms); }
  .js .reveal-curtain .space-name { opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 140ms + .5s); }
  .js .reveal-curtain.in .space-frame { clip-path: inset(0 0 0 0 round var(--radius)); }
  .js .reveal-curtain.in .space-frame img { transform: none; }
  .js .reveal-curtain.in .space-name { opacity: 1; transform: none; }

  /* قصتنا: النص ينساب جانبيًا، والصور تستقر في مكانها */
  .js .reveal-side { opacity: 0; transform: translateX(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
  .js .reveal-side.in { opacity: 1; transform: none; }
  .js .reveal-settle { opacity: 0; transform: translateY(50px) scale(.94); transition: opacity .8s var(--ease), transform 1s var(--ease), rotate .5s var(--ease), translate .5s var(--ease), box-shadow .5s var(--ease); transition-delay: calc(var(--i, 0) * 160ms); }
  .js .reveal-settle.in { opacity: 1; transform: none; }
  .js .sg-flower { transform: scale(0) rotate(-120deg); transition: transform .8s .7s var(--ease); }
  .js .story-gallery.in .sg-flower { transform: none; }

  /* طريقة الطلب: ظهور بخفة مع تفتّح الأيقونة */
  .js .reveal-pop { opacity: 0; transform: scale(.94) translateY(14px); transition: opacity .6s var(--ease), transform .7s var(--ease), box-shadow .4s var(--ease), translate .4s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
  .js .reveal-pop.in.settled, .js .reveal-settle.in.settled { transition-delay: 0s; }
  .js .reveal-pop.in { opacity: 1; transform: none; }
  .js .reveal-pop .step-ico { transform: scale(.4) rotate(-40deg); transition: transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + .2s); }
  .js .reveal-pop.in .step-ico { transform: none; }

  /* تواصل: انزلاق أفقي لطيف بالتتابع */
  .js .reveal-slide { opacity: 0; transform: translateX(-22px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .reveal-slide.in { opacity: 1; transform: none; }
}

/* حماية: إن تعذّر تشغيل البرمجة يظهر كل شيء فورًا */
.no-anim .reveal, .no-anim .reveal-rise, .no-anim .reveal-side, .no-anim .reveal-settle, .no-anim .reveal-pop, .no-anim .reveal-slide,
.no-anim .reveal-curtain .space-frame, .no-anim .reveal-curtain .space-frame img, .no-anim .reveal-curtain .space-name {
  opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important;
}

/* ---------- التجاوب ---------- */
@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .card-actions { grid-template-columns: 1fr; }
  .spaces-layout { grid-template-columns: minmax(0, 1fr); }
  .spaces-head { position: static; text-align: center; max-width: 640px; margin-inline: auto; padding-top: 0; }
  .spaces-head h2::after { margin-inline: auto; }
}
@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .main-nav {
    position: absolute; top: var(--header-h); inset-inline: 0;
    background: var(--green); padding: 8px 16px 18px;
    box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .5);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .main-nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 16px; font-size: 1.1875rem; border-radius: 14px; }
  .header-actions { margin-inline-start: auto; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-art { order: 1; max-width: 440px; }
  .hero .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero .d1 { right: 8%; top: 4%; }

  .product-grid { gap: 14px; }
  .card { padding: 10px; }
  .card h3 { font-size: 1.375rem; }
  .story-grid { grid-template-columns: 1fr; }
  .story-text { text-align: center; }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .pm-grid { grid-template-columns: 1fr; }
  .pm-gallery { padding: 12px 12px 0; }
  .g-stage { aspect-ratio: 4 / 5; max-height: 60vh; }
}
@media (max-width: 760px) {
  .product-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 18px; }
  /* في مساحتك: معرض أفقي قابل للسحب */
  .space-track {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -16px; padding: 6px 16px 14px;
    scroll-padding-inline: 16px;
  }
  .space-track::-webkit-scrollbar { display: none; }
  .space-item { flex: 0 0 auto; scroll-snap-align: center; margin-top: 0 !important; translate: none; }
  .space-frame { height: min(56vh, 440px); width: auto; }
  .space-item:first-child { scroll-snap-align: start; }
  .space-item:last-child { scroll-snap-align: end; }
  .space-dots { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
  .space-dots button {
    width: 32px; height: 32px; padding: 0; border: 0; background: none;
    display: grid; place-items: center;
  }
  .space-dots button::before {
    content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--green-light);
    transition: width .35s var(--ease), background-color .3s;
  }
  .space-dots button[aria-current="true"]::before { width: 26px; background: var(--green); }
}
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .brand img { height: 44px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 2.6rem); }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-art { max-width: 340px; }
  .hero .d2 { display: none; }
  .product-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .card-actions { grid-template-columns: 1fr 1.3fr; }
  .card .peek { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { flex-direction: row; text-align: start; padding: 18px; gap: 4px 14px; display: grid; grid-template-columns: auto 1fr; }
  .contact-card .c-ico { grid-row: span 2; margin: 0; }
  .contact-card .c-value { font-size: 1.125rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .f-brand img { margin-inline: auto; }
  .note-main { border-radius: var(--radius-sm); }
  .modal { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .modal-close { top: max(12px, env(safe-area-inset-top, 0px)); }
  .pm-body { padding: 20px 16px 0; }
  .pm-cta {
    position: sticky; bottom: 0; z-index: 4; margin-inline: -16px;
    padding: 12px 16px max(14px, env(safe-area-inset-bottom, 0px));
    background: var(--cream); box-shadow: 0 -12px 24px -18px rgba(62, 74, 53, .5);
  }
  .g-thumbs { gap: 6px; }
  .sg-label { height: 34px; font-size: .9375rem; }
  .sg-item { padding: 6px 6px 0; }
}
@media (max-width: 380px) {
  .card-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
