/* Public menu layout (adapted from the RIONEXT menu template). */
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 120px; position: relative; }
@media (min-width: 520px) { body { background: #050505; } .app { box-shadow: 0 0 60px rgba(0,0,0,.6); } }

.hero { position: relative; height: 300px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,0) 30%, rgba(11,11,12,.85) 100%); }

.logo-card { position: relative; margin: -70px 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px 18px 16px; z-index: 2; text-align: center; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.logo { width: 132px; height: 132px; border-radius: 22px; margin-top: -64px; border: 4px solid var(--surface); background: #000; }
.tagline { font-family: var(--display); font-size: 21px; letter-spacing: .06em; color: var(--yellow); margin-top: 6px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 800; background: var(--ok-bg); color: var(--green); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(79,195,60,.18); }
.status.closed { background: var(--danger-bg); color: #ff8a9b; }
.status.closed i { box-shadow: 0 0 0 4px rgba(255,52,81,.18); }
.info { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.actions a { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-size: 13.5px; font-weight: 800; padding: 11px 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.actions svg { width: 18px; height: 18px; stroke: var(--yellow); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.closed { margin: 16px 16px 0; background: var(--danger-bg); border: 1px solid #5c1d28; color: #ffd3da; border-radius: 16px; padding: 13px 15px; font-size: 14px; font-weight: 700; line-height: 1.45; }
.lastorder { display: block; width: calc(100% - 32px); margin: 12px 16px 0; text-align: left; background: var(--surface); border: 1.5px solid var(--yellow); border-radius: 16px; padding: 12px 15px; font-size: 14px; line-height: 1.4; }
.lastorder b { color: var(--yellow); }

.nav { position: sticky; top: 0; z-index: 30; background: rgba(11,11,12,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); margin-top: 18px; padding-top: env(safe-area-inset-top); }
.search { padding: 12px 16px 4px; }
.search input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px 14px 11px 38px; font-size: 16px; outline: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a7a198' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 13px center; }
.search input:focus { border-color: var(--yellow); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 800; padding: 8px 14px; border-radius: 99px; white-space: nowrap; }
.chip.on { background: var(--yellow); color: #111; border-color: var(--yellow); }

section.sec { padding: 22px 16px 4px; scroll-margin-top: 120px; }
.sh h2 { font-family: var(--display); font-weight: 400; font-size: 36px; letter-spacing: .03em; line-height: 1; }
section.sec:nth-of-type(5n+1) .sh h2 { color: var(--red); }
section.sec:nth-of-type(5n+2) .sh h2 { color: var(--yellow); }
section.sec:nth-of-type(5n+3) .sh h2 { color: var(--green); }
section.sec:nth-of-type(5n+4) .sh h2 { color: var(--orange); }
section.sec:nth-of-type(5n+5) .sh h2 { color: var(--blue); }
.note { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

.item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); width: 100%; text-align: left; }
.items .item:last-child { border-bottom: 0; }
.item .txt { flex: 1; min-width: 0; }
.item .nm { font-weight: 900; font-size: 16px; line-height: 1.25; }
.item .nm small { font-weight: 700; color: var(--muted); font-size: 13px; }
.item .ds { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .pr { font-weight: 900; font-size: 16px; white-space: nowrap; align-self: flex-start; color: var(--yellow); }
.item .th { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex: none; background: var(--surface-2); }
.item.off .nm, .item.off .pr, .item.off .th { opacity: .5; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--red); color: #fff; margin-bottom: 5px; }
.badge.gold { background: var(--yellow); color: #111; }
.badge.grey { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

.sides { margin: 22px 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.sides b { color: var(--green); display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }

.install { margin: 26px 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.install img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.install b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .03em; display: block; color: var(--yellow); }
.install p { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.install strong { color: var(--ink); }
footer { text-align: center; padding: 26px 22px 10px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
footer .h { font-family: var(--display); font-size: 28px; letter-spacing: .03em; color: var(--ink); margin-bottom: 4px; }
footer .by { margin-top: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }

.cartbar { position: fixed; left: 50%; transform: translate(-50%, 160%); bottom: calc(16px + env(safe-area-inset-bottom)); width: calc(100% - 32px); max-width: 448px; z-index: 40; background: var(--yellow); color: #111; border-radius: 99px; padding: 13px 18px 13px 13px; display: flex; align-items: center; gap: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.5); transition: transform .3s cubic-bezier(.2,.8,.2,1); font-weight: 900; }
.cartbar.on { transform: translate(-50%, 0); }
.cartbar .n { width: 32px; height: 32px; border-radius: 50%; background: #111; color: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.cartbar b { flex: 1; text-align: left; font-size: 15.5px; }

.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 50; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 105%); width: 100%; max-width: 480px; max-height: 92vh; max-height: 92dvh; overflow: auto; background: var(--surface); border-radius: 24px 24px 0 0; z-index: 60; transition: transform .32s cubic-bezier(.2,.8,.2,1); overscroll-behavior: contain; border-top: 1px solid var(--line); }
.sheet.on { transform: translate(-50%, 0); }
.sheet .x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(22,22,24,.9); border: 1px solid var(--line); font-size: 22px; line-height: 38px; z-index: 3; }
.sheet .ph { height: 230px; background: var(--surface-2); }
.sheet .ph img { width: 100%; height: 100%; object-fit: cover; }
.sheet .ph.none { height: 58px; background: transparent; }
.sheet .bd { padding: 16px 20px 24px; }
.sheet .secn { font-family: var(--display); font-size: 19px; letter-spacing: .05em; color: var(--muted); }
.sheet h3 { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: .02em; line-height: 1.05; }
.sheet .desc { color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 6px; }
.sheet .bigp { font-size: 22px; font-weight: 900; margin-top: 8px; color: var(--yellow); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 99px; padding: 10px 15px; font-size: 14.5px; font-weight: 800; }
.opt small { font-weight: 700; color: var(--muted); margin-left: 4px; }
.opt.on { background: var(--yellow); border-color: var(--yellow); color: #111; }
.opt.on small { color: #4d3e10; }
.opt:disabled { opacity: .4; text-decoration: line-through; }
.addbar { position: sticky; bottom: 0; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(22,22,24,0), var(--surface) 30%); display: flex; gap: 10px; align-items: center; }
.qty { display: flex; align-items: center; background: var(--surface-2); border-radius: 99px; border: 1.5px solid var(--line); height: 52px; }
.qty button { width: 44px; height: 50px; font-size: 22px; font-weight: 800; }
.qty span { min-width: 24px; text-align: center; font-weight: 900; }
.addbar .btn { flex: 1; }
.only-local { margin-top: 16px; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; font-weight: 800; color: var(--muted); }

/* Cart / checkout */
.oh { padding: 22px 20px 0; }
.oh h3 { font-family: var(--display); font-size: 38px; font-weight: 400; letter-spacing: .02em; }
.ol { padding: 4px 20px 0; }
.line { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.line .tx { flex: 1; min-width: 0; }
.line b { font-weight: 900; font-size: 15px; }
.line small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.35; }
.line .pr { font-weight: 900; white-space: nowrap; }
.line .q { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.line .q button { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--line); font-weight: 900; line-height: 1; }
.line .q span { font-weight: 900; min-width: 16px; text-align: center; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { padding: 13px 6px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid var(--line); font-weight: 900; font-size: 14.5px; }
.seg button.on { background: var(--yellow); border-color: var(--yellow); color: #111; }
.fields { display: grid; gap: 10px; }
.sum { margin-top: 18px; background: var(--surface-2); border-radius: 16px; padding: 14px 15px; display: grid; gap: 9px; }
.sum .row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum .row b { white-space: nowrap; font-size: 16px; }
.sum .row span small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.warn { background: #3a2a0b; color: #ffe2a3; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.steps { margin-top: 16px; display: grid; gap: 10px; counter-reset: s; }
.steps div { display: flex; gap: 11px; font-size: 14px; line-height: 1.4; }
.steps div::before { counter-increment: s; content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: #111; font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.steps .done::before { content: "✓"; background: var(--green); }
.hint { font-size: 13px; color: var(--muted); text-align: center; padding: 0 20px 8px; }
.bank { margin-top: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; display: grid; gap: 7px; }
.bank div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.bank span { color: var(--muted); }
.bank b { text-align: right; }
.bank .card { font-size: 18px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.folio { font-family: var(--display); font-size: 26px; letter-spacing: .05em; color: var(--yellow); }
.shake { animation: shk .5s; }
@keyframes shk { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
