/* ═══════════════ STORE PAGE ═══════════════ */
body.store-page { padding-bottom: 110px; --outlet-h: 0px; }

/* Brand header — compact forest poster */
.brand-hero {
  margin: 8px 16px 0; padding: 20px 20px 22px; border-radius: var(--r-xl); position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #FEF9C3 0%, #EFF6FF 50%, #FDD9E5 100%); color: #0F172A; border: 1.5px solid #FDD9E5;
}
.brand-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .16; mix-blend-mode: overlay; z-index: -1; }
.brand-hero::after { content: ""; position: absolute; width: 190px; height: 160px; right: -36px; bottom: -42px; background: url("/img/brand/logo-tyaastore.png") center/contain no-repeat; opacity: .09; z-index: -1; }
.bh-top { display: flex; align-items: center; gap: 12px; }
.bh-logo { width: 46px; height: 46px; border-radius: 15px; background: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.bh-logo img { width: 34px; height: 34px; object-fit: contain; }
.bh-eyebrow { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #E07A9A; font-weight: 700; }
.bh-name { font-size: 23px; font-weight: 800; color: #0F172A; letter-spacing: -0.02em; line-height: 1.1; margin-top: 2px; }
.bh-line { width: 40px; height: 2px; background: #EC94AE; opacity: .8; margin: 16px 0 12px; border-radius: 2px; }
.bh-text { font-size: 14px; color: #334155; line-height: 1.5; max-width: 34ch; }
.bh-perks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.bh-perk { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--cream); background: rgba(232, 219, 198, .1); border: 1px solid rgba(232, 219, 198, .18); }
.bh-perk svg { width: 14px; height: 14px; }

/* Outlet card (sticky) */
.outlet-bar { position: sticky; top: var(--nav-h); z-index: var(--z-sticky); padding: 12px 16px 8px; background: var(--bg); }
.outlet-card {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px;
  border-radius: 16px; background: var(--surface); border: 1.5px solid var(--border);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05); transition: all .2s var(--ease);
}
.outlet-card:hover { border-color: #FDD9E5; box-shadow: 0 4px 12px -2px rgba(244, 114, 168, 0.12); }
.outlet-card.empty { border-style: solid; border-color: var(--border-2); background: var(--surface); }
.outlet-card.attention { animation: nudge .6s var(--ease) 2; }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }
.oc-ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #FEF9C3 0%, #FFEDF3 100%);
  color: #E07A9A; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid #FDD9E5;
}
:root[data-theme="dark"] .oc-ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #FEF9C3 0%, #FFEDF3 100%);
  color: #E07A9A; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid #FDD9E5;
}
.oc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oc-label {
  display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: #64748B; font-weight: 700; margin-bottom: 2px;
}
:root[data-theme="dark"] .oc-label {
  display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: #64748B; font-weight: 700; margin-bottom: 2px;
}
.oc-name {
  display: block; font-size: 16px; font-weight: 800; color: #0F172A;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oc-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.oc-change {
  flex-shrink: 0; font-size: 13.5px; font-weight: 800; color: #E07A9A;
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px;
  border-radius: 10px; background: #FFF3F8;
}

/* Outlet sheet */
.outlet-sheet { min-height: 70dvh; }
.outlet-search { position: relative; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.outlet-search:focus-within { border-color: var(--sage); box-shadow: 0 0 0 4px var(--primary-soft); background: var(--surface); }
.outlet-search-icon { color: var(--faint); display: grid; place-items: center; }
.outlet-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 15px; height: 100%; }
.outlet-search input::placeholder { color: var(--faint); }
.geo-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 4px; margin-top: 6px; text-align: left; border-bottom: 1px solid var(--border); }
.geo-btn b { display: block; font-size: 14.5px; font-weight: 600; color: var(--heading); }
.geo-btn small { display: block; font-size: 12.5px; color: var(--muted); }
.geo-ico { width: 38px; height: 38px; border-radius: 12px; background: #FFEDF3; color: #E07A9A; display: grid; place-items: center; flex-shrink: 0; }
.geo-btn.loading .geo-ico svg { animation: spin 1s linear infinite; }
.outlet-list { margin-top: 4px; }
.outlet-opt { display: flex; gap: 12px; width: 100%; text-align: left; padding: 13px 4px; border-bottom: 1px solid var(--border); transition: background .15s; border-radius: 4px; }
.outlet-opt:hover, .outlet-opt.kb { background: var(--primary-soft); }
.outlet-opt.current .oo-name::after { content: " · dipilih"; font-weight: 500; color: var(--sage); font-size: 12.5px; }
.oo-dist { width: 52px; flex-shrink: 0; text-align: center; padding-top: 2px; }
.oo-dist b { display: block; font-size: 14px; font-weight: 600; color: var(--heading); font-variant-numeric: tabular-nums; }
.oo-dist small { font-size: 10.5px; color: var(--faint); }
.oo-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oo-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.oo-name { font-size: 15px; font-weight: 600; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oo-addr { display: -webkit-box; font-size: 12.5px; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oo-hours { font-size: 12px; color: var(--faint); margin-top: 2px; }
.outlet-empty { padding: 28px 10px; font-size: 14px; color: var(--muted); text-align: center; line-height: 1.5; }
.outlet-note { padding: 12px 4px; font-size: 11.5px; color: var(--faint); }
.outlet-manual b { color: var(--heading); }

/* Menu search */
.menu-search { margin: 6px 16px 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: var(--r-sm); background: var(--surface); border: 1.5px solid var(--border); color: var(--faint); transition: border-color .2s; }
.menu-search:focus-within { border-color: var(--sage); }
.menu-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 15px; color: var(--ink); }
.menu-search input::placeholder { color: var(--faint); }

/* Toolbar: mode + categories */
.menu-toolbar {
  position: sticky; top: calc(var(--nav-h) + var(--outlet-h));
  z-index: calc(var(--z-sticky) - 1); background: var(--bg);
  padding: 12px 0 10px; border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.03);
}
.mode-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 16px 10px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.mode-seg button { min-height: 40px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all .2s var(--ease); }
.mode-seg button.active { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 16px -10px rgba(62, 54, 48, .8); }
.mode-tag { font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; background: var(--cream); color: var(--forest); }
.mode-seg button:not(.active) .mode-tag { background: var(--primary-soft-2); color: var(--heading); }
.cat-row { display: flex; align-items: center; gap: 8px; padding: 4px 0 6px 16px; }
.cat-all { flex-shrink: 0; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--border); color: var(--heading); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.cat-bar {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 6px 16px 10px 0;
  margin: -6px 0 -10px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0; height: 40px; padding: 0 14px 0 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: var(--ink); background: var(--surface);
  border: 1.5px solid #E2E8F0; display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap; transition: all .2s var(--ease);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.cat-pill:hover { border-color: #FDD9E5; }
.cat-pill.active {
  background: linear-gradient(135deg, #F5B3C7 0%, #E07A9A 100%) !important;
  color: #FFFFFF !important;
  border-color: #F5B3C7 !important;
  box-shadow: 0 4px 12px -2px rgba(244, 114, 168, 0.4) !important;
}
.cat-pill.active * { color: #FFFFFF !important; stroke: #FFFFFF !important; }


/* Category sheet list */
.cat-list { display: flex; flex-direction: column; }
.cat-opt { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--border); text-align: left; width: 100%; }
.cat-opt:last-child { border-bottom: none; }
.cat-opt .ico { width: 40px; height: 40px; border-radius: 13px; background: var(--surface-2); color: var(--heading); display: grid; place-items: center; flex-shrink: 0; }
.cat-opt.active .ico { background: var(--primary); color: var(--on-primary); }
.cat-opt span.n { flex: 1; font-size: 15.5px; font-weight: 600; color: var(--heading); }
.cat-opt small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-group-label { padding: 14px 4px 4px; }

/* Menu */
.menu { padding: 0 16px 8px; min-height: 40vh; outline: none; }
.menu-section { padding-top: 22px; scroll-margin-top: calc(var(--nav-h) + var(--outlet-h) + var(--toolbar-h, 110px) + 8px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.section-title { font-size: 19px; font-weight: 700; }
.section-count { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.menu-section .grid { margin-top: 10px; }
.menu-empty { text-align: center; padding: 56px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.menu-empty b { display: block; color: var(--heading); font-size: 17px; margin-bottom: 6px; }
.menu-empty .btn { margin-top: 16px; }

/* list rows */
.row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; width: 100%; text-align: left;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface); margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04); transition: transform .15s var(--ease), box-shadow .2s;
}
.row:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); }
.row:last-child { border-bottom: none; }
.row:active .thumb { transform: scale(.97); }
.thumb { width: 84px; height: 84px; flex-shrink: 0; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--sage); position: relative; transition: transform .15s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb img.ph-logo { width: 50%; height: 50%; object-fit: contain; opacity: .22; filter: grayscale(1); }
.thumb .ph { font-weight: 700; font-size: 22px; opacity: .7; }
.row-body { flex: 1; min-width: 0; }
.row-name { font-size: 15.5px; font-weight: 600; color: var(--heading); line-height: 1.3; }
.row-desc { font-size: 13px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-price { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price { color: #0F172A; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.price-normal { color: var(--faint); font-weight: 400; font-size: 12.5px; text-decoration: line-through; }
.save-badge { font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); }
.save-badge.disc { background: var(--danger-soft); color: var(--danger); }
.opt-hint { font-weight: 400; color: var(--faint); letter-spacing: 0; margin-left: 4px; }
.opt-pill.addon.active { background: var(--primary-soft-2); color: var(--heading); border-color: var(--primary); }
.opt-pill.addon.active small { color: var(--heading); opacity: 1; }
.row-tags { display: flex; gap: 4px; margin-bottom: 4px; }
.add-btn {
  width: 38px; height: 38px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, #F5B3C7 0%, #E07A9A 100%);
  color: #FFFFFF !important; display: grid; place-items: center;
  transition: transform .15s var(--ease), box-shadow .2s; align-self: flex-end; margin-bottom: 4px;
  border: none; box-shadow: 0 4px 12px -2px rgba(244, 114, 168, 0.4);
}
.add-btn svg { color: #FFFFFF !important; stroke: #FFFFFF !important; }
.row:hover .add-btn, .gcard:hover .add-btn {
  background: linear-gradient(135deg, #F5B3C7 0%, #E07A9A 100%);
  color: #FFFFFF !important;
}
.sold { opacity: .6; }
.sold .thumb img:not(.ph-logo), .sold .gcard-art img { filter: grayscale(1); }
.sold-tag { font-size: 12px; font-weight: 600; color: var(--danger); background: var(--danger-soft); padding: 4px 10px; border-radius: 8px; flex-shrink: 0; align-self: flex-end; margin-bottom: 8px; }

/* grid cards (bundles & custom menu) */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gcard { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; text-align: left; transition: transform .15s var(--ease), box-shadow .2s; box-shadow: var(--shadow-sm); }
.gcard:active { transform: scale(.98); }
.gcard-art { aspect-ratio: 1.15; position: relative; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.gcard-art img { width: 100%; height: 100%; object-fit: cover; }
.gcard-art img.ph-logo { width: 40%; height: 40%; object-fit: contain; opacity: .22; filter: grayscale(1); }
.gcard-art .badge { position: absolute; top: 10px; left: 10px; }
.gcard-body { padding: 12px 12px 12px 14px; display: flex; flex-direction: column; flex: 1; gap: 3px; }
.gcard-name { font-size: 14.5px; font-weight: 600; color: var(--heading); line-height: 1.3; }
.gcard-meta { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; gap: 6px; }
.gcard-foot .add-btn, .gcard-foot .sold-tag { align-self: auto; margin: 0; }

.bundle-art { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; color: var(--cream); position: relative; isolation: isolate;
  background: linear-gradient(135deg, #F5B3C7 0%, #E07A9A 100%); color: #FFFFFF !important; }
.bundle-art.alt { background: linear-gradient(135deg, #C8B6F0 0%, #A08AD8 100%); color: #FFFFFF !important; }
.bundle-art::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .15; mix-blend-mode: overlay; z-index: -1; }
.bundle-art::after { content: ""; position: absolute; width: 92px; height: 80px; right: -14px; bottom: -14px; background: url("/img/brand/logo-tyaastore.png") center/contain no-repeat; opacity: .12; z-index: -1; }
.ba-top { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.ba-big { font-size: 42px; font-weight: 700; letter-spacing: -0.04em; line-height: .9; }
.ba-big small { font-size: 17px; font-weight: 600; letter-spacing: 0; margin-left: 2px; }
.ba-cups { display: flex; gap: 3px; opacity: .9; }

.menu-source { text-align: center; font-size: 12px; color: var(--faint); padding: 18px 16px 4px; }
.store-foot { text-align: center; font-size: 11.5px; color: var(--faint); padding: 4px 24px 24px; line-height: 1.5; }
.skel-row { height: 100px; margin: 12px 0; }

/* Product sheet */
.item-hero { margin: 0 0 16px; aspect-ratio: 1.45; border-radius: var(--r-lg); background: var(--surface-2); display: none; place-items: center; overflow: hidden; }
.item-hero.show { display: grid; }
.item-hero img { width: 100%; height: 100%; object-fit: contain; }
.item-name { font-size: 23px; font-weight: 700; margin-top: 4px; }
.item-desc { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.55; }
.item-desc:empty { display: none; }
.item-price-row { margin: 12px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.item-price { font-size: 21px; font-weight: 700; }
.item-normal { font-size: 14px; color: var(--faint); text-decoration: line-through; font-weight: 400; }
.opt-group { margin-top: 18px; }
.opt-title { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; margin-bottom: 8px; }
.opt-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.opt-pill { min-height: 46px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--bg); border: 1.5px solid var(--border); color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.15; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: all .18s var(--ease); }
.opt-pill small { font-size: 11px; font-weight: 500; color: var(--muted); }
.opt-pill:hover:not(:disabled) { border-color: var(--border-2); }
.opt-pill.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.opt-pill.active small { color: inherit; opacity: .8; }
.opt-pill:disabled { opacity: .35; cursor: not-allowed; }
.opt-loading { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 14px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.qty-label { font-size: 14px; font-weight: 600; color: var(--heading); }
.qty { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.qty button { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--heading); transition: background .15s; }
.qty button:hover { background: var(--surface); }
.qty span { min-width: 30px; text-align: center; font-weight: 700; font-size: 16px; color: var(--heading); }

/* Bundle sheet */
.bundle-price { font-size: 21px; font-weight: 700; color: var(--heading); margin-top: -6px; }
.bundle-fixed { font-size: 13px; font-weight: 600; color: var(--ok); margin-top: 6px; }
.bundle-fixed:empty { display: none; }
.bundle-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 16px 0; }
.bundle-slot { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: var(--r-sm); border: 1.5px dashed var(--border-2); background: var(--bg); text-align: left; min-width: 0; transition: all .2s; }
.bundle-slot.active { border-style: solid; border-color: var(--primary); background: var(--primary-soft); }
.bundle-slot.filled { border-style: solid; }
.slot-num { width: 24px; height: 24px; border-radius: 8px; background: var(--surface-3); color: var(--heading); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.bundle-slot.active .slot-num, .bundle-slot.filled .slot-num { background: var(--primary); color: var(--on-primary); }
.slot-txt { min-width: 0; }
.slot-name { display: block; font-size: 12.5px; font-weight: 600; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-opts { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bundle-grid-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.bundle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 310px; overflow-y: auto; padding: 2px; }
.bcand { border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 8px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--bg); transition: all .18s; }
.bcand.picked { border-color: var(--primary); background: var(--primary-soft); }
.bcand img:not(.ph-logo) { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.bcand img.ph-logo { width: 56px; height: 56px; padding: 14px; border-radius: 12px; object-fit: contain; opacity: .3; filter: grayscale(1); background: var(--surface-2); }
.bcand span { font-size: 12px; font-weight: 500; line-height: 1.25; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcand.sold { opacity: .45; }
.bcand em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--danger); }
.bundle-adjust { margin-top: 14px; padding: 14px; border-radius: var(--r-md); background: var(--surface-2); }
.bundle-adjust h4 { font-size: 15px; font-weight: 600; }

/* Cart */
.cart-list { display: flex; flex-direction: column; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item.sold { background: var(--danger-soft); border-radius: var(--r-sm); padding: 12px; border: none; margin-bottom: 6px; opacity: 1; }
.cart-item .thumb { width: 60px; height: 60px; border-radius: var(--r-sm); }
.cart-item .thumb .ph { font-size: 14px; font-weight: 700; color: var(--heading); opacity: 1; }
.ci-body { flex: 1; min-width: 0; }
.ci-name { font-size: 15px; font-weight: 600; color: var(--heading); line-height: 1.25; }
.ci-opts { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.ci-warn { font-size: 12.5px; color: var(--danger); font-weight: 600; margin-top: 4px; }
.ci-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.ci-actions { display: flex; align-items: center; gap: 4px; }
.ci-actions .mini { width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--heading); }
.ci-actions .q { min-width: 24px; text-align: center; font-weight: 700; font-size: 15px; color: var(--heading); }
.cart-empty { text-align: center; padding: 30px 10px 20px; color: var(--muted); font-size: 14.5px; }
.cart-empty b { display: block; color: var(--heading); font-size: 16px; margin-bottom: 4px; }
.pickup-time { margin-top: 8px; }
.summary { margin-top: 20px; padding: 16px; border-radius: var(--r-md); background: var(--surface-2); }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 3px 0; }
.summary-row .price { color: #0F172A; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--border-2); font-weight: 600; font-size: 16px; color: var(--heading); }
.summary-total .price { color: #0F172A; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.summary-note { font-size: 12.5px; color: var(--ok); font-weight: 600; margin-top: 8px; }
.summary-note:empty { display: none; }

/* Order sent */
.order-code-box { background: var(--surface-2); border-radius: var(--r-md); padding: 16px; margin-bottom: 18px; }
.order-code { font-size: 26px; font-weight: 700; color: var(--heading); margin: 6px 0 4px; letter-spacing: .06em; }
.order-code-total { font-size: 14px; font-weight: 500; color: var(--muted); }

/* Wi-Fi */
.wifi-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); background: var(--surface-2); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.wifi-field { text-align: left; border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); }
.wifi-field small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.wifi-field strong { display: block; font-size: 18px; font-weight: 700; color: var(--heading); word-break: break-all; }
.wifi-field.pass { background: var(--primary); }
.wifi-field.pass small, .wifi-field.pass strong { color: var(--on-primary); }
.copy-btn { height: 38px; padding: 0 12px; border-radius: 12px; background: var(--on-primary); color: var(--primary); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }

@media (min-width: 480px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}


/* ── Reseller ─────────────────────────────────────────────────────────── */
.mk-reseller-bar { margin-top: 14px; }
.btn-reseller {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 16px; cursor: pointer; text-align: left;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.btn-reseller:hover { border-color: var(--border-2); transform: translateY(-1px); }
.btn-reseller:active { transform: translateY(0); }
.btn-reseller.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, var(--surface)), var(--surface));
}
.rb-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.rb-ico { font-size: 20px; line-height: 1; }
.rb-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rb-txt b { font-size: 13.5px; font-weight: 800; color: var(--heading); }
.rb-txt small { font-size: 11.5px; color: var(--muted); }
.rb-tag {
  flex: none; font-size: 11.5px; font-weight: 800; padding: 5px 11px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink);
}
.btn-reseller.active .rb-tag { background: var(--primary); color: var(--on-primary); }

.mk-reseller-info { margin-top: 12px; font-size: 13px; color: var(--ink); }
.mk-reseller-rules { margin: 10px 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.mk-reseller-rules li { line-height: 1.5; }
.mk-reseller-rules b { color: var(--heading); }
.mk-reseller-warn {
  font-size: 12px; line-height: 1.5; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--warning, #f59e0b) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--warning, #f59e0b) 32%, transparent);
}
.mk-disc-note { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 2px; }
#sumReseller { color: var(--success, #16a34a); font-weight: 800; }


/* ── Leaderboard ──────────────────────────────────────────────────────── */
.lb-section {
  margin: 22px 0 14px; padding: 18px 16px 16px; border-radius: 20px;
  background: var(--surface); border: 1.5px solid var(--border);
}
.lb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lb-title { font-size: 19px; margin: 2px 0 0; color: var(--heading); }
.lb-sub { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.lb-trophy { font-size: 30px; line-height: 1; }
.lb-tabs { display: flex; gap: 7px; margin: 14px 0 12px; }
.lb-tab {
  flex: 1; padding: 8px 6px; border-radius: 11px; cursor: pointer;
  font-size: 12px; font-weight: 800; font-family: inherit;
  border: 1.5px solid var(--border); background: var(--surface-2); color: var(--ink);
}
.lb-tab.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.lb-row.top1 { border-color: var(--primary); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, var(--surface-2)), var(--surface-2)); }
.lb-row.top2, .lb-row.top3 { border-color: var(--border-2); }
.lb-rank { font-size: 18px; font-weight: 800; text-align: center; color: var(--heading); }
.lb-who { min-width: 0; }
.lb-who b { display: block; font-size: 13.5px; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-who small { font-size: 11px; color: var(--muted); }
.lb-stat { text-align: right; }
.lb-stat b { display: block; font-size: 12.5px; color: var(--heading); white-space: nowrap; }
.lb-stat small { font-size: 10px; color: var(--muted); }
.lb-loading, .lb-empty { text-align: center; font-size: 13px; color: var(--muted); padding: 18px 10px; }
.lb-empty b { display: block; font-size: 14px; color: var(--heading); margin: 8px 0 4px; }
.lb-empty p { margin: 0; font-size: 12.5px; line-height: 1.5; }
.lb-empty-ico { font-size: 26px; }
.lb-note { font-size: 11.5px; line-height: 1.55; color: var(--muted); margin: 12px 0 10px; }
#lbRefresh { margin-top: 2px; }

/* Menu grid 2 kolom (kartu: foto di atas, nama, harga, tombol + di pojok) */
.menu-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.menu-section > :not(.row) { grid-column: 1 / -1; }
.menu-section > .row {
  position: relative; flex-direction: column; align-items: stretch; gap: 8px;
  padding: 10px 10px 14px; margin: 0; border-radius: 18px; height: 100%;
}
.menu-section > .row .thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 14px; background: var(--surface); }
.menu-section > .row .thumb img:not(.ph-logo) { object-fit: contain; }
.menu-section > .row .row-body { padding: 0 4px; padding-right: 40px; display: flex; flex-direction: column; flex: 1; }
.menu-section > .row .row-name { font-size: 14.5px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-section > .row .row-desc { display: none; }
.menu-section > .row .row-price { margin-top: auto; padding-top: 6px; gap: 4px 6px; }
.menu-section > .row .price { color: var(--primary-hover); font-size: 15px; order: 2; }
.menu-section > .row .price-normal { order: 1; font-size: 12px; }
.menu-section > .row .save-badge { order: 3; flex-basis: 100%; width: max-content; max-width: max-content; }
.menu-section > .row .add-btn { position: absolute; right: 10px; bottom: 12px; margin: 0; width: 36px; height: 36px; border-radius: 50%; }
.menu-section > .row .sold-tag { position: absolute; right: 10px; bottom: 12px; margin: 0; }
@media (min-width: 520px) { .menu-section > .row .row-name { font-size: 15px; } }

/* ===== Tyaastore: layar depan (splash) pink polos ===== */
#splash { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: max(40px, env(safe-area-inset-top)) 18px max(26px, env(safe-area-inset-bottom)); background: #FDD9E5; color: #7A4B33; text-align: center;
  transition: opacity .25s ease, transform .25s ease; }
#splash.hidden { display: none; }
#splash.leaving { opacity: 0; transform: translateY(-12px); pointer-events: none; }
body.splash-on { overflow: hidden; }
.sp-top { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 4vh; }
.sp-logo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 30px rgba(196, 107, 137, .28); }
.sp-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .14em;
  background: #fff; color: #B5412F; border: 1.5px solid rgba(181, 65, 47, .25); }
.sp-status.open { color: #2F7A45; border-color: rgba(47, 122, 69, .3); }
.sp-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(0, 0, 0, .06); animation: spBlink 1.2s infinite; }
@keyframes spBlink { 50% { opacity: .35; } }
#splash h2 { font-size: 28px; line-height: 1.15; font-weight: 900; color: #7A4B33; margin: 4px 0 0; }
.sp-sub { font-size: 14.5px; color: #9A6A4F; margin: 0; }
.sp-bottom { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 12px; }
.sp-clock { background: #fff; border-radius: 20px; padding: 14px 12px; box-shadow: 0 8px 24px rgba(196, 107, 137, .18); }
.sp-clock b { display: block; font-size: 38px; line-height: 1.05; font-weight: 900; color: #7A4B33; letter-spacing: .02em; }
.sp-clock span { font-size: 14px; color: #9A6A4F; }
.sp-cta { display: flex; gap: 10px; }
.sp-btn { flex: 1; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 16px; font-size: 15px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; }
.sp-btn svg { width: 20px; height: 20px; flex: 0 0 20px; }
.sp-btn-wa { background: #25D366; color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .35); }
.sp-btn-order { background: #E07A9A; color: #fff; box-shadow: 0 6px 18px rgba(224, 122, 154, .4); }
.sp-btn.hidden { display: none; }
@media (max-height: 640px) { .sp-logo { width: 110px; height: 110px; } #splash h2 { font-size: 23px; } .sp-clock b { font-size: 32px; } }
