/* ==========================================================================
   PHARAOH'S BITES — Page & section modules
   1. Home hero            6. Bakery
   2. Page hero            7. Gallery + lightbox
   3. Marquee / trust bar  8. Reservations
   4. Story & timeline     9. Order online
   5. Menu                10. Contact & map
   ========================================================================== */

/* 1. HOME HERO ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: calc(var(--header-h) + 4rem) 5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: -8% 0 0;
  z-index: -2;
  height: 116%;
  background: linear-gradient(140deg, #221e18, #0d0d0c);
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(1.06) contrast(1.04);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* Centre pool: the headline sits here, and the photograph behind it can be
       anything — it has to carry contrast on its own. */
    radial-gradient(ellipse 78% 54% at 50% 48%, rgba(6, 6, 6, .68), transparent 72%),
    linear-gradient(180deg, rgba(8, 8, 8, .9) 0%, rgba(8, 8, 8, .6) 34%, rgba(8, 8, 8, .8) 72%, rgba(8, 8, 8, .97) 100%),
    radial-gradient(ellipse 80% 62% at 50% 46%, rgba(212, 175, 55, .13), transparent 70%);
}

.hero__inner { max-width: 60rem; margin-inline: auto; text-align: center; }

.hero__logo {
  width: clamp(200px, 26vw, 300px);
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 6px 34px rgba(212, 175, 55, .3));
}

/* Hero lockup — set as live text rather than the logo SVG. An <img>-loaded SVG
   is an isolated document with no access to the page's webfonts, so the Arabic
   would fall back to a system face and stop matching the header. */
.hero__wordmark {
  display: grid;
  justify-items: center;
  gap: .55rem;
  margin: 0 auto 1.9rem;
}
.hero__wordmark__mark {
  width: clamp(54px, 6.5vw, 82px);
  height: auto;
  filter: drop-shadow(0 6px 26px rgba(212, 175, 55, .35));
}
.hero__emblem {
  /* The full emblem carries the name, so it takes the wordmark's place. */
  width: clamp(260px, 38vw, 460px);
  height: auto;
  filter: drop-shadow(0 10px 34px rgba(212, 175, 55, .28)) drop-shadow(0 2px 6px rgba(0, 0, 0, .6));
}
.hero__wordmark__name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.8vw, 4.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .17em;
  text-transform: uppercase;
  /* Indent by one tracking step so the letter-spacing on the final glyph
     doesn't push the word off-centre. */
  text-indent: .17em;
  color: #fff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .6);
}
.hero__wordmark__sub {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55em;
  font-size: clamp(.6rem, .55rem + .3vw, .82rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: .9;
  text-indent: .3em;
}
.hero__wordmark__sub i { font-style: normal; color: var(--gold); text-indent: 0; }
.hero__wordmark__sub .ar { letter-spacing: 0; text-indent: 0; }
@media (max-width: 420px) {
  .hero__wordmark__sub { gap: .35em; letter-spacing: .2em; }
}

.hero h1 {
  font-size: var(--step-5);
  line-height: .98;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 60px rgba(0, 0, 0, .6);
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  animation: heroLine 1.25s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}
@keyframes heroLine { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }

.hero__sub {
  font-size: clamp(.76rem, .68rem + .35vw, .95rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sand);
  max-width: 44rem;
  margin: 0 auto 2.6rem;
  line-height: 2.1;
  animation: fadeUp 1s var(--ease-out) .9s both;
}
.hero__sub .sep { color: var(--gold); margin-inline: .35rem; }

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 1s var(--ease-out) 1.1s both;
}

.hero__meta {
  margin-top: 3.4rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2.6rem;
  font-size: var(--step--2);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: fadeUp 1s var(--ease-out) 1.3s both;
}
.hero__meta span { display: inline-flex; align-items: center; gap: .55rem; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.9rem;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: .7rem;
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: fadeUp 1s var(--ease-out) 1.6s both;
}
.hero__scroll i {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 40%;
  background: var(--gold-light);
  animation: scrollDot 2.4s var(--ease) infinite;
}
@keyframes scrollDot { 0% { transform: translateY(-120%); } 100% { transform: translateY(300%); } }

.hero__ornament {
  position: absolute;
  z-index: -1;
  width: 200px;
  opacity: .05;
  pointer-events: none;
}
.hero__ornament--l { left: -46px; top: 20%; }
.hero__ornament--r { right: -46px; top: 20%; }
@media (max-width: 1100px) { .hero__ornament { display: none; } }

/* 2. PAGE HERO ----------------------------------------------------------- */
.page-hero {
  position: relative;
  min-height: clamp(360px, 52vh, 560px);
  display: grid;
  align-items: end;
  padding-block: calc(var(--header-h) + 5rem) 4rem;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(140deg, #211d18, #0c0c0b); }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, .9) 0%, rgba(8, 8, 8, .5) 45%, rgba(10, 10, 10, .96) 100%);
}
.page-hero__inner { max-width: 52rem; }
.page-hero h1 { margin-block: .9rem .9rem; }
.page-hero p { max-width: 38rem; }

.crumbs {
  display: flex;
  gap: .6rem;
  align-items: center;
  font-size: var(--step--2);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 1.6rem;
}
.crumbs a:hover { color: var(--gold); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .6rem; color: var(--gold); opacity: .5; }
.crumbs [aria-current] { color: var(--sand); }

/* 3. TRUST MARQUEE ------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(212, 175, 55, .05), transparent 40%, rgba(212, 175, 55, .05));
  padding-block: 1.15rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee__item::after { content: ""; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; opacity: .7; }
@keyframes slide { to { transform: translateX(-50%); } }

/* 4. STORY & TIMELINE ---------------------------------------------------- */
.story-media { position: relative; }
.story-media__main { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.story-media__inset {
  position: absolute;
  right: -1.6rem;
  bottom: -2.4rem;
  width: 46%;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 6px solid var(--black);
  box-shadow: var(--shadow-md);
}
@media (max-width: 900px) {
  /* Stacked, a 3:4 portrait eats a whole screen on its own — go landscape. */
  .story-media__main.media--3x4 { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) { .story-media__inset { display: none; } }

.badge-est {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 118px; height: 118px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--gold-light), var(--gold) 50%, var(--bronze));
  color: var(--black);
  font-family: var(--font-display);
  line-height: 1.1;
  box-shadow: 0 18px 44px rgba(212, 175, 55, .26);
}
.badge-est b { display: block; font-size: 1.85rem; font-weight: 500; }
.badge-est small { font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; }
@media (max-width: 640px) { .badge-est { width: 92px; height: 92px; top: -1rem; left: -.6rem; } .badge-est b { font-size: 1.4rem; } }

.timeline { position: relative; padding-left: 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
}
.tl-item {
  position: relative;
  width: 50%;
  padding-right: 4rem;
  margin-bottom: 3.4rem;
}
.tl-item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 4rem; text-align: left; }
.tl-item:nth-child(odd) { text-align: right; }
.tl-item::before {
  content: "";
  position: absolute;
  top: .55rem;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, .1);
}
.tl-item:nth-child(odd)::before { right: -6.5px; }
.tl-item:nth-child(even)::before { left: -6.5px; }
.tl-item__year {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--gold);
  line-height: 1;
  margin-bottom: .5rem;
}
.tl-item h3 { font-size: var(--step-1); margin-bottom: .55rem; }
.tl-item p { font-size: var(--step--1); color: var(--text-muted); }

@media (max-width: 760px) {
  .timeline::before { left: 7px; }
  .tl-item, .tl-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 2.4rem;
    padding-right: 0;
    text-align: left;
  }
  .tl-item::before, .tl-item:nth-child(odd)::before, .tl-item:nth-child(even)::before { left: .5px; right: auto; }
}

.pillar-list { display: grid; gap: 1.4rem; }
.pillar {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line-soft);
}
.pillar:last-child { border-bottom: 0; padding-bottom: 0; }
.pillar__n {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--gold);
  opacity: .55;
  flex: none;
  min-width: 2.2rem;
}
.pillar h3 { font-size: var(--step-0); font-family: var(--font-body); letter-spacing: .16em; text-transform: uppercase; margin-bottom: .4rem; }
.pillar p { font-size: var(--step--1); color: var(--text-muted); }

/* 5. MENU ---------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: center;
  margin-bottom: var(--sp-5);
}
.chip {
  padding: .62rem 1.3rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  font-size: var(--step--2);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all .38s var(--ease);
  white-space: nowrap;
}
.chip:hover { color: var(--ivory); border-color: rgba(212, 175, 55, .5); }
.chip[aria-pressed="true"] {
  background: linear-gradient(115deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  border-color: transparent;
  color: var(--black);
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(212, 175, 55, .2);
}

.menu-search {
  position: relative;
  max-width: 26rem;
  margin: 0 auto var(--sp-4);
}
.menu-search input {
  width: 100%;
  padding: .95rem 1.2rem .95rem 3rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  font-size: var(--step--1);
  transition: border-color .35s var(--ease);
}
.menu-search input:focus { outline: none; border-color: var(--gold); }
.menu-search svg {
  position: absolute;
  left: 1.15rem; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  fill: none; stroke: var(--gold); stroke-width: 1.5;
  pointer-events: none;
}

.menu-group { margin-bottom: var(--sp-6); scroll-margin-top: calc(var(--header-h) + 2rem); }
.menu-group__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.1rem;
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line-soft);
}
.menu-group__head h2 { font-size: var(--step-2); }
.menu-group__head p { font-size: var(--step--1); color: var(--text-muted); max-width: 34rem; margin-top: .4rem; }
.menu-group__count { font-size: var(--step--2); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* Compact price-list rows (classic menu feel) */
.menu-rows { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); column-gap: 3.5rem; }
/* The menu now uses the same photo rows as the order page, two abreast on wide screens */
.menu-items { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); }
.menu-item p { font-size: var(--step--1); color: var(--text-muted); }
.menu-item__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }

/* Floating "view your order" pill on the menu page */
.basket-fab {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.4rem;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: var(--black);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 238, 190, .35) inset;
}
.basket-fab[hidden] { display: none; }
.basket-fab b { font-weight: 500; }
.basket-fab__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* Order page: slides up from the bottom and nudges when the count changes */
.basket-fab--order { animation: fabIn .45s var(--ease-out) both; }
.basket-fab--order.is-bump .basket-fab__n { animation: fabBump .4s var(--ease-out); }
@keyframes fabIn { from { opacity: 0; transform: translate(-50%, 1.2rem); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fabBump { 40% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .basket-fab--order, .basket-fab--order.is-bump .basket-fab__n { animation: none; } }
/* Narrow screens: keep clear of the back-to-top button on the right */
@media (max-width: 560px) {
  .basket-fab--order { left: 1rem; right: 5.2rem; transform: none; justify-content: center; padding-inline: 1rem; }
  @keyframes fabIn { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: none; } }
}
.basket-fab .basket-fab__n {
  display: inline-grid;
  place-items: center;
  min-width: 1.6em;
  height: 1.6em;
  padding-inline: .4em;
  border-radius: 999px;
  background: var(--black);
  color: var(--gold-light);
  font-size: .85em;
}
.menu-row { display: grid; gap: .3rem; }
.menu-row__top { display: flex; align-items: baseline; gap: .8rem; }
.menu-row__name { font-family: var(--font-display); font-size: var(--step-1); color: var(--ivory); }
.menu-row__dots { flex: 1; border-bottom: 1px dotted rgba(212, 175, 55, .35); transform: translateY(-4px); min-width: 1.5rem; }
.menu-row__price { font-family: var(--font-display); font-size: var(--step-1); color: var(--gold); }
.menu-row__desc { font-size: var(--step--1); color: var(--text-muted); max-width: 32rem; }
.menu-row__meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .35rem; }
.pill {
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .22rem .6rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
}
.pill--gold { color: var(--gold); border-color: rgba(212, 175, 55, .4); }
.pill--veg { color: #8fbf9a; border-color: rgba(143, 191, 154, .32); }

.empty-state {
  text-align: center;
  padding: var(--sp-6) 1rem;
  color: var(--text-muted);
  display: none;
}
.empty-state.is-visible { display: block; }
.empty-state img { width: 60px; margin: 0 auto 1.2rem; opacity: .35; }

/* Featured dish spotlight */
.spotlight {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
}
.spotlight .media { min-height: 26rem; }
.spotlight__body { padding: clamp(2rem, 4vw, 3.6rem); display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; }

/* 6. BAKERY -------------------------------------------------------------- */
.oven-panel {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 30rem;
  display: grid;
  align-items: end;
  isolation: isolate;
}
.oven-panel img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(.62) saturate(1.05);
}
.oven-panel::after {
  /* Text sits directly on this panel — the scrim has to carry the contrast on
     its own, at every viewport width, over any photograph.
     width/height/border are reset explicitly: if this panel ever also carries
     .corner-frame, that rule's 30px box would otherwise win over `inset: 0`. */
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, .58) 0%, rgba(8, 8, 8, .8) 40%, rgba(8, 8, 8, .96) 100%),
    radial-gradient(ellipse at 30% 85%, rgba(212, 130, 40, .18), transparent 62%);
}
.oven-panel__body { padding: clamp(2rem, 4vw, 3.4rem); max-width: 44rem; }

@media (min-width: 900px) {
  /* Wide enough for the copy to occupy one half — let the photograph breathe. */
  .oven-panel::after {
    /* Copy occupies the left ~44rem; keep that band at .9+ and let the fade to
       the photograph happen beyond it, not underneath it. */
    background:
      linear-gradient(100deg,
        rgba(8, 8, 8, .96) 0%,
        rgba(8, 8, 8, .91) 48%,
        rgba(8, 8, 8, .62) 74%,
        rgba(8, 8, 8, .38) 100%),
      radial-gradient(ellipse at 25% 80%, rgba(212, 130, 40, .2), transparent 60%);
  }
  .oven-panel img { filter: brightness(.8) saturate(1.05); }
  /* Hard-stop the copy inside the dark zone. Without the % cap, a 900px panel
     lets a 44rem body run to ~84% width, where the scrim has already faded. */
  .oven-panel__body { max-width: min(44rem, 62%); }
}

@media (max-width: 899px) {
  /* Narrow: stop fighting the photograph. It becomes a clean band at the top
     and the copy drops onto near-solid ground beneath it. */
  .oven-panel { min-height: 0; padding-top: 15rem; }
  .oven-panel::after {
    /* Absolute stops, not percentages — the copy block varies in height from
       panel to panel, and percentage stops would drag the fade down with it. */
    background:
      linear-gradient(180deg,
        rgba(8, 8, 8, .2) 0,
        rgba(8, 8, 8, .55) 8rem,
        rgba(11, 10, 10, .985) 14rem,
        rgba(11, 10, 10, .99) 100%),
      radial-gradient(ellipse 90% 12rem at 30% 4rem, rgba(212, 130, 40, .18), transparent 70%);
  }
}

.bake-times { display: grid; gap: .9rem; }
.bake-time {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--line-soft);
}
.bake-time:last-child { border-bottom: 0; }
.bake-time b { font-family: var(--font-display); font-size: var(--step-1); color: var(--gold); font-weight: 400; min-width: 5.5rem; }
.bake-time span { font-size: var(--step--1); color: var(--text-muted); }

/* 7. GALLERY ------------------------------------------------------------- */
.masonry { columns: 3 18rem; column-gap: 1.1rem; }
@media (max-width: 620px) { .masonry { columns: 2 9rem; column-gap: .8rem; } }

.masonry__item {
  break-inside: avoid;
  margin-bottom: 1.1rem;
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color .45s var(--ease), transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
}
.masonry__item:hover { border-color: rgba(212, 175, 55, .45); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.masonry__item img { width: 100%; display: block; transition: transform 1.1s var(--ease-out), filter .5s; }
.masonry__item:hover img { transform: scale(1.07); }
.masonry__cap {
  position: absolute;
  inset: auto 0 0;
  padding: 2.6rem 1.1rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 8, .92));
  opacity: 0;
  transform: translateY(12px);
  transition: all .45s var(--ease-out);
  text-align: left;
}
.masonry__item:hover .masonry__cap, .masonry__item:focus-visible .masonry__cap { opacity: 1; transform: none; }
.masonry__cap b { display: block; font-family: var(--font-display); font-size: var(--step-0); color: var(--ivory); font-weight: 400; }
.masonry__cap small { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 6, 6, .95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { max-width: min(96vw, 1100px); text-align: center; animation: fadeUp .5s var(--ease-out) both; }
.lightbox img { max-height: 76vh; width: auto; margin-inline: auto; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lightbox figcaption { margin-top: 1.1rem; color: var(--sand); font-family: var(--font-display); font-size: var(--step-1); }
.lightbox figcaption small { display: block; font-family: var(--font-body); font-size: var(--step--2); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: .35rem; }
.lb-btn {
  position: absolute;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(15, 15, 15, .7);
  transition: all .35s var(--ease);
}
.lb-btn:hover { background: var(--gold); color: var(--black); }
.lb-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lb-close { top: 1.4rem; right: 1.4rem; }
.lb-prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.4rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) {
  .lb-prev { left: .7rem; } .lb-next { right: .7rem; }
  .lb-btn { width: 42px; height: 42px; }
}

/* Optional add-ons prompt (order page) */
.addon {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: clamp(.8rem, 3vw, 2rem);
  background: rgba(6, 6, 6, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.addon.is-open { opacity: 1; visibility: visible; }
.addon__panel {
  position: relative;
  width: min(100%, 34rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, #1a1916, #101010 70%);
  box-shadow: var(--shadow-lg);
  animation: fadeUp .45s var(--ease-out) both;
}
.addon__close { top: .9rem; right: .9rem; width: 40px; height: 40px; }
.addon__title { font-family: var(--font-display); font-size: var(--step-2); color: var(--ivory); font-weight: 400; margin: .3rem 0 .5rem; padding-right: 2.6rem; }
.addon__lead { font-size: var(--step--1); color: var(--text-muted); margin: 0 0 1.3rem; }
.addon__list { display: grid; gap: .6rem; }
.addon-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: .9rem;
  align-items: center;
  padding: .6rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .022);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.addon-item.is-added { border-color: rgba(212, 175, 55, .55); background: rgba(212, 175, 55, .07); }
.addon-item .media { width: 58px; height: 58px; border-radius: var(--r-sm); overflow: hidden; }
.addon-item__name { font-size: var(--step--1); color: var(--ivory); line-height: 1.3; }
.addon-item__name .dish__ar { font-size: .85em; }
.addon-item__price { display: block; font-family: var(--font-display); color: var(--gold); font-size: var(--step-0); margin-top: .15rem; }
.addon-item__side { display: flex; align-items: center; gap: .6rem; }
.addon-item__side .qty { display: none; }
.addon-item.is-added .qty { display: inline-flex; }
.addon-item.is-added [data-add] { display: none; }
.addon__actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.4rem; flex-wrap: wrap; }
@media (max-width: 420px) {
  .addon-item { grid-template-columns: 48px 1fr auto; gap: .7rem; padding: .5rem; }
  .addon-item .media { width: 48px; height: 48px; }
  .addon-item__side .btn { padding: .55rem .9rem; }
}

/* 8. RESERVATIONS -------------------------------------------------------- */
.reserve-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
}
.reserve-panel__aside {
  position: relative;
  padding: clamp(2rem, 4vw, 3.2rem);
  background: linear-gradient(170deg, rgba(20, 65, 58, .5), rgba(17, 17, 17, .6));
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.reserve-panel__form { padding: clamp(2rem, 4vw, 3.2rem); }

.hours-list { display: grid; gap: .55rem; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--step--1);
  color: var(--text-muted);
  padding-bottom: .5rem;
  border-bottom: 1px dashed rgba(231, 213, 165, .1);
}
.hours-list li b { color: var(--sand); font-weight: 400; }
.hours-list li.is-today { color: var(--gold); }
.hours-list li.is-today b { color: var(--gold); }

.party-picker { display: flex; gap: .45rem; flex-wrap: wrap; }
.party-picker input { position: absolute; opacity: 0; pointer-events: none; }
.party-picker label {
  min-width: 3rem;
  text-align: center;
  padding: .6rem .5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  font-size: var(--step--1);
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.party-picker label:hover { border-color: var(--gold); color: var(--ivory); }
.party-picker input:checked + label {
  background: linear-gradient(115deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: var(--black);
  border-color: transparent;
  font-weight: 500;
}
.party-picker input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 9. ORDER ONLINE -------------------------------------------------------- */
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: var(--sp-4);
  align-items: start;
}
@media (max-width: 980px) { .order-layout { grid-template-columns: 1fr; } }

.basket {
  position: sticky;
  top: calc(var(--header-h) + 1.2rem);
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.basket h2 { font-size: var(--step-1); margin-bottom: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.basket__count {
  font-family: var(--font-body);
  font-size: .65rem;
  letter-spacing: .2em;
  padding: .25rem .6rem;
  border-radius: var(--r-pill);
  background: rgba(212, 175, 55, .14);
  color: var(--gold);
}
.basket__list { display: grid; gap: .75rem; max-height: 24rem; overflow-y: auto; padding-right: .3rem; }
.basket__empty { font-size: var(--step--1); color: var(--text-dim); padding-block: 1.6rem; text-align: center; }
/* Review table: item · qty · each · line total */
.basket-head,
.basket-item { display: grid; grid-template-columns: 1fr auto 4.2rem 4.6rem; gap: .35rem .7rem; align-items: center; }
.basket-head { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.basket-head span:nth-child(n+3), .basket-item__each, .basket-item__price { text-align: right; }
.basket-item { padding-bottom: .75rem; border-bottom: 1px solid var(--line-soft); }
.basket-item__name { font-size: var(--step--1); color: var(--ivory); line-height: 1.3; }
.basket-item__each { font-size: var(--step--2); color: var(--text-muted); white-space: nowrap; }
.basket-item__price { font-family: var(--font-display); color: var(--gold); font-size: var(--step-0); white-space: nowrap; }
.basket-item .remove { grid-column: 1 / -1; justify-self: start; margin: 0; }
.qty { display: inline-flex; align-items: center; gap: .3rem; }
.qty button {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1;
  transition: all .3s var(--ease);
}
.qty button:hover { border-color: var(--gold); color: var(--gold); }
.qty output { min-width: 1.6rem; text-align: center; font-size: var(--step--1); }
.qty .remove { margin-left: auto; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); border: 0; }
.qty .remove:hover { color: #e08a82; }

.basket__totals { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.basket__row { display: flex; justify-content: space-between; font-size: var(--step--1); color: var(--text-muted); }
.basket__row--total { font-family: var(--font-display); font-size: var(--step-1); color: var(--ivory); padding-top: .5rem; }
.basket__row--total span:last-child { color: var(--gold); }

.basket__notice {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(212, 175, 55, .3);
  border-radius: var(--r-md);
  background: rgba(212, 175, 55, .07);
  font-size: var(--step--2);
  line-height: 1.55;
  color: var(--sand, var(--text-muted));
}

/* Customer details */
.checkout-form { display: grid; gap: .85rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.checkout-form__title { font-family: var(--font-display); font-size: var(--step-0); color: var(--ivory); margin: 0 0 .1rem; }
.checkout-form .field label small { text-transform: none; letter-spacing: 0; opacity: .8; }
.checkout-form .field label span { color: var(--gold); }
.checkout-form .field input { padding: .8rem .95rem; font-size: var(--step--1); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) 4.2rem 6.2rem; gap: .7rem; }
.field-row--halves { grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row .field--grow { grid-column: 1 / -1; } }

/* WhatsApp checkout button — official brand green, big enough to tap */
.btn--whatsapp {
  --btn-bg: #25D366;
  --btn-fg: #ffffff;
  gap: .7rem;
  min-height: 3.6rem;
  padding: 1rem 1.4rem;
  background: #25D366;
  border-color: #25D366;
  color: #fff;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .1em;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .28), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn--whatsapp::before { content: none; }   /* no gold hover slide on this one */
.btn--whatsapp { white-space: normal; text-align: center; line-height: 1.25; }
.btn--whatsapp svg { width: 1.5em; height: 1.5em; flex: none; }
.btn--whatsapp:hover:not(:disabled), .btn--whatsapp:focus-visible { background: #1ebe5a; border-color: #1ebe5a; color: #fff; transform: translateY(-1px); }
.btn--whatsapp:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn--whatsapp.is-busy { opacity: .85; cursor: progress; }
.btn--whatsapp.is-busy svg { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.checkout-error {
  margin-top: .9rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(224, 138, 130, .5);
  border-radius: var(--r-md);
  background: rgba(198, 64, 64, .12);
  font-size: var(--step--2);
  line-height: 1.5;
  color: #f3c5c0;
}
.checkout-error[hidden] { display: none; }
@media (max-width: 980px) {
  .basket { position: static; }
}

.mode-switch { display: flex; gap: .4rem; padding: .3rem; border: 1px solid var(--line-soft); border-radius: var(--r-pill); margin-bottom: 1.2rem; }
.mode-switch button {
  flex: 1;
  padding: .55rem;
  border-radius: var(--r-pill);
  font-size: var(--step--2);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all .35s var(--ease);
}
.mode-switch button[aria-pressed="true"] { background: rgba(212, 175, 55, .16); color: var(--gold); }

.order-item[hidden] { display: none; }
.order-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: .9rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .022);
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease-out);
}
.order-item:hover { border-color: rgba(212, 175, 55, .38); background: rgba(255, 255, 255, .04); transform: translateY(-2px); }
.order-item .media { border-radius: var(--r-sm); }
.order-item h3 { font-size: var(--step-0); margin-bottom: .25rem; }
.order-item p { font-size: var(--step--2); color: var(--text-muted); }
.order-item__price { font-family: var(--font-display); font-size: var(--step-1); color: var(--gold); }
.order-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
@media (max-width: 560px) {
  .order-item { grid-template-columns: 70px 1fr; }
  .order-item__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* 10. CONTACT & MAP ------------------------------------------------------ */
.map-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--charcoal);
  aspect-ratio: 16 / 10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05) brightness(.86); }
@media (max-width: 700px) { .map-frame { aspect-ratio: 4 / 3; } }

.contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.contact-strip > * { background: var(--black); }

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding-block: var(--sp-7);
  border-block: 1px solid var(--line);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(212, 175, 55, .14), transparent 65%),
    linear-gradient(180deg, #131211, #0a0a0a);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/pattern-lotus.svg") repeat center / 170px;
  opacity: .045;
}


/* ORDER PANEL: pinned header + scrolling middle + pinned subtotal/checkout -----
   The panel is sticky, so it must never be taller than the screen. The middle
   (dishes, delivery note, details form) scrolls on its own; the title and the
   subtotal + Complete Order button stay in view at all times. */
.basket {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  max-height: calc(100vh - var(--header-h) - 2.4rem);
  max-height: calc(100dvh - var(--header-h) - 2.4rem);
  border-color: rgba(212, 175, 55, .28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.basket > h2 {
  flex: none;
  margin: 0;
  padding: 1.3rem 1.6rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(212, 175, 55, .08), transparent);
}
.basket__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 1.1rem 1.6rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, .55) transparent;
  /* soft fade where content slides under the header and footer */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 .9rem, #000 calc(100% - 1.1rem), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 .9rem, #000 calc(100% - 1.1rem), transparent 100%);
}
.basket__scroll::-webkit-scrollbar { width: 6px; }
.basket__scroll::-webkit-scrollbar-track { background: transparent; }
.basket__scroll::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold-light, #f0d675), var(--gold, #d4af37)); border-radius: 6px; }
.basket__list { max-height: none; overflow: visible; padding-right: 0; }
.basket__scroll .basket__notice { margin-top: 1rem; }
.basket__scroll .checkout-form { margin-top: 1.2rem; }
.basket__foot {
  flex: none;
  padding: 1rem 1.6rem 1.3rem;
  border-top: 1px solid rgba(212, 175, 55, .35);
  background: linear-gradient(180deg, rgba(20, 20, 20, .92), rgba(12, 12, 12, .98));
  box-shadow: 0 -14px 26px rgba(0, 0, 0, .35);
}
.basket__foot .basket__totals { margin-top: 0; padding-top: 0; border-top: 0; }
.basket__foot .basket__row--total { padding-top: 0; }
.basket__foot .btn--whatsapp { margin-top: .9rem; }
.basket__foot .form-note { margin-top: .6rem; font-size: var(--step--2); }
.basket__foot .checkout-error { margin-top: .7rem; }

/* Small screens: the panel sits in the normal page flow, so no inner scrolling */
@media (max-width: 980px) {
  .basket { max-height: none; overflow: visible; }
  .basket__scroll { overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 1.1rem 1.4rem; }
  .basket > h2 { padding: 1.2rem 1.4rem .9rem; }
  .basket__foot { padding: 1rem 1.4rem 1.3rem; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .basket__list { max-height: 24rem; overflow-y: auto; padding-right: .3rem; }
}

/* Short laptop screens: slimmer pinned footer so the middle has more room */
@media (min-width: 981px) and (max-height: 800px) {
  .basket__foot { padding: .8rem 1.4rem 1rem; }
  .basket__foot .form-note { display: none; }
  .basket__foot .btn--whatsapp { min-height: 3rem; padding-block: .75rem; margin-top: .7rem; }
  .basket > h2 { padding: 1rem 1.4rem .8rem; }
  .basket__scroll { padding-inline: 1.4rem; }
}

/* Basket rows: name on its own line, then quantity · each · line total */
.basket-head { display: none; }
.basket-item {
  grid-template-columns: auto 1fr auto;
  gap: .45rem .8rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .03);
}
.basket-item__name { grid-column: 1 / -1; font-family: var(--font-display); font-size: var(--step-0); }
.basket-item__each { text-align: left; }
.basket-item__each::after { content: " each"; opacity: .7; }
.basket-item .remove { grid-column: 1 / -1; font-size: var(--step--2); opacity: .75; padding: 0; }
.basket-item .remove:hover { opacity: 1; }
@media (min-width: 1200px) {
  .order-layout { grid-template-columns: minmax(0, 1fr) 25rem; }
}

/* DELIVERY DATE + TIME WINDOW ------------------------------------------- */
.schedule { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: .7rem; }
.schedule legend { padding: 0; margin-bottom: .55rem; font-size: var(--step--2); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.schedule legend span { color: var(--gold); }
.schedule svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.date-trigger {
  display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 3.6rem;
  padding: .7rem 1rem; text-align: left; cursor: pointer;
  color: var(--ivory); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.date-trigger > svg:first-child { width: 22px; height: 22px; flex: none; color: var(--gold); }
.date-trigger__text { display: grid; gap: .1rem; flex: 1; min-width: 0; }
.date-trigger small { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }
.date-trigger strong { font-weight: 400; font-size: var(--step--1); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.date-trigger.is-set strong { color: var(--ivory); }
.date-trigger__chev { width: 18px; height: 18px; flex: none; color: var(--text-muted); transition: transform .3s var(--ease); }
.date-trigger[aria-expanded="true"] .date-trigger__chev { transform: rotate(180deg); }
.date-trigger:hover, .date-trigger:focus-visible, .date-trigger[aria-expanded="true"] { border-color: var(--gold); background: var(--surface-2); box-shadow: 0 0 0 3px rgba(212, 175, 55, .12); outline: none; }

.calendar {
  padding: 1rem .9rem .8rem; border: 1px solid rgba(212, 175, 55, .35); border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(38, 34, 28, .98), rgba(20, 18, 16, .99));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: calIn .28s var(--ease-out) both;
}
.calendar[hidden] { display: none; }
@keyframes calIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.calendar__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.calendar__title { font-family: var(--font-display); font-size: var(--step-1); color: var(--ivory); text-align: center; flex: 1; }
.calendar__nav {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none; cursor: pointer;
  color: var(--gold); background: transparent; border: 1px solid var(--line); border-radius: 50%;
  transition: background .2s, border-color .2s, opacity .2s;
}
.calendar__nav svg { width: 18px; height: 18px; }
.calendar__nav:hover:not(:disabled), .calendar__nav:focus-visible { background: rgba(212, 175, 55, .14); border-color: var(--gold); outline: none; }
.calendar__nav:disabled { opacity: .3; cursor: not-allowed; }
.calendar__dow, .calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; }
.calendar__dow span { text-align: center; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); padding-bottom: .4rem; }
.cal-blank { display: block; }
.cal-day {
  aspect-ratio: 1; min-height: 2.75rem; display: grid; place-items: center; cursor: pointer;
  font: inherit; font-size: var(--step--1); color: var(--ivory);
  background: transparent; border: 1px solid transparent; border-radius: 50%;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.cal-day:hover:not(:disabled), .cal-day:focus-visible { background: rgba(212, 175, 55, .16); border-color: var(--gold); outline: none; transform: scale(1.06); }
.cal-day.is-off, .cal-day:disabled {
  color: rgba(168, 159, 143, .32); cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgba(168, 159, 143, .22);
  background: transparent;
}
.cal-day.is-today:disabled { border-color: rgba(168, 159, 143, .25); border-style: dashed; }
.cal-day.is-selected, .cal-day.is-selected:hover {
  color: var(--black); font-weight: 500; border-color: transparent; transform: none;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 6px 18px rgba(212, 175, 55, .35);
}
.calendar__note { margin: .8rem .2rem 0; font-size: var(--step--2); line-height: 1.5; color: var(--text-dim); text-align: center; }

.windows { display: grid; gap: .6rem; animation: calIn .35s var(--ease-out) both; }
.windows[hidden] { display: none; }
.windows__title { margin: 0; font-family: var(--font-display); font-size: var(--step-0); color: var(--ivory); }
.windows__list { display: grid; gap: .55rem; }
.win { display: block; cursor: pointer; position: relative; }
.win input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.win__card {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 3.25rem; padding: .7rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.win__card b { font-weight: 500; font-size: var(--step--1); letter-spacing: .04em; color: var(--ivory); margin-right: auto; }
.win__card small { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.win__card::before {
  content: ""; width: 1.15rem; height: 1.15rem; flex: none; border-radius: 50%;
  border: 1.5px solid var(--text-dim); transition: border-color .2s, background .2s;
}
.win:hover .win__card { border-color: rgba(212, 175, 55, .55); background: var(--surface-2); }
.win input:focus-visible + .win__card { outline: 2px solid var(--gold); outline-offset: 2px; }
.win input:checked + .win__card {
  border-color: var(--gold); background: linear-gradient(165deg, rgba(212, 175, 55, .16), rgba(212, 175, 55, .05));
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .12);
}
.win input:checked + .win__card::before { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 0 44%, transparent 48%); }
.win input:checked + .win__card small { color: var(--gold); }
.schedule__hint { margin: 0; min-height: 1.1em; font-size: var(--step--2); color: var(--sand); }

/* Pinned summary of the chosen delivery slot (sits above the subtotal) */
.basket__delivery {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; padding: .6rem .8rem;
  border: 1px dashed rgba(212, 175, 55, .35); border-radius: var(--r-md); color: var(--text-muted);
  transition: border-color .25s, background .25s;
}
.basket__delivery-icon svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.basket__delivery small { display: block; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }
.basket__delivery strong { display: block; font-weight: 400; font-size: var(--step--1); line-height: 1.3; }
.basket__delivery.is-set { border-style: solid; border-color: var(--gold); background: rgba(212, 175, 55, .09); color: var(--gold); }
.basket__delivery.is-set strong { color: var(--ivory); }

@media (max-width: 420px) {
  .calendar { padding-inline: .6rem; }
  .win__card { min-height: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) { .calendar, .windows { animation: none; } }

/* Keep the picker inside its column at every width */
.schedule { grid-template-columns: minmax(0, 1fr); }
.schedule > * { min-width: 0; }
.calendar__dow, .calendar__grid { min-width: 0; }
.cal-day { min-width: 0; padding: 0; }

@media (max-width: 480px) {
  .basket__scroll, .basket > h2, .basket__foot { padding-inline: 1rem; }
  .calendar { padding: .8rem .4rem .7rem; border-radius: var(--r-md); }
  .calendar__dow, .calendar__grid { gap: .15rem; }
  .cal-day { aspect-ratio: auto; height: 2.75rem; min-height: 0; border-radius: 14px; }
  .calendar__nav { width: 2.75rem; height: 2.75rem; }
  .win__card { padding-inline: .8rem; gap: .6rem; }
  .win__card small { font-size: .58rem; letter-spacing: .12em; }
}
