:root{
  --bg:#0b0b0e;
  --card:#151520;
  --card2:#101018;
  --text:#f3f3f5;
  --muted:#b7b7c3;

  --accent:#f0b323;  /* taco gold */
  --accent2:#e53935; /* red */
  --ring: rgba(240,179,35,.25);
  --line: rgba(255,255,255,.10);

  --radius:16px;
  --radius-lg:22px;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(240,179,35,.12), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(229,57,53,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.wrap{max-width:1100px; margin:0 auto; padding:18px}

.muted{color:var(--muted)}
.small{font-size:12px}
strong{font-weight:800}

/* ================= TOP NAV ================= */
.top{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,11,14,.70);
  border-bottom:1px solid var(--line);
}
.top-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
  padding:14px 18px;
  max-width:1100px;
  margin:0 auto;
}

.brand{
  display:flex; align-items:center; gap:10px;
  min-width: 0;
}
.brand-mark{
  width:36px; height:36px; border-radius:12px;
  background: linear-gradient(135deg, rgba(240,179,35,.20), rgba(229,57,53,.12));
  border:1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.brand-mark img{width:100%; height:100%; object-fit:cover}
.brand-title{
  font-weight:900;
  letter-spacing:.6px;
  font-size:16px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-tagline{color:var(--muted); font-size:12px; line-height:1.1}

.nav{
  display:flex; align-items:center; gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  color:var(--muted);
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
}
.nav a:hover{
  color:var(--text);
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

/* ================= BUTTONS ================= */
.btn{
  background:var(--accent);
  color:#111;
  font-weight:900;
  border:0;
  border-radius:14px;
  padding:12px 14px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  box-shadow: 0 14px 35px rgba(240,179,35,.12);
}
.btn:hover{filter:brightness(1.05)}
.btn.ghost{
  background: rgba(255,255,255,.03);
  color:var(--text);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:none;
}
.btn.small{padding:9px 11px; border-radius:12px; font-weight:900}
.btn.full{width:100%; margin-top:10px}

.cta-row{
  display:flex; gap:10px; flex-wrap:wrap;
}

/* ================= CARDS / SECTIONS ================= */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
  margin:14px 0;
}
.card.soft{
  background: rgba(255,255,255,.03);
  box-shadow: none;
}
.section-title{
  font-size:16px;
  letter-spacing:.3px;
  margin:0 0 10px;
}
.divline{height:1px; background:rgba(255,255,255,.10); margin:14px 0}

/* ================= HERO ================= */
.hero{
  padding:18px 0 8px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:14px;
  align-items:stretch;
}
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
}

.hero-card{
  border-radius: var(--radius-lg);
  padding:18px;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(240,179,35,.18), transparent 55%),
    radial-gradient(700px 360px at 95% 15%, rgba(229,57,53,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}

.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  letter-spacing:.6px;
  font-size:12px;
  text-transform:uppercase;
  color: rgba(243,243,245,.92);
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
}

.hero h1{
  margin:12px 0 10px;
  font-size:34px;
  line-height:1.05;
  letter-spacing:-.4px;
}
@media (max-width: 520px){
  .hero h1{font-size:30px}
}

.hero p{
  margin:0 0 14px;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.trust-chips{
  display:flex; gap:8px; flex-wrap:wrap;
  margin-top:12px;
}
.chip{
  font-size:12px;
  color: rgba(243,243,245,.92);
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  padding:8px 10px;
  border-radius:999px;
}

/* Hero logo panel */
.logo-panel{
  border-radius: var(--radius-lg);
  padding:14px;
  background: rgba(0,0,0,.15);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  min-height: 260px;
}
.logo-panel img{
  width:min(420px, 100%);
  height:auto;
  display:block;
  filter: drop-shadow(0 18px 45px rgba(0,0,0,.55));
}

/* ================= FEATURE GRID ================= */
.features{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:14px;
}
@media (max-width: 900px){
  .features{grid-template-columns:1fr}
}
.feature{
  border-radius: var(--radius);
  padding:14px;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
}
.feature h3{
  margin:0 0 8px;
  font-size:14px;
  letter-spacing:.2px;
}
.feature p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

/* ================= FORM ELEMENTS (keep from your app) ================= */
.row{display:flex; flex-direction:column; gap:6px; margin-top:10px}
input{
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:#0f0f18;
  color:var(--text);
}

/* ================= FOOTER ================= */
.foot{
  padding:22px 18px;
  text-align:center;
  border-top:1px solid rgba(255,255,255,.08);
  color:var(--muted);
}

/* Tiny utility */
.center{display:flex; align-items:center; justify-content:center}

/* =========================
   PATCH: brighter + more 3D
   Paste at BOTTOM of style.css
   ========================= */

/* Add subtle global “light” + depth */
body{
  background:
    radial-gradient(1100px 540px at 18% -10%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(1000px 520px at 80% 0%, rgba(240,179,35,.18), transparent 58%),
    radial-gradient(900px 520px at 90% 18%, rgba(229,57,53,.14), transparent 58%),
    radial-gradient(900px 520px at 10% 65%, rgba(23,135,198,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 35%),
    var(--bg);
}

/* Stronger glassy header + separation */
.top{
  background: rgba(13,13,18,.72);
  border-bottom: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 50px rgba(0,0,0,.45);
}

/* Slightly bigger brand area for premium feel */
.brand-title{font-size:17px}
.brand-tagline{font-size:12px}

/* Make nav links a bit brighter by default */
.nav a{
  color: rgba(243,243,245,.84);
}
.nav a:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}

/* TOP BAR CTA: more visible + “pill” glow */
.nav .btn.small{
  background: linear-gradient(180deg, #ffd26a, #f0b323);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    0 18px 45px rgba(240,179,35,.22),
    0 0 0 6px rgba(240,179,35,.10);
  color:#161616;
}
.nav .btn.small:hover{
  filter: none;
  transform: translateY(-1px);
  box-shadow:
    0 24px 60px rgba(240,179,35,.28),
    0 0 0 8px rgba(240,179,35,.12);
}

/* Make buttons feel more 3D everywhere */
.btn{
  background: linear-gradient(180deg, rgba(255,226,150,1), rgba(240,179,35,1));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 18px 45px rgba(240,179,35,.18),
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -10px 18px rgba(0,0,0,.18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover{
  transform: translateY(-1px);
}
.btn:active{
  transform: translateY(0px);
  box-shadow:
    0 12px 30px rgba(240,179,35,.14),
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -8px 16px rgba(0,0,0,.24);
}

/* Ghost button: brighter border + subtle glow */
.btn.ghost{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.20);
  box-shadow:
    0 12px 32px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.12);
}
.btn.ghost:hover{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
}

/* Cards: add shine and stronger edge contrast */
.card, .hero-card, .logo-panel, .feature{
  border-color: rgba(255,255,255,.14);
  box-shadow:
    0 22px 70px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.10);
  position: relative;
  overflow: hidden;
}
.card::before, .hero-card::before, .logo-panel::before, .feature::before{
  content:"";
  position:absolute;
  inset:-2px -2px auto -2px;
  height: 80px;
  background: radial-gradient(500px 120px at 20% 0%, rgba(255,255,255,.10), transparent 60%);
  pointer-events:none;
}

/* Slight lift on hover (desktop) for premium feel */
@media (hover:hover){
  .feature:hover, .logo-panel:hover{
    transform: translateY(-2px);
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow:
      0 28px 85px rgba(0,0,0,.52),
      inset 0 1px 0 rgba(255,255,255,.12);
  }
}

/* Improve logo panel “frame” look */
.logo-panel{
  background:
    radial-gradient(700px 340px at 50% -10%, rgba(255,255,255,.08), transparent 55%),
    rgba(0,0,0,.18);
}
.logo-panel img{
  filter: drop-shadow(0 22px 55px rgba(0,0,0,.60));
}

/* Make the chips pop a bit more */
.chip{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
}

/* Ensure hero headline stays crisp */
.hero h1{
  text-shadow: 0 10px 30px rgba(0,0,0,.45);
}
/* =========================
   GLASS + 3D UPGRADE PATCH
   Paste at BOTTOM of style.css
   ========================= */

/* Glass tokens */
:root{
  --glass: rgba(255,255,255,.055);
  --glass2: rgba(255,255,255,.035);
  --glass-border: rgba(255,255,255,.16);
  --glass-border-soft: rgba(255,255,255,.10);
  --glass-highlight: rgba(255,255,255,.18);
  --glass-shadow: 0 28px 90px rgba(0,0,0,.55);
  --glass-inset: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -18px 40px rgba(0,0,0,.35);
}

/* Add a subtle grain overlay to prevent “flat gradients” */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:.10;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.06) 0px,
      rgba(255,255,255,.06) 1px,
      transparent 2px,
      transparent 4px
    );
  mix-blend-mode: overlay;
}
body > *{ position:relative; z-index:1; }

/* Make the “card family” frosted glass */
.card,
.hero-card,
.logo-panel,
.feature,
.menuItem{
  background:
    radial-gradient(900px 260px at 18% 0%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(700px 240px at 90% 12%, rgba(240,179,35,.10), transparent 62%),
    linear-gradient(180deg, var(--glass), var(--glass2));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  transform: translateZ(0);
}

/* Add a glossy top highlight */
.card::before,
.hero-card::before,
.logo-panel::before,
.feature::before,
.menuItem::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius: inherit;
  background:
    radial-gradient(900px 280px at 15% 0%, rgba(255,255,255,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 40%);
  opacity:.75;
}

/* Add a soft “edge glow” (3D rim) */
.card::after,
.hero-card::after,
.logo-panel::after,
.feature::after,
.menuItem::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  pointer-events:none;
  background:
    linear-gradient(135deg, rgba(240,179,35,.18), transparent 35%),
    linear-gradient(315deg, rgba(229,57,53,.12), transparent 40%),
    radial-gradient(700px 260px at 50% 120%, rgba(255,255,255,.08), transparent 55%);
  opacity:.55;
  filter: blur(10px);
  z-index:-1;
}

/* Logo panel: give it a framed glass “display case” */
.logo-panel{
  border:1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(900px 360px at 50% 0%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(800px 420px at 50% 120%, rgba(0,0,0,.35), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.logo-panel img{
  border-radius: 18px;
  box-shadow:
    0 22px 60px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.14);
}

/* Buttons: add more “pressed” realism */
.btn{
  box-shadow:
    0 18px 40px rgba(240,179,35,.22),
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -12px 22px rgba(0,0,0,.22);
}
.btn:active{
  box-shadow:
    0 10px 22px rgba(240,179,35,.14),
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -10px 20px rgba(0,0,0,.35);
}

/* Chips: glass pills */
.chip{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Desktop hover “lift” + parallax feel */
@media (hover:hover){
  .card, .hero-card, .logo-panel, .feature, .menuItem{
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  .feature:hover,
  .logo-panel:hover{
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.22);
    box-shadow:
      0 34px 110px rgba(0,0,0,.60),
      inset 0 1px 0 rgba(255,255,255,.16),
      inset 0 -22px 50px rgba(0,0,0,.38);
  }
}

/* Keep text crisp on glass */
.hero p,
.feature p,
.muted{
  text-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.nav a:not(.btn){
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav a:not(.btn):hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
/* =========================
   MOBILE HERO LAYOUT UPGRADE
   ========================= */

@media (max-width: 900px){

  /* Give the top area more “impact” spacing */
  .hero{ padding-top: 10px; }

  /* Convert grid -> stacked with controlled order */
  .hero-grid--home{
    display:flex !important;
    flex-direction:column;
    gap:12px;
  }

  /* Make the logo panel come FIRST and feel like the hero */
  .hero-grid--home .logo-panel{
    order:-2;
    min-height: 210px;
    padding: 12px;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
  }

  /* Add a subtle “spotlight” behind the logo on mobile */
  .hero-grid--home .logo-panel::before{
    content:"";
    position:absolute;
    inset:-40px;
    background:
      radial-gradient(520px 240px at 50% 30%, rgba(240,179,35,.18), transparent 60%),
      radial-gradient(520px 260px at 50% 110%, rgba(229,57,53,.10), transparent 60%);
    filter: blur(0px);
    pointer-events:none;
  }

  .hero-grid--home .logo-panel img{
    width: min(420px, 100%);
    border-radius: 18px;
    box-shadow:
      0 26px 70px rgba(0,0,0,.55),
      0 0 0 1px rgba(255,255,255,.16);
    position: relative;
    z-index: 2;
  }

  /* Then the hero text card */
  .hero-grid--home .hero-card{
    order:-1;
    padding: 16px;
    border-radius: 22px;
  }

  /* Make the kicker pill more prominent */
  .hero-kicker{
    width: 100%;
    justify-content:center;
    text-align:center;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
  }

  /* Punchier headline on mobile */
  .hero h1{
    font-size: 30px;
    line-height: 1.05;
    margin: 12px 0 10px;
    letter-spacing: -.4px;
  }

  /* CTA buttons: full-width big tappable */
  .cta-row{
    flex-direction:column;
    gap:10px;
  }
  .cta-row .btn{
    width:100%;
    padding:14px 16px;
    border-radius: 16px;
    font-size: 16px;
  }

  /* Trust chips: stack into clean blocks */
  .trust-chips{
    flex-direction:column;
    gap:10px;
  }
  .chip{
    width:100%;
    padding:12px 12px;
    border-radius: 16px;
    font-size: 13px;
  }

  /* Features: soften spacing for mobile */
  .features{
    gap:10px;
    margin-top: 10px;
  }
  .feature{
    padding: 14px;
    border-radius: 18px;
  }
}

/* Extra-small devices */
@media (max-width: 420px){
  .hero h1{ font-size: 28px; }
  .brand-title{ font-size: 15px; }
}

@media (max-width: 520px){
  .nav a:not(.btn){ display:none; }
}
/* =========================
   FORCE MOBILE HERO ORDER
   (logo first, then hero text)
   ========================= */
@media (max-width: 900px){

  /* turn the hero layout into a flex column so we can reorder */
  .hero-grid{
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
  }

  /* logo panel first */
  .hero-grid .logo-panel{
    order:-2 !important;
    min-height: 210px;
  }

  /* hero text second */
  .hero-grid .hero-card{
    order:-1 !important;
  }

  /* CTA buttons full width on mobile */
  .cta-row{ flex-direction:column; gap:10px; }
  .cta-row .btn{ width:100%; padding:14px 16px; border-radius:16px; }

  /* trust chips stack vertically */
  .trust-chips{ flex-direction:column; gap:10px; }
  .chip{ width:100%; padding:12px 12px; border-radius:16px; }
}
/* =========================
   ORDER PAGE POLISH (MOBILE-FIRST)
   Paste at bottom of style.css
   ========================= */

.h2{
  margin:0;
  font-size:18px;
  letter-spacing:.2px;
}
.card-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.order-grid{
  align-items:start;
}

/* Menu item upgrade */
#menu h3{
  margin:14px 0 10px;
  font-size:14px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color: rgba(243,243,245,.88);
}
.menuItem{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:10px;
  align-items:center;
  padding:14px;
  border-radius:18px;
}
.menuTop{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:4px;
}
.menuName{
  font-size:15px;
  letter-spacing:.2px;
}
.menuPrice{
  color: rgba(243,243,245,.92);
  font-weight:900;
}
.menuDesc{
  margin:6px 0 0;
  font-size:13px;
  line-height:1.45;
}

/* “Add” button becomes a pill */
.menuItem .btn.small{
  border-radius:999px;
  padding:10px 12px;
  white-space:nowrap;
}

/* Cart styling */
#cart{
  margin-top:6px;
}
.cartLine{
  padding:12px 0;
}
.cartLeft{min-width:0}
.cartMods{opacity:.9}
.cartRight{
  min-width:86px;
}
.link{
  font-weight:800;
  font-size:12px;
}

/* Checkout button more premium */
.checkout-btn{
  border-radius:18px;
  padding:15px 16px;
  font-size:16px;
}

/* Desktop: keep cart visible while scrolling menu */
@media (min-width: 901px){
  .cart-card{
    position: sticky;
    top: 86px;
  }
}

/* Mobile-first layout: cart becomes sticky at bottom */
@media (max-width: 900px){

  /* Stack menu then cart */
  .grid.order-grid{
    grid-template-columns: 1fr !important;
  }

  /* Tighten page padding for phones */
  .wrap{ padding:14px; }

  /* Make cart feel like a bottom sheet */
  .cart-card{
    position: sticky;
    bottom: 10px;
    z-index: 40;
    padding-bottom: 14px;
  }

  /* Add a stronger top edge to separate it */
  .cart-card{
    border-color: rgba(255,255,255,.18);
    box-shadow:
      0 -18px 60px rgba(0,0,0,.55),
      inset 0 1px 0 rgba(255,255,255,.10);
  }

  /* Keep the checkout always visible */
  .checkout-btn{
    position: sticky;
    bottom: 12px;
    z-index: 50;
  }

  /* Reduce menu button size slightly */
  .menuItem{
    grid-template-columns: 1fr auto;
    padding:12px;
  }
}

/* Extra-small phones */
@media (max-width: 420px){
  .h2{font-size:17px}
  .menuName{font-size:14px}
}




/* =========================
   MODAL (Modifier Picker)
   ========================= */

.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}
.modal.is-open{ display:block; }

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-sheet{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  width: min(720px, calc(100% - 26px));
  max-height: min(82vh, 760px);
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(900px 260px at 18% 0%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(700px 240px at 90% 12%, rgba(240,179,35,.10), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow:
    0 40px 140px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}

.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:16px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.modal-title{
  font-size:18px;
  font-weight:900;
  letter-spacing:.2px;
}
.modal-subtitle{
  margin-top:4px;
  font-size:13px;
  line-height:1.35;
}
.modal-x{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color: rgba(243,243,245,.95);
  border-radius: 12px;
  width:40px;
  height:40px;
  cursor:pointer;
}

.modal-body{
  padding: 14px 16px;
  overflow:auto;
  max-height: calc(82vh - 160px);
}

.group{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
}
.group-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.group-name{ font-weight:900; }
.group-rule{ color: rgba(243,243,245,.75); font-size:12px; }

.option{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 10px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  margin-top:8px;
}
.option-left{display:flex; align-items:center; gap:10px; min-width:0;}
.opt-name{font-weight:800; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.opt-price{color: rgba(243,243,245,.9); font-weight:900; font-size:13px; white-space:nowrap;}
.opt-check{
  width:22px; height:22px;
  accent-color: var(--accent);
}

.qty-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top: 6px;
}
.modal-price{font-weight:900; margin-top:2px;}
.qty-ctrl{
  display:flex;
  align-items:center;
  gap:10px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 6px;
}
.qty-btn{
  width:40px; height:40px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: rgba(243,243,245,.95);
  font-size:20px;
  cursor:pointer;
}
.qty-num{
  width:34px;
  text-align:center;
  font-weight:900;
}

.modal-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 16px;
  border-top:1px solid rgba(255,255,255,.10);
}
.modal-total-amt{
  font-weight:900;
  font-size:18px;
}

/* Mobile bottom-sheet feel */
@media (max-width: 520px){
  .modal-sheet{
    top:auto;
    bottom:10px;
    transform: translate(-50%, 0);
    border-radius: 22px;
    max-height: 86vh;
  }
  .modal-body{ max-height: calc(86vh - 170px); }
}

/* =========================
   MOBILE CART BOTTOM SHEET (COLLAPSIBLE)
   ========================= */
.cart-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background: transparent;
  border:0;
  color: inherit;
  padding: 0;
  cursor: pointer;
  text-align:left;
}
.cart-toggle .chev{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  transform: rotate(180deg);
  transition: transform .18s ease;
}

@media (max-width: 900px){

  /* Menu should get space */
  .order-grid{
    padding-bottom: 110px; /* space for collapsed cart + safe area */
  }

  /* Bottom sheet behavior */
  #cartSheet{
    position: fixed !important;
    left: 14px;
    right: 14px;
    bottom: 12px;
    top: auto !important;
    z-index: 80;
    margin: 0 !important;

    /* collapsed height */
    max-height: 240px;
    overflow: hidden;

    border-radius: 22px;
  }

  /* Default = collapsed */
  #cartSheet.is-collapsed{
    max-height: 240px;
  }

  /* Expanded state */
  #cartSheet.is-open{
    max-height: calc(85vh - 20px);
    overflow: hidden;
  }

  /* Only the inside scrolls when expanded */
  #cartSheet.is-open .cart-scroll{
    max-height: calc(85vh - 170px);
    overflow:auto;
    padding-right: 2px;
  }

  /* Hide some spacing when collapsed */
  #cartSheet.is-collapsed .divline,
  #cartSheet.is-collapsed .row,
  #cartSheet.is-collapsed .muted.small{
    display:none;
  }

  /* Keep button visible */
  #cartSheet .checkout-btn{
    position: sticky;
    bottom: 12px;
    z-index: 90;
  }

  /* Chevron direction */
  #cartSheet.is-collapsed .cart-toggle .chev{
    transform: rotate(0deg);
  }
  #cartSheet.is-open .cart-toggle .chev{
    transform: rotate(180deg);
  }

  /* Make the cart look like a floating sheet */
  #cartSheet{
    box-shadow:
      0 30px 90px rgba(0,0,0,.65),
      inset 0 1px 0 rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.18);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
  }
}

