/* ==========================================================
   BRO'S BURGER — Stylesheet
   ----------------------------------------------------------
   Colour:  warm near-black + signature orange + WhatsApp green
   Type:    Anton (display / menu-board) + Poppins (body / data)
   Signature: cart styled as a kitchen order ticket

   Table of contents
   1.  Variables
   2.  Reset / base
   3.  Typography helpers
   4.  Global utilities
   5.  Header / Topbar
   6.  Hero
   7.  Navigation (see §5 — nested inside the topbar)
   8.  Layout / Menu
   9.  Product cards
   10. Cart / ticket
   11. Buttons (see also §5, §6, §9, §10 — button variants live
       next to the component that introduces them, this section
       only holds the primary CTA + shared qty/add controls)
   12. Modals
   13. Forms
   14. Footer
   15. Admin page
   16. Responsive breakpoints — co-located per component below;
       see the note in each section rather than one global block
   17. Animations / reduced motion
   ========================================================== */

/* ============================================ 1. VARIABLES */
:root{
  --bg:            #0a0908;
  --bg-soft:       #0f0d0b;
  --card:          #161311;
  --card-hover:    #1d1815;
  --border:        rgba(249,115,22,.16);
  --border-soft:   rgba(245,241,234,.08);

  --accent:        #f97316;
  --accent-dark:   #c2570a;
  --accent-soft:   rgba(249,115,22,.14);

  --confirm:       #22c55e;
  --confirm-dark:  #16963f;
  --danger:        #ef4444;

  --text:          #f5f1ea;
  --text-muted:    #a39b8f;
  --text-faint:    #857d71; /* lightened from #6f685e for AA contrast on --bg at small sizes */

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-lg: 0 20px 50px rgba(0,0,0,.45);
  --shadow-card: 0 8px 24px rgba(0,0,0,.35);

  /* Transition tokens — new additions use these; existing per-component
     durations (.2s / .25s / .3s) were left untouched since the small
     variation is intentional (buttons snap faster than cards/panels)
     and blanket-replacing them risked subtly changing feel everywhere. */
  --transition-fast: .2s ease;
  --transition-base: .25s ease;

  --font-display: 'Anton', 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* ============================================ 2. RESET / BASE */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
input,textarea{ font-family:inherit; }

::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-track{ background:var(--bg-soft); }
::-webkit-scrollbar-thumb{ background:var(--accent-dark); border-radius:4px; }

/* ============================================ 3. TYPOGRAPHY HELPERS */
.brand,
.footer-brand,
.admin-brand,
.hero-title,
.category-title,
.ticket-title,
.modal h2,
.admin-card h1{
  font-family:var(--font-display);
}

/* ============================================ 4. GLOBAL UTILITIES */
:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
  border-radius:4px;
}

/* Visually hidden but reachable by keyboard/screen readers */
.sr-only{
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* "Skip to menu" link — hidden until focused via Tab */
.skip-link{
  position:fixed; top:-60px; left:12px; z-index:200;
  background:var(--accent); color:#170c04;
  font-weight:700; font-size:.85rem;
  padding:10px 16px; border-radius:var(--radius-sm);
  transition:top var(--transition-base);
}
.skip-link:focus{ top:12px; }

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

/* ============================================ 5. HEADER / TOPBAR */
.topbar{
  position:sticky; top:0; z-index:60;
  background:rgba(10,9,8,.75);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border-soft);
  transition:background .3s ease, border-color .3s ease;
}
.topbar-inner{
  max-width:1200px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 20px;
}
.brand{
  font-size:1.3rem; letter-spacing:.03em;
  color:var(--text);
}
.brand span{ color:var(--accent); margin-left:.25ch; }

.topbar-right{ display:flex; align-items:center; gap:18px; }

/* -- Navigation (nested in topbar) -- */
.topnav{ display:flex; gap:28px; }
.topnav a{
  font-weight:600; font-size:.92rem; color:var(--text-muted);
  position:relative; padding:4px 0; transition:color var(--transition-base);
}
.topnav a::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:2px;
  background:var(--accent); transition:width var(--transition-base);
}
.topnav a:hover{ color:var(--text); }
.topnav a:hover::after{ width:100%; }

.status-pill{
  display:inline-flex; align-items:center; gap:5px;
  font-size:.76rem; font-weight:700; white-space:nowrap;
  padding:6px 12px; border-radius:999px;
  background:rgba(34,197,94,.14); color:var(--confirm);
  border:1px solid rgba(34,197,94,.3);
  transition:background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}
.status-pill.closed{
  background:rgba(239,68,68,.14); color:#fca5a5;
  border-color:rgba(239,68,68,.3);
}

.cart-pill{
  display:flex; align-items:center; gap:8px;
  background:var(--accent-soft); border:1px solid var(--border);
  color:var(--text); padding:8px 14px; border-radius:999px;
  font-weight:600; font-size:.9rem;
  transition:background var(--transition-base), transform var(--transition-fast);
}
.cart-pill:hover{ background:var(--accent); transform:translateY(-1px); }
.cart-pill-count{
  background:var(--accent); color:#12100e; font-weight:800;
  min-width:20px; height:20px; border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:.75rem; padding:0 5px;
}
.cart-pill:hover .cart-pill-count{ background:var(--bg); color:var(--accent); }

/* -- Responsive: header/nav (co-located, see §16 note above) -- */
@media (min-width: 1024px){
  .cart-pill{ display:none; } /* sidebar cart always visible on desktop */
}
@media (max-width: 640px){
  .topnav{ display:none; } /* keep the mobile topbar uncluttered next to the status pill */
  .topbar-right{ gap:10px; }
}

/* ============================================ 6. HERO */
.hero{
  position:relative;
  min-height:78vh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:36px;
  text-align:center;
  padding:100px 20px 70px;
  overflow:hidden;
  background:
    radial-gradient(ellipse at 50% 115%, rgba(249,115,22,.18), transparent 60%),
    linear-gradient(180deg, #0a0908 0%, #0c0a08 100%);
}
.hero-glow{
  position:absolute; inset:-20% -10% auto -10%; height:70%;
  background:radial-gradient(closest-side, rgba(249,115,22,.35), transparent 70%);
  filter:blur(60px);
  animation:glowPulse 6s ease-in-out infinite;
}
.hero-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(245,241,234,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,241,234,.035) 1px, transparent 1px);
  background-size:44px 44px;
  mask-image:radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-content{ position:relative; z-index:2; max-width:720px; }
.eyebrow{
  color:var(--accent); font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; font-size:.8rem; margin:0 0 18px;
}
.hero-title{
  font-size:clamp(3rem, 11vw, 6.5rem);
  line-height:.92; letter-spacing:.01em;
  margin:0 0 22px;
  color:var(--text);
}
.hero-title span{
  display:block;
  color:var(--accent);
  text-shadow:0 0 40px rgba(249,115,22,.45);
}
.tagline{
  color:var(--text-muted); font-size:1.05rem; line-height:1.6;
  max-width:520px; margin:0 auto 34px;
}


/* -- Hero 3D burger canvas -- */
.hero-3d-container{
  position:relative; z-index:2;
  width:100%; max-width:460px;
  height:380px;
  margin:0 auto;
}
#burgerCanvas{
  width:100%; height:100%; display:block;
  touch-action:none; /* let our own drag handlers own the gesture */
  cursor:grab;
}
#burgerCanvas:active{ cursor:grabbing; }
.hero-3d-fallback{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:clamp(5rem, 16vw, 7.5rem);
  filter:drop-shadow(0 20px 45px rgba(249,115,22,.45));
  animation:heroFallbackFloat 4s ease-in-out infinite;
}

.btn-primary{
  display:inline-block;
  background:var(--accent); color:#170c04;
  font-weight:800; font-size:1rem;
  padding:15px 34px; border-radius:999px;
  box-shadow:0 12px 30px rgba(249,115,22,.35);
  transition:transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 16px 36px rgba(249,115,22,.5); }

/* -- Responsive: hero -- */
@media (min-width:1024px){
  .hero{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    text-align:left;
    gap:24px;
  }
  .hero-content{ text-align:left; margin:0; }
  .tagline{ margin:0 0 34px; }
  .hero-3d-container{
    width:46%; max-width:600px; height:560px; margin:0; flex-shrink:0;
  }
}

/* ============================================ 8. LAYOUT / MENU */
.layout{
  max-width:1200px; margin:0 auto;
  padding:60px 20px 100px;
  display:grid; grid-template-columns:1fr;
  gap:40px;
  align-items:start;
  min-width:0; /* prevents wide scrollable children (e.g. the category
                  jump-bar) from forcing the grid track — and the page —
                  wider than the viewport on mobile */
}
@media (min-width:1024px){
  .layout{ grid-template-columns:1fr 340px; gap:48px; }
}

.category{ margin-bottom:56px; }
.category-header{
  display:flex; align-items:baseline; gap:14px;
  margin-bottom:22px;
  border-bottom:1px solid var(--border);
  padding-bottom:12px;
}
.category-icon{ font-size:1.5rem; }
.category-title{
  font-size:clamp(1.5rem,3.5vw,2.1rem);
  letter-spacing:.02em;
  color:var(--text);
}
.category-title span{ color:var(--accent); }

.card-grid{
  display:grid; grid-template-columns:1fr;
  gap:16px;
}
@media (min-width:640px){
  .card-grid{ grid-template-columns:repeat(2,1fr); }
}

/* ============================================ 9. PRODUCT CARDS */
.product-card{
  background:var(--card);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-md);
  padding:20px;
  display:flex; flex-direction:column; gap:12px;
  transition:transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s ease, background .3s ease;
  opacity:0; transform:translateY(18px);
}
.product-card.visible{ opacity:1; transform:translateY(0); }
.product-card:hover{
  border-color:var(--border);
  background:var(--card-hover);
  transform:translateY(-4px);
}
.product-head{ display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.product-name{ font-weight:700; font-size:1.05rem; }
.product-price{
  font-weight:800; color:var(--accent); font-size:1.05rem; white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.product-desc{
  display:flex; flex-wrap:wrap; gap:6px;
  padding:0; margin:0; list-style:none;
}
.product-desc li{
  font-size:.76rem; color:var(--text-muted);
  background:rgba(245,241,234,.05);
  border:1px solid var(--border-soft);
  padding:4px 9px; border-radius:999px;
}
.product-badge{
  align-self:flex-start;
  background:rgba(34,197,94,.14); color:var(--confirm);
  border:1px solid rgba(34,197,94,.3);
  font-size:.72rem; font-weight:700;
  padding:4px 10px; border-radius:999px;
}
.sold-out-badge{
  align-self:flex-start;
  background:rgba(239,68,68,.14); color:#fca5a5;
  border:1px solid rgba(239,68,68,.3);
  font-size:.72rem; font-weight:700;
  padding:4px 10px; border-radius:999px;
}
.product-card.unavailable{
  opacity:.55; filter:grayscale(.5);
}
.product-card.unavailable:hover{
  transform:none; border-color:var(--border-soft); background:var(--card);
}
.qty-btn:disabled, .btn-add:disabled{
  opacity:.5; cursor:not-allowed;
}
.qty-btn:disabled:hover, .btn-add:disabled:hover{
  background:transparent; color:var(--accent); transform:none;
}

/* -- Per-product supplement picker: collapsed by default, expands on tap -- */
.product-supplements{
  display:flex;
  flex-direction:column;
}
.supplement-toggle{
  display:flex; align-items:center; gap:8px;
  width:100%;
  background:rgba(245,241,234,.03);
  border:1px dashed var(--border-soft);
  border-radius:var(--radius-sm);
  padding:9px 12px;
  font-size:.8rem; font-weight:600; color:var(--text-muted);
  transition:border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.supplement-toggle:hover{
  border-color:var(--accent);
  color:var(--accent);
  background:var(--accent-soft);
}
.supplement-toggle:disabled{ opacity:.5; cursor:not-allowed; }
.supplement-toggle:disabled:hover{ border-color:var(--border-soft); color:var(--text-muted); background:rgba(245,241,234,.03); }
.supplement-toggle-label{ flex:1; text-align:left; }
.supplement-toggle-count{
  display:flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; padding:0 5px;
  background:var(--accent); color:#170c04;
  border-radius:999px; font-size:.68rem; font-weight:800;
  font-variant-numeric:tabular-nums;
}
.supplement-toggle-icon{
  font-size:.85rem; line-height:1;
  transition:transform var(--transition-base);
  color:inherit;
}
.supplement-toggle[aria-expanded="true"] .supplement-toggle-icon{ transform:rotate(180deg); }
.supplement-toggle[aria-expanded="true"]{ border-color:var(--accent); color:var(--accent); }

/* Smooth height animation without knowing content height in advance */
.supplement-collapse{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows var(--transition-base);
}
.supplement-collapse.open{
  grid-template-rows:1fr;
}
.supplement-collapse-inner{
  overflow:hidden;
  min-height:0;
}
.product-supplements-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(130px, 1fr));
  gap:7px;
  padding-top:10px;
}
.supplement-chip{
  display:flex; align-items:center; gap:7px;
  background:var(--card);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-sm);
  padding:8px 10px;
  cursor:pointer;
  transition:border-color var(--transition-fast), background var(--transition-fast);
  font-size:.76rem;
  min-width:0;
}
.supplement-chip:has(input:checked){
  border-color:var(--accent);
  background:var(--accent-soft);
}
.supplement-chip input{ accent-color:var(--accent); width:15px; height:15px; flex-shrink:0; }
.supplement-chip span{
  flex:1; color:var(--text);
  overflow-wrap:anywhere;
}
.supplement-chip b{
  color:var(--accent); font-variant-numeric:tabular-nums;
  font-size:.72rem; white-space:nowrap; flex-shrink:0;
}
.supplement-chip input:disabled{ cursor:not-allowed; }
.supplement-chip:has(input:disabled){ opacity:.5; cursor:not-allowed; }
.supplement-chip.unavailable em{
  color:var(--danger); font-style:normal; font-size:.68rem;
}

@media (max-width:420px){
  .product-supplements-grid{
    grid-template-columns:1fr 1fr;
  }
}

.product-foot{
  margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding-top:10px; border-top:1px dashed var(--border-soft);
}
.qty-stepper{
  display:flex; align-items:center; gap:0;
  border:1px solid var(--border-soft); border-radius:999px; overflow:hidden;
}
.qty-btn{
  background:transparent; border:none; color:var(--text);
  width:32px; height:32px; font-size:1.1rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  transition:background var(--transition-fast);
}
.qty-btn:hover{ background:var(--accent-soft); color:var(--accent); }
.qty-value{ width:28px; text-align:center; font-weight:700; font-size:.9rem; }

.btn-add{
  background:transparent; color:var(--accent);
  border:1.5px solid var(--accent);
  font-weight:700; font-size:.82rem;
  padding:8px 16px; border-radius:999px;
  transition:background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  white-space:nowrap;
}
.btn-add:hover{ background:var(--accent); color:#170c04; transform:translateY(-1px); }
.btn-add.just-added{ background:var(--confirm); border-color:var(--confirm); color:#06210f; }

/* Supplement card (checkbox grid, used on standalone panels) */
.supplement-panel{
  background:var(--card);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-md);
  padding:22px;
}
.supplement-grid{
  display:grid; grid-template-columns:1fr; gap:10px;
  margin-bottom:18px;
}
@media (min-width:640px){
  .supplement-grid{ grid-template-columns:repeat(3,1fr); }
}
.supplement-item{
  display:flex; align-items:center; gap:10px;
  background:rgba(245,241,234,.03);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-sm);
  padding:10px 12px;
  cursor:pointer;
  transition:border-color var(--transition-fast), background var(--transition-fast);
  font-size:.86rem;
}
.supplement-item:has(input:checked){
  border-color:var(--accent);
  background:var(--accent-soft);
}
.supplement-item input{ accent-color:var(--accent); width:16px; height:16px; flex-shrink:0; }
.supplement-item span{ flex:1; }
.supplement-item b{ color:var(--accent); font-variant-numeric:tabular-nums; }
.supplement-item.unavailable{
  opacity:.5; cursor:not-allowed;
}
.supplement-item.unavailable em{
  color:var(--danger); font-style:normal; font-size:.78rem;
}

/* ============================================ 10. CART / TICKET (signature element) */
.cart-column{ position:relative; }
@media (min-width:1024px){
  .cart-column{ position:sticky; top:96px; }
}

.ticket{
  position:relative;
  background:var(--card);
  border:1px solid var(--border-soft);
  box-shadow:var(--shadow-lg);
  border-radius:0 0 var(--radius-md) var(--radius-md);
}
.ticket-notch{
  height:12px;
  background:var(--card);
  clip-path:polygon(
    0% 12px, 5% 0, 10% 12px, 15% 0, 20% 12px, 25% 0, 30% 12px, 35% 0,
    40% 12px, 45% 0, 50% 12px, 55% 0, 60% 12px, 65% 0, 70% 12px, 75% 0,
    80% 12px, 85% 0, 90% 12px, 95% 0, 100% 12px, 100% 100%, 0 100%
  );
}
.ticket-body{ padding:22px 22px 24px; }
.ticket-title{
  font-size:1.3rem; letter-spacing:.02em;
  margin:0 0 16px;
}
.ticket-items{ display:flex; flex-direction:column; gap:10px; min-height:40px; }
.cart-empty{
  color:var(--text-faint); font-size:.85rem; text-align:center;
  padding:20px 8px; line-height:1.6;
}
.cart-row-group{
  padding-bottom:8px;
  border-bottom:1px dashed var(--border-soft);
}
.cart-row-group:last-child{ border-bottom:none; padding-bottom:0; }
.cart-row{
  display:flex; align-items:center; gap:8px;
  font-size:.85rem;
}
.cart-row-supplements{
  display:flex; flex-wrap:wrap; gap:5px 10px;
  margin:4px 0 0 34px; /* align under the item name, past qty column */
}
.cart-row-supplements span{
  font-size:.72rem; color:var(--text-muted);
}
.cart-row-qty{ color:var(--accent); font-weight:800; min-width:26px; }
.cart-row-qty-value{ min-width:16px; text-align:center; font-weight:700; color:var(--text); }
.cart-row-name{ flex:1; color:var(--text); }
.cart-row-price{ font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
.cart-row-remove{
  background:none; border:none; color:var(--text-faint); font-size:1rem;
  padding:2px 4px; line-height:1;
  transition:color var(--transition-fast);
}
.cart-row-remove:hover{ color:var(--danger); }
.cart-row-stepper{ display:none; align-items:center; gap:4px; }
.ticket.editing .cart-row-stepper{ display:flex; }
.ticket.editing .cart-row-qty{ display:none; }
.mini-qty-btn{
  background:var(--accent-soft); border:none; color:var(--accent);
  width:20px; height:20px; border-radius:5px; font-size:.85rem; font-weight:800;
  display:flex; align-items:center; justify-content:center;
}

.ticket-divider{
  border:none; border-top:1px dashed var(--border-soft);
  margin:14px 0;
}
.ticket-total-row{
  display:flex; justify-content:space-between; align-items:center;
  font-family:var(--font-display); letter-spacing:.02em;
  font-size:1.15rem; margin:14px 0 18px;
}
.ticket-total-row span:last-child{ color:var(--accent); font-variant-numeric:tabular-nums; }
.ticket-delivery-hint{
  margin:-12px 0 18px; font-size:.72rem; color:var(--text-faint); text-align:right;
}

.ticket-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.btn-ghost{
  flex:1; min-width:80px;
  background:transparent; border:1px solid var(--border-soft); color:var(--text-muted);
  font-weight:600; font-size:.82rem;
  padding:10px 10px; border-radius:var(--radius-sm);
  transition:border-color var(--transition-fast), color var(--transition-fast);
}
.btn-ghost:hover{ border-color:var(--accent); color:var(--text); }
.btn-ghost.btn-danger:hover{ border-color:var(--danger); color:var(--danger); }
.btn-ghost.active{ border-color:var(--accent); color:var(--accent); }

.btn-confirm{
  flex-basis:100%;
  background:var(--confirm); color:#06210f;
  font-weight:800; font-size:.92rem;
  padding:13px 14px; border-radius:var(--radius-sm);
  transition:background var(--transition-fast), transform var(--transition-fast);
}
.btn-confirm:hover{ background:var(--confirm-dark); color:#fff; transform:translateY(-1px); }

/* -- Mobile FAB + drawer -- */
.cart-fab[hidden]{ display:none; }
.cart-fab{
  position:fixed; right:16px; bottom:16px; z-index:70;
  display:flex; align-items:center; gap:10px;
  background:var(--accent); color:#170c04;
  border:none; border-radius:999px;
  padding:12px 18px 12px 14px;
  box-shadow:0 14px 34px rgba(249,115,22,.4);
  font-weight:700;
  animation:fabPulse 2.4s ease-in-out infinite;
}
.cart-fab-icon{ font-size:1.3rem; }
.cart-fab-info{ display:flex; flex-direction:column; align-items:flex-start; line-height:1.2; }
.cart-fab-count{ font-size:.72rem; opacity:.85; }
.cart-fab-total{ font-size:.95rem; font-variant-numeric:tabular-nums; }
.cart-fab-arrow{ font-size:.75rem; opacity:.8; }

@media (min-width:1024px){
  .cart-fab{ display:none !important; }
  .drawer-backdrop{ display:none !important; }
}

/* on mobile, hide the static sidebar; ticket becomes a bottom-sheet drawer */
@media (max-width:1023.98px){
  .cart-column{
    position:fixed; left:0; right:0; bottom:0; z-index:80;
    max-height:min(78vh, 640px);
    transform:translateY(100%);
    transition:transform .35s cubic-bezier(.4,0,.2,1);
    overflow:hidden;
  }
  .cart-column.open{ transform:translateY(0); }
  .ticket{
    border-radius:var(--radius-lg) var(--radius-lg) 0 0;
    max-height:min(78vh, 640px);
    display:flex; flex-direction:column;
  }
  .ticket-body{ overflow-y:auto; }
  .drawer-backdrop{
    position:fixed; inset:0; z-index:75;
    background:rgba(0,0,0,.6);
    opacity:0; pointer-events:none;
    transition:opacity .3s ease;
  }
  .drawer-backdrop.open{ opacity:1; pointer-events:auto; }
}

/* ============================================ 12. MODAL */
.modal-backdrop{
  position:fixed; inset:0; z-index:100;
  background:rgba(0,0,0,.65);
  display:flex; align-items:center; justify-content:center;
  padding:20px;
  opacity:0; pointer-events:none;
  transition:opacity .3s ease;
}
.modal-backdrop.open{ opacity:1; pointer-events:auto; }
.modal{
  position:relative;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  max-width:440px; width:100%;
  max-height:90vh; overflow-y:auto;
  padding:30px 26px 26px;
  box-shadow:var(--shadow-lg);
  transform:translateY(20px) scale(.97);
  transition:transform .3s cubic-bezier(.34,1.56,.64,1);
}
.modal-backdrop.open .modal{ transform:translateY(0) scale(1); }
.modal-close{
  position:absolute; top:14px; right:14px;
  background:none; border:none; color:var(--text-muted); font-size:1.2rem;
  width:32px; height:32px; border-radius:999px;
  transition:background var(--transition-fast), color var(--transition-fast);
}
.modal-close:hover{ background:var(--accent-soft); color:var(--accent); }
.modal h2{
  font-size:1.5rem; margin:0 0 6px; letter-spacing:.02em;
}
.modal-sub{ color:var(--text-muted); font-size:.88rem; margin:0 0 22px; }

/* ============================================ 13. FORMS */
#orderForm{ display:flex; flex-direction:column; gap:14px; }
#orderForm label{
  display:flex; flex-direction:column; gap:6px;
  font-size:.82rem; font-weight:600; color:var(--text-muted);
}
.optional{ font-weight:400; color:var(--text-faint); }
#orderForm input, #orderForm textarea, #orderForm select{
  background:var(--bg-soft); border:1px solid var(--border-soft);
  color:var(--text); border-radius:var(--radius-sm);
  padding:11px 13px; font-size:.92rem; resize:vertical;
  transition:border-color var(--transition-fast);
  font-family:inherit;
}
#orderForm select{
  appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23a39b8f'><path d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%23a39b8f' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat;
  background-position:right 12px center;
  padding-right:36px;
  cursor:pointer;
}
#orderForm select option{ background:var(--bg-soft); color:var(--text); }
.delivery-fee-note{
  font-size:.8rem; font-weight:700; color:var(--accent);
  margin:-6px 0 0; min-height:1.1em;
}
#orderForm input:focus, #orderForm textarea:focus, #orderForm select:focus{
  border-color:var(--accent); outline:none;
}
.form-error{
  background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.35);
  color:#fca5a5; font-size:.82rem; padding:9px 12px; border-radius:var(--radius-sm);
  margin:0;
}
.btn-block{ width:100%; }
.modal-note{
  text-align:center; color:var(--text-faint); font-size:.75rem; margin:12px 0 0;
  line-height:1.5;
}

.order-summary-box{
  background:var(--bg-soft);
  border:1px dashed var(--border);
  border-radius:var(--radius-sm);
  padding:14px 16px;
  font-family:var(--font-body);
  font-size:.8rem; line-height:1.6;
  color:var(--text-muted);
  white-space:pre-wrap;
  word-break:break-word;
  margin:0 0 20px;
  max-height:260px; overflow-y:auto;
}
.hours-box{
  background:var(--bg-soft);
  border:1px dashed var(--border);
  border-radius:var(--radius-sm);
  padding:16px;
  margin:0 0 22px;
  text-align:center;
}
.hours-box p{
  margin:6px 0; font-weight:800; font-size:1.05rem;
  color:var(--text); font-variant-numeric:tabular-nums;
}

/* ============================================ 14. FOOTER */
.site-footer{
  text-align:center; padding:56px 20px 40px;
  border-top:1px solid var(--border-soft);
  color:var(--text-muted); font-size:.92rem;
  display:flex; flex-direction:column; gap:8px;
}
.footer-brand{
  font-size:1.4rem; color:var(--text);
  margin:0 0 6px;
}
.footer-brand span{ color:var(--accent); margin-left:.2ch; }

.social-links{
  display:flex; justify-content:center; gap:14px;
  margin:2px 0 10px;
}
.social-link{
  display:flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:999px;
  border:1px solid var(--border-soft);
  color:var(--text-muted);
  transition:border-color var(--transition-base), color var(--transition-base), transform var(--transition-base), background var(--transition-base);
}
.social-link svg{ width:19px; height:19px; }
.social-link:hover{
  border-color:var(--accent);
  color:var(--accent);
  background:var(--accent-soft);
  transform:translateY(-3px);
}

.site-footer a:hover{ color:var(--accent); }
.site-footer .muted{ color:var(--text-faint); font-size:.78rem; margin-top:10px; }

/* ==========================================================
   15. ADMIN PAGE
   ========================================================== */
.admin-body{
  min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  padding:24px;
}
.admin-wrap{ width:100%; max-width:420px; }
.admin-brand{
  text-align:center; font-size:1.6rem;
  color:var(--text); margin:0 0 24px; letter-spacing:.02em;
}
.admin-brand span{ color:var(--accent); margin-left:.2ch; }
.admin-brand small{
  display:block; font-family:var(--font-body); font-weight:600; font-size:.7rem;
  letter-spacing:.2em; text-transform:uppercase; color:var(--text-faint); margin-top:6px;
}

.admin-card{
  background:var(--card); border:1px solid var(--border-soft);
  border-radius:var(--radius-lg); padding:30px 26px;
  box-shadow:var(--shadow-lg);
}
.admin-card h1{
  font-size:1.5rem; margin:0 0 6px; letter-spacing:.02em;
}

#loginForm{ display:flex; flex-direction:column; gap:14px; margin-top:20px; }
#loginForm label{
  display:flex; flex-direction:column; gap:6px;
  font-size:.82rem; font-weight:600; color:var(--text-muted);
}
#loginForm input{
  background:var(--bg-soft); border:1px solid var(--border-soft);
  color:var(--text); border-radius:var(--radius-sm);
  padding:11px 13px; font-size:.92rem; font-family:inherit;
  transition:border-color var(--transition-fast);
}
#loginForm input:focus{ border-color:var(--accent); outline:none; }

.admin-buttons{ display:flex; flex-direction:column; gap:10px; margin:22px 0 16px; }
.btn-open, .btn-closed, .btn-auto{
  padding:15px; border-radius:var(--radius-sm); border:none;
  font-weight:800; font-size:.95rem; font-family:inherit;
  transition:transform var(--transition-fast), filter var(--transition-fast);
}
.btn-open{ background:var(--confirm); color:#06210f; }
.btn-closed{ background:var(--danger); color:#2a0a0a; }
.btn-auto{ background:var(--accent); color:#170c04; }
.btn-open:hover, .btn-closed:hover, .btn-auto:hover{
  filter:brightness(1.12); transform:translateY(-2px);
}

.admin-hint{
  font-size:.78rem; color:var(--text-faint); line-height:1.55; margin:0 0 20px;
}

/* -- Admin — product availability list -- */
.availability-list{
  max-height:420px; overflow-y:auto;
  margin-top:8px;
  border:1px solid var(--border-soft);
  border-radius:var(--radius-sm);
  padding:4px 14px;
}
.avail-category{ padding:10px 0; border-bottom:1px dashed var(--border-soft); }
.avail-category:last-child{ border-bottom:none; }
.avail-category-title{
  font-family:var(--font-display); font-size:.95rem; letter-spacing:.02em;
  color:var(--accent); margin:4px 0 8px;
}
.avail-row{
  display:flex; align-items:center; gap:10px;
  padding:7px 2px; font-size:.88rem; color:var(--text);
  cursor:pointer;
}
.avail-row input{
  accent-color:var(--danger); width:17px; height:17px; flex-shrink:0;
}
.avail-row span{ flex:1; }

/* -- Admin — live orders -- */
.orders-count-badge{
  display:inline-block; background:var(--danger); color:#2a0a0a;
  font-size:.7rem; font-weight:800; border-radius:999px;
  padding:2px 9px; margin-left:8px; vertical-align:middle;
}
.orders-list{
  max-height:560px; overflow-y:auto; margin-top:8px;
  display:flex; flex-direction:column; gap:12px;
}
.order-card{
  border:1px solid var(--border-soft); border-radius:var(--radius-sm);
  padding:14px 16px; background:var(--bg-soft);
}
.order-card.is-new{ border-color:var(--accent); }
.order-card-head{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:10px; margin-bottom:8px;
}
.order-card-head strong{ display:block; font-size:.95rem; color:var(--text); }
.order-time{ display:block; font-size:.75rem; color:var(--text-faint); margin-top:2px; }
.order-status-badge{
  font-size:.72rem; font-weight:700; padding:4px 9px; border-radius:999px;
  white-space:nowrap; flex-shrink:0;
}
.order-status-badge.status-new{ background:var(--accent); color:#170c04; }
.order-status-badge.status-done{ background:var(--confirm); color:#06210f; }
.order-contact{ font-size:.82rem; color:var(--text-muted); margin-bottom:8px; }
.order-contact a{ color:var(--accent); text-decoration:none; }
.order-items{
  font-size:.85rem; color:var(--text); border-top:1px dashed var(--border-soft);
  padding-top:8px; margin-bottom:6px;
}
.order-item{ padding:2px 0; }
.order-item-supp{ font-size:.78rem; color:var(--text-faint); padding-left:14px; }
.order-remark{ font-size:.8rem; color:var(--text-muted); font-style:italic; margin-bottom:6px; }
.order-total{ font-weight:800; color:var(--accent); margin-bottom:10px; }
.order-toggle-btn{ font-size:.82rem; padding:9px; }

/* ==========================================================
   17. ANIMATIONS
   ========================================================== */
@keyframes glowPulse{
  0%,100%{ transform:translateY(0) scale(1); opacity:.7; }
  50%{ transform:translateY(20px) scale(1.08); opacity:1; }
}
@keyframes heroFallbackFloat{
  0%,100%{ transform:translateY(0) rotate(-2deg); }
  50%{ transform:translateY(-16px) rotate(2deg); }
}
@keyframes fabPulse{
  0%,100%{ box-shadow:0 14px 34px rgba(249,115,22,.4); }
  50%{ box-shadow:0 14px 34px rgba(249,115,22,.65); }
}
