/* =========================================================
   MYKONOS Cafe & Lounge — الواجهة العامة
   ألوان الهوية: #18539B كحلي · #0476D9 أزرق · #C9F48C ليموني · أبيض
   ========================================================= */
:root {
  --navy: #18539b;
  --navy-2: #1b59af;
  --blue: #0476d9;
  --lime: #c9f48c;
  --white: #ffffff;

  --bg: #f5f8fc;
  --bg-2: #eaf1fa;
  --surface: #ffffff;
  --surface-2: #f0f5fb;
  --ink: #0d2b52;
  --ink-2: #33507a;
  --muted: #6a82a3;
  --line: rgba(24, 83, 155, .12);
  --accent: var(--navy);
  --accent-ink: #fff;
  --hl: var(--lime);
  --logo-a: var(--navy);
  --logo-a2: var(--navy-2);
  --logo-b: #fff;
  --shadow-1: 0 1px 2px rgba(13, 43, 82, .06), 0 8px 24px -12px rgba(13, 43, 82, .18);
  --shadow-2: 0 2px 6px rgba(13, 43, 82, .06), 0 30px 60px -28px rgba(13, 43, 82, .35);
  --pattern-ink: var(--navy);

  --r-s: 12px;
  --r-m: 20px;
  --r-l: 32px;
  --wrap: 1200px;
  --head-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #061529;
  --bg-2: #081c36;
  --surface: #0b2343;
  --surface-2: #102d55;
  --ink: #eaf2ff;
  --ink-2: #c3d5ee;
  --muted: #8fa9cc;
  --line: rgba(201, 244, 140, .10);
  --accent: var(--lime);
  --accent-ink: #0b2343;
  --logo-a: #ffffff;
  --logo-a2: #ffffff;
  --logo-b: var(--bg);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, .3), 0 40px 70px -30px rgba(0, 0, 0, .8);
  --pattern-ink: #9cc3ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
/* السهم يتبع اتجاه اللغة: "التالي" لليسار بالعربي ولليمين بالإنكليزي */
[dir="rtl"] [data-icon="arrow"]:not(.flip) .ic, [dir="ltr"] [data-icon="arrow"].flip .ic { transform: scaleX(-1); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--navy);
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader::before { content: ""; position: absolute; inset: 0; background: url(../img/pattern-waves.webp) center/280px repeat; opacity: .08; }
.loader-coin { width: 92px; animation: coinIn 1.1s var(--spring) both; }
.loader-coin img { width: 100%; }
body.ready .loader { opacity: 0; visibility: hidden; }
@keyframes coinIn { from { transform: perspective(600px) rotateY(-160deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- announcement ---------- */
.announce { background: var(--lime); color: #0b2343; text-align: center; font-weight: 700; font-size: 14px; padding: 8px 16px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: max(16px, calc((100% - var(--wrap)) / 2));
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .5s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.brand { display: block; height: 40px; }
.logo-inline { display: block; height: 100%; }
.logo-inline svg { height: 100%; width: auto; display: block; overflow: visible; }
.logo-inline .m { fill: var(--logo-a); transition: fill .5s; }
.logo-inline .m2 { fill: var(--logo-a2); transition: fill .5s; }
.logo-inline .w { fill: var(--logo-b); transition: fill .5s; }
.nav { display: flex; gap: 6px; }
.nav a {
  text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; transition: background-color .25s, color .25s;
}
.nav a:hover, .nav a.active { background: var(--surface-2); color: var(--ink); }
.actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .3s var(--spring), background-color .3s;
}
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn:active { transform: scale(.92); }
.lang-btn span { font-weight: 800; font-size: 13px; letter-spacing: .5px; }
.burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800;
  padding: 14px 24px; border-radius: 999px; font-size: 16px;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background-color .3s;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 30px -10px rgba(24, 83, 155, .7); }
[data-theme="dark"] .btn-primary { background: var(--lime); color: #0b2343; box-shadow: 0 10px 30px -10px rgba(201, 244, 140, .45); }
.btn-primary:hover { transform: translateY(-3px); }
.btn-primary .btn-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: #0b2343; }
[data-theme="dark"] .btn-primary .btn-ic { background: #0b2343; color: var(--lime); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--surface); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: calc(100svh - var(--head-h)); display: grid; align-items: center; padding-block: 24px 80px; overflow: hidden; }
.wall-texture {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, color-mix(in srgb, var(--lime) 18%, transparent), transparent 60%);
}
.hero-grid { width: min(100% - 32px, var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-2); background: var(--surface); padding: 6px 14px 6px 16px; border-radius: 999px; box-shadow: var(--shadow-1); margin: 0 0 18px; font-size: 14px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 35%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px transparent; } }
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.08; margin: 0 0 18px; font-weight: 800; letter-spacing: -.5px; }
[dir="ltr"] .hero h1 { letter-spacing: -1.5px; }
.hero h1 em { font-style: normal; color: var(--navy); position: relative; white-space: nowrap; }
[data-theme="dark"] .hero h1 em { color: var(--lime); }
.hero h1 em::after {
  content: ""; position: absolute; inset-inline: -4px; bottom: .08em; height: .26em; z-index: -1; border-radius: 6px;
  background: var(--lime); transform-origin: right; animation: underline 1.2s .9s var(--ease) both;
}
[dir="ltr"] .hero h1 em::after { transform-origin: left; }
[data-theme="dark"] .hero h1 em::after { background: color-mix(in srgb, var(--blue) 55%, transparent); }
@keyframes underline { from { transform: scaleX(0); } }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 34em; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: clamp(18px, 4vw, 44px); margin: 40px 0 0; padding: 0; }
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .hero-stats dt { color: var(--lime); }
.hero-stats dd { margin: 6px 0 0; color: var(--muted); font-weight: 500; font-size: 14px; }

/* القوس السيكلادي مع البحر الحيّ */
.hero-stage { position: relative; perspective: 1200px; justify-self: center; width: min(100%, 470px); }
.arch {
  position: relative; aspect-ratio: 4 / 5.1; border-radius: 999px 999px 28px 28px; overflow: hidden;
  background: linear-gradient(#bfe0ff, #0476d9 55%, #18539b);
  box-shadow: var(--shadow-2), inset 0 0 0 10px var(--surface);
  transform-style: preserve-3d; isolation: isolate;
}
.arch canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.arch-fallback { position: absolute; inset: 0; display: none; background: linear-gradient(#cfe7ff 0 42%, #0476d9 42%, #18539b); }
.arch canvas.no-gl + .arch-fallback { display: block; }
.arch::after { /* حافة جدار مبيّض + ظل داخلي */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  box-shadow: inset 0 0 0 10px var(--surface), inset 0 24px 40px -20px rgba(0, 0, 0, .35);
}
.arch-frame {
  position: absolute; inset: -14px; border-radius: 999px 999px 36px 36px; z-index: -1;
  background: var(--surface); box-shadow: var(--shadow-1);
}
.arch-frame::before { /* نقشة الأصداف على إطار القوس */
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .07;
  background: var(--pattern-ink);
  -webkit-mask: url(../img/pattern-shells.webp) center/220px repeat; mask: url(../img/pattern-shells.webp) center/220px repeat;
}

/* العملة ثلاثية الأبعاد (الشعار الرسمي) */
.coin-wrap { position: absolute; left: 50%; top: 13%; width: 46%; aspect-ratio: 1; transform: translateX(-50%); z-index: 2; perspective: 900px; }
.coin { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.coin-face, .coin-edge { position: absolute; inset: 0; border-radius: 50%; }
.coin-face { display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.coin-face.front { background: radial-gradient(circle at 35% 30%, #fff, #eef4fb 70%); transform: translateZ(9px); box-shadow: inset 0 0 0 3px rgba(24, 83, 155, .08); }
.coin-face.front img { width: 74%; }
.coin-face.back { background: radial-gradient(circle at 35% 30%, #2a6ac0, var(--navy) 70%); transform: rotateY(180deg) translateZ(9px); color: #fff; flex-direction: column; gap: 2px; text-align: center; }
.coin-face.back::before { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: .14; background: url(../img/pattern-waves.webp) center/120px repeat; }
.b-year { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; color: var(--lime); line-height: 1; position: relative; }
.b-txt { font-size: 12px; letter-spacing: 4px; font-weight: 700; position: relative; }
.coin-edge { background: linear-gradient(90deg, #b9cbe2, #e9f0f8 45%, #9fb6d4); }
.coin-shadow { position: absolute; left: 12%; right: 12%; bottom: -26%; height: 14%; border-radius: 50%; background: radial-gradient(rgba(0, 20, 60, .35), transparent 70%); filter: blur(4px); transform: translateZ(-40px); }

.float-chip {
  position: absolute; z-index: 4; font-weight: 800; font-size: 13px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-chip::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 8px; background: var(--blue); vertical-align: middle; }
.chip-a { inset-inline-start: -22px; top: 58%; }
.chip-b { inset-inline-end: -18px; top: 78%; animation-delay: -3s; }
.chip-b::before { background: var(--lime); }
@keyframes bob { 50% { transform: translateY(-10px); } }

.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--line); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--navy); animation: cue 1.8s infinite; }
[data-theme="dark"] .scroll-cue span { background: var(--lime); }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =========================================================
   MENU
   ========================================================= */
.menu { position: relative; padding-block: 90px 60px; background: var(--bg-2); }
.pattern-band {
  position: absolute; inset: 0 0 auto; height: 420px; pointer-events: none; opacity: .06; background: var(--pattern-ink);
  -webkit-mask: url(../img/pattern-waves.webp) center/260px repeat, linear-gradient(#000, transparent);
  -webkit-mask-composite: source-in; mask: url(../img/pattern-waves.webp) center/260px repeat, linear-gradient(#000, transparent); mask-composite: intersect;
}
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 30px; position: relative; }
.kicker { margin: 0 0 6px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; font-size: 12px; color: var(--blue); }
[data-theme="dark"] .kicker { color: var(--lime); }
.sec-head h2, .story h2 { font-size: clamp(34px, 5vw, 56px); margin: 0; line-height: 1.15; font-weight: 800; }
.sec-sub { color: var(--muted); margin: 10px 0 0; }

.kind-switch { position: relative; display: flex; width: max-content; margin: 0 auto 10px; padding: 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-1); }
.kind { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 10px 26px; border-radius: 999px; font-weight: 800; color: var(--ink-2); transition: color .35s; }
.kind.on { color: #fff; }
[data-theme="dark"] .kind.on { color: #0b2343; }
.kind-glider { position: absolute; top: 6px; bottom: 6px; border-radius: 999px; background: var(--navy); transition: transform .5s var(--spring), width .5s var(--spring); }
[data-theme="dark"] .kind-glider { background: var(--lime); }

/* حلقة الأقسام ثلاثية الأبعاد */
.ring-stage { position: relative; height: 230px; perspective: 1100px; perspective-origin: 50% 30%; margin: 0 auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.ring-stage.dragging { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 40px; width: 128px; height: 148px; margin-left: -64px; transform-style: preserve-3d; }
.ring-item {
  position: absolute; inset: 0; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; text-align: center;
  background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); color: var(--ink);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: background-color .4s, box-shadow .4s, opacity .4s;
}
.ring-item .ri-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--navy); font-size: 26px; transition: background-color .4s, color .4s; }
[data-theme="dark"] .ring-item .ri-ic { color: var(--lime); }
.ring-item b { font-size: 14px; line-height: 1.3; font-weight: 800; }
.ring-item small { font-size: 11px; color: var(--muted); font-weight: 700; }
.ring-item.front { background: var(--navy); color: #fff; box-shadow: 0 24px 40px -18px rgba(24, 83, 155, .8); }
.ring-item.front .ri-ic { background: var(--lime); color: #0b2343; }
.ring-item.front small { color: #cfe0f7; }
[data-theme="dark"] .ring-item.front { background: var(--lime); color: #0b2343; box-shadow: 0 24px 40px -18px rgba(201, 244, 140, .5); }
[data-theme="dark"] .ring-item.front .ri-ic { background: #0b2343; color: var(--lime); }
[data-theme="dark"] .ring-item.front small { color: #27466e; }
.ring-floor { position: absolute; left: 50%; bottom: 8px; width: 70%; max-width: 640px; height: 40px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(color-mix(in srgb, var(--navy) 22%, transparent), transparent 70%); filter: blur(6px); }

/* أدوات البحث والتنقل اللاصقة */
.menu-tools { position: sticky; top: var(--head-h); z-index: 30; margin-inline: -16px; padding: 10px 16px; background: color-mix(in srgb, var(--bg-2) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.menu-tools.stuck { box-shadow: 0 10px 20px -18px rgba(0, 0, 0, .5); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; scroll-behavior: smooth; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s, color .25s; white-space: nowrap; }
.chip.on { background: var(--navy); color: #fff; box-shadow: none; }
[data-theme="dark"] .chip.on { background: var(--lime); color: #0b2343; }
.tool-row { display: flex; gap: 10px; align-items: center; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 999px; padding: 0 16px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); height: 46px; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); height: 100%; font-size: 16px; }
.temp-filter { display: flex; background: var(--surface); padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.tf { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.tf.on { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.tf[data-temp="hot"] .ic { color: #e0573b; }
.tf[data-temp="iced"] .ic { color: var(--blue); }

/* كتل الأقسام */
.menu-body { padding-top: 18px; min-height: 60vh; }
.cat-block { padding-top: 34px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cat-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; color: #fff; background: var(--navy); position: relative; overflow: hidden; flex: none; box-shadow: 0 12px 24px -14px rgba(24, 83, 155, .9); }
.cat-ic::before { content: ""; position: absolute; inset: 0; background: url(../img/pattern-shells.webp) center/90px; opacity: .18; }
.cat-ic .ic { position: relative; }
[data-theme="dark"] .cat-ic { background: var(--lime); color: #0b2343; }
.cat-head h3 { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; font-weight: 800; }
.cat-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.cat-head .count { margin-inline-start: auto; font-weight: 800; font-size: 13px; color: var(--muted); background: var(--surface); padding: 4px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; text-align: start; background: var(--surface); border-radius: var(--r-m); padding: 14px; box-shadow: var(--shadow-1);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); cursor: pointer; isolation: isolate;
  animation: cardIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) rotateX(10deg); } }
.card:hover { box-shadow: var(--shadow-2); }
.card::after { /* لمعة */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .45), transparent 45%);
}
[data-theme="dark"] .card::after { background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 0%), rgba(201, 244, 140, .12), transparent 45%); }
.card:hover::after { opacity: 1; }
.card-media { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #f7fafe, #e8f0fa); }
[data-theme="dark"] .card-media { background: linear-gradient(160deg, #f2f6fb, #dde8f5); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); mix-blend-mode: multiply; }
.card:hover .card-media img { transform: scale(1.07); }
.card-media.art { background: var(--navy); display: grid; place-items: center; color: #fff; }
.card-media.art::before { content: ""; position: absolute; inset: 0; background: url(../img/pattern-shells.webp) center/150px; opacity: .16; }
.card-media.art .ic { width: 42%; height: 42%; stroke-width: 1.1; position: relative; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .25)); }
.card-media.art.v1 { background: linear-gradient(150deg, #0476d9, #18539b); }
.card-media.art.v2 { background: linear-gradient(150deg, #18539b, #0e3a73); }
.card-media.art.v2 .ic { color: var(--lime); }
.card-body { padding: 12px 2px 2px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h4 { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 800; }
.card .alt { margin: 0; font-size: 13px; color: var(--muted); font-weight: 700; direction: ltr; text-align: start; }
[dir="ltr"] .card .alt { direction: rtl; }
.card .desc { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.temps { display: flex; gap: 6px; }
.temp { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; }
.temp.hot { background: #fde9e4; color: #d4482b; }
.temp.iced { background: #e3f0ff; color: var(--blue); }
.price { font-weight: 800; font-size: 16px; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-theme="dark"] .price { color: var(--lime); }
.price small { font-size: 12px; font-weight: 700; color: var(--muted); margin-inline-start: 3px; }
.badge { position: absolute; top: 22px; inset-inline-start: 22px; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .3px; padding: 4px 10px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .3); }
.badge.signature { background: var(--lime); color: #0b2343; }
.badge.popular { background: var(--navy); color: #fff; }
.badge.new { background: var(--blue); color: #fff; }

.empty, .load-error { text-align: center; padding: 60px 20px; color: var(--muted); }
.load-error { background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-1); max-width: 560px; margin: 30px auto; color: var(--ink); }
.load-error h3 { margin: 0 0 6px; }
.load-error p { color: var(--ink-2); margin: 0 0 18px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; padding-top: 30px; }
.skeleton-grid i { height: 320px; border-radius: var(--r-m); background: linear-gradient(90deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0/300% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* =========================================================
   ITEM SHEET
   ========================================================= */
.sheet { border: 0; padding: 0; background: none; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; color: var(--ink); overflow: hidden; }
.sheet::backdrop { background: rgba(4, 18, 40, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { display: grid; place-items: center; }
.sheet-card {
  position: relative; width: min(92vw, 860px); max-height: 88vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface);
  border-radius: var(--r-l); box-shadow: var(--shadow-2); animation: sheetIn .55s var(--spring) both;
}
@keyframes sheetIn { from { opacity: 0; transform: perspective(1200px) rotateX(14deg) translateY(40px) scale(.94); } }
.sheet.closing .sheet-card { animation: sheetOut .3s var(--ease) both; }
@keyframes sheetOut { to { opacity: 0; transform: translateY(30px) scale(.97); } }
.sheet-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 5; }
.sheet-grab { display: none; }
.sheet-media { position: relative; min-height: 380px; background: linear-gradient(160deg, #f7fafe, #dfeaf7); display: grid; place-items: center; perspective: 900px; overflow: hidden; touch-action: none; }
.sheet-media::before { content: ""; position: absolute; inset: 0; background: var(--navy); opacity: .06; -webkit-mask: url(../img/pattern-shells.webp) center/200px; mask: url(../img/pattern-shells.webp) center/200px; }
.sheet-media .float { width: 76%; transform-style: preserve-3d; transition: transform .2s ease-out; animation: floaty 5s ease-in-out infinite; }
.sheet-media img { width: 100%; border-radius: 50%; mix-blend-mode: multiply; filter: drop-shadow(0 30px 30px rgba(13, 43, 82, .25)); }
.sheet-media.art { background: linear-gradient(150deg, #0476d9, #18539b); color: #fff; }
.sheet-media.art::before { background: #fff; opacity: .12; }
.sheet-media.art .ic { width: 45%; height: auto; aspect-ratio: 1; stroke-width: 1; }
@keyframes floaty { 50% { translate: 0 -10px; } }
.sheet-body { padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 6px; }
.sheet-badges { display: flex; gap: 6px; min-height: 4px; }
.sheet-badges .badge { position: static; transform: none; box-shadow: none; }
.sheet-body h3 { margin: 4px 0 0; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; font-weight: 800; }
.sheet-alt { margin: 0; color: var(--muted); font-weight: 700; }
.sheet-desc { margin: 10px 0 0; color: var(--ink-2); font-size: 17px; }
.sheet-ing { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sheet-ing span { background: var(--surface-2); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 22px; border-top: 1px dashed var(--line); }
.sheet-temp { display: flex; gap: 8px; }
.sheet-temp .tlabel { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.sheet-temp .tlabel.hot { background: #fde9e4; color: #c23d22; }
.sheet-temp .tlabel.iced { background: #e3f0ff; color: #0a5fb0; }
.sheet-price { font-size: 26px; font-weight: 800; color: var(--navy); }
[data-theme="dark"] .sheet-price { color: var(--lime); }

/* =========================================================
   STORY
   ========================================================= */
.story { padding-block: 110px; position: relative; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.story blockquote { margin: 18px 0 30px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; line-height: 1.5; color: var(--navy); padding-inline-start: 20px; border-inline-start: 4px solid var(--lime); }
[data-theme="dark"] .story blockquote { color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 39px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--line), var(--blue), var(--line)); }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 18px; padding: 10px 0; position: relative; }
.timeline b { justify-self: center; align-self: start; background: var(--surface); color: var(--navy); font-weight: 800; padding: 6px 10px; border-radius: 12px; box-shadow: var(--shadow-1); position: relative; font-size: 15px; min-width: 64px; text-align: center; }
[data-theme="dark"] .timeline b { color: var(--lime); }
.timeline li.now b { background: var(--navy); color: #fff; }
[data-theme="dark"] .timeline li.now b { background: var(--lime); color: #0b2343; }
.timeline p { margin: 4px 0 0; color: var(--ink-2); }
.story-stack { position: relative; aspect-ratio: 4/5; perspective: 1400px; }
.story-stack img { position: absolute; width: 74%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: 22px; border: 8px solid var(--surface); box-shadow: var(--shadow-2); transition: transform 1.2s var(--ease); }
.story-stack img:nth-child(1) { top: 2%; inset-inline-start: 0; transform: rotate(-6deg) translateZ(-60px); }
.story-stack img:nth-child(2) { top: 22%; inset-inline-end: 0; transform: rotate(5deg) translateZ(-30px); }
.story-stack img:nth-child(3) { top: 44%; inset-inline-start: 6%; transform: rotate(-3deg); }
.story-stack img:nth-child(4) { top: 64%; inset-inline-end: 4%; width: 60%; transform: rotate(4deg) translateZ(30px); }
.story-stack.in img:nth-child(1) { transform: rotate(-9deg) translate(-4%, -2%) rotateY(10deg); }
.story-stack.in img:nth-child(2) { transform: rotate(7deg) translate(3%, -1%) rotateY(-10deg); }
.story-stack.in img:nth-child(3) { transform: rotate(-2deg) rotateX(6deg); }
.story-stack.in img:nth-child(4) { transform: rotate(5deg) translate(2%, 3%) rotateY(-8deg); }

/* =========================================================
   GALLERY — Coverflow
   ========================================================= */
.gallery { padding-block: 100px 80px; background: var(--bg-2); overflow: hidden; }
.flow { position: relative; height: clamp(280px, 46vw, 520px); perspective: 1600px; outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.flow-item {
  position: absolute; left: 50%; top: 0; height: 100%; aspect-ratio: 16/10; max-width: 86vw; border-radius: 24px; overflow: hidden;
  transform-style: preserve-3d; transition: transform .8s var(--ease), opacity .8s var(--ease), filter .8s; box-shadow: var(--shadow-2); background: var(--surface-2); cursor: pointer;
}
.flow-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.flow-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(4, 18, 40, .35)); }
.flow-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.flow-dots { display: flex; gap: 6px; }
.flow-dots button { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .4s var(--ease), background-color .3s; }
.flow-dots button.on { width: 26px; background: var(--navy); }
[data-theme="dark"] .flow-dots button.on { background: var(--lime); }

/* =========================================================
   VISIT
   ========================================================= */
.visit { padding-block: 100px; }
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; gap: 16px; }
.v-card { background: var(--surface); border-radius: var(--r-m); padding: 24px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 8px; text-decoration: none; transition: transform .45s var(--spring), box-shadow .45s; position: relative; overflow: hidden; }
a.v-card:hover { transform: translateY(-5px) rotateX(4deg); box-shadow: var(--shadow-2); }
.v-card .v-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--surface-2); color: var(--navy); }
[data-theme="dark"] .v-card .v-ic { color: var(--lime); }
.v-card h3 { margin: 8px 0 0; font-size: 18px; }
.v-card p { margin: 0; color: var(--ink-2); white-space: pre-line; }
.v-card .go { color: var(--blue); font-weight: 800; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 6px; }
[data-theme="dark"] .v-card .go { color: var(--lime); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; background: var(--navy); color: #fff; padding-block: 70px 30px; overflow: hidden; text-align: center; --logo-a: #fff; --logo-a2: #fff; --logo-b: var(--navy); }
[data-theme="dark"] .footer { background: #04101f; --logo-b: #04101f; }
.footer-pattern { position: absolute; inset: 0; background: url(../img/pattern-waves.webp) center/240px repeat; opacity: .07; }
.footer-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-logo { height: 130px; }
.footer p { margin: 0; color: #cfe0f7; max-width: 30em; }
.footer small { color: #9fbbe0; }
.admin-link { color: #9fbbe0; text-decoration: none; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .3s, transform .3s var(--spring); }
.socials a:hover { background: var(--lime); color: #0b2343; transform: translateY(-3px); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 140%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 14px; font-weight: 700; z-index: 99; transition: transform .45s var(--spring); max-width: 92vw; }
.toast.show { transform: translate(-50%, 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-stage { order: 1; width: min(78vw, 380px); margin-top: 10px; }
  .lead { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .eyebrow { margin-inline: auto; }
  .story-grid { grid-template-columns: 1fr; }
  .story-stack { max-width: 460px; width: 100%; margin: 20px auto 0; }
}
@media (max-width: 760px) {
  :root { --head-h: 60px; }
  .brand { height: 34px; }
  .nav {
    position: fixed; top: var(--head-h); inset-inline: 0; flex-direction: column; gap: 4px; padding: 14px 16px 22px; background: var(--bg);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .4); transform: translateY(-120%); transition: transform .45s var(--ease); z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a { padding: 12px 16px; font-size: 17px; }
  .burger { display: grid; }
  .hero { padding-bottom: 70px; }
  .hero h1 { font-size: clamp(36px, 11vw, 52px); }
  .float-chip { font-size: 12px; }
  .chip-a { inset-inline-start: -8px; }
  .chip-b { inset-inline-end: -6px; }
  .menu { padding-top: 70px; }
  .ring-stage { height: 200px; }
  .ring { width: 110px; height: 128px; margin-left: -55px; top: 30px; }
  .ring-item .ri-ic { width: 46px; height: 46px; font-size: 22px; }
  .ring-item b { font-size: 13px; }
  .menu-tools { padding-block: 8px; }
  .chips { padding-bottom: 6px; }
  .chip { padding: 7px 12px; font-size: 13px; }
  .search { height: 42px; padding: 0 12px; }
  .tf { padding: 7px 9px; }
  .tf[data-temp] span[data-i18n] { display: none; }
  .tf[data-temp="all"] { font-size: 13px; }
  .grid, .skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 8px; border-radius: 18px; }
  .card-media { border-radius: 13px; }
  .card h4 { font-size: 15px; }
  .card .alt { font-size: 12px; }
  .card .desc { font-size: 13px; }
  .badge { top: 14px; inset-inline-start: 14px; font-size: 10px; padding: 3px 8px; }
  .temp { width: 24px; height: 24px; font-size: 13px; }
  .price { font-size: 14px; }
  .cat-ic { width: 46px; height: 46px; border-radius: 14px; font-size: 23px; }
  .sheet[open] { place-items: end center; }
  .sheet-card { grid-template-columns: 1fr; width: 100%; max-height: 92vh; border-radius: 28px 28px 0 0; animation-name: sheetUp; }
  .sheet.closing .sheet-card { animation-name: sheetDown; }
  .sheet-grab { display: block; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: rgba(0, 0, 0, .2); z-index: 5; }
  .sheet-media { min-height: 0; aspect-ratio: 1.25; }
  .sheet-media .float { width: 62%; }
  .sheet-body { padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); }
  .story, .visit { padding-block: 80px; }
  .timeline li { grid-template-columns: 64px 1fr; gap: 12px; }
  .timeline::before { inset-inline-start: 31px; }
  .timeline b { min-width: 56px; font-size: 14px; }
}
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@media (max-width: 380px) {
  .kind { padding: 10px 18px; }
  .card .desc { display: none; }
}
@media (hover: none) { .card:hover { box-shadow: var(--shadow-1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   مجسّمات الأصناف ثلاثية الأبعاد (تتفكك لطبقات المكوّنات)
   ========================================================= */
.stk { --gap: 5px; --tilt: 62deg; --spin: -30deg; --R: 90px; position: relative; width: 100%; aspect-ratio: 1; perspective: 1000px; perspective-origin: 50% 35%; }
.stk.open { --gap: var(--gap-open); }
.stk-rot { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateY(4%) rotateX(var(--tilt)) rotateZ(var(--spin)); }
.ly {
  position: absolute; left: 50%; top: 50%; width: calc(var(--s) * 100%); aspect-ratio: 1; transform-style: preserve-3d;
  transform: translate(-50%, -50%) translateZ(calc((var(--i) - var(--mid)) * var(--gap)));
  transition: transform .8s cubic-bezier(.34, 1.45, .64, 1); transition-delay: calc(var(--i) * 40ms);
}
.stk:not(.open) .ly { transition-delay: calc((var(--n) - var(--i)) * 30ms); }
.ly > i {
  position: absolute; inset: 0; border-radius: 50%; background: var(--bg);
  transform: translateZ(calc(var(--k) * -1.6px)); filter: brightness(calc(1 - var(--k) * .1));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.ly.sh-sq > i { border-radius: 16%; }
.ly.sh-leaf > i { clip-path: var(--wavy, polygon(50% 0, 61% 8%, 75% 4%, 80% 18%, 95% 22%, 92% 37%, 100% 50%, 92% 63%, 95% 78%, 80% 82%, 75% 96%, 61% 92%, 50% 100%, 39% 92%, 25% 96%, 20% 82%, 5% 78%, 8% 63%, 0 50%, 8% 37%, 5% 22%, 20% 18%, 25% 4%, 39% 8%)); box-shadow: none; }
.ly.k-dots > i, .ly.k-ice > i, .ly.k-glass > i, .ly.k-thin > i { box-shadow: none; }
.ly.k-bread.top > i { background: radial-gradient(circle at 45% 38%, #f6d699, #e2a75d 55%, #b0702f); }
.ly.k-liquid > i { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18), inset 0 -6px 14px rgba(0, 0, 0, .18); }
.stk-shadow { position: absolute; left: 22%; right: 22%; bottom: 8%; height: 12%; border-radius: 50%; background: radial-gradient(rgba(0, 20, 60, .32), transparent 70%); filter: blur(5px); transition: transform .8s; }
.stk.open .stk-shadow { transform: scale(.8); opacity: .7; }

/* أسماء المكوّنات عند التفكيك — دائماً مواجهة للمشاهد */
.lb { position: absolute; left: 50%; top: 50%; pointer-events: none; opacity: 0; transition: opacity .4s; white-space: nowrap; }
.lb.r { transform: rotateZ(calc(-1 * var(--spin))) rotateX(calc(-1 * var(--tilt))) translate(var(--R), -50%); }
.lb.l { transform: rotateZ(calc(-1 * var(--spin))) rotateX(calc(-1 * var(--tilt))) translate(calc(-100% - var(--R)), -50%); }
.stk.open .lb { opacity: 1; transition-delay: .45s; }
.lb span { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1.2 var(--font); color: var(--ink); background: var(--surface); padding: 5px 10px; border-radius: 999px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); }
.lb span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }

.stk.mini { --tilt: 58deg; --spin: -32deg; --gap: 4px; perspective: 600px; }
.card-media.art .stk { position: relative; width: 92%; z-index: 1; }
.card:hover .stk.mini { --gap: 9px; }
.card .stk.mini .ly { transition-duration: .5s; }

/* منطقة المجسّم في نافذة الصنف */
.sheet-media .stk { width: min(100%, 440px); }
.sheet-media.model { cursor: grab; }
.sheet-media.model:active { cursor: grabbing; }
.explode-btn {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; padding: 9px 16px; border-radius: 999px; box-shadow: 0 10px 24px -10px rgba(24, 83, 155, .8);
}
[data-theme="dark"] .explode-btn { background: var(--lime); color: #0b2343; }
.photo-thumb { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 4; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: var(--shadow-1); background: #fff; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; filter: none; border-radius: 0; }
.sheet-media .photo-big { position: absolute; inset: 0; display: none; place-items: center; z-index: 3; background: inherit; }
.sheet-media.show-photo .photo-big { display: grid; }
.sheet-media .photo-big img { width: 70%; border-radius: 50%; }
.sheet-media.show-photo .explode-btn { display: none; }
.sheet-media.model::before { opacity: .05; }

/* ============ صفحة المنيو المستقلة ============ */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; text-decoration: none; color: var(--ink); background: var(--surface); padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.page-menu .menu { padding-top: 34px; min-height: 100vh; }
.page-menu .footer { padding-block: 40px 26px; }
.page-menu .footer-logo { height: 90px; }
.menu-contact { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.menu-contact a, .menu-contact span { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .1); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; direction: ltr; }
.menu-contact span { direction: inherit; }

/* شريط الأصناف المميزة بالصفحة الرئيسية */
.teaser { padding-block: 90px 70px; background: var(--bg-2); position: relative; }
.teaser .grid { margin-top: 10px; }
.teaser-cta { display: flex; justify-content: center; margin-top: 34px; }
@media (max-width: 760px) {
  .lb span { font-size: 11px; padding: 4px 8px; }
  .photo-thumb { width: 52px; height: 52px; }
  .back-link span.txt { display: none; }
}
/* المجسّم الكبير أصغر شوي حتى تبين أسماء المكوّنات داخل الإطار */
.sheet-media .stk { width: min(100%, 420px); }
.sheet-media .ly { width: calc(var(--s) * 62%); }
.sheet-media .stk .lb span { font-size: 12px; }
@media (max-width: 760px) {
  .sheet-media.model { aspect-ratio: auto; height: min(56vh, 420px); }
  .sheet-media .stk { width: min(100%, 360px); }
  .sheet-media .stk .lb span { font-size: 11px; padding: 3px 8px; }
  .explode-btn { bottom: 10px; font-size: 13px; padding: 8px 14px; }
}

/* =========================================================
   ثيم الأعياد — يتفعّل بـ html[data-season="xmas"]
   ========================================================= */
:root { --xmas-red: #d4313f; --xmas-gold: #e9c46a; }
.season-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
[data-theme="light"] .season-canvas { filter: drop-shadow(0 0 1.5px rgba(24, 83, 155, .55)); }

/* أضواء الزينة تحت الهيدر */
.garland { position: absolute; inset-inline: 0; bottom: -12px; height: 18px; display: flex; justify-content: space-between; padding-inline: 10px; pointer-events: none; }
.garland::before { content: ""; position: absolute; inset-inline: 0; top: 2px; height: 10px; border-bottom: 1.5px solid rgba(24, 83, 155, .35); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.garland i { position: relative; width: 8px; height: 11px; margin-top: 6px; border-radius: 50% 50% 45% 45%; background: var(--c, var(--xmas-red)); box-shadow: 0 0 10px 2px var(--c, var(--xmas-red)); animation: twinkle 1.6s ease-in-out infinite; animation-delay: var(--d); }
.garland i::before { content: ""; position: absolute; top: -3px; left: 2px; width: 4px; height: 3px; border-radius: 1px; background: #8aa0bf; }
.garland i:nth-child(4n+1) { --c: var(--xmas-red); }
.garland i:nth-child(4n+2) { --c: var(--xmas-gold); }
.garland i:nth-child(4n+3) { --c: var(--lime); }
.garland i:nth-child(4n) { --c: #6fc3ff; }
.garland i:nth-child(even) { margin-top: 9px; }
@keyframes twinkle { 50% { opacity: .35; box-shadow: 0 0 2px 0 var(--c); } }

/* لمسات الأعياد على عناصر الهوية */
[data-season="xmas"] .eyebrow .dot { background: var(--xmas-red); box-shadow: 0 0 0 4px rgba(212, 49, 63, .3); }
[data-season="xmas"] .hero h1 em::after { background: linear-gradient(90deg, var(--lime), var(--xmas-gold)); }
[data-season="xmas"] .announce { background: linear-gradient(90deg, var(--xmas-red), #a51d2d); color: #fff; }
[data-season="xmas"] .announce::before, [data-season="xmas"] .announce::after { content: "✦"; margin-inline: 10px; color: var(--xmas-gold); }
[data-season="xmas"] .badge.seasonal, .badge.seasonal { background: var(--xmas-red); color: #fff; }

/* ثلج متراكم فوق البطاقات والأزرار */
[data-season="xmas"] .card::before, [data-season="xmas"] .kind-switch::before, [data-season="xmas"] .btn-primary::before, [data-season="xmas"] .v-card::before {
  content: ""; position: absolute; z-index: 4; pointer-events: none; top: -7px; inset-inline: 12px; height: 15px; border-radius: 12px 12px 6px 6px;
  background:
    radial-gradient(circle at 12% 100%, #fff 0 7px, transparent 7.5px),
    radial-gradient(circle at 38% 100%, #fff 0 9px, transparent 9.5px),
    radial-gradient(circle at 63% 100%, #fff 0 6px, transparent 6.5px),
    radial-gradient(circle at 88% 100%, #fff 0 8px, transparent 8.5px),
    linear-gradient(#fff, #fff) bottom / 100% 6px no-repeat;
  filter: drop-shadow(0 2px 2px rgba(13, 43, 82, .15));
}
[data-season="xmas"] .btn-primary, [data-season="xmas"] .kind-switch { position: relative; }
[data-season="xmas"] .btn-primary::before { inset-inline: 10px; top: -6px; height: 12px; }
[data-season="xmas"] .card:hover::before { animation: snowWobble .6s ease; }
@keyframes snowWobble { 30% { transform: translateY(-2px) scaleX(1.02); } }
[data-season="xmas"] .footer { background: linear-gradient(180deg, var(--navy), #0f3a73); }

/* العدّاد التنازلي */
.countdown { display: inline-flex; flex-direction: column; gap: 8px; margin-top: 26px; padding: 14px 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); cursor: pointer; user-select: none; position: relative; }
.cd-title { font-weight: 800; font-size: 14px; color: var(--ink-2); }
.cd-title b { color: var(--xmas-red); }
.cd-cells { display: flex; gap: 8px; }
.cd-cell { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 6px; border-radius: 14px; background: linear-gradient(160deg, var(--navy), #0f3a73); color: #fff; }
.cd-cell b { font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-cell b.flip { animation: cdFlip .45s ease; }
.cd-cell small { font-size: 11px; color: #cfe0f7; margin-top: 4px; }
.cd-cell:last-child { background: linear-gradient(160deg, var(--xmas-red), #a51d2d); }
@keyframes cdFlip { from { transform: perspective(200px) rotateX(-90deg); opacity: .2; } }
.countdown.done { background: linear-gradient(120deg, var(--xmas-red), var(--navy)); }
.countdown.done .cd-title { color: #fff; font-size: 18px; }
.countdown.done .cd-cells { display: none; }
.season-bar { display: flex; justify-content: center; padding: 6px 12px 0; }
.season-bar .countdown { margin-top: 10px; flex-direction: row; align-items: center; gap: 12px; padding: 8px 12px; }
.season-bar .cd-cell { min-width: 44px; padding: 5px 4px; }
.season-bar .cd-cell b { font-size: 18px; }
[data-theme="dark"] .cd-title { color: var(--ink); }
@media (max-width: 760px) {
  .hero .countdown { margin-inline: auto; }
  .cd-cell { min-width: 52px; }
  .season-bar .countdown { flex-direction: column; gap: 6px; }
  .garland i:nth-child(n+17) { display: none; }
}

/* صور الأصناف المرفوعة بدقة عالية: بدون دمج لوني، وتلتزم بنقطة التركيز */
.card-media img.photo, .sheet-media img.photo { mix-blend-mode: normal; }
.card-media img.fit-contain { object-fit: contain; padding: 6%; }
.sheet-media .photo-big img.photo { width: 88%; aspect-ratio: 1; border-radius: 22px; object-fit: cover; box-shadow: 0 30px 50px -24px rgba(13, 43, 82, .5); }
.sheet-media .photo-big img.photo.fit-contain { object-fit: contain; box-shadow: none; }
.view-btn { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); color: var(--ink); font-weight: 800; font-size: 13px; padding: 8px 12px; border-radius: 999px; box-shadow: var(--shadow-1); }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .nav { visibility: hidden; transform: translateY(calc(-100% - 120px)); transition: transform .45s var(--ease), visibility 0s .45s; }
  .nav.open { visibility: visible; transform: none; transition: transform .45s var(--ease), visibility 0s; }
}
.photo-thumb.to-3d { display: grid; place-items: center; background: var(--navy); border-color: var(--lime); }
.photo-thumb .t3d { color: var(--lime); font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.sheet-media:not(.show-photo) .photo-thumb.to-3d { background: #fff; }
.sheet-media:not(.show-photo) .photo-thumb.to-3d .t3d { color: var(--navy); }

/* =========================================================
   ثيم الكرسمس الرسمي: html[data-theme="dark"][data-skin="xmas"]
   ليل شتوي كحلي + ذهبي وأحمر احتفالي (ألوان الشعار ما تتغير)
   ========================================================= */
[data-skin="xmas"] {
  --bg: #0b1e33; --bg-2: #0e2540; --surface: #12304f; --surface-2: #1a3d63;
  --ink: #fbf5ea; --ink-2: #e2d6c2; --muted: #b8a98f;
  --line: rgba(233, 196, 106, .16);
  --lime: #e9c46a; --accent: #e9c46a; --logo-b: #0b1e33;
  --pattern-ink: #e9c46a;
}
[data-skin="xmas"] body { background-image: radial-gradient(900px 400px at 80% -5%, rgba(212, 49, 63, .18), transparent 60%), radial-gradient(700px 400px at 0% 40%, rgba(47, 125, 91, .16), transparent 60%); background-attachment: fixed; }
[data-skin="xmas"] .btn-primary, [data-skin="xmas"] .kind-glider, [data-skin="xmas"] .chip.on, [data-skin="xmas"] .ring-item.front, [data-skin="xmas"] .explode-btn, [data-skin="xmas"] .timeline li.now b {
  background: linear-gradient(135deg, var(--xmas-red), #a51d2d); color: #fff; box-shadow: 0 12px 26px -12px rgba(212, 49, 63, .8);
}
[data-skin="xmas"] .kind.on, [data-skin="xmas"] .ring-item.front small { color: #fff; }
[data-skin="xmas"] .ring-item.front .ri-ic, [data-skin="xmas"] .btn-primary .btn-ic { background: var(--xmas-gold); color: #4a1016; }
[data-skin="xmas"] .hero h1 em, [data-skin="xmas"] .price, [data-skin="xmas"] .sheet-price, [data-skin="xmas"] .hero-stats dt, [data-skin="xmas"] .kicker { color: var(--xmas-gold); }
[data-skin="xmas"] .cat-ic { background: linear-gradient(135deg, #2f7d5b, #1d5a40); color: #fff; }
[data-skin="xmas"] .card-media.art { background: linear-gradient(150deg, #1d5a40, #0e2540); }
[data-skin="xmas"] .badge.signature { background: var(--xmas-gold); color: #4a1016; }
[data-skin="xmas"] .footer { background: linear-gradient(180deg, #7d1622, #4a0d14); --logo-b: #4a0d14; }
[data-skin="xmas"] .arch { background: linear-gradient(#0b1e33, #12304f); }
[data-skin="xmas"] .flow-dots button.on { background: var(--xmas-gold); }
[data-skin="xmas"] .cd-cell { background: linear-gradient(160deg, #2f7d5b, #1d5a40); }

/* ---------- خريطة زورونا ---------- */
.visit-map { position: relative; margin-top: 18px; border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow-1); background: var(--surface); aspect-ratio: 16 / 7; min-height: 260px; }
.visit-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
[data-theme="dark"] .visit-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); }
.map-open { position: absolute; bottom: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: var(--shadow-1); }
[data-theme="dark"] .map-open { background: var(--lime); color: #0b2343; }
@media (max-width: 760px) { .visit-map { aspect-ratio: 4 / 5; min-height: 0; } }

/* =========================================================
   توافق كامل مع الهواتف (كل المقاسات من 320px)
   ========================================================= */
.nav-backdrop { display: none; }
@media (max-width: 760px) {
  .nav { position: fixed; top: var(--head-h); inset-inline: 0; z-index: 39; padding: 10px 14px 18px; border-radius: 0 0 22px 22px; background: var(--surface); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .45); }
  .nav a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 14px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 38; background: rgba(4, 18, 40, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }
  .topbar { gap: 8px; }
  .footer { padding-block: 50px calc(26px + env(safe-area-inset-bottom)); }
  .footer-logo { height: 100px; }
  .footer p { font-size: 15px; padding-inline: 10px; }
  .menu-contact { flex-direction: column; align-items: stretch; padding-inline: 10px; }
  .menu-contact a, .menu-contact span { justify-content: center; }
  .sec-head h2, .story h2 { font-size: clamp(28px, 8vw, 40px); }
  .visit-grid { grid-template-columns: 1fr; }
  .v-card { padding: 18px; }
  .flow { height: 62vw; }
  .flow-item { max-width: 78vw; }
  .story-stack { max-width: 92vw; }
  .sheet-card { max-height: 94dvh; }
  .sheet-body h3 { font-size: 24px; }
  .countdown { padding: 12px; }
}
/* الهواتف الصغيرة (iPhone SE وأمثاله) */
@media (max-width: 380px) {
  :root { --head-h: 56px; }
  .brand { height: 28px; }
  .icon-btn { width: 38px; height: 38px; }
  .actions { gap: 6px; }
  .back-link { padding: 8px 10px; }
  .hero h1 { font-size: 32px; }
  .lead { font-size: 15px; }
  .btn { padding: 12px 18px; font-size: 15px; }
  .hero-stats { gap: 16px; }
  .kind { padding: 9px 14px; font-size: 14px; }
  .grid, .skeleton-grid { gap: 8px; }
  .card h4 { font-size: 14px; }
  .cd-cell { min-width: 46px; padding: 6px 4px; }
  .cd-cell b { font-size: 20px; }
  .cd-cells { gap: 6px; }
  .float-chip { display: none; }
  .wrap { width: calc(100% - 24px); }
  .menu-tools { margin-inline: -12px; padding-inline: 12px; }
}
/* الشاشات العريضة جداً */
@media (min-width: 1600px) {
  :root { --wrap: 1360px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
/* الجوال بالوضع الأفقي */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding-block: 20px 50px; }
  .hero-stage { width: min(40vw, 300px); }
  .sheet-card { grid-template-columns: 1fr 1fr; max-height: 96dvh; }
  .sheet-media.model { height: 90dvh; }
}
.credit { font-size: 13px; color: #9fbbe0; }
.credit a { color: var(--lime); font-weight: 800; text-decoration: none; letter-spacing: .5px; }
.credit a:hover { text-decoration: underline; }
[data-skin="xmas"] .credit a { color: var(--xmas-gold); }

/* المنيو بتمريرة وحدة: عنوان لكل نوع + فاصل بالشرائح */
.kind-head { display: flex; align-items: center; gap: 14px; margin: 46px 0 2px; padding: 14px 18px; border-radius: 20px; background: linear-gradient(120deg, var(--navy), #0f3a73); color: #fff; scroll-margin-top: calc(var(--head-h) + 120px); position: relative; overflow: hidden; }
.kind-head:first-child { margin-top: 10px; }
.kind-head::after { content: ""; position: absolute; inset: 0; background: url(../img/pattern-waves.webp) center/200px; opacity: .1; }
.kind-head span { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--lime); color: #0b2343; font-size: 24px; position: relative; z-index: 1; }
.kind-head h2 { margin: 0; font-size: clamp(24px, 4vw, 34px); font-weight: 800; position: relative; z-index: 1; }
[data-skin="xmas"] .kind-head { background: linear-gradient(120deg, #7d1622, #2f7d5b); }
.cat-block { scroll-margin-top: calc(var(--head-h) + 120px); }
.chip-sep { flex: none; width: 1.5px; margin: 6px 4px; background: var(--line); border-radius: 2px; }
.chip-kind { background: transparent; box-shadow: inset 0 0 0 1.5px var(--navy); color: var(--navy); font-weight: 800; }
.chip-kind.kind-on { background: var(--navy); color: #fff; }
[data-theme="dark"] .chip-kind { box-shadow: inset 0 0 0 1.5px var(--lime); color: var(--lime); }
[data-theme="dark"] .chip-kind.kind-on { background: var(--lime); color: #0b2343; }

/* أشكال الخبز: النسبة والحافة تتحدد من الخوارزمية */
.ly { aspect-ratio: var(--ar, 1); }
.ly.sh-m > i { border-radius: 0; }
.ly.k-cuts > i { box-shadow: none; }
.stk.m-bun .ly.k-bread.top > i { box-shadow: inset 0 -8px 18px rgba(90, 40, 10, .35), inset 0 6px 12px rgba(255, 230, 190, .4); }
.stk.m-samoon .ly.k-bread > i, .stk.m-baguette .ly.k-bread > i { box-shadow: inset 0 -6px 14px rgba(90, 40, 10, .35); }

/* الصور الحقيقية بالبطاقات: حادة وبدقتها الكاملة (بدون طبقات 3D تنعّم الصورة) */
.card-media img.photo { transition: transform .8s var(--ease); image-rendering: auto; }
.card:hover .card-media img.photo { transform: scale(1.04); }
.card-media img.photo:not(.fit-contain) { width: 100%; height: 100%; object-fit: cover; }
/* أنيميشن دخول البطاقة بدون دوران 3D حتى ما تتنعّم الصورة */
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
/* صورة الصنف داخل نافذة التفاصيل (زر الصورة) بأعلى دقة */
.sheet-media .photo-big img.photo { width: 92%; max-width: 520px; }
