/* ==========================================================================
   AL-NOOR BAKERY & CAFÉ — "warm neighbourhood patisserie" design language
   Flour-cream surfaces, cocoa ink, caramel crust + honey gold.
   Bitter display / Mulish body. Awning scallops, dashed bakery tickets,
   pill buttons, soft 14–20px cards. Mobile-first, reduced-motion aware.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --flour: #FBF3E7;
  --flour-deep: #F3E5CE;
  --paper: #FFFCF4;
  --paper-warm: #FFF7EA;
  --cocoa: #2E1B0E;
  --cocoa-soft: #4A3120;
  --muted: #7C5C40;
  --crust: #C46A2B;
  --crust-deep: #A9561F;
  --honey: #E9B44C;
  --honey-soft: #F6E3BC;
  --honey-wash: #FBEDCF;
  --berry: #B3402E;
  --berry-wash: #F7E3DC;
  --leaf: #3E7C4F;
  --leaf-wash: #E4EEDD;
  --line: #E5D0AE;
  --line-soft: #F0E2CB;
  --shadow-sm: 0 2px 10px rgba(74, 49, 32, .07);
  --shadow-md: 0 12px 30px rgba(74, 49, 32, .12);
  --shadow-lg: 0 26px 64px rgba(46, 27, 14, .22);
  --r-card: 18px;
  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", "Segoe UI", Tahoma, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--flour);
  color: var(--cocoa);
  font-family: "Mulish", "Segoe UI", Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
body.drawer-open { overflow: hidden; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: "Bitter", Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.12; margin: 0 0 .5em; color: var(--cocoa); }
p { margin: 0 0 1em; }
a { color: var(--crust-deep); }
button { font-family: inherit; }
::selection { background: var(--honey); color: var(--cocoa); }
:focus-visible { outline: 3px solid var(--crust); outline-offset: 2px; border-radius: 6px; }
[id] { scroll-margin-top: 96px; }

.wrap { width: min(1180px, 100% - 2.2rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--cocoa); color: var(--flour); padding: 10px 18px;
  border-radius: 0 0 12px 12px; font-weight: 700; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- pills (buttons) ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: .78em 1.6em; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.pill svg { width: 18px; height: 18px; flex: none; }
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0); }
.pill:disabled { opacity: .65; cursor: wait; transform: none; }
.pill-crust { background: var(--crust-deep); color: #FFF7EA; box-shadow: 0 6px 16px rgba(169, 86, 31, .28); }
.pill-crust:hover { background: #93481A; box-shadow: 0 10px 22px rgba(169, 86, 31, .34); }
.pill-honey { background: var(--honey); color: var(--cocoa); box-shadow: 0 6px 16px rgba(233, 180, 76, .35); }
.pill-honey:hover { background: #F2C14E; }
.pill-line { background: transparent; border-color: var(--line); color: var(--cocoa); }
.pill-line:hover { border-color: var(--crust); color: var(--crust-deep); }
.pill-sm { padding: .55em 1.2em; font-size: .85rem; }
.pill-block { width: 100%; }

.spin {
  width: 16px; height: 16px; border-radius: 50%; display: none; flex: none;
  border: 2.5px solid rgba(255, 247, 234, .35); border-top-color: #FFF7EA;
  animation: rot .7s linear infinite;
}
.pill.is-loading .spin { display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- kicker + band heads ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--crust-deep); background: var(--honey-wash);
  border: 1.5px dashed var(--honey); border-radius: 999px;
  padding: 6px 14px; margin: 0 0 14px;
}
.kicker svg { width: 14px; height: 14px; }
.band-head { max-width: 660px; margin-bottom: 28px; }
.band-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 600; }
.band-head h2 em { font-style: italic; color: var(--crust-deep); }
.band-sub { color: var(--muted); margin: 0; }

/* ==========================================================================
   SHOPFRONT (header) + awning
   ========================================================================== */
.shopfront {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251, 243, 231, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: box-shadow .25s ease;
}
.shopfront.is-scrolled { box-shadow: 0 8px 24px rgba(74, 49, 32, .12); }
.shopfront-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-block: 12px;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.loafstamp { width: 42px; height: 42px; flex: none; display: block; }
.wm-text { display: flex; flex-direction: column; line-height: 1.05; }
.wm-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--cocoa); }
.wm-sub { font-size: .56rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--crust-deep); }

.counter-nav { display: none; align-items: center; gap: 22px; }
.counter-nav a {
  color: var(--cocoa-soft); text-decoration: none; font-weight: 700; font-size: .92rem;
  padding: 4px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.counter-nav a:hover { color: var(--crust-deep); border-bottom-color: var(--honey); }

.shop-actions { display: flex; align-items: center; gap: 10px; }
.basket-pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: 2px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 700; font-size: .88rem; color: var(--cocoa);
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.basket-pill:hover { border-color: var(--crust); background: var(--honey-wash); }
.basket-pill svg { width: 19px; height: 19px; }
.basket-count {
  position: absolute; top: -7px; right: -6px; min-width: 22px; height: 22px;
  display: grid; place-items: center; padding: 0 5px;
  background: var(--crust-deep); color: #FFF7EA; border-radius: 999px;
  font-size: .72rem; font-weight: 800; border: 2px solid var(--flour);
}
.basket-count.bump { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.header-key { display: none; font-size: .85rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.header-key:hover { color: var(--crust-deep); }
.header-order { display: none; }

.menu-flap {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  background: var(--paper); border: 2px solid var(--line); cursor: pointer;
}
.menu-flap span { display: block; height: 2.5px; border-radius: 2px; background: var(--cocoa); transition: transform .2s, opacity .2s; }
.menu-flap[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-flap[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-flap[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* the striped awning — the shop's signature edge */
.awning {
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--crust) 0 26px, #F8EBD7 26px 52px);
  -webkit-mask: radial-gradient(circle 13px at 50% 0, #000 97%, #0000 100%) 50% 0 / 26px 100% repeat-x;
  mask: radial-gradient(circle 13px at 50% 0, #000 97%, #0000 100%) 50% 0 / 26px 100% repeat-x;
}

/* mobile menu board (drops down like a chalk board) */
.board-veil {
  position: fixed; inset: 0; z-index: 95; background: rgba(46, 27, 14, .5);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.board-veil.is-open { opacity: 1; pointer-events: auto; }
.menu-board {
  position: fixed; top: 86px; left: 12px; right: 12px; z-index: 96;
  background: var(--cocoa); color: var(--flour);
  border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-14px) scale(.98); transform-origin: top center;
  transition: opacity .28s ease, transform .28s cubic-bezier(.2, .7, .2, 1);
  max-height: calc(100dvh - 110px); overflow-y: auto;
}
.menu-board.is-open { opacity: 1; transform: none; }
.board-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.board-head .wm-name { color: var(--flour); }
.board-close {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px dashed rgba(233, 180, 76, .6);
  background: transparent; color: var(--honey); font-size: 1rem; cursor: pointer;
}
.board-link {
  display: block; padding: 13px 6px; color: var(--flour); text-decoration: none;
  font-weight: 700; border-bottom: 1.5px dashed rgba(233, 180, 76, .35);
}
.board-link:hover { color: var(--honey); }
.menu-board .pill { margin-top: 16px; }
.board-note { font-size: .74rem; color: #C9B49A; margin: 14px 0 0; }

/* ==========================================================================
   MORNING (hero) — product-first, bright
   ========================================================================== */
.morning { padding: 44px 0 52px; position: relative; overflow: hidden; }
.morning::before {
  content: ""; position: absolute; top: -180px; right: -140px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(233, 180, 76, .28), rgba(233, 180, 76, 0) 65%);
  pointer-events: none;
}
.morning-grid { display: grid; gap: 36px; align-items: center; position: relative; }
.morning h1 {
  font-size: clamp(2.5rem, 7vw, 4.1rem); font-weight: 600; letter-spacing: -.01em;
  margin-bottom: 18px;
}
.morning h1 em { font-style: italic; color: var(--crust-deep); }
.morning-copy { color: var(--muted); font-size: 1.06rem; max-width: 48ch; margin-bottom: 26px; }
.morning-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.stamp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-stamp {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 700; color: var(--muted);
  border: 1.5px dashed var(--line); border-radius: 999px; padding: 5px 12px; background: var(--paper);
}
.mini-stamp b { color: var(--crust-deep); }
.mini-stamp::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--honey); }

.morning-scene { position: relative; max-width: 560px; margin-inline: auto; width: 100%; }
.scene-art { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(74, 49, 32, .14)); }
.oven-tag {
  position: absolute; top: 4%; left: -2%;
  background: var(--paper); border: 2px dashed var(--crust); border-radius: 12px;
  padding: 9px 14px; font-size: .76rem; font-weight: 800; color: var(--crust-deep);
  transform: rotate(-4deg); box-shadow: var(--shadow-sm); line-height: 1.3;
  animation: bob 6s ease-in-out infinite alternate;
}
.oven-tag small { display: block; font-weight: 600; color: var(--muted); }
.halal-stamp {
  position: absolute; bottom: 6%; right: -1%;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--honey); color: var(--cocoa);
  display: grid; place-items: center; text-align: center;
  font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25;
  border: 3px dashed var(--crust-deep); transform: rotate(6deg);
  box-shadow: var(--shadow-sm); padding: 8px;
  animation: bob 7s ease-in-out infinite alternate-reverse;
}
@keyframes bob { from { translate: 0 -5px; } to { translate: 0 6px; } }

/* oven line — quiet cocoa strip */
.oven-line {
  background: var(--cocoa); color: #EAD9BE;
  border-block: 2px dashed rgba(233, 180, 76, .45);
  padding: 14px 0; text-align: center;
}
.oven-line p {
  margin: 0; font-family: var(--font-display); font-style: italic;
  font-size: clamp(.95rem, 2.4vw, 1.15rem);
}
.oven-line b { color: var(--honey); font-style: normal; }

/* ==========================================================================
   THE COUNTER (product grid)
   ========================================================================== */
.bake-band { padding: 60px 0 66px; }
.cat-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: none; border-radius: 999px; border: 2px solid var(--line);
  background: var(--paper); color: var(--cocoa-soft);
  font-weight: 700; font-size: .88rem; padding: 9px 20px; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.cat-tab:hover { border-color: var(--crust); }
.cat-tab[aria-pressed="true"] { background: var(--crust-deep); border-color: var(--crust-deep); color: #FFF7EA; }
.filter-meta { font-size: .8rem; color: var(--muted); margin: 0 0 20px; }

.counter-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.bake-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1.5px solid var(--line-soft); border-radius: var(--r-card);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bake-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--honey); }
.bake-card.is-hidden { display: none; }
.bake-card.card-in { animation: cardIn .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

.bake-art {
  position: relative; display: grid; place-items: center; padding: 22px 18px 14px;
  background: radial-gradient(circle at 50% 68%, var(--honey-wash), var(--paper-warm) 72%);
  border-bottom: 1.5px dashed var(--line-soft);
}
.bake-art svg { width: 76%; height: auto; display: block; }
.fresh-tag {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--crust-deep); background: var(--paper);
  border: 1.5px dashed var(--honey); border-radius: 999px; padding: 4px 10px;
}
.fresh-tag svg { width: 11px; height: 11px; }
.fresh-tag--custom { color: var(--leaf); border-color: #B7CDA9; background: var(--leaf-wash); }
.fresh-tag--box { color: var(--berry); border-color: #E0B4A6; background: var(--berry-wash); }

.bake-info { display: flex; flex-direction: column; gap: 7px; padding: 16px; flex: 1; }
.bake-name { font-size: 1.1rem; font-weight: 600; margin: 0; }
.bake-desc { font-size: .85rem; color: var(--muted); margin: 0; flex: 1; }
.bake-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding-top: 12px; border-top: 1.5px dashed var(--line);
}
.bake-price { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--cocoa); line-height: 1.15; }
.bake-price small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .68rem; color: var(--muted); }
.add-pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  border-radius: 999px; border: 2px solid var(--crust-deep);
  background: var(--honey-wash); color: var(--crust-deep);
  font-weight: 800; font-size: .82rem; padding: 8px 16px; cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s;
}
.add-pill svg { width: 14px; height: 14px; }
.add-pill:hover { background: var(--crust-deep); color: #FFF7EA; transform: translateY(-2px); }
.add-pill--enquire { border-color: var(--honey); background: var(--honey); color: var(--cocoa); }
.add-pill--enquire:hover { background: #F2C14E; border-color: #F2C14E; color: var(--cocoa); }

/* ==========================================================================
   CUSTOM CAKE BAND — honey light, ticket-stub steps
   ========================================================================== */
.cake-band {
  background: var(--honey-wash);
  border-block: 1.5px solid var(--honey-soft);
  padding: 62px 0;
}
.cake-grid { display: grid; gap: 36px; align-items: center; }
.cake-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cake-band .band-sub { max-width: 52ch; }
.cake-steps { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 12px; }
.cake-steps li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--paper); border: 2px dashed var(--line); border-radius: 14px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.cs-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--crust-deep); color: #FFF7EA;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}
.cake-steps b { display: block; font-size: .98rem; }
.cake-steps small { color: var(--muted); font-size: .82rem; line-height: 1.45; display: block; }
.cake-fig { margin: 0; max-width: 420px; margin-inline: auto; width: 100%; }
.cake-fig svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 26px rgba(74, 49, 32, .16)); }

/* ==========================================================================
   ORDER SLIP (form) + counter notes
   ========================================================================== */
.order-band { padding: 62px 0; }
.order-grid { display: grid; gap: 24px; align-items: start; }

.order-slip {
  position: relative; background: var(--paper);
  border: 2px dashed var(--line); border-radius: 20px;
  box-shadow: var(--shadow-md); padding: 24px 20px 26px;
}
.order-slip::before {
  content: ""; position: absolute; top: -2px; left: 24px; right: 24px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--honey) 0 14px, transparent 14px 28px);
  border-radius: 0 0 6px 6px; opacity: .7;
}
.slip-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-bottom: 2px dashed var(--line); padding-bottom: 14px; margin-bottom: 20px;
}
.slip-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin: 0; }
.slip-no { font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }

.slip-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.slip-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.slip-field label { font-weight: 700; font-size: .82rem; color: var(--cocoa-soft); }
.req { color: var(--berry); }
.slip-field input, .slip-field select, .slip-field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--cocoa);
  background: #FFFDF7; border: 1.5px solid var(--line); border-radius: 12px;
  padding: .72em .9em; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.slip-field textarea { min-height: 96px; resize: vertical; }
.slip-field input:focus, .slip-field select:focus, .slip-field textarea:focus {
  outline: none; border-color: var(--crust); box-shadow: 0 0 0 3px var(--honey-wash);
}
.slip-field ::placeholder { color: #B49A7C; opacity: 1; }
.ferr { display: none; font-size: .78rem; font-weight: 600; color: var(--berry); }
.slip-field.has-error input, .slip-field.has-error select, .slip-field.has-error textarea { border-color: var(--berry); box-shadow: 0 0 0 3px var(--berry-wash); }
.slip-field.has-error .ferr { display: block; }
.hint { font-size: .76rem; color: var(--muted); }

.slip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.slip-actions small { font-size: .8rem; color: var(--muted); }
.slip-fineprint {
  margin: 18px 0 0; padding-top: 14px; border-top: 1.5px dashed var(--line);
  font-size: .76rem; color: var(--muted);
}

.slip-success { display: none; text-align: center; padding: 18px 4px 6px; }
.order-slip.is-sent form { display: none; }
.order-slip.is-sent .slip-success { display: block; animation: cardIn .5s both; }
.ok-stamp {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%;
  border: 3px dashed var(--leaf); background: var(--leaf-wash);
  display: grid; place-items: center; transform: rotate(-6deg);
}
.ok-stamp svg { width: 34px; height: 34px; }
.slip-success h3 { font-size: 1.4rem; }
.ref {
  display: inline-block; font-weight: 800; letter-spacing: .14em;
  border: 2px dashed var(--honey); background: var(--honey-wash); color: var(--crust-deep);
  border-radius: 999px; padding: 6px 18px; margin-bottom: 12px; font-size: .95rem;
}
.slip-success p { color: var(--muted); font-size: .92rem; }

.counter-notes {
  background: var(--paper); border: 1.5px solid var(--line-soft); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm); padding: 22px;
}
.counter-notes h3 { font-size: 1.15rem; margin-bottom: 14px; }
.note-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1.5px dashed var(--line-soft); font-size: .88rem;
}
.note-row span { color: var(--muted); }
.note-row b { text-align: right; }
.notes-list { margin: 14px 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.notes-list li { position: relative; padding-left: 22px; font-size: .85rem; color: var(--muted); }
.notes-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 50% 50% 50% 0; background: var(--honey); transform: rotate(-45deg); }
.phone-pill { width: 100%; }
.notes-fineprint { font-size: .72rem; color: var(--muted); margin: 12px 0 0; }

/* ==========================================================================
   GALLERY WINDOWS + lightbox
   ========================================================================== */
.gallery-band { padding: 8px 0 62px; }
.window-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.window-tile {
  display: block; padding: 0; text-align: left; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line-soft); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.window-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.window-tile svg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; transition: transform .35s ease; }
.window-tile:hover svg { transform: scale(1.035); }
.window-cap { display: block; padding: 12px 16px 14px; border-top: 1.5px dashed var(--line-soft); }
.window-cap b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--cocoa); }
.window-cap small { color: var(--muted); font-size: .78rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 140; display: grid; place-items: center;
  background: rgba(46, 27, 14, .8); padding: 18px;
  opacity: 0; transition: opacity .25s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox-card {
  position: relative; width: min(860px, 100%); background: var(--paper);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
  transform: translateY(14px); transition: transform .25s ease;
}
.lightbox.is-open .lightbox-card { transform: none; }
.lightbox-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--cocoa); color: var(--flour); font-size: 1rem;
}
.lightbox-fig { margin: 0; }
.lightbox-fig svg { display: block; width: 100%; height: auto; max-height: 68vh; }
.lightbox-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-top: 2px dashed var(--line);
}
.lightbox-bar b { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.lightbox-bar small { color: var(--muted); font-size: .8rem; }
.lightbox-tag {
  flex: none; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--honey-wash); color: var(--crust-deep);
  border: 1.5px dashed var(--honey); border-radius: 999px; padding: 5px 12px;
}

/* ==========================================================================
   VISIT — hours ticket + map
   ========================================================================== */
.visit-band { padding: 8px 0 62px; }
.visit-grid { display: grid; gap: 22px; }
.time-card, .map-card {
  background: var(--paper); border: 1.5px solid var(--line-soft);
  border-radius: var(--r-card); box-shadow: var(--shadow-sm); padding: 22px;
}
.time-card h3, .map-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.time-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; margin-inline: -10px; border-radius: 10px;
  border-bottom: 1.5px dashed var(--line-soft); font-size: .9rem;
}
.time-row:last-of-type { border-bottom: none; }
.time-day { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.time-hours { color: var(--muted); font-weight: 600; }
.time-row.is-today { background: var(--honey-wash); border-bottom-color: transparent; }
.today-stamp {
  font-size: .58rem; font-weight: 800; letter-spacing: .1em;
  background: var(--leaf); color: #F2F7EE; border-radius: 999px; padding: 2px 8px;
}
.time-note { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }
.map-fig { margin: 0 0 14px; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line-soft); }
.map-fig svg { display: block; width: 100%; height: auto; }
.addr { font-size: .88rem; color: var(--muted); }
.addr b { color: var(--cocoa); }

/* ==========================================================================
   GUEST NOTES (testimonials) — taped paper notes
   ========================================================================== */
.notes-band { padding: 8px 0 62px; }
.guest-grid { display: grid; gap: 22px; }
.guest-note {
  position: relative; background: var(--paper);
  border: 1.5px solid var(--line-soft); border-radius: 14px;
  box-shadow: var(--shadow-sm); padding: 26px 22px 20px;
}
.guest-note::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 96px; height: 22px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(233, 180, 76, .5); border-radius: 3px;
  box-shadow: 0 1px 3px rgba(74, 49, 32, .12);
}
.guest-note:nth-child(2)::before { transform: translateX(-50%) rotate(2.5deg); }
.guest-note:nth-child(3)::before { transform: translateX(-50%) rotate(-1deg); }
.stars { display: inline-flex; gap: 2px; margin-bottom: 10px; }
.stars svg { width: 16px; height: 16px; }
.guest-note p { font-size: .92rem; color: var(--cocoa-soft); }
.guest-who { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.guest-ava {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #FFF7EA;
  font-weight: 800; font-size: .8rem;
}
.guest-who b { display: block; font-size: .9rem; line-height: 1.2; }
.guest-who small { color: var(--muted); font-size: .74rem; }

/* ==========================================================================
   ASK ROWS (FAQ)
   ========================================================================== */
.faq-band { padding: 8px 0 62px; }
.ask-list { max-width: 820px; }
.ask-row {
  background: var(--paper); border: 1.5px solid var(--line-soft);
  border-radius: 14px; margin-bottom: 10px; overflow: hidden;
  transition: border-color .2s ease;
}
.ask-row.is-open { border-color: var(--honey); }
.ask-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: transparent; border: none; cursor: pointer; text-align: left;
  padding: 16px 18px; font-weight: 700; font-size: .98rem; color: var(--cocoa);
}
.ask-mark { position: relative; flex: none; width: 22px; height: 22px; }
.ask-mark::before, .ask-mark::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--crust-deep); border-radius: 2px; transition: transform .25s ease;
}
.ask-mark::before { width: 14px; height: 2.5px; }
.ask-mark::after { width: 2.5px; height: 14px; }
.ask-row.is-open .ask-mark::after { transform: rotate(90deg); }
.ask-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.ask-row.is-open .ask-body { grid-template-rows: 1fr; }
.ask-inner { min-height: 0; overflow: hidden; }
.ask-inner p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: .9rem; }

/* ==========================================================================
   CTA STRIP + FOOTER
   ========================================================================== */
.cta-band { padding: 0 0 70px; }
.cta-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--crust-deep); color: #FFF3E2;
  border-radius: 20px; padding: 32px 28px;
  box-shadow: 0 16px 36px rgba(169, 86, 31, .3);
  background-image: radial-gradient(circle at 88% 20%, rgba(233, 180, 76, .3), transparent 46%);
}
.cta-strip h2 { color: #FFF7EA; font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 6px; }
.cta-strip p { margin: 0; color: #F3D9BC; font-size: .95rem; max-width: 52ch; }

.shop-footer { background: var(--flour-deep); }
.footer-scallop {
  height: 12px; background: var(--flour-deep);
  -webkit-mask: radial-gradient(circle 13px at 50% 100%, #000 97%, #0000 100%) 50% 100% / 26px 100% repeat-x;
  mask: radial-gradient(circle 13px at 50% 100%, #000 97%, #0000 100%) 50% 100% / 26px 100% repeat-x;
}
.footer-cols { display: grid; gap: 30px; padding: 34px 0 26px; }
.footer-about p { font-size: .88rem; color: var(--muted); max-width: 34ch; margin: 14px 0 0; }
.footer-head {
  font-family: var(--font-body); font-size: .72rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--crust-deep); margin: 0 0 12px;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-list a { color: var(--cocoa-soft); text-decoration: none; font-size: .9rem; font-weight: 600; }
.footer-list a:hover { color: var(--crust-deep); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--cocoa-soft); }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--crust-deep); }
.footer-contact a { color: var(--cocoa-soft); text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: var(--crust-deep); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
  border-top: 1.5px dashed var(--line); padding: 16px 0 22px;
  font-size: .76rem; color: var(--muted);
}
.grow-credit { color: var(--crust-deep); font-weight: 700; text-decoration: none; }
.grow-credit:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   BASKET PANEL (drawer) + pocket bar
   ========================================================================== */
.basket-veil, .ticket-veil {
  position: fixed; inset: 0; z-index: 120; background: rgba(46, 27, 14, .55);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.basket-veil.is-open, .ticket-veil.is-open { opacity: 1; pointer-events: auto; }

.basket-panel {
  position: fixed; top: 0; right: 0; z-index: 130;
  height: 100dvh; width: min(420px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(105%); transition: transform .38s cubic-bezier(.2, .7, .2, 1);
}
.basket-panel.is-open { transform: none; }
.basket-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  background: var(--honey-wash); border-bottom: 2px dashed var(--honey);
  padding: 18px 20px;
}
.basket-head h2 { font-size: 1.25rem; margin: 0 0 2px; }
.basket-head small { color: var(--muted); font-size: .78rem; }
.basket-close {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px dashed var(--crust); background: var(--paper); color: var(--crust-deep);
  font-size: .95rem; cursor: pointer;
}
.basket-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.basket-empty { text-align: center; color: var(--muted); padding: 44px 10px; }
.basket-empty svg { width: 54px; height: 54px; opacity: .45; margin-bottom: 12px; }
.basket-empty p { font-size: .9rem; margin: 0; }

.slip-line {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center;
  padding: 13px 0; border-bottom: 1.5px dashed var(--line-soft);
}
.line-info b { display: block; font-size: .92rem; line-height: 1.3; }
.line-info small { color: var(--muted); font-size: .74rem; }
.line-qty { display: inline-flex; align-items: center; gap: 8px; grid-row: 2; }
.step-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--flour); color: var(--cocoa);
  font-size: .95rem; font-weight: 700; cursor: pointer; line-height: 1;
  transition: background-color .15s, border-color .15s;
}
.step-btn:hover { background: var(--honey-wash); border-color: var(--crust); }
.step-q { font-family: var(--font-display); font-weight: 700; min-width: 22px; text-align: center; }
.line-total { grid-row: 2; justify-self: end; font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.line-remove {
  grid-column: 2; grid-row: 1; justify-self: end;
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: transparent; color: var(--muted); cursor: pointer; font-size: .85rem;
}
.line-remove:hover { color: var(--berry); background: var(--berry-wash); }

.basket-foot { border-top: 2px dashed var(--line); background: var(--paper-warm); padding: 16px 20px 20px; }
.basket-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.basket-subtotal span { color: var(--muted); font-weight: 700; font-size: .85rem; }
.basket-subtotal b { font-family: var(--font-display); font-size: 1.4rem; }
.basket-clear {
  display: block; margin: 12px auto 0; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: .8rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.basket-clear:hover { color: var(--berry); }

/* sticky pocket basket bar — mobile only */
.pocket-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 110; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--cocoa); color: var(--flour);
  border-radius: 999px; padding: 9px 9px 9px 20px;
  box-shadow: var(--shadow-lg);
  transform: translateY(160%); opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .3s ease;
}
.pocket-bar.is-up { transform: none; opacity: 1; pointer-events: auto; }
body.drawer-open .pocket-bar { transform: translateY(160%); opacity: 0; pointer-events: none; }
.pocket-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pocket-info b { font-size: .88rem; }
.pocket-info small { color: #C9B49A; font-size: .72rem; }
.pocket-open { flex: none; }

/* toast */
.crumb-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 200;
  transform: translate(-50%, 16px);
  background: var(--cocoa); color: var(--flour);
  border: 1.5px dashed rgba(233, 180, 76, .55);
  padding: 11px 22px; border-radius: 999px;
  font-size: .86rem; font-weight: 700; text-align: center;
  max-width: min(92vw, 480px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.crumb-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 767px) {
  body.has-pocket .crumb-toast { bottom: 86px; }
}

/* ==========================================================================
   LOGIN — the client counter scene
   ========================================================================== */
.key-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 85% -10%, rgba(233, 180, 76, .3), transparent 46%),
    radial-gradient(circle at -10% 110%, rgba(196, 106, 43, .12), transparent 40%),
    var(--flour);
}
.key-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.key-back { font-size: .85rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.key-back:hover { color: var(--crust-deep); }
.key-grid { display: grid; gap: 34px; align-items: center; padding: 10px 0 56px; }

.key-scene { max-width: 520px; margin-inline: auto; width: 100%; }
.key-art { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 28px rgba(74, 49, 32, .14)); }
.key-title { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 22px 0 8px; }
.key-title em { font-style: italic; color: var(--crust-deep); }
.key-sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.key-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.key-point {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--paper); border: 2px dashed var(--line); border-radius: 12px;
  padding: 11px 14px;
}
.kp-ic {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--honey-wash); color: var(--crust-deep);
  display: grid; place-items: center;
}
.kp-ic svg { width: 18px; height: 18px; }
.key-point b { display: block; font-size: .88rem; line-height: 1.3; }
.key-point small { color: var(--muted); font-size: .76rem; }

.key-card {
  background: var(--paper); border: 1.5px solid var(--line-soft);
  border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 26px 22px 24px; width: min(460px, 100%); margin-inline: auto;
}
.key-card-head { border-bottom: 2px dashed var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.key-stamp {
  display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--crust-deep); border: 1.5px dashed var(--honey); background: var(--honey-wash);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 10px;
}
.key-card h1 { font-size: 1.65rem; margin-bottom: 4px; }
.key-card-head p { color: var(--muted); font-size: .88rem; margin: 0; }

.already-in {
  display: none; align-items: center; gap: 10px;
  background: var(--leaf-wash); border: 1.5px solid #B7CDA9; color: var(--leaf);
  border-radius: 12px; padding: 10px 14px; font-size: .84rem; font-weight: 600; margin-bottom: 14px;
}
.already-in.is-show { display: flex; }
.already-in a { color: var(--leaf); font-weight: 800; }

.demo-key {
  background: var(--honey-wash); border: 2px dashed var(--honey);
  border-radius: 14px; padding: 14px; margin-bottom: 16px;
}
.demo-key-title {
  display: flex; align-items: center; gap: 7px;
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--crust-deep); margin-bottom: 10px;
}
.demo-key-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: .8rem; }
.demo-key-row span { color: var(--muted); font-weight: 700; }
.demo-key-row code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .78rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 7px;
  padding: 3px 9px; color: var(--cocoa); word-break: break-all;
}
.demo-fill {
  width: 100%; margin-top: 6px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--crust-deep); background: var(--paper); color: var(--crust-deep);
  font-weight: 800; font-size: .8rem; padding: 8px 14px;
  transition: background-color .15s, color .15s;
}
.demo-fill:hover { background: var(--crust-deep); color: #FFF7EA; }

.key-error {
  display: none; align-items: flex-start; gap: 10px;
  background: var(--berry-wash); border: 1.5px solid #E0B4A6; color: #8A2F20;
  border-radius: 12px; padding: 11px 14px; font-size: .83rem; font-weight: 600; margin-bottom: 14px;
}
.key-error.is-show { display: flex; }
.key-error svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.key-form { display: grid; gap: 15px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 10px; border: none;
  background: transparent; color: var(--muted); cursor: pointer;
  display: grid; place-items: center;
}
.pw-toggle:hover { color: var(--crust-deep); background: var(--honey-wash); }
.pw-toggle svg { width: 19px; height: 19px; }
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--cocoa-soft); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--crust-deep); cursor: pointer; }
.key-row small { font-size: .74rem; color: var(--muted); }
.key-note { font-size: .76rem; color: var(--muted); margin: 16px 0 0; text-align: center; }
.key-foot { text-align: center; font-size: .76rem; color: var(--muted); padding: 0 0 30px; }
.key-foot a { color: var(--crust-deep); font-weight: 700; text-decoration: none; }
.key-foot a:hover { text-decoration: underline; }

.jolt { animation: jolt .45s ease; }
@keyframes jolt {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

/* ==========================================================================
   PORTAL — the order counter board (light)
   ========================================================================== */
body.pre-auth .counter-shell { display: none; }
.counter-shell { min-height: 100dvh; display: flex; flex-direction: column; background: var(--flour); }
.counter-top { background: var(--paper); border-bottom: 1.5px solid var(--line-soft); }
.counter-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
.counter-top-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.counter-tag {
  font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--honey-wash); color: var(--crust-deep);
  border: 1.5px dashed var(--honey); border-radius: 999px; padding: 5px 12px;
}
.counter-top-right { display: flex; align-items: center; gap: 12px; }
.counter-user { font-size: .78rem; color: var(--muted); font-weight: 600; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signout-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--paper);
  color: var(--cocoa); font-weight: 700; font-size: .82rem; padding: 8px 16px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.signout-pill:hover { border-color: var(--berry); color: var(--berry); }
.signout-pill svg { width: 16px; height: 16px; }

.counter-main { flex: 1; padding: 28px 0 48px; }
.counter-greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.counter-greet h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-bottom: 4px; }
.counter-date { color: var(--muted); font-size: .88rem; margin: 0; }

.stat-row { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 26px; }
.stat-ticket {
  position: relative; background: var(--paper);
  border: 1.5px solid var(--line-soft); border-radius: 14px;
  box-shadow: var(--shadow-sm); padding: 16px 18px;
}
.stat-ticket::before, .stat-ticket::after {
  content: ""; position: absolute; top: 50%; width: 15px; height: 15px; border-radius: 50%;
  background: var(--flour); border: 1.5px solid var(--line-soft); transform: translateY(-50%);
}
.stat-ticket::before { left: -8.5px; }
.stat-ticket::after { right: -8.5px; }
.stat-ic {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--honey-wash); color: var(--crust-deep); margin-bottom: 10px;
}
.stat-ic svg { width: 19px; height: 19px; }
.stat-ic--leaf { background: var(--leaf-wash); color: var(--leaf); }
.stat-ic--berry { background: var(--berry-wash); color: var(--berry); }
.stat-label { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; margin: 0; line-height: 1.1; }
.stat-note { font-size: .76rem; color: var(--muted); margin: 4px 0 0; }

.board-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.board-tabs::-webkit-scrollbar { display: none; }
.board-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--paper);
  color: var(--cocoa-soft); font-weight: 700; font-size: .88rem; padding: 9px 18px; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.board-tab:hover { border-color: var(--crust); }
.board-tab[aria-selected="true"] { background: var(--crust-deep); border-color: var(--crust-deep); color: #FFF7EA; }
.board-tab .count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--honey-wash); color: var(--crust-deep); font-size: .72rem; font-weight: 800;
}
.board-tab[aria-selected="true"] .count { background: #FFF7EA; color: var(--crust-deep); }

.board-panel {
  background: var(--paper); border: 1.5px solid var(--line-soft);
  border-radius: var(--r-card); box-shadow: var(--shadow-sm);
  padding: 20px 18px; margin-top: 16px;
}
.panel-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-bar h2 { font-size: 1.25rem; margin-bottom: 2px; }
.panel-sub { color: var(--muted); font-size: .82rem; margin: 0; }
.ticket-search { position: relative; width: min(300px, 100%); }
.ticket-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.ticket-search input {
  width: 100%; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--flour); color: var(--cocoa);
  font-family: var(--font-body); font-size: .9rem; padding: 10px 16px 10px 40px;
}
.ticket-search input:focus { outline: none; border-color: var(--crust); box-shadow: 0 0 0 3px var(--honey-wash); }

.ticket-table { width: 100%; border-collapse: collapse; }
.ticket-table th {
  text-align: left; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 8px 12px; border-bottom: 2px dashed var(--line);
}
.ticket-table td { padding: 12px; border-bottom: 1.5px dashed var(--line-soft); font-size: .88rem; vertical-align: middle; }
.ticket-table tr[data-id] { cursor: pointer; transition: background-color .12s ease; }
.ticket-table tr[data-id]:hover { background: var(--honey-wash); }
.ticket-table tr[data-id]:focus-visible { outline: 3px solid var(--crust); outline-offset: -3px; }
.ticket-table tr.is-selected { background: var(--honey-wash); box-shadow: inset 3px 0 0 var(--crust); }
.t-id { font-family: var(--font-display); font-weight: 700; color: var(--crust-deep); white-space: nowrap; }
.t-num { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.t-empty td { text-align: center; color: var(--muted); padding: 26px 12px; font-style: italic; }

.stamp {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 800; letter-spacing: .04em;
  border-radius: 999px; padding: 4px 12px; border: 1.5px dashed transparent; white-space: nowrap;
}
.stamp::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stamp-new { background: var(--honey-wash); color: #8A5A10; border-color: var(--honey); }
.stamp-bake { background: #FBE7D4; color: var(--crust-deep); border-color: #E0A177; }
.stamp-ready { background: var(--leaf-wash); color: var(--leaf); border-color: #B7CDA9; }
.stamp-done { background: var(--flour-deep); color: var(--muted); border-color: var(--line); }
.stamp-late { background: var(--berry-wash); color: var(--berry); border-color: #E0B4A6; }

.panel-foot { margin: 16px 0 0; padding-top: 12px; border-top: 1.5px dashed var(--line-soft); font-size: .76rem; color: var(--muted); }

/* portal detail drawer — a big bakery ticket */
.ticket-drawer {
  position: fixed; top: 0; right: 0; z-index: 130;
  height: 100dvh; width: min(440px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(105%); transition: transform .38s cubic-bezier(.2, .7, .2, 1);
}
.ticket-drawer.is-open { transform: none; }
.ticket-drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  background: var(--honey-wash); border-bottom: 2px dashed var(--honey); padding: 18px 20px;
}
.ticket-drawer-head h2 { font-size: 1.3rem; margin: 0 0 2px; }
.ticket-drawer-head p { margin: 0; font-size: .76rem; color: var(--muted); }
.ticket-drawer-close {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px dashed var(--crust); background: var(--paper); color: var(--crust-deep);
  font-size: .95rem; cursor: pointer;
}
.ticket-drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.pd-status { margin-bottom: 16px; }
.pd-list { margin: 0; }
.pd-list dt { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.pd-list dd { margin: 2px 0 0; font-weight: 600; font-size: .94rem; padding-bottom: 10px; border-bottom: 1.5px dashed var(--line-soft); }
.pd-note {
  margin-top: 18px; background: var(--honey-wash); border: 1.5px dashed var(--honey);
  border-radius: 12px; padding: 12px 14px;
  font-size: .86rem; font-style: italic; color: var(--cocoa-soft);
}
.ticket-drawer-actions { border-top: 2px dashed var(--line); background: var(--paper-warm); padding: 16px 20px; }

.counter-foot { border-top: 1.5px dashed var(--line); }
.counter-foot-inner {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center;
  padding: 18px 0 24px; font-size: .76rem; color: var(--muted);
}

/* ==========================================================================
   Reveals
   ========================================================================== */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1); }
html.js [data-reveal="right"] { transform: translateX(30px); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* Below 960px the reveal cards span the full width, so a horizontal slide
   would push them past the viewport edge. Use a vertical slide instead. */
@media (max-width: 959px) {
  html.js [data-reveal="right"] { transform: translateY(26px); }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 560px) {
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .slip-grid { grid-template-columns: repeat(2, 1fr); }
  .slip-field.span-2 { grid-column: span 2; }
  .window-grid { grid-template-columns: repeat(2, 1fr); }
  .window-tile.wide { grid-column: span 2; }
  .window-tile.wide svg { aspect-ratio: 8 / 3; }
  .order-slip { padding: 28px 28px 30px; }
  .key-card { padding: 30px 30px 26px; }
}

@media (min-width: 768px) {
  .pocket-bar { display: none; }
  .guest-grid { grid-template-columns: repeat(3, 1fr); }
  .guest-note:nth-child(1) { transform: rotate(-.5deg); }
  .guest-note:nth-child(3) { transform: rotate(.5deg); }
  .visit-grid { grid-template-columns: 1fr 1.2fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .header-key { display: inline; }
}

@media (min-width: 960px) {
  .counter-nav { display: flex; }
  .menu-flap { display: none; }
  .header-order { display: inline-flex; }
  .morning-grid { grid-template-columns: 1.02fr .98fr; gap: 44px; }
  .morning { padding: 60px 0 68px; }
  .counter-grid { grid-template-columns: repeat(3, 1fr); }
  .cake-grid { grid-template-columns: 1.08fr .92fr; gap: 48px; }
  .order-grid { grid-template-columns: 1.55fr .85fr; gap: 28px; }
  .key-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .board-panel { padding: 24px 26px; }
}

@media (min-width: 1200px) {
  .counter-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-cols { grid-template-columns: 1.7fr 1fr 1fr 1.5fr; }
}

/* portal tables become ticket cards on small screens */
@media (max-width: 759px) {
  .ticket-table thead { display: none; }
  .ticket-table, .ticket-table tbody, .ticket-table tr, .ticket-table td { display: block; width: 100%; }
  .ticket-table tr[data-id] {
    border: 1.5px dashed var(--line); border-radius: 14px;
    background: var(--paper-warm); padding: 6px 14px; margin-bottom: 12px;
  }
  .ticket-table tr[data-id]:hover { background: var(--honey-wash); }
  .ticket-table tr.is-selected { box-shadow: inset 0 3px 0 var(--crust); }
  .ticket-table td { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border: none; padding: 7px 0; }
  .ticket-table td::before {
    content: attr(data-label);
    flex: none; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  }
  .ticket-table td > * { text-align: right; }
  .t-empty td { display: block; }
  .t-empty td::before { content: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .oven-tag, .halal-stamp { animation: none; }
}