/* ==================================================================
   هوم بيكري — المنيو
   اللغة البصرية مأخوذة من المحل نفسه: القوس (الشعار، الشبابيك، الرفوف)،
   الجص الأبيض، خشب البلوط المضلّع، وأحمر الهوية.
   ================================================================== */

/* ---------- ألوان الفصل الحالي (تتحوّل بنعومة أثناء النزول) ---------- */
@property --bg        { syntax: '<color>'; inherits: true; initial-value: #F5EFE6; }
@property --fg        { syntax: '<color>'; inherits: true; initial-value: #2A1A13; }
@property --fg2       { syntax: '<color>'; inherits: true; initial-value: #6F5B4E; }
@property --surface   { syntax: '<color>'; inherits: true; initial-value: #FFFCF6; }
@property --sfg       { syntax: '<color>'; inherits: true; initial-value: #2A1A13; }
@property --sfg2      { syntax: '<color>'; inherits: true; initial-value: #6F5B4E; }
@property --hair      { syntax: '<color>'; inherits: true; initial-value: rgba(42, 26, 19, .13); }
@property --accent    { syntax: '<color>'; inherits: true; initial-value: #A6312C; }
@property --on-accent { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }

:root {
  --red: #A6312C;
  --red-deep: #8A2622;
  --red-dark: #6E1B19;
  --red-hot: #D63A30;
  --plaster: #F5EFE6;
  --paper: #FFFCF6;
  --linen: #EBE1D2;
  --oak: #CDA87E;
  --oak-2: #B58D61;
  --walnut: #3A2419;
  --ink: #2A1A13;
  --ink-2: #6F5B4E;
  --bar: #14100D;
  --bar-2: #1F1713;
  --cream: #F3E8D8;
  --cream-2: #B8A690;
  --caramel: #D9A05B;

  --f-display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'Alexandria', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: 20px;
  --max: 1180px;
  --logo: url(../assets/img/logo-white.png);
}

body {
  --bg: #F5EFE6; --fg: #2A1A13; --fg2: #6F5B4E;
  --surface: #FFFCF6; --sfg: #2A1A13; --sfg2: #6F5B4E;
  --hair: rgba(42, 26, 19, .13); --accent: #A6312C; --on-accent: #FFFFFF;
}
body[data-tone="dark"] {
  --bg: #14100D; --fg: #F3E8D8; --fg2: #B8A690;
  --surface: #1F1713; --sfg: #F3E8D8; --sfg2: #B8A690;
  --hair: rgba(243, 232, 216, .15); --accent: #D2463B; --on-accent: #FFFFFF;
}
body[data-tone="red"] {
  --bg: #962B27; --fg: #FFF3E4; --fg2: rgba(255, 243, 228, .76);
  --surface: #FFF9EF; --sfg: #2A1A13; --sfg2: #6F5B4E;
  --hair: rgba(255, 243, 228, .24); --accent: #FFF3E4; --on-accent: #8A2622;
}

/* ---------- أساس ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: --bg .8s var(--ease), --fg .8s var(--ease), --fg2 .8s var(--ease), --surface .8s var(--ease),
              --sfg .8s var(--ease), --sfg2 .8s var(--ease), --hair .8s var(--ease), --accent .8s var(--ease), --on-accent .8s var(--ease);
}
img { display: block; max-width: 100%; }
html { touch-action: pan-x pan-y; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img, svg image { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; pointer-events: none; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

header.top, main, .rail { position: relative; z-index: 1; }

/* نص لاتيني صغير — التباعد للحروف اللاتينية فقط، مو للعربي */
.en {
  display: inline-block;
  font: 500 11px/1 var(--f-display);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  direction: ltr;
  unicode-bidi: isolate;
}
.en-name {
  display: block;
  font: 400 10.5px/1.4 var(--f-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sfg2);
  margin-top: 4px;
}

/* القوس: شكل الشعار والشبابيك والرفوف */
.arch {
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px var(--ar, 16px) var(--ar, 16px);
  background: var(--linen);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* الشعار الحقيقي كقناع */
.mark {
  display: block;
  position: relative;
  flex: none;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
}
.mark::after {
  content: "";
  position: absolute;
  inset: 12%;
  background: #fff;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
.mark-sm { width: 30px; }

.price { font: 600 18px/1 var(--f-display); white-space: nowrap; }
.price small { font: 400 11.5px/1 var(--f-body); opacity: .7; margin-inline-start: 4px; }

.ph { display: grid; place-items: center; }
.ph::after { content: ""; width: 58%; aspect-ratio: 1; background: var(--red); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; opacity: .8; }

/* ---------- ملمس الجص + ضوء ---------- */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(90% 55% at 85% 0%, rgba(255, 255, 255, .22), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .45  0 0 0 0 .4  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .22;
}

/* ---------- خط التقدّم ---------- */
.progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 90; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 100% 50%; }

/* ---------- باب البيت (الدخول) ---------- */
#intro {
  position: fixed; inset: 0; z-index: 200;
  background: var(--red-deep);
  overflow: hidden;
}
html:not(.js) #intro, #intro.skip { display: none; }
.intro-arch {
  position: absolute; left: 50%; bottom: 0;
  width: 56vmin; height: 78vmin; margin-left: -28vmin;
  border-radius: 999px 999px 0 0;
  background: var(--plaster);
  transform: translateY(101%);
  transform-origin: 50% 100%;
}
.intro-logo {
  position: absolute; z-index: 2; left: 50%; top: 44%;
  width: 118px; height: 118px; margin: -59px 0 0 -59px;
  background: #fff;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  animation: introLogo .9s var(--ease-out) both;
}
.intro-word {
  position: absolute; z-index: 2; left: 0; right: 0; top: calc(44% + 84px);
  text-align: center;
  font: 300 22px/1 var(--f-display);
  color: rgba(255, 243, 228, .86);
  animation: introLogo .9s .25s var(--ease-out) both;
}
#intro.open .intro-arch { transform: translateY(0) scale(7); transition: transform 1.05s cubic-bezier(.7, 0, .2, 1); }
#intro.open .intro-logo, #intro.open .intro-word { opacity: 0; transition: opacity .3s; animation: none; }
#intro.gone { opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
@keyframes introLogo { from { opacity: 0; transform: scale(.86) translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- ظهور عند النزول ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
/* الواجهة تنكشف بعد ما ينفتح الباب، مو تحته */
.js body:not(.intro-done) .hero .rv { opacity: 0; transform: translateY(24px); }
.js .intro-done .hero .rv { opacity: 1; transform: none; }

/* ---------- الترويسة ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin-inline: auto;
  padding: 16px var(--pad) 6px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.wm { font: 700 19px/1.15 var(--f-display); }
.wm small { display: block; margin-top: 5px; font: 500 8.5px/1 var(--f-display); letter-spacing: .34em; color: var(--fg2); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.chip-table {
  font: 500 13px/1 var(--f-body);
  padding: 9px 13px; border-radius: 999px;
  border: 1px dashed var(--accent); color: var(--accent);
}
.chip-table b { font: 600 13px var(--f-display); margin-inline-start: 3px; }
.tray-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--hair); background: transparent;
  display: grid; place-items: center;
  transition: transform .2s var(--ease), background-color .3s;
}
.tray-btn:active { transform: scale(.94); }
.tray-btn svg, .traybar svg, .cue svg, .foot-links svg, .rail svg, .btn svg, .sheet-x svg, .link-btn svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.tray-btn-count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px;
  background: var(--red); color: #fff; font: 600 11px/21px var(--f-display); text-align: center;
}

/* ---------- الواجهة ---------- */
.hero { max-width: var(--max); margin-inline: auto; padding: 14px var(--pad) 26px; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13.5px/1 var(--f-body); color: var(--fg2); margin-bottom: 12px; }
.eyebrow .bar { width: 22px; height: 1px; background: currentColor; opacity: .45; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(166, 49, 44, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(166, 49, 44, 0); } }

h1 { font-family: var(--f-display); line-height: 1.12; }
h1 .line { display: block; overflow: hidden; padding-block: .1em; margin-block: -.1em; }
h1 .line > span { display: inline-block; }
.js h1 .line > span { transform: translateY(112%); transition: transform 1.1s var(--ease-out); }
.js h1 .l2 > span { transition-delay: .12s; }
.intro-done h1 .line > span { transform: none; }
h1 .l1 { font-weight: 300; font-size: clamp(28px, 8.4vw, 76px); color: var(--fg2); }
h1 .l2 { font-weight: 800; font-size: clamp(44px, 13.6vw, 148px); line-height: 1.25; white-space: nowrap; }
h1 em { font-style: normal; color: var(--red); }
.lede { margin-top: 10px; font-size: 16.5px; line-height: 1.85; color: var(--fg2); }

.hero-art { position: relative; height: clamp(350px, 100vw, 500px); margin-top: 34px; }
.arch-lg {
  position: absolute; inset-inline-end: 0; top: 0; width: 66%; height: 100%;
  box-shadow: 0 34px 60px -34px rgba(58, 36, 25, .6);
}
.arch-lg img { height: 118%; will-change: transform; }
.arch-line {
  position: absolute; inset-inline-end: -9px; top: -11px; width: 66%; height: 100%;
  border: 1px solid var(--red); border-radius: 999px 999px 16px 16px; opacity: .5;
}
.arch-sm {
  position: absolute; inset-inline-start: 0; bottom: -30px; width: 37%; max-width: 210px; aspect-ratio: 55 / 92;
  --ar: 12px;
  box-shadow: 0 0 0 7px var(--bg), 0 30px 40px -24px rgba(58, 36, 25, .6);
  z-index: 2;
}
.js .arch-lg, .js .arch-sm, .js .arch-line, .js .seal { opacity: 0; transform: translateY(46px); transition: opacity 1s var(--ease-out), transform 1.3s var(--ease-out); }
.js .arch-sm { transition-delay: .18s; }
.js .arch-line { transition-delay: .3s; }
.js .seal { transform: scale(.6) rotate(-40deg); transition-delay: .45s; }
.intro-done .arch-lg, .intro-done .arch-sm, .intro-done .seal { opacity: 1; transform: none; }
.intro-done .arch-line { opacity: .5; transform: none; }

.seal { position: absolute; inset-inline-start: 4.5%; top: 6%; width: 28%; max-width: 124px; aspect-ratio: 1; z-index: 3; }
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 28s linear infinite; }
.seal-ring text { font: 600 8.6px var(--f-display); fill: var(--fg); letter-spacing: 0; direction: ltr; unicode-bidi: bidi-override; }
.seal-core { position: absolute; inset: 25%; border-radius: 50%; background: var(--red); }
.seal-core::after { content: ""; position: absolute; inset: 14%; background: #fff; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.dust { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); pointer-events: none; z-index: 4; }

/* تذكرة "اقتراح هالساعة" */
.now {
  position: relative; margin-top: 62px;
  background: var(--surface); color: var(--sfg);
  border-radius: 20px; padding: 16px 18px 14px;
  box-shadow: 0 26px 44px -34px rgba(58, 36, 25, .55);
}
.now::before, .now::after { content: ""; position: absolute; bottom: 59px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); }
.now::before { inset-inline-start: -9px; } .now::after { inset-inline-end: -9px; }
.now-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--sfg2); }
.now-top b { font: 600 12.5px var(--f-display); color: var(--red); display: inline-flex; align-items: center; gap: 7px; }
.now-top b svg { width: 13px; height: 13px; fill: currentColor; }
.now-top time { font-family: var(--f-display); direction: ltr; }
.now-mid { display: flex; align-items: center; gap: 14px; padding: 12px 0 14px; }
.now-pics { display: flex; flex: none; }
.now-pic { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: var(--linen); border: 3px solid var(--surface); padding: 0; }
.now-pic + .now-pic { margin-inline-start: -14px; background: #1F1713; --sfg: #F3E8D8; --surface: #1F1713; border-color: #FFFCF6; }
.now-pic img { width: 100%; height: 100%; object-fit: cover; }
.now-pic svg { width: 100%; height: 100%; padding: 4px; }
.now-names { font: 600 16.5px/1.5 var(--f-display); }
.now-names span { display: block; font: 400 13px/1.6 var(--f-body); color: var(--sfg2); }
.now-bot { display: flex; justify-content: space-between; align-items: center; border-top: 1.5px dashed var(--hair); padding-top: 12px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px;
  border: 0; border-radius: 21px; background: var(--red); color: #fff; font: 600 14px var(--f-display);
  transition: transform .2s var(--ease), background-color .3s;
}
.pill-btn:active { transform: scale(.95); }
.pill-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }

.cue { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; font: 500 13px var(--f-display); color: var(--fg2); text-decoration: none; }
.cue svg { width: 18px; height: 18px; animation: nudge 2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* ---------- الشريط المتحرك ---------- */
.marquee { position: relative; z-index: 1; overflow: hidden; background: var(--red); color: #FFF3E4; padding: 13px 0; }
.marquee-track { display: flex; width: max-content; animation: marq 46s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 22px; padding-inline-end: 22px; font: 500 14.5px/1 var(--f-display); white-space: nowrap; }
.marquee-track span[lang="en"] { letter-spacing: .22em; font-size: 12px; }
.marquee-track svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: .7; }
@keyframes marq { to { transform: translateX(50%); } }

/* ---------- شريط الأقسام ---------- */
.rail {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}
.rail-scroll {
  position: relative; display: flex; gap: 2px; align-items: center;
  max-width: var(--max); margin-inline: auto; padding: 9px calc(var(--pad) - 6px);
  overflow-x: auto; scrollbar-width: none;
}
.rail-scroll::-webkit-scrollbar { display: none; }
.rail a {
  position: relative; z-index: 1; flex: none;
  padding: 0 16px; height: 40px; display: inline-flex; align-items: center; gap: 7px;
  border-radius: 20px; text-decoration: none;
  font: 500 14.5px/1 var(--f-display); color: var(--fg2);
  transition: color .35s;
}
.rail a.on { color: var(--on-accent); }
.rail-pill {
  position: absolute; top: 9px; left: 0; height: 40px; width: 0; border-radius: 20px;
  background: var(--accent); z-index: 0;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}
.rail .rail-mood { margin-inline-start: 6px; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.rail .rail-mood.on { color: var(--on-accent); box-shadow: none; }
.rail .rail-mood svg { width: 15px; height: 15px; }

/* ---------- رأس الفصل ---------- */
.chapter { position: relative; max-width: var(--max); margin-inline: auto; padding: 78px 0 44px; }
.ch-head { position: relative; padding: 0 var(--pad); margin-bottom: 26px; }
.ch-title { position: relative; }
.ch-title h2 { font: 700 clamp(44px, 13.5vw, 104px)/1.2 var(--f-display); margin-top: 8px; }
.ch-lede { position: relative; margin-top: 10px; max-width: 34ch; text-wrap: balance; font-size: 15.5px; line-height: 1.85; color: var(--fg2); }

/* ---------- الفاترينة ---------- */
.vitrine { position: relative; }
.vitrine-glass {
  display: block; height: 5px; margin-inline: var(--pad); border-radius: 3px;
  background: linear-gradient(90deg, #9DD3C7, #5FA999 28%, #B5E2D8 52%, #5FA999 78%, #9DD3C7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 14px -8px rgba(55, 120, 105, .7);
  opacity: .9;
}
.vitrine-scroll {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 26px var(--pad) 22px; scroll-padding-inline: var(--pad);
  outline-offset: -4px;
}
.vitrine-scroll::-webkit-scrollbar { display: none; }
.vitrine-shine {
  position: absolute; inset: 5px 0 30px; pointer-events: none; z-index: 2;
  background: linear-gradient(104deg, transparent 38%, rgba(255, 255, 255, .26) 47%, rgba(255, 255, 255, .06) 52%, transparent 60%);
  background-size: 300% 100%; background-position: var(--shine, 50%) 0;
}
.vitrine-base {
  display: block; height: 30px; margin-inline: var(--pad); border-radius: 2px 2px 12px 12px;
  background:
    linear-gradient(180deg, rgba(58, 36, 25, .5), transparent 34%, rgba(58, 36, 25, .12)),
    repeating-linear-gradient(90deg, #D4B187 0 2px, #C9A47A 2px 11px, #A98056 11px 13px);
}

.vcard { flex: none; width: min(70vw, 286px); scroll-snap-align: center; }
.vcard-in { transform-origin: 50% 70%; will-change: transform; }
.vphoto {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0;
  border-radius: 999px 999px 14px 14px; overflow: hidden; background: var(--linen);
  box-shadow: 0 26px 34px -26px rgba(58, 36, 25, .7);
}
.vphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.vcard:hover .vphoto img { transform: scale(1.06); }
.tag {
  position: absolute; bottom: 12px; inset-inline-start: 12px; z-index: 1;
  background: var(--paper); color: var(--ink);
  font: 500 11.5px/1 var(--f-body); padding: 7px 11px; border-radius: 999px;
}
.vbody { padding: 16px 4px 0; }
.vbody h3 { font: 600 18.5px/1.45 var(--f-display); }
.vbody p { margin-top: 8px; font-size: 14px; line-height: 1.75; color: var(--fg2); min-height: 3.5em; }
.vbody .en-name { color: var(--fg2); }
.vfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.name-btn { all: unset; cursor: pointer; }
.name-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* زر الإضافة: + يتحوّل لعدّاد */
.adder {
  display: inline-flex; align-items: center; justify-content: flex-end; flex: none;
  width: 44px; height: 44px; border-radius: 22px; overflow: hidden;
  background: var(--accent); color: var(--on-accent);
  transition: width .4s var(--ease-out);
}
.adder.has { width: 118px; }
.adder button { flex: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; transition: transform .15s; }
.adder button:active { transform: scale(.82); }
.adder svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.adder .q { flex: none; width: 30px; text-align: center; font: 600 15px/1 var(--f-display); }
.adder:not(.has) .minus, .adder:not(.has) .q { visibility: hidden; }
.adder.pop { animation: pop .4s var(--ease-out); }
@keyframes pop { 30% { transform: scale(1.12); } }
.crumb { position: fixed; z-index: 400; width: 7px; height: 5px; border-radius: 2px; pointer-events: none; }

/* صفوف "وبعد بالفاترينة" */
.more { padding: 0 var(--pad); margin-top: 38px; }
.more-title { display: flex; align-items: center; gap: 14px; font: 600 14px/1 var(--f-display); color: var(--fg2); margin-bottom: 4px; }
.more-title::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.row-thumb { width: 60px; height: 74px; padding: 0; border: 0; border-radius: 999px 999px 8px 8px; overflow: hidden; background: var(--linen); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row h4 { font: 600 16px/1.45 var(--f-display); }
.row p { font-size: 13.5px; line-height: 1.65; color: var(--fg2); margin-top: 2px; }
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.row-end .price { font-size: 16px; }
.rows-plain .row { grid-template-columns: 1fr auto; }
.badge { display: inline-block; vertical-align: middle; margin-inline-start: 8px; font: 500 10.5px/1 var(--f-body); padding: 4px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }

/* ---------- محتار؟ ---------- */
.mood { position: relative; z-index: 1; padding: 84px var(--pad) 90px; overflow: hidden; }
.mood-inner { max-width: var(--max); margin-inline: auto; display: grid; gap: 30px; position: relative; }
.mood-copy { position: relative; }
.mood-copy h2 { font: 800 clamp(72px, 25vw, 190px)/1.2 var(--f-display); margin-top: 6px; }
.mood-copy p { font-size: 17.5px; color: var(--fg2); }
.mood-steam { position: absolute; inset-inline-end: -6px; top: -34px; width: 150px; height: 190px; filter: blur(1.4px); opacity: .6; pointer-events: none; }
.mood-steam path { fill: none; stroke: var(--fg); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 52 300; stroke-dashoffset: 0; animation: wisp 6.5s linear infinite; }
.mood-steam path:nth-child(2) { animation-delay: -2.2s; animation-duration: 7.5s; }
.mood-steam path:nth-child(3) { animation-delay: -4.1s; animation-duration: 5.6s; }
@keyframes wisp { from { stroke-dashoffset: 60; opacity: 0; } 20% { opacity: 1; } 80% { opacity: .7; } to { stroke-dashoffset: -300; opacity: 0; } }

.mood-card {
  position: relative; background: var(--surface); color: var(--sfg);
  border-radius: 28px; padding: 22px 18px 18px; min-height: 348px;
  box-shadow: 0 46px 70px -44px rgba(40, 8, 6, .85);
}
.mood-body { transition: opacity .28s, transform .38s var(--ease-out); }
.mood-body.out { opacity: 0; transform: translateX(26px); }
.mood-body.pre { opacity: 0; transform: translateX(-26px); transition: none; }
.mood-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.mood-steps i { width: 26px; height: 4px; border-radius: 2px; background: rgba(42, 26, 19, .14); transition: background-color .3s; }
.mood-steps i.on { background: var(--red); }
.mood-steps span { margin-inline-start: auto; font: 500 12px var(--f-display); color: var(--sfg2); direction: ltr; }
.mood-q { font: 700 25px/1.4 var(--f-display); margin-bottom: 16px; }
.mood-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt {
  text-align: start; padding: 16px 14px; border-radius: 18px;
  border: 1px solid rgba(42, 26, 19, .14); background: transparent;
  transition: transform .2s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.opt b { display: block; font: 600 17px/1.4 var(--f-display); }
.opt span { display: block; font-size: 13px; color: var(--sfg2); margin-top: 2px; transition: color .25s; }
.opt:hover, .opt:focus-visible { border-color: var(--red); }
.opt:active, .opt.picked { background: var(--red); color: #fff; border-color: var(--red); transform: scale(.97); }
.opt:active span, .opt.picked span { color: rgba(255, 255, 255, .8); }
.mood-foot { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.link-btn { border: 0; background: none; padding: 8px 0; font: 500 13.5px var(--f-body); color: var(--sfg2); display: inline-flex; align-items: center; gap: 7px; }
.link-btn svg { width: 16px; height: 16px; }

.mood-res-label { font: 600 13px/1 var(--f-display); color: var(--red); }
.mood-res-title { font: 700 21px/1.55 var(--f-display); margin-top: 8px; }
.mood-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; margin: 16px 0 14px; }
.mood-pair .plus { font: 300 28px/1 var(--f-display); color: var(--red); margin-top: 34%; }
.mp { text-align: center; border: 0; background: none; padding: 0; }
.mp-pic { display: block; width: 100%; aspect-ratio: 1 / 1.08; border-radius: 999px 999px 14px 14px; overflow: hidden; background: var(--linen); animation: flipIn .7s var(--ease-out) both; }
.mp.dark .mp-pic { animation-delay: .14s; background: #1F1713; --sfg: #F3E8D8; --surface: #1F1713; }
.mp-pic img { width: 100%; height: 100%; object-fit: cover; }
.mp-pic svg { width: 100%; height: 100%; padding: 10px 6px 4px; }
.mp b { display: block; font: 600 14px/1.5 var(--f-display); margin-top: 9px; }
.mp small { display: block; font: 500 12.5px var(--f-display); color: var(--sfg2); }
@keyframes flipIn { from { opacity: 0; transform: translateY(24px) scale(.9) rotate(4deg); } to { opacity: 1; transform: none; } }
.mood-res-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1.5px dashed rgba(42, 26, 19, .16); padding-top: 14px; }

/* ---------- قصة الفنجان ---------- */
.story-wrap { display: grid; gap: 18px; padding: 0 var(--pad); margin-bottom: 30px; }
.story {
  position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  background: #0B0705; isolation: isolate; color: #fff;
  box-shadow: 0 40px 60px -40px #000;
}
.story-frames figure { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.story-frames figure.on { opacity: 1; }
.story-frames img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.story-frames figure.on img { animation: kb 7s linear both; }
@keyframes kb { from { transform: scale(1.03); } to { transform: scale(1.16); } }
.story-frames figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 26%, transparent 46%, rgba(0, 0, 0, .78)); }
.story figcaption { position: absolute; inset-inline: 20px; bottom: 24px; z-index: 2; }
.story figcaption b { display: block; font: 700 clamp(27px, 7.8vw, 42px)/1.35 var(--f-display); transform: translateY(18px); opacity: 0; transition: transform .9s var(--ease-out) .2s, opacity .7s .2s; }
.story figcaption span { display: block; margin-top: 9px; font: 500 10.5px/1.4 var(--f-display); letter-spacing: .24em; text-transform: uppercase; opacity: 0; transition: opacity .7s .5s; }
.story figure.on figcaption b { transform: none; opacity: 1; }
.story figure.on figcaption span { opacity: .82; }
.story-bars { position: absolute; top: 12px; inset-inline: 12px; z-index: 3; display: flex; gap: 5px; }
.story-bars i { position: relative; flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.story-bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(var(--p, 0)); transform-origin: 100% 50%; }
.story-head { position: absolute; top: 26px; inset-inline: 14px; z-index: 3; display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.story-head b { font: 600 12.5px var(--f-display); }
.story-head span:last-child { opacity: .72; }
.story-tap { position: absolute; top: 60px; bottom: 0; width: 40%; z-index: 4; border: 0; background: none; padding: 0; }
.story-prev { inset-inline-start: 0; } .story-next { inset-inline-end: 0; }
.story-tap:focus-visible { outline-offset: -6px; outline-color: #fff; }
.story-side { padding-inline: 4px; }
.quote { font: 300 19px/1.9 var(--f-display); }
.quote-by { margin-top: 8px; font-size: 13px; color: var(--fg2); }

/* ---------- المشروبات: كاسات مرسومة بطبقاتها ---------- */
.drinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 var(--pad); }
.dcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); color: var(--sfg);
  border: 1px solid var(--hair); border-radius: 22px; padding: 8px 12px 12px;
}
.dglass { display: block; width: 100%; aspect-ratio: 1 / .96; padding: 0; border: 0; background: none; }
.dglass svg, .item-media svg.glass { width: 100%; height: 100%; overflow: visible; }
.dinfo { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dcard h3 { font: 600 15.5px/1.45 var(--f-display); margin-top: 2px; }
.dcard .desc { display: none; }
.dfoot { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-top: auto; padding-top: 12px; }
.dcard .price { font-size: 16px; }
.dcard .tag { position: static; display: inline-block; align-self: flex-start; margin-top: 8px; background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); padding: 5px 9px; font-size: 11px; }
.dcard .dmini { display: none; margin-top: 4px; font: 600 12px/14.7px var(--f-display); color: var(--accent); white-space: nowrap; }
.dcard:not(.wide) h3, .dcard:not(.wide) .en-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard:not(.wide) .tag { position: absolute; top: 12px; inset-inline-start: 12px; margin: 0; background: var(--surface); }
.dcard:not(.wide) .adder { position: absolute; inset-inline-end: 0; bottom: 0; }
.dcard:not(.wide) .adder.has { width: 100%; }
.dcard:not(.wide) .adder.has .q { flex: 1; width: auto; }
.dcard:not(.wide) .dfoot .price { transition: opacity .25s; }
.dcard:not(.wide).in-cart .dfoot .price { opacity: 0; }
.dcard:not(.wide).in-cart .en-name { display: none; }
.dcard:not(.wide).in-cart .dmini { display: block; }
.dcard.wide { grid-column: 1 / -1; flex-direction: row; gap: 12px; padding: 12px; align-items: stretch; }
.dcard.wide .dglass { width: 34%; aspect-ratio: auto; flex: none; min-height: 150px; }
.dcard.wide .dinfo { padding-block: 4px; }
.dcard.wide .desc { display: block; font-size: 13.5px; line-height: 1.7; color: var(--sfg2); margin-top: 6px; }
.dshot { display: none; width: 30%; flex: none; --ar: 10px; min-height: 150px; padding: 0; border: 0; }

.glass .g-out { fill: none; stroke: var(--sfg); stroke-opacity: .6; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.glass .g-thin { fill: none; stroke: var(--sfg); stroke-opacity: .22; stroke-width: 1; stroke-linecap: round; }
.glass .g-shine { fill: none; stroke: #fff; stroke-opacity: .32; stroke-width: 2; stroke-linecap: round; }
.glass .g-cover { fill: var(--surface); transform-box: fill-box; transform-origin: 50% 0; transition: transform 1.5s cubic-bezier(.45, 0, .2, 1) .15s; }
.in .glass .g-cover { transform: scaleY(0); }
.glass .g-ice { opacity: 0; transition: opacity .6s 1.1s; }
.in .glass .g-ice { opacity: 1; }
:is(.live.in, .settled .item-media) .glass .g-ice rect { animation: bob 4.6s ease-in-out infinite; }
:is(.live.in, .settled .item-media) .glass .g-ice rect:nth-child(2) { animation-delay: -1.5s; }
:is(.live.in, .settled .item-media) .glass .g-ice rect:nth-child(3) { animation-delay: -3s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2px; } }
.glass .g-logo { opacity: 0; transition: opacity .8s 1.2s; }
.in .glass .g-logo { opacity: .92; }
.glass .g-steam path { fill: none; stroke: var(--sfg); stroke-width: 1.5; stroke-linecap: round; opacity: 0; }
:is(.live.in, .settled .item-media) .glass .g-steam path { animation: steam 3.8s ease-in-out 1.4s infinite; }
:is(.live.in, .settled .item-media) .glass .g-steam path:nth-child(2) { animation-delay: 2.5s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(5px); } 35% { opacity: .5; } 100% { opacity: 0; transform: translateY(-9px); } }
.glass .g-fizz circle { fill: #fff; opacity: 0; }
:is(.live.in, .settled .item-media) .glass .g-fizz circle { animation: fizz 2.8s linear infinite; }
:is(.live.in, .settled .item-media) .glass .g-fizz circle:nth-child(2) { animation-delay: -.9s; }
:is(.live.in, .settled .item-media) .glass .g-fizz circle:nth-child(3) { animation-delay: -1.7s; }
:is(.live.in, .settled .item-media) .glass .g-fizz circle:nth-child(4) { animation-delay: -2.3s; }
@keyframes fizz { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .75; } 100% { opacity: 0; transform: translateY(-46px); } }
:is(.live.in, .settled .item-media) .glass .g-drip { animation: drip 1.5s ease-in 1.2s infinite; }
@keyframes drip { 0% { transform: translateY(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(28px); opacity: 0; } }

/* ---------- على الثلج ---------- */
.cold-band { position: relative; height: 250px; margin: 0 var(--pad) 34px; }
.arch-cold { position: absolute; inset-inline-start: 0; top: 0; width: 60%; height: 100%; box-shadow: 0 30px 50px -30px #000; }
.cold-ice { position: absolute; inset-inline-end: 0; bottom: 0; width: 36%; height: 70%; border-radius: 16px; overflow: hidden; }
.cold-ice img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- جيلاتو وكريب ---------- */
.gingham { position: relative; margin: 0 var(--pad) 22px; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9.4; box-shadow: 0 30px 50px -36px rgba(58, 36, 25, .7); }
.gingham img { width: 100%; height: 100%; object-fit: cover; }
.gingham-note { position: absolute; bottom: 12px; inset-inline-start: 12px; background: var(--paper); color: var(--ink); padding: 7px 13px; border-radius: 999px; font: 500 12px/1 var(--f-body); }
.scoops { display: grid; gap: 12px; padding: 0 var(--pad); }
.scoop {
  display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: center;
  background: var(--surface); color: var(--sfg); border: 1px solid var(--hair); border-radius: 24px; padding: 12px;
}
.scoop-pic { position: relative; width: 86px; height: 86px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: var(--linen); }
.scoop-pic img { width: 100%; height: 100%; object-fit: cover; }
.scoop-dots i { position: absolute; width: 44%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset -4px -5px 8px rgba(0, 0, 0, .12), inset 3px 3px 6px rgba(255, 255, 255, .5); }
.scoop-dots i:nth-child(1) { top: 14%; left: 28%; }
.scoop-dots i:nth-child(2) { top: 42%; left: 9%; }
.scoop-dots i:nth-child(3) { top: 42%; left: 47%; }
.scoop h3 { font: 600 16.5px/1.45 var(--f-display); }
.scoop p { font-size: 13.5px; line-height: 1.65; color: var(--sfg2); margin-top: 2px; }
.scoop-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

/* ---------- الخاتمة ---------- */
.foot { position: relative; z-index: 1; padding: 86px var(--pad) calc(118px + env(safe-area-inset-bottom)); overflow: hidden; }
.foot-inner { max-width: var(--max); margin-inline: auto; display: grid; gap: 34px; }
.foot-arch { width: min(74%, 380px); aspect-ratio: 4 / 4.7; box-shadow: 0 40px 60px -40px rgba(40, 8, 6, .9); }
.foot h2 { font: 800 clamp(48px, 14.5vw, 116px)/1.25 var(--f-display); margin-top: 8px; }
.foot-links { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; font-size: 16px; }
.foot-links li { display: flex; align-items: center; gap: 12px; }
.foot-links a { display: inline-block; direction: ltr; unicode-bidi: isolate; font: 500 15px var(--f-display); letter-spacing: .04em; text-underline-offset: 5px; }
.foot-word {
  margin-top: 54px; text-align: center; white-space: nowrap;
  font: 800 clamp(56px, 18vw, 230px)/1.3 var(--f-display);
  color: var(--bg); -webkit-text-stroke: 2px rgba(255, 243, 228, .34); paint-order: stroke fill;
}
.foot-note { max-width: 46ch; margin: 8px auto 0; text-align: center; font-size: 12.5px; line-height: 1.9; color: var(--fg2); }

/* ---------- شريط الصينية ---------- */
.traybar {
  position: fixed; z-index: 60; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 440px; margin-inline: auto; height: 64px; border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, .2); background: var(--red); color: #fff;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding-inline: 8px 22px; text-align: start;
  box-shadow: 0 22px 40px -16px rgba(60, 12, 10, .8);
  transform: translateY(150%); transition: transform .6s var(--ease-out);
  font-family: var(--f-display);
}
.traybar.show { transform: none; }
.traybar.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 30% { transform: translateY(-7px) scale(1.02); } }
.traybar-ic { position: relative; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.traybar-ic b { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: #fff; color: var(--red); font: 700 11px/21px var(--f-display); text-align: center; }
.traybar-txt { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.traybar-txt small { display: block; font: 400 12px/1.4 var(--f-body); opacity: .82; }
.traybar-sum { font: 700 17px/1 var(--f-display); }
.traybar-sum small { font: 400 11px var(--f-body); opacity: .8; margin-inline-start: 4px; }

/* اللوحة مفتوحة: الصفحة وراها ترتاح، حتى الموبايل يرسم اللوحة فقط */
body.sheet-open main .glass *, body.sheet-open .marquee-track, body.sheet-open .seal-ring, body.sheet-open .mood-steam path,
body.sheet-open .story-frames img, body.sheet-open .pulse, body.sheet-open .cue svg { animation-play-state: paused !important; }

/* ---------- اللوحات المنزلقة ---------- */
dialog.sheet {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; overflow: clip; color: var(--ink);
}
.sheet-focus { position: absolute; top: 0; left: 0; width: 1px; height: 1px; outline: none; }
dialog.sheet::backdrop { background: transparent; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(16, 9, 7, .62); opacity: 0; transition: opacity .45s; touch-action: none; }
.sheet.open .sheet-scrim { opacity: 1; }
.sheet-receipt .sheet-scrim { background: rgba(14, 8, 6, .9); }
.sheet-panel {
  --fg: #2A1A13; --fg2: #6F5B4E; --surface: #FFFCF6; --sfg: #2A1A13; --sfg2: #6F5B4E;
  --hair: rgba(42, 26, 19, .13); --accent: #A6312C; --on-accent: #fff;
  position: absolute; inset-inline: 0; bottom: 0; max-height: 93dvh;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); color: var(--ink);
  border-radius: 30px 30px 0 0;
  transform: translateY(103%); transition: transform .36s cubic-bezier(.4, 0, 1, 1);
}
.sheet.open .sheet-panel { transform: none; transition: transform .58s cubic-bezier(.4, 0, .2, 1); }
.sheet-panel { will-change: transform; }
.instant .glass *:not(.g-icewrap) { transition: none !important; }
.sheet-panel.dragging { transition: none; }
.sheet-grip { position: absolute; top: 8px; left: 50%; z-index: 6; width: 42px; height: 4px; margin-left: -21px; border-radius: 2px; background: rgba(255, 252, 246, .85); box-shadow: 0 0 0 1px rgba(42, 26, 19, .12); pointer-events: none; }
.sheet-x {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 6;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255, 252, 246, .92); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5);
}
.sheet-x svg { width: 18px; height: 18px; stroke-width: 2; }

/* تفاصيل الصنف */
.item-media { position: relative; height: min(46dvh, 340px); background: var(--linen); overflow: hidden; }
.item-media > img { width: 100%; height: 100%; object-fit: cover; }
.item-media.is-glass {
  --sfg: #F3E8D8; --surface: #1B1410;
  background: radial-gradient(90% 80% at 50% 100%, #33221A, #1B1410 70%);
  display: grid; place-items: center; padding: 26px 0 10px;
}
.item-media.is-glass svg.glass { position: absolute; inset: 24px 0 12px; margin: auto; height: calc(100% - 36px); width: auto; aspect-ratio: 120 / 132; }
.item-real { position: absolute; bottom: 14px; inset-inline-start: 14px; width: 84px; height: 106px; --ar: 8px; box-shadow: 0 0 0 3px rgba(255, 252, 246, .9), 0 14px 24px -10px #000; }
.item-real-cap { position: absolute; bottom: 126px; inset-inline-start: 14px; width: 84px; text-align: center; font: 500 10.5px var(--f-body); color: rgba(243, 232, 216, .75); }
.item-body { padding: 20px 20px 8px; }
.item-body h2 { font: 700 27px/1.4 var(--f-display); margin-top: 6px; }
.item-body .long { font-size: 15.5px; line-height: 1.9; color: var(--fg2); margin-top: 8px; }
.notes { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 14px 0 0; }
.notes li { border: 1px solid var(--hair); padding: 4px 12px; border-radius: 999px; font-size: 13px; }
.taste { margin-top: 16px; padding: 14px 16px 13px; border-radius: 20px; background: var(--plaster); }
.meter { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 12px; font-size: 13px; color: var(--fg2); }
.meter + .meter { margin-top: 9px; }
.dots { display: flex; gap: 5px; }
.dots i { flex: 1; height: 6px; border-radius: 3px; background: rgba(42, 26, 19, .13); transition: background-color .35s; }
.dots i.on { background: var(--red); }
.taste-line { margin-top: 11px; font: 500 14.5px/1.6 var(--f-display); color: var(--ink); }
.tweaks { display: flex; flex-wrap: wrap; gap: 8px; }
.tw {
  display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-radius: 22px;
  border: 1px solid rgba(42, 26, 19, .2); background: transparent; color: var(--ink); font: 500 14px var(--f-display);
  transition: background-color .25s, color .25s, border-color .25s, transform .15s;
}
.tw small { font: 500 11.5px var(--f-display); opacity: .65; }
.tw.on { background: var(--red); border-color: var(--red); color: #fff; }
.tw:active { transform: scale(.96); }
.glass .g-icewrap { transition: opacity .35s; }
.sec-label { font: 600 12.5px/1 var(--f-display); color: var(--fg2); margin: 22px 0 10px; }
.ratio { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--linen); }
.ratio i { display: block; height: 100%; width: 0; transition: width .7s var(--ease-out), background-color .4s; }
.sheet.settled .ratio i { width: var(--w); }
.layers { list-style: none; padding: 0; margin: 8px 0 0; }
.layers li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--hair); font-size: 14.5px; }
.layers i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(42, 26, 19, .16); }
.layers b { font: 500 13px var(--f-display); color: var(--fg2); direction: ltr; }
.allergens { font-size: 13px; color: var(--fg2); margin-top: 16px; }
.pairbox { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; margin-top: 10px; padding: 10px; border-radius: 20px; background: var(--plaster); }
.pair-pic { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--linen); }
.pair-pic.dark { background: #1F1713; --sfg: #F3E8D8; --surface: #1F1713; }
.pair-pic img { width: 100%; height: 100%; object-fit: cover; }
.pair-pic svg { width: 100%; height: 100%; padding: 4px; }
.pairbox b { display: block; font: 600 15px/1.4 var(--f-display); }
.pairbox small { font: 500 12.5px var(--f-display); color: var(--fg2); }
.item-cta {
  position: sticky; bottom: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 252, 246, 0), var(--paper) 34%);
}
.item-cta .price { font-size: 24px; }
.adder.big, .adder.big.has { height: 54px; width: 156px; border-radius: 27px; }
.adder.big button { width: 54px; height: 54px; }
.adder.big .q { width: 48px; font-size: 17px; }
.adder.big .plus span { display: none; }
.adder.big:not(.has) .minus, .adder.big:not(.has) .q { display: none; }
.adder.big:not(.has) .plus { width: 100%; display: flex; gap: 8px; align-items: center; justify-content: center; font: 600 15px var(--f-display); }
.adder.big:not(.has) .plus span { display: inline; }

/* الصينية */
.tray-top { height: 16px; background-color: #fff;
  background-image: linear-gradient(90deg, rgba(166, 49, 44, .55) 50%, transparent 50%), linear-gradient(rgba(166, 49, 44, .55) 50%, transparent 50%);
  background-size: 16px 16px; }
.tray-in { padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
.tray-in h2 { font: 700 27px/1.4 var(--f-display); }
.tray-sub { font-size: 14px; color: var(--fg2); }
.ti { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.ti-pic { width: 54px; height: 54px; border-radius: 16px; overflow: hidden; background: var(--linen); }
.ti-pic.dark { background: #1F1713; --sfg: #F3E8D8; --surface: #1F1713; }
.ti-pic img { width: 100%; height: 100%; object-fit: cover; }
.ti-pic svg { width: 100%; height: 100%; padding: 4px; }
.ti b { display: block; font: 600 15.5px/1.45 var(--f-display); }
.ti small { font: 500 13px var(--f-display); color: var(--fg2); }
.ti-note { display: block; font: 500 12.5px/1.5 var(--f-body); color: var(--red); }
.tray-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 16px; font: 600 16px var(--f-display); }
.tray-total .price { font-size: 26px; font-weight: 700; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px;
  border-radius: 28px; border: 0; font: 600 16px var(--f-display); text-decoration: none;
  transition: transform .2s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(42, 26, 19, .2); color: var(--ink); }
.btn-wa { background: #1F7A4D; color: #fff; }
.tray-note { text-align: center; font-size: 12.5px; color: var(--fg2); margin-top: 12px; }
.tray-empty { text-align: center; padding: 26px 10px 14px; }
.tray-empty .arch { width: 120px; height: 150px; margin: 0 auto 18px; }
.tray-empty p { color: var(--fg2); margin: 6px 0 18px; }
.tray-last { margin-top: 22px; padding: 14px 16px; border-radius: 20px; background: var(--plaster); text-align: start; }
.tray-last b { display: block; font: 600 13px/1.4 var(--f-display); color: var(--red); }
.tray-last p { margin: 4px 0 12px; font-size: 14px; line-height: 1.7; color: var(--ink); }
.tray-pair { margin-top: 14px; }
.tray-pair .sec-label { margin-top: 0; }

/* الوصل */
.receipt-stage { position: absolute; inset: 0; overflow-y: auto; display: grid; justify-items: center; align-content: start; padding: 7dvh 20px 30px; }
.printer { position: relative; width: min(336px, 100%); }
.printer-slot { position: relative; z-index: 2; height: 18px; margin-inline: -12px; border-radius: 10px; background: #0F0907; box-shadow: inset 0 4px 7px #000, 0 1px 0 rgba(255, 255, 255, .12); }
.paper-clip { overflow: hidden; margin-top: -9px; padding-bottom: 6px; }
.paper {
  --z: 9px;
  background: #FFFDF8; color: #2A1A13; padding: 30px 20px 34px; text-align: center;
  transform: translateY(-101%);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
}
.sheet.open .paper { animation: print 2.1s steps(26, end) .35s forwards; }
@keyframes print { to { transform: none; } }
.paper .mark { margin: 0 auto 10px; width: 52px; }
.paper h2 { font: 700 21px/1.3 var(--f-display); }
.paper .rc-sub { font: 500 9.5px var(--f-display); letter-spacing: .3em; color: #6F5B4E; }
.rc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 18px 0 0; padding: 12px 0; border-block: 1.5px dashed rgba(42, 26, 19, .28); }
.rc-meta span { display: block; font-size: 11px; color: #6F5B4E; }
.rc-meta b { display: block; font: 600 15px/1.5 var(--f-display); direction: ltr; }
.rc-list { list-style: none; padding: 0; margin: 12px 0; text-align: start; }
.rc-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; }
.rc-list li b { font: 500 14px var(--f-display); white-space: nowrap; }
.rc-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1.5px dashed rgba(42, 26, 19, .28); font: 600 15px var(--f-display); }
.rc-total b { font: 700 24px var(--f-display); }
.rc-total small { font: 400 12px var(--f-body); margin-inline-start: 4px; }
.rc-bar { height: 42px; margin: 20px 16px 8px; background: repeating-linear-gradient(90deg, #2A1A13 0 2px, transparent 2px 4px, #2A1A13 4px 7px, transparent 7px 9px, #2A1A13 9px 10px, transparent 10px 14px); }
.rc-thanks { font: 600 15px var(--f-display); margin-top: 6px; }
.rc-hint { font-size: 12.5px; color: #6F5B4E; }
.rc-actions { width: min(336px, 100%); display: grid; gap: 10px; margin-top: 18px; opacity: 0; transform: translateY(14px); }
.sheet.open .rc-actions { animation: rise .6s var(--ease-out) 2.5s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.rc-actions .btn-ghost { box-shadow: inset 0 0 0 1px rgba(255, 243, 228, .4); color: #FFF3E4; }

/* ---------- تنبيه ---------- */
.toast {
  position: fixed; z-index: 250; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--walnut); color: #FFF3E4; padding: 11px 18px; border-radius: 999px;
  font: 500 14px/1.4 var(--f-body); white-space: nowrap; max-width: calc(100vw - 32px);
  transition: opacity .3s, transform .4s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==================================================================
   الشاشات الأوسع
   ================================================================== */
@media (min-width: 620px) {
  .drinks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dcard.wide { grid-column: span 2; }
  #grid-coffee .dcard.wide { grid-column: 1 / -1; }
  .dshot { display: block; }
  .scoops { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scoop { grid-template-columns: 1fr; padding: 16px; }
  .scoop-pic { width: 100%; height: auto; aspect-ratio: 1; }
  .rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; }
  .story-wrap { grid-template-columns: minmax(0, 380px) 1fr; align-items: end; gap: 34px; }
  .quote { font-size: 26px; }
  .vcard { width: 272px; }
}

@media (min-width: 900px) {
  :root { --pad: 40px; }
  .top { padding-top: 24px; }
  .mark { width: 50px; }
  .mark-sm { width: 30px; }
  .wm { font-size: 22px; }
  .hero {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); column-gap: 60px;
    grid-template-areas: "copy art" "now art" "cue art"; align-content: center;
    min-height: calc(100svh - 150px); padding-block: 30px 60px;
  }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-art { grid-area: art; height: min(74svh, 680px); margin-top: 0; }
  .now { grid-area: now; margin-top: 34px; max-width: 440px; align-self: start; }
  .cue { grid-area: cue; justify-content: flex-start; align-self: start; }
  h1 .l1 { font-size: clamp(40px, 4.6vw, 70px); }
  h1 .l2 { font-size: clamp(76px, 9vw, 132px); white-space: normal; line-height: 1.16; }
  .lede { font-size: 19px; }
  .marquee-track span { font-size: 16px; }
  .rail a { font-size: 15.5px; padding: 0 20px; }
  .chapter { padding: 120px 0 60px; }
  .ch-head { margin-bottom: 40px; }
  .ch-lede { font-size: 18px; }
  .vitrine-scroll { gap: 22px; padding-block: 34px 26px; }
  .vcard { width: 290px; }
  .rows, .rows-plain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mood { padding-block: 130px; }
  .mood-inner { grid-template-columns: 1fr minmax(0, 460px); align-items: center; gap: 60px; }
  .mood-copy p { font-size: 22px; }
  .mood-steam { width: 220px; height: 280px; top: -90px; inset-inline-end: 8%; }
  .mood-card { padding: 30px 28px 24px; }
  .drinks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  #grid-coffee .dcard.wide { grid-column: span 2; }
  #grid-cold { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dcard { padding: 12px 18px 18px; border-radius: 26px; }
  .dcard h3 { font-size: 17px; }
  .cold-band { height: 420px; margin-bottom: 50px; }
  .arch-cold { width: 44%; }
  .cold-ice { width: 50%; height: 78%; border-radius: 22px; }
  .gingham { aspect-ratio: 16 / 6.4; }
  .foot { padding-top: 130px; }
  .foot-inner { grid-template-columns: minmax(0, 420px) 1fr; align-items: center; gap: 80px; }
  .foot-arch { width: 100%; }
  .traybar { inset-inline: auto 28px; margin: 0; width: 400px; bottom: 28px; }

  /* اللوحات تصير بطاقات بالوسط */
  .sheet-panel {
    inset-inline: 0; margin-inline: auto; bottom: auto; top: 50%;
    width: min(540px, 92vw); max-height: 90dvh; border-radius: 30px;
    transform: translateY(-46%) scale(.96); opacity: 0;
    transition: transform .5s var(--ease-out), opacity .3s;
  }
  .sheet.open .sheet-panel { transform: translateY(-50%); opacity: 1; }
  .sheet-grip { display: none; }
  .receipt-stage { padding-top: 9dvh; }
}

@media (hover: hover) {
  .tray-btn:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); }
  .rail a:not(.on):hover { color: var(--fg); }
  .dcard { transition: transform .5s var(--ease-out), border-color .3s; }
  .dcard:hover { transform: translateY(-5px); border-color: var(--accent); }
  .pill-btn:hover { background: var(--red-deep); }
}

/* ---------- احترام تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .js .rv, .js h1 .line > span, .js .arch-lg, .js .arch-sm, .js .seal { opacity: 1; transform: none; }
  .js .arch-line { opacity: .5; transform: none; }
  .glass .g-cover { transform: scaleY(0); }
  .glass .g-ice, .glass .g-logo { opacity: 1; }
  .marquee-track { animation: none; }
  .paper { transform: none; }
  .rc-actions { opacity: 1; transform: none; }
  #intro { display: none; }
}
