/* De Islands • customer order page. Palette from the logo. */
:root {
  --purple: #4b1257;
  --purple-deep: #2e0a38;
  --purple-soft: #f3e9f6;
  --red: #e23124;
  --red-dark: #c02318;
  --yellow: #ffc917;
  --yellow-soft: #fff4cc;
  --green: #2f8f2b;
  --green-soft: #e6f4e4;
  --cream: #fff8ed;
  --line: #ece4ef;
  --ink: #1f0d24;
  --ink-2: #5d4a63;
  --ink-3: #8c7b91;
  --white: #fff;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 8px 30px rgba(46, 10, 56, .10);
  --shadow-lg: 0 24px 70px rgba(46, 10, 56, .28);
  --display: "Lilita One", "Arial Black", sans-serif;
  --body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --top: 72px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 140px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); color: var(--ink); background: #fff; font-size: 16px; line-height: 1.45; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 8px; }

.test-banner { background: repeating-linear-gradient(45deg, var(--yellow), var(--yellow) 14px, #ffd84d 14px, #ffd84d 28px); color: var(--purple-deep); font-weight: 700; text-align: center; padding: 7px 16px; font-size: 14px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--purple); color: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.topbar-in { max-width: 1320px; margin: 0 auto; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 20px; }
.brand img { height: 52px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.pickup-pills { display: flex; gap: 10px; flex: 1; min-width: 0; }
.pill { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 7px 16px 7px 12px; text-align: left; min-width: 0; transition: background .15s; }
.pill:hover { background: rgba(255,255,255,.18); }
.pill svg { color: var(--yellow); }
.pill span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.pill small { font-size: 11px; opacity: .75; letter-spacing: .3px; text-transform: uppercase; }
.pill b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-btn { display: flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--purple-deep); font-weight: 800; padding: 10px 18px; border-radius: 999px; transition: transform .12s; }
.cart-btn:hover { transform: translateY(-1px); }
.cart-btn svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero { max-width: 1320px; margin: 0 auto; padding: 20px 20px 0; }
.hero-img { height: 230px; border-radius: var(--r-lg); background: linear-gradient(90deg, rgba(46,10,56,.55), rgba(46,10,56,.05) 60%), url(/assets/hero-bg.jpg) center 55% / cover; }
.hero-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: end; margin: -64px 24px 0; }
.hero-logo { width: 128px; height: 128px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; padding: 10px; border: 4px solid #fff; }
.hero-text h1 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: .5px; color: var(--purple-deep); margin-top: 70px; }
.hero-text .tag { color: var(--red); font-weight: 700; margin-top: 4px; }
.status-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.closed { background: #fde8e6; color: var(--red-dark); }
.status.paused { background: var(--yellow-soft); color: #8a5a00; }
.perks { list-style: none; display: flex; gap: 10px; margin-bottom: 4px; }
.perks li { background: var(--cream); border: 1px solid #f4e6cc; border-radius: var(--r-md); padding: 10px 14px; display: flex; flex-direction: column; min-width: 150px; }
.perks b { font-size: 14px; color: var(--purple-deep); }
.perks span { font-size: 13px; color: var(--ink-2); }

.notice, .track-banner { max-width: 1272px; margin: 18px auto 0; border-radius: var(--r-md); padding: 14px 18px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.notice { background: var(--yellow-soft); border: 1px solid #f5d77a; color: #5b3d00; font-weight: 600; }
.track-banner { background: var(--purple-soft); border: 1px solid #e2cfe8; }
.track-banner b { color: var(--purple); }
.track-banner a { background: var(--purple); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }

/* ---------- category bar ---------- */
.cat-bar { position: sticky; top: var(--top); z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-top: 20px; }
.cat-bar-in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 10px 20px; }
.search { display: flex; align-items: center; gap: 8px; background: #f5f0f6; border-radius: 999px; padding: 9px 14px; width: 250px; flex: none; color: var(--ink-3); }
.search input { border: 0; background: none; outline: none; width: 100%; color: var(--ink); }
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.cats::-webkit-scrollbar { display: none; }
.cats button { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .15s, color .15s; }
.cats button:hover { background: #f5f0f6; }
.cats button.on { background: var(--purple); color: #fff; }

/* ---------- layout ---------- */
.layout { max-width: 1320px; margin: 0 auto; padding: 8px 20px 60px; display: grid; grid-template-columns: 1fr 370px; gap: 34px; align-items: start; }
.menu { min-width: 0; }
.loading { padding: 80px 0; text-align: center; color: var(--ink-3); }
.section { padding-top: 30px; }
.section h2 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .4px; color: var(--purple-deep); }
.section .blurb { color: var(--ink-2); margin-top: 2px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.card { display: flex; gap: 14px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; min-height: 128px; transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; }
.card:hover { border-color: #d9c6df; box-shadow: var(--shadow); transform: translateY(-1px); }
.card .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card h3 { font-size: 17px; font-weight: 700; line-height: 1.25; }
.card p { color: var(--ink-2); font-size: 14px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .price { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--ink); }
.card .price small { color: var(--ink-3); font-weight: 500; }
.card .thumb { width: 112px; height: 100px; border-radius: var(--r-sm); background: center / cover; flex: none; position: relative; }
.card .add { position: absolute; right: 22px; bottom: 22px; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); display: grid; place-items: center; color: var(--purple); font-size: 24px; font-weight: 600; line-height: 1; }
.card.no-img .add { right: 14px; bottom: 14px; background: var(--purple-soft); box-shadow: none; }
.card.sold { opacity: .55; pointer-events: none; }
.card .badge { display: inline-block; align-self: flex-start; margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--yellow-soft); color: #8a5a00; }
.card .badge.out { background: #eee; color: #666; }
.card .incart { position: absolute; top: -8px; left: -8px; background: var(--purple); color: #fff; font-size: 12px; font-weight: 800; min-width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; padding: 0 6px; border: 2px solid #fff; }

.pop { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 14px; overflow-x: auto; padding: 16px 2px 10px; scrollbar-width: thin; }
.pop .tile { text-align: left; border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.pop .tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pop .tile .img { height: 130px; background: center / cover; position: relative; }
.pop .tile .img.ph { background: linear-gradient(135deg, var(--purple), var(--red)); display: grid; place-items: center; color: var(--yellow); font-family: var(--display); font-size: 26px; text-align: center; padding: 10px; }
.pop .tile .t { padding: 10px 12px 12px; }
.pop .tile b { display: block; font-size: 15px; line-height: 1.25; }
.pop .tile span { color: var(--ink-2); font-size: 14px; }
.empty-search { padding: 50px 0; text-align: center; color: var(--ink-2); }

/* ---------- side cart (desktop) ---------- */
.side-cart { position: sticky; top: calc(var(--top) + 76px); margin-top: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); max-height: calc(100vh - var(--top) - 100px); display: flex; flex-direction: column; overflow: hidden; }
.bag-head { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.bag-head h3 { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--purple-deep); }
.bag-head p { color: var(--ink-2); font-size: 14px; }
.bag-lines { overflow-y: auto; padding: 4px 20px; flex: 1; }
.bag-empty { padding: 34px 20px; text-align: center; color: var(--ink-2); }
.bag-empty .bowl { width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; }
.bag-empty .bowl svg { width: 34px; height: 34px; color: var(--purple); }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .nm { font-weight: 700; line-height: 1.25; }
.line .ch { grid-column: 1 / -1; color: var(--ink-2); font-size: 13.5px; }
.line .note { grid-column: 1 / -1; color: #8a5a00; font-size: 13px; font-style: italic; }
.line .pr { font-weight: 700; }
.line .ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; background: #f5f0f6; border-radius: 999px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; font-size: 18px; font-weight: 700; color: var(--purple); }
.qty button:hover { background: #eadcef; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.link { color: var(--ink-2); font-size: 13.5px; text-decoration: underline; text-underline-offset: 2px; padding: 4px; }
.link:hover { color: var(--red); }
.bag-foot { border-top: 1px solid var(--line); padding: 14px 20px 18px; }
.sumrow { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-2); padding: 2px 0; }
.sumrow.total { color: var(--ink); font-weight: 800; font-size: 18px; padding-top: 8px; }
.sumrow .save { color: var(--green); font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-weight: 800; padding: 14px 22px; transition: transform .12s, background .15s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--purple); color: #fff; }
.btn.primary:hover { background: #5d1a6b; }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-dark); }
.btn.ghost { background: #f5f0f6; color: var(--purple); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .amt { background: rgba(255,255,255,.18); padding: 2px 10px; border-radius: 999px; }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20, 5, 26, .55); z-index: 50; animation: fade .18s; }
.sheet { position: fixed; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: pop .2s ease-out; }
.sheet.small { width: min(480px, calc(100vw - 32px)); }
.sheet.checkout { width: min(980px, calc(100vw - 32px)); }
.drawer { position: fixed; z-index: 60; right: 0; top: 0; bottom: 0; width: min(440px, 100vw); background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .22s ease-out; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.98); } }
@keyframes slide { from { transform: translateX(100%); } }
.x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); display: grid; place-items: center; z-index: 2; font-size: 22px; line-height: 1; }
.x:hover { background: #f5f0f6; }
.sheet-scroll { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.sheet-head { padding: 24px 24px 8px; }
.sheet-head h2 { font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--purple-deep); line-height: 1.1; padding-right: 40px; }
.sheet-head p { color: var(--ink-2); margin-top: 6px; }
.sheet-foot { border-top: 1px solid var(--line); padding: 14px 20px; display: flex; gap: 12px; align-items: center; background: #fff; }

/* item sheet */
.item-hero { height: 240px; background: center / cover; flex: none; }
.item-hero.ph { height: 120px; background: linear-gradient(120deg, var(--purple-deep), var(--purple) 55%, var(--red)); position: relative; overflow: hidden; }
.item-hero.ph::after { content: ""; position: absolute; right: -20px; top: -20px; width: 180px; height: 180px; background: url(/assets/logo.png) center / contain no-repeat; opacity: .16; transform: rotate(-8deg); }
.item-body { padding: 20px 24px 10px; }
.item-body h2 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.08; color: var(--purple-deep); }
.item-body .p { font-weight: 700; font-size: 18px; margin-top: 6px; }
.item-body .d { color: var(--ink-2); margin-top: 6px; }
.item-body .inc { margin-top: 8px; font-size: 14px; color: var(--purple); font-weight: 600; }
.soup { margin-top: 10px; background: var(--cream); border-radius: var(--r-sm); padding: 10px 14px; font-size: 14px; }
.soup b { color: var(--red); }
.grp { margin-top: 18px; border-top: 8px solid #f7f3f8; padding-top: 16px; }
.grp-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.grp-h h4 { font-size: 18px; font-weight: 800; }
.grp-h p { font-size: 13.5px; color: var(--ink-2); }
.req { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #f5f0f6; color: var(--ink-2); white-space: nowrap; }
.req.need { background: var(--purple); color: #fff; }
.req.done { background: var(--green-soft); color: var(--green); }
.grp.shake { animation: shake .4s; }
.grp.shake .req { background: var(--red); color: #fff; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.opt { display: flex; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .box { width: 24px; height: 24px; border: 2px solid #c9b7cf; border-radius: 50%; flex: none; display: grid; place-items: center; transition: all .12s; }
.opt .box.sq { border-radius: 7px; }
.opt input:checked + .box { border-color: var(--purple); background: var(--purple); box-shadow: inset 0 0 0 4px #fff; }
.opt input:checked + .box.sq { box-shadow: none; }
.opt input:checked + .box.sq::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.opt input:focus-visible + .box { outline: 3px solid var(--yellow); outline-offset: 2px; }
.opt .on { flex: 1; }
.opt .op { color: var(--ink-2); font-size: 15px; }
.opt:hover .box { border-color: var(--purple); }
.note-in { margin-top: 18px; border-top: 8px solid #f7f3f8; padding: 16px 0 6px; }
.note-in h4 { font-size: 18px; font-weight: 800; }
.note-in p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
textarea, .field input, .field select { width: 100%; border: 1.5px solid #ddd0e2; border-radius: var(--r-sm); padding: 12px 14px; background: #fff; outline: none; transition: border-color .15s; resize: vertical; }
textarea:focus, .field input:focus, .field select:focus { border-color: var(--purple); }

/* location + time sheets */
.choice { width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: left; border: 2px solid var(--line); border-radius: var(--r-md); padding: 16px; margin-top: 12px; transition: border-color .15s, background .15s; }
.choice:hover { border-color: #d6c1dc; }
.choice.on { border-color: var(--purple); background: var(--purple-soft); }
.choice .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--purple); color: var(--yellow); display: grid; place-items: center; flex: none; font-family: var(--display); font-size: 20px; }
.choice b { display: block; font-size: 17px; }
.choice span { color: var(--ink-2); font-size: 14px; }
.choice .sub { display: block; margin-top: 4px; font-size: 13px; color: var(--green); font-weight: 700; }
.choice .sub.closed { color: var(--red-dark); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #f5f0f6; border-radius: 999px; padding: 4px; margin-top: 14px; }
.seg button { padding: 10px; border-radius: 999px; font-weight: 700; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--purple); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.seg button[disabled] { opacity: .4; cursor: not-allowed; }
.slot-days { display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; padding-bottom: 4px; }
.slot-days button { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; }
.slot-days button.on { border-color: var(--purple); background: var(--purple); color: #fff; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; max-height: 280px; overflow-y: auto; padding: 2px; }
.slots button { padding: 10px 6px; border-radius: var(--r-sm); border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; }
.slots button:hover { border-color: var(--purple); }
.slots button.on { background: var(--purple); color: #fff; border-color: var(--purple); }
.hint { margin-top: 12px; font-size: 14px; color: var(--ink-2); background: var(--cream); padding: 10px 14px; border-radius: var(--r-sm); }

/* checkout */
.co { display: grid; grid-template-columns: 1fr 360px; min-height: 0; flex: 1; overflow: hidden; }
.co-main { overflow-y: auto; padding: 26px 28px 30px; }
.co-side { background: #faf7fb; border-left: 1px solid var(--line); overflow-y: auto; padding: 26px 22px; display: flex; flex-direction: column; }
.co h2 { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--purple-deep); }
.co h3 { font-size: 18px; font-weight: 800; margin: 26px 0 10px; display: flex; align-items: center; gap: 10px; }
.co h3 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--purple); color: #fff; font-size: 14px; display: grid; place-items: center; }
.pickup-box { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.pickup-box b { display: block; }
.pickup-box span { color: var(--ink-2); font-size: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field label small { font-weight: 500; color: var(--ink-3); }
.field.err input { border-color: var(--red); }
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tips button { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 4px; font-weight: 700; line-height: 1.15; }
.tips button small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.tips button.on { border-color: var(--purple); background: var(--purple-soft); color: var(--purple); }
#payEl { min-height: 60px; }
.demo-pay { border: 2px dashed #e5c76b; background: var(--yellow-soft); border-radius: var(--r-md); padding: 16px; color: #5b3d00; font-size: 15px; }
.demo-pay b { display: block; margin-bottom: 4px; }
.err-box { margin-top: 14px; background: #fde8e6; color: var(--red-dark); border-radius: var(--r-sm); padding: 12px 14px; font-weight: 600; }
.co-side h4 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.co-side .mini { flex: 1; }
.co-side .line { padding: 10px 0; }
.co-side .place { margin-top: 16px; }
.secure { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.secure svg { width: 14px; height: 14px; }
.co-mobile-place { display: none; }

/* track page */
.track { max-width: 760px; margin: 0 auto; padding: 30px 20px 80px; }
.track-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.track-top { background: var(--purple); color: #fff; padding: 26px 28px; position: relative; overflow: hidden; }
.track-top::after { content: ""; position: absolute; right: -30px; top: -30px; width: 200px; height: 200px; background: url(/assets/logo.png) center / contain no-repeat; opacity: .14; }
.track-top small { opacity: .8; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; font-size: 12px; }
.track-top h1 { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.05; margin-top: 4px; }
.track-top .num { display: inline-block; margin-top: 12px; background: var(--yellow); color: var(--purple-deep); font-family: var(--display); font-size: 26px; padding: 4px 16px; border-radius: 12px; }
.lights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 28px 22px 10px; position: relative; }
.light { text-align: center; position: relative; }
.light .dot { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; background: #eee; border: 4px solid #fff; box-shadow: 0 0 0 2px #e6e0e8; position: relative; z-index: 1; transition: all .3s; display: grid; place-items: center; }
.light .dot svg { width: 28px; height: 28px; fill: #fff; opacity: 0; transition: opacity .3s; }
.light b { display: block; margin-top: 10px; font-size: 15px; }
.light span { display: block; font-size: 13px; color: var(--ink-3); min-height: 18px; }
.light::before { content: ""; position: absolute; top: 32px; left: -50%; width: 100%; height: 4px; background: #eee; z-index: 0; }
.light:first-child::before { display: none; }
.light.done::before, .light.now::before { background: var(--ink-3); }
.light.red.done .dot, .light.red.now .dot { background: var(--red); }
.light.yellow.done .dot, .light.yellow.now .dot { background: var(--yellow); }
.light.green.done .dot, .light.green.now .dot { background: var(--green); }
.light.done .dot svg, .light.now .dot svg { opacity: 1; }
.light.yellow .dot svg { fill: var(--purple-deep); }
.light.now .dot { animation: glow 1.6s infinite; }
.light.red.now .dot { --g: rgba(226,49,36,.45); }
.light.yellow.now .dot { --g: rgba(255,201,23,.6); }
.light.green.now .dot { --g: rgba(47,143,43,.45); animation: none; box-shadow: 0 0 0 2px #e6e0e8, 0 0 0 10px rgba(47,143,43,.18); }
@keyframes glow { 50% { box-shadow: 0 0 0 2px #e6e0e8, 0 0 0 12px var(--g); } }
.track-msg { text-align: center; padding: 14px 28px 24px; font-size: 18px; font-weight: 600; color: var(--ink-2); }
.track-msg b { color: var(--ink); }
.track-sec { border-top: 1px solid var(--line); padding: 20px 28px; }
.track-sec h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-3); margin-bottom: 8px; }
.track-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.track-actions a { text-decoration: none; }
.track .back { display: inline-block; margin-top: 20px; color: var(--purple); font-weight: 700; }

.bag-bar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); background: var(--purple); color: #fff; border-radius: 999px; padding: 14px 20px; display: none; align-items: center; gap: 12px; font-weight: 800; box-shadow: var(--shadow-lg); }
.bag-bar span:nth-child(2) { flex: 1; text-align: left; }
.bag-count { background: var(--yellow); color: var(--purple-deep); border-radius: 999px; min-width: 28px; height: 28px; display: grid; place-items: center; padding: 0 8px; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: 30px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; transition: transform .25s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { transform: translate(-50%, 0); }

.foot { text-align: center; padding: 40px 20px 110px; background: var(--purple-deep); color: #e9dcec; }
.foot img { width: 120px; margin: 0 auto 10px; }
.foot .hours { color: var(--yellow); font-weight: 600; margin-top: 6px; }
.foot .small { font-size: 13px; opacity: .7; margin-top: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .side-cart { display: none; }
  .bag-bar:not([hidden]) { display: flex; }
  .perks { display: none; }
  .hero-card { grid-template-columns: auto 1fr; }
}
@media (max-width: 860px) {
  .co { grid-template-columns: 1fr; overflow-y: auto; }
  .co-main { overflow: visible; padding: 22px 18px 10px; }
  .co-side { border-left: 0; border-top: 1px solid var(--line); overflow: visible; padding: 18px; }
  .sheet.checkout { top: 0; left: 0; transform: none; width: 100vw; height: 100%; max-height: none; border-radius: 0; animation: none; }
}
@media (max-width: 720px) {
  :root { --top: 64px; }
  html { scroll-padding-top: 128px; }
  .topbar-in { padding: 0 12px; gap: 8px; }
  .brand img { height: 42px; }
  .pill { padding: 6px 10px; gap: 6px; }
  .pill svg { display: none; }
  .pill small { font-size: 10px; }
  .pill b { font-size: 14px; }
  .pickup-pills { gap: 6px; }
  .cart-btn { padding: 10px 12px; }
  .hero { padding: 0; }
  .hero-img { border-radius: 0; height: 130px; }
  .hero-card { display: block; margin: -46px 16px 0; }
  .hero-logo { width: 92px; height: 92px; border-radius: 20px; padding: 6px; }
  .hero-text h1 { font-size: 30px; margin-top: 10px; }
  .status-row { font-size: 14px; gap: 6px 10px; }
  .test-banner { font-size: 12.5px; padding: 6px 10px; }
  .notice, .track-banner { margin: 14px 16px 0; }
  .cat-bar-in { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 16px; }
  .search { width: 100%; }
  .layout { padding: 0 16px 40px; }
  .grid { grid-template-columns: 1fr; gap: 0; margin-top: 8px; }
  .card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 0; min-height: 0; }
  .card:hover { box-shadow: none; transform: none; }
  .card .thumb { width: 104px; height: 96px; }
  .card .add { right: 8px; bottom: 24px; }
  .card.no-img .add { right: 0; bottom: 16px; }
  .card .incart { top: 8px; left: -6px; }
  .section h2 { font-size: 24px; }
  .sheet:not(.checkout) { top: auto; bottom: 0; left: 0; transform: none; width: 100vw; max-height: 92vh; border-radius: 22px 22px 0 0; animation: up .22s ease-out; }
  @keyframes up { from { transform: translateY(100%); } }
  .item-hero { height: 200px; }
  .fields { grid-template-columns: 1fr; }
  .co-mobile-place { display: block; }
  .track-top h1 { font-size: 30px; }
  .light .dot { width: 54px; height: 54px; }
  .light::before { top: 27px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ================= photo-led refresh (owner's own dish photos) ================= */
.hero-img { height: 300px; background: linear-gradient(180deg, rgba(20,5,26,0) 35%, rgba(20,5,26,.55) 100%), url(/assets/menu/hero.jpg) center 45% / cover; box-shadow: var(--shadow); }
.hero-card { margin-top: -78px; }
.hero-logo { box-shadow: 0 14px 40px rgba(46,10,56,.28); }
.hero-text h1 { font-size: 46px; margin-top: 84px; }

/* most liked row: big photo tiles */
.pop { grid-auto-columns: 264px; gap: 16px; padding: 16px 2px 14px; scroll-snap-type: x mandatory; }
.pop .tile { scroll-snap-align: start; border: 0; box-shadow: 0 6px 22px rgba(46,10,56,.12); border-radius: 18px; }
.pop .tile .img { height: 176px; transition: transform .35s ease; }
.pop .tile:hover .img { transform: scale(1.04); }
.pop .tile { overflow: hidden; }
.pop .tile .t { position: relative; padding: 12px 52px 14px 14px; background: #fff; }
.pop .tile b { font-size: 16px; }
.pop .tile span { font-weight: 600; }
.pop .tile .plus { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: #fff; font-style: normal; font-size: 22px; font-weight: 600; display: grid; place-items: center; line-height: 1; }
.rank { position: absolute; left: 10px; top: 10px; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* dish cards: bigger, crisper photos */
.card .thumb { width: 136px; height: 120px; border-radius: 14px; box-shadow: 0 2px 10px rgba(46,10,56,.10); }
.card:not(.no-img) { min-height: 148px; }
.card .add { width: 38px; height: 38px; }

/* dish sheet: tall hero photo */
.item-hero { height: 300px; background-position: center; }
.sheet:not(.small):not(.checkout) .x { background: rgba(255,255,255,.95); }

@media (max-width: 720px) {
  .hero-img { height: 210px; }
  .hero-card { margin-top: -46px; }
  .hero-text h1 { font-size: 32px; margin-top: 10px; }
  .pop { grid-auto-columns: 74%; }
  .pop .tile .img { height: 160px; }
  .card .thumb { width: 112px; height: 104px; }
  .item-hero { height: 240px; }
}
.pop .tile .rank { color: #fff; font-size: 12px; font-weight: 800; }

/* bag hidden until opened (Uber style): no side panel, full width menu */
.side-cart { display: none !important; }
.layout { grid-template-columns: 1fr; }
@media (min-width: 1101px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cart-btn { position: relative; }
.cart-btn #cartCount { min-width: 18px; text-align: center; }
.cart-btn:not(.has) { background: rgba(255,255,255,.14); color: #fff; }
.cart-btn.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }
.drawer .bag-head { position: relative; padding-right: 64px; }
.pay-preview { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.pp-row { display: flex; gap: 8px; }
.pp-tab { flex: 1; text-align: center; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 6px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.pp-tab.on { border-color: var(--purple); color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.pay-preview p { margin-top: 10px; font-size: 14px; color: var(--ink-3); }

/* ===== phone polish (full mobile pass) ===== */
@media (max-width: 720px) {
  /* thumb-sized controls */
  .qty button { width: 42px; height: 42px; font-size: 20px; }
  .qty span { min-width: 26px; font-size: 17px; }
  .line .ctl { gap: 4px; }
  .link { padding: 10px 8px; font-size: 14.5px; }
  .cart-btn { min-height: 44px; }
  /* the confirmation toast floats above the "View your bag" bar */
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  /* bag panel: room for the home indicator */
  .drawer .bag-foot { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  /* checkout: one Place order button, pinned to the bottom like Uber */
  .co-mobile-place { display: none !important; }
  .co { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .co-side .place { position: fixed; left: 16px; right: 16px; width: auto; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 6; box-shadow: 0 10px 30px rgba(226,49,36,.35); min-height: 56px; font-size: 17px; }
  .co-side .secure { margin-bottom: 4px; }
  /* tracking card: tidy buttons side by side */
  .track { padding: 16px 14px 60px; }
  .track-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .track-actions .btn { padding: 14px 10px; font-size: 15px; }
}
/* toast fully disappears when hidden (sliding alone left it visible on phones) */
.toast { opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s; }
.toast.on { opacity: 1; visibility: visible; }
@media (max-width: 400px) {
  .track-actions { grid-template-columns: 1fr; }
}
body.tracking .pickup-pills { visibility: hidden; }
.pill small { white-space: nowrap; }
@media (max-width: 380px) {
  .pill { padding: 6px 9px; }
  .pill small { font-size: 9.5px; letter-spacing: .1px; }
  .pill b { font-size: 13px; }
}

/* ===== hero info block: only the logo overlaps the photo; text sits clearly below (desktop + tablet) ===== */
@media (min-width: 721px) {
  .hero-card { margin: 20px 28px 0; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .hero-logo { align-self: start; margin-top: -86px; }
  .hero-text { padding-top: 2px; }
  .hero-text h1 { margin-top: 0; font-size: 44px; }
  .hero-text .tag { margin-top: 6px; }
  .status-row { margin-top: 10px; }
  .perks { margin: 0; align-self: center; }
  .cat-bar { margin-top: 28px; }
  .notice, .track-banner { margin-top: 24px; }
}

/* ===== no overlap at all: logo + text sit fully below the photo, with clear padding ===== */
@media (min-width: 721px) {
  .hero-card { margin: 32px 28px 0; align-items: center; }
  .hero-logo { margin-top: 0; align-self: center; width: 112px; height: 112px; }
}
@media (max-width: 720px) {
  .hero-card { display: flex; align-items: center; gap: 14px; margin: 22px 16px 0; }
  .hero-logo { width: 76px; height: 76px; border-radius: 18px; padding: 5px; flex: none; margin: 0; }
  .hero-text h1 { margin-top: 0; font-size: 28px; }
  .hero-text .tag { font-size: 14px; margin-top: 2px; }
  .status-row { margin-top: 6px; }
  .notice, .track-banner { margin-top: 18px; }
}
/* phone: logo top lines up with the "De Islands" title */
@media (max-width: 720px) {
  .hero-card { align-items: flex-start; }
  .hero-logo { margin-top: 0; }
}
