/* ---------- PFC ordering: calm and fast. The theatre is on the home page. ---------- */
.order-page { background: radial-gradient(80vmax 50vmax at 90% -10%, rgba(232,162,58,.12), transparent 60%), var(--night); }
.tabs { position: sticky; top: 63px; z-index: 90; display: none; gap: 6px; overflow-x: auto; padding: 10px var(--pad); background: rgba(18,10,8,.94); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--mute); text-decoration: none; background: rgba(247,238,220,.05); }
.tabs a[aria-current] { color: #fff; background: var(--red); }
@media (max-width: 860px) { .tabs { display: flex; } }

.shop { display: grid; grid-template-columns: 1fr 400px; gap: 32px; padding: 28px var(--pad) 120px; align-items: start; }
.shop__menu { min-width: 0; }
.cat { padding-top: 8px; margin-bottom: 44px; scroll-margin-top: 140px; }
.cat__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 18px; }
.cat__h h2 { margin: 0; font-weight: 800; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.025em; }
.cat__h p { margin: 0; color: var(--mute); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.item { position: relative; display: grid; grid-template-columns: 1fr 108px; gap: 14px; align-items: center; min-height: 128px; padding: 14px; border: 0; border-radius: 20px; text-align: left; cursor: pointer;
  background: rgba(247,238,220,.045); box-shadow: 0 0 0 1px var(--line) inset; transition: background var(--t-hover), box-shadow var(--t-hover), transform var(--t-hover) var(--ease); scroll-margin-top: 150px; }
.item:hover { background: rgba(247,238,220,.075); box-shadow: 0 0 0 1px rgba(247,238,220,.22) inset; }
.item:active { transform: scale(.985); }
.item:target, .item.is-flash { box-shadow: 0 0 0 2px var(--gold) inset; }
.item.is-photo-less { grid-template-columns: 1fr; }
.item h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.item p { margin: 6px 0 10px; font-size: 14px; line-height: 1.4; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .money { color: var(--gold-hi); font-size: 15px; }
.item .photo { width: 108px; height: 108px; border-radius: 16px; }
.item__badge { display: inline-block; margin-bottom: 6px; padding: 3px 8px; border-radius: 999px; font: 700 9px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ox); background: var(--cream); }
.item.is-out { opacity: .5; cursor: not-allowed; }
.item.is-out .money::after { content: ' · Sold out'; color: var(--faint); font-family: var(--f); }
.o-skel { height: 140px; margin-bottom: 14px; border-radius: 20px; background: linear-gradient(90deg, rgba(247,238,220,.04), rgba(247,238,220,.08), rgba(247,238,220,.04)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* bag */
.bag { position: sticky; top: 84px; display: grid; gap: 14px; max-height: calc(100vh - 100px); overflow: auto; padding: 20px; border-radius: 26px; background: var(--night-2); box-shadow: 0 0 0 1px var(--line) inset, var(--sh); overscroll-behavior: contain; }
.bag__head { display: flex; justify-content: space-between; align-items: center; }
.bag__head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.bag__close { display: none; }
.bag__lines { display: grid; gap: 8px; }
.bag__empty { padding: 22px; border-radius: 18px; text-align: center; color: var(--mute); background: rgba(247,238,220,.04); }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line b { font-weight: 700; }
.line small { display: block; color: var(--mute); font-size: 13px; }
.line .qty { grid-row: span 2; align-self: center; }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(247,238,220,.06); box-shadow: 0 0 0 1px var(--line) inset; }
.qty__b { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--cream); font-size: 20px; line-height: 1; cursor: pointer; }
.qty__b:hover { background: rgba(247,238,220,.1); }
.qty output { min-width: 22px; text-align: center; font-family: var(--f-mono); font-weight: 600; }
.checkout { display: grid; gap: 14px; }
.checkout[hidden] { display: none; }
.checkout__pay { border: 0; padding: 0; margin: 0; }
.paycards { display: grid; gap: 8px; }
.paycard { position: relative; }
.paycard input { position: absolute; opacity: 0; pointer-events: none; }
.paycard > span { display: grid; gap: 2px; padding: 14px 16px 14px 46px; border-radius: 16px; background: rgba(247,238,220,.05); box-shadow: 0 0 0 1px var(--line) inset; cursor: pointer; transition: all var(--t-hover); }
.paycard > span::before { content: ''; position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px var(--faint) inset; }
.paycard em { font-style: normal; font-size: 13px; color: var(--mute); }
.paycard input:checked + span { background: rgba(200,16,46,.12); box-shadow: 0 0 0 1px var(--red) inset; }
.paycard input:checked + span::before { box-shadow: 0 0 0 5px var(--red) inset; background: #fff; }
.paycard input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.paycard[hidden] { display: none; }
.checkout__me { margin: 0; font-size: 13px; color: var(--aqua); }
.paycard input[type=checkbox] + span::before { border-radius: 6px; }
.totals { display: grid; gap: 6px; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; }
.totals dt { color: var(--mute); }
.totals dd { margin: 0; }
.totals__total { font-size: 20px; font-weight: 800; }
.totals__total dt { color: var(--cream); }

/* phone: the bag becomes a sheet from the bottom */
.bagbar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 110; display: none; align-items: center; gap: 12px; min-height: 60px; padding: 0 20px 0 12px; border: 0; border-radius: 999px;
  color: #fff; font-weight: 800; font-size: 16px; background: linear-gradient(180deg, #e0263f, var(--red) 60%, #a50d25); box-shadow: 0 20px 40px -14px rgba(200,16,46,.8), 0 1px 0 rgba(255,255,255,.3) inset; cursor: pointer; }
.bagbar__n { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 999px; background: rgba(0,0,0,.25); font-family: var(--f-mono); }
.bagbar b { margin-left: auto; }
@media (max-width: 980px) {
  .shop { grid-template-columns: 1fr; padding-bottom: 110px; }
  .bag { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 150; max-height: 92vh; border-radius: 26px 26px 0 0; padding-bottom: max(20px, env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform var(--t-panel) var(--ease); }
  .bag.is-open { transform: none; }
  .bag__close { display: inline-flex; }
  .bagbar:not([hidden]) { display: flex; }
  body.bag-open { overflow: hidden; }
  body.bag-open::after { content: ''; position: fixed; inset: 0; z-index: 140; background: rgba(0,0,0,.6); }
}

/* item sheet */
.sheet { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 26px; background: var(--night-2); color: var(--cream); box-shadow: 0 0 0 1px var(--line) inset, 0 40px 100px -20px #000; overflow: hidden; }
.sheet::backdrop { background: rgba(8,4,3,.72); backdrop-filter: blur(4px); }
.sheet[open] { animation: rise var(--t-panel) var(--ease); }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.sheet__inner { position: relative; display: grid; max-height: calc(100vh - 24px); overflow: auto; }
.sheet__photo { aspect-ratio: 16 / 10; border-radius: 0; }
.sheet__photo:empty { display: none; }
.sheet__body { display: grid; gap: 16px; padding: 22px; }
.sheet__body h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.sheet__desc { margin: -8px 0 0; color: var(--mute); }
.opt { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; }
.opt legend { margin-bottom: 8px; font: 600 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.opt legend em { font-style: normal; color: var(--gold-hi); }
.sheet__foot { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding-top: 8px; background: linear-gradient(transparent, var(--night-2) 30%); }
.sheet__add { flex: 1; }
.sheet__x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(18,10,8,.75); color: var(--cream); font-size: 24px; cursor: pointer; }
@media (max-width: 600px) { .sheet { width: 100vw; max-width: 100vw; max-height: 94vh; margin: auto 0 0; border-radius: 26px 26px 0 0; } }
