/* Customer site — mobile first */
.site-body { background: var(--bg); min-height: 100dvh; padding-bottom: calc(76px + var(--safe-b)); -webkit-tap-highlight-color: transparent; }
#site { max-width: 640px; margin: 0 auto; background: var(--bg); min-height: 100dvh; position: relative; }
@media (min-width: 700px) { .site-body { background: #e9ebf4; } #site { box-shadow: 0 0 60px rgba(23,26,51,.12); } }
.s-view { animation: sIn .28s var(--ease); }
@keyframes sIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* hero */
.hero { position: relative; height: 210px; background: linear-gradient(135deg, var(--primary), var(--primary-700)); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); }
.identity { position: relative; margin: -46px 16px 0; z-index: 2; background: var(--surface); border-radius: 22px; padding: 16px; box-shadow: var(--sh-md); }
.identity .row { display: flex; gap: 14px; align-items: center; }
.logo { width: 68px; height: 68px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; overflow: hidden; flex: none; border: 3px solid #fff; box-shadow: var(--sh-sm); margin-top: -34px; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo .i { width: 32px; height: 32px; }
.identity h1 { font-size: 20px; line-height: 1.3; }
.identity .tag { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.open-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; margin-top: 10px; }
.open-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.open-pill.on { background: var(--success-soft); color: var(--success); }
.open-pill.off { background: var(--danger-soft); color: var(--danger); }
.about { color: var(--text-2); font-size: 14px; line-height: 1.9; margin-top: 12px; }
.contact { display: grid; gap: 2px; margin-top: 12px; }
.contact a, .contact div { display: flex; gap: 10px; align-items: center; padding: 9px 0; font-size: 14px; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); }
.contact .i { color: var(--primary); width: 18px; height: 18px; flex: none; }
.contact .ltr { direction: ltr; unicode-bidi: plaintext; }
.s-section { padding: 18px 16px 0; }
.s-section > h2 { font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.s-section > h2 a { font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 16px 0; }
.cta { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 14px; display: grid; gap: 8px; text-align: right; text-decoration: none; color: var(--text); box-shadow: var(--sh-xs); font: inherit; cursor: pointer; }
.cta .ico { width: 42px; height: 42px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.cta b { font-size: 15px; } .cta span { font-size: 12.5px; color: var(--text-3); }
.cta.primary { background: var(--primary); color: #fff; border-color: transparent; } .cta.primary .ico { background: rgba(255,255,255,.2); color: #fff; } .cta.primary span { color: rgba(255,255,255,.8); }
.hours-list { background: var(--surface); border-radius: 18px; border: 1px solid var(--line); overflow: hidden; }
.hours-list div { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 13.5px; border-top: 1px solid var(--line); }
.hours-list div:first-child { border-top: 0; } .hours-list .today { background: var(--primary-soft); font-weight: 700; }
.track-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; gap: 8px; }
.track-box .input { flex: 1; direction: ltr; text-align: center; letter-spacing: 2px; }

/* top bar */
.s-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: calc(10px + var(--safe-t)) 16px 8px; }
.s-top h1 { font-size: 19px; margin-bottom: 8px; }
.s-search { position: relative; } .s-search .i { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; color: var(--text-3); width: 18px; height: 18px; }
.s-search .input { padding-inline-start: 42px; background: var(--surface); }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; margin: 0 -16px; padding-inline: 16px; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; min-height: 36px; padding: 0 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.cat-chip.on { background: var(--primary); color: #fff; border-color: transparent; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent); }

/* menu */
.menu-cat { padding: 14px 16px 0; scroll-margin-top: 130px; }
.menu-cat > h2 { font-size: 16px; margin-bottom: 10px; }
.p-card { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; margin-bottom: 10px; box-shadow: var(--sh-xs); cursor: pointer; position: relative; }
.p-card.out { opacity: .6; }
.p-img { width: 92px; height: 92px; border-radius: 14px; background: var(--primary-soft); flex: none; overflow: hidden; display: grid; place-items: center; color: var(--primary); }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.p-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.p-body b { font-size: 15px; line-height: 1.5; }
.p-body p { font-size: 12.5px; color: var(--text-3); line-height: 1.7; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.price { font-weight: 800; font-size: 15px; } .price small { font-weight: 500; font-size: 11.5px; color: var(--text-3); margin-inline-start: 3px; }
.add-btn { width: 38px; height: 38px; border-radius: 12px; background: var(--primary); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 35%, transparent); }
.add-btn:active { transform: scale(.92); }
.stepper { display: inline-flex; align-items: center; background: var(--primary-soft); border-radius: 12px; height: 38px; }
.stepper button { width: 36px; height: 38px; border: 0; background: none; color: var(--primary); cursor: pointer; display: grid; place-items: center; font: inherit; }
.stepper b { min-width: 22px; text-align: center; font-size: 15px; }
.sold-out { font-size: 12px; font-weight: 700; color: var(--danger); background: var(--danger-soft); padding: 3px 10px; border-radius: 99px; }

/* floating cart bar */
.cart-bar { position: fixed; z-index: 30; inset-inline: 12px; bottom: calc(78px + var(--safe-b)); max-width: 616px; margin: 0 auto; background: var(--navy); color: #fff; border: 0; border-radius: 18px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; font: inherit; cursor: pointer; box-shadow: var(--sh-lg); animation: sIn .25s var(--ease); width: calc(100% - 24px); }
.cart-bar .cnt { background: var(--primary); width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; }
.cart-bar .grow { flex: 1; text-align: right; font-weight: 700; } .cart-bar .tot { font-weight: 800; }

/* bottom nav */
.s-nav { position: fixed; z-index: 40; bottom: 0; inset-inline: 0; max-width: 640px; margin: 0 auto; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px 8px calc(6px + var(--safe-b)); }
.s-nav a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11.5px; font-weight: 600; color: var(--text-3); text-decoration: none; border-radius: 12px; position: relative; }
.s-nav a .i { width: 22px; height: 22px; } .s-nav a.on { color: var(--primary); }
.s-nav a.on::before { content: ""; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 3px; background: var(--primary); }
.s-nav .dot { position: absolute; top: 2px; inset-inline-start: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 10.5px; display: grid; place-items: center; }

/* sheet */
.sheet-ov { position: fixed; inset: 0; z-index: 100; background: rgba(15,18,40,.5); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--surface); width: 100%; max-width: 640px; max-height: 92dvh; border-radius: 26px 26px 0 0; display: flex; flex-direction: column; animation: up .3s var(--ease); padding-bottom: var(--safe-b); }
@keyframes up { from { transform: translateY(100%); } }
.sheet.closing { transform: translateY(100%); transition: transform .2s; } .sheet-ov.closing { opacity: 0; transition: opacity .2s; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 10px auto 0; flex: none; }
.sheet header { display: flex; align-items: center; padding: 10px 18px 6px; gap: 8px; flex: none; } .sheet header h3 { flex: 1; font-size: 17px; }
.sheet .sbody { overflow-y: auto; padding: 8px 18px 16px; flex: 1; overscroll-behavior: contain; }
.sheet footer { padding: 12px 18px 14px; border-top: 1px solid var(--line); flex: none; display: grid; gap: 8px; }
.sheet .big-img { width: calc(100% + 36px); margin: -8px -18px 12px; height: 220px; object-fit: cover; background: var(--primary-soft); display: block; }
.sheet .big-ph { height: 180px; margin: -8px -18px 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.sum-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--text-2); } .sum-row.total { font-size: 17px; font-weight: 800; color: var(--text); border-top: 1px dashed var(--line-strong); margin-top: 6px; padding-top: 12px; } .sum-row.disc { color: var(--success); }
.line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); } .line .p-img { width: 56px; height: 56px; border-radius: 12px; } .line .nm { flex: 1; min-width: 0; } .line .nm b { font-size: 14.5px; display: block; }
.fgroup { display: grid; gap: 12px; margin-top: 14px; } .fgroup .label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.slots { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .slots::-webkit-scrollbar { display: none; }
.slot { flex: none; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; } .slot.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-700); }
.err-text { color: var(--danger); font-size: 12.5px; margin-top: 4px; }

/* tracking */
.success-hero { text-align: center; padding: 28px 20px 8px; } .success-hero .ok { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; background: var(--success-soft); color: var(--success); display: grid; place-items: center; animation: pop .5s var(--ease); } .success-hero .ok .i { width: 36px; height: 36px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: none; opacity: 1; } }
.code-box { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 2px dashed var(--line-strong); border-radius: 16px; padding: 10px 18px; margin-top: 12px; font-size: 26px; font-weight: 800; letter-spacing: 3px; }
.steps { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 0; }
.step { display: flex; gap: 14px; align-items: flex-start; position: relative; padding-bottom: 18px; color: var(--text-3); } .step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; inset-inline-start: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); transform: translateX(50%); } .step:last-child::before { display: none; }
.step .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; z-index: 1; } .step .dot .i { width: 14px; height: 14px; }
.step.done { color: var(--text); } .step.done .dot { background: var(--success); border-color: var(--success); color: #fff; } .step.done::before { background: var(--success); }
.step.cur .dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 20%, transparent); animation: pulse 1.6s infinite; } .step.cur { color: var(--text); font-weight: 700; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--primary) 8%, transparent); } }
.cancelled-box { background: var(--danger-soft); color: var(--danger); border-radius: 16px; padding: 14px; font-weight: 700; text-align: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }

/* club */
.member-card { margin: 16px; border-radius: 24px; padding: 20px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-700) 70%, var(--navy)); box-shadow: var(--sh-md); position: relative; overflow: hidden; }
.member-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); inset-block-start: -80px; inset-inline-start: -60px; }
.member-card h2 { font-size: 20px; } .member-card .sub { opacity: .8; font-size: 13px; direction: ltr; text-align: right; }
.member-card .mini { display: flex; gap: 18px; margin-top: 16px; position: relative; z-index: 1; } .member-card .mini div { display: grid; } .member-card .mini b { font-size: 20px; } .member-card .mini span { font-size: 12px; opacity: .8; }
.stamp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin-bottom: 12px; }
.stamp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 14px 0 6px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--line-strong); display: grid; place-items: center; color: var(--line-strong); } .stamp .i { width: 55%; height: 55%; }
.stamp.on { border: 2px solid var(--primary); background: var(--primary-soft); color: var(--primary); animation: pop .4s var(--ease) backwards; }
.stamp.gift { border-style: solid; border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.prog { height: 10px; background: var(--surface-2); border-radius: 10px; overflow: hidden; margin: 12px 0 6px; border: 1px solid var(--line); } .prog > i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 60%, #fff)); border-radius: 10px; transition: width .6s var(--ease); }
.reward { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, var(--warn-soft), #fff); border: 1px solid #f4dcae; border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; } .reward .ico { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--warn); display: grid; place-items: center; flex: none; }
.reward.dim { opacity: .55; filter: grayscale(.6); }
.hist { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tabs-s { display: flex; background: var(--surface-2); border-radius: 14px; padding: 4px; margin-bottom: 14px; border: 1px solid var(--line); } .tabs-s button { flex: 1; min-height: 40px; border: 0; background: none; border-radius: 11px; font: inherit; font-weight: 600; color: var(--text-2); cursor: pointer; } .tabs-s button.on { background: var(--surface); color: var(--primary); box-shadow: var(--sh-xs); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.site-foot { text-align: center; color: var(--text-3); font-size: 12px; padding: 28px 16px 8px; }
.banner { margin: 12px 16px 0; border-radius: 14px; padding: 11px 14px; font-size: 13.5px; background: var(--warn-soft); color: var(--warn); display: flex; gap: 8px; align-items: flex-start; } .banner .i { flex: none; margin-top: 3px; }
.banner.info { background: var(--info-soft); color: var(--info); }
.fgroup > *, .card, .s-section { min-width: 0; }
.fgroup { grid-template-columns: minmax(0, 1fr); }
.slots { max-width: 100%; }
html, body { overflow-x: hidden; }
