/* =====================================================================
   Xentronic Toko — Lapisan "App Shell" + komponen baru (20261025l)
   Membungkus storefront agar terasa seperti aplikasi: header ringkas,
   tab bar bawah, safe-area iOS, kartu & tombol yang nyaman disentuh.
   Juga: tile kategori ala marketplace, kartu alamat checkout, panel pesan.
   Bagian komponen berlaku di semua lebar; app-shell hanya di layar kecil.
   ===================================================================== */

:root {
  --xen-brand: #155bd7;
  --xen-brand-dark: #1045b2;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 60px;
}

/* =====================================================================
   KOMPONEN (semua lebar layar)
   ===================================================================== */

/* =====================================================================
   HEADER ALA TOKOPEDIA (semua lebar; mobile dua baris)
   Logo · kolom pencarian · keranjang · pesan · notifikasi · akun
   ===================================================================== */
body.storefront .store-header.tpk-header {
  display: flex; align-items: center; gap: 22px;
  /* Menyatu dengan latar halaman (bukan blok putih) */
  background: rgba(245, 247, 251, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 242, .7);
}
body.storefront .tpk-header .brand img { width: 200px; height: auto; }

body.storefront .tpk-header .hdr-search {
  flex: 1; display: flex; align-items: center; gap: 8px; max-width: 660px;
  background: #fff; border: 1.5px solid #e2e8f2; border-radius: 12px;
  height: 46px; padding: 0 16px;
}
body.storefront .tpk-header .hdr-search:focus-within { border-color: #5e8fe8; box-shadow: 0 0 0 3px rgba(38,119,249,.08); }
body.storefront .tpk-header .hdr-search > .icon { color: #9aa7bd; flex: none; }
body.storefront .tpk-header .hdr-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; height: 44px;
  font-size: 14px; color: var(--ink); outline: 0;
}

body.storefront .tpk-header .hdr-actions { display: flex; align-items: center; gap: 2px; }
body.storefront .tpk-header .hdr-ic {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 10px; min-width: 62px; border: 0; background: none; cursor: pointer;
  color: #44546f; text-decoration: none; font: inherit; border-radius: 11px;
  -webkit-appearance: none; appearance: none;
}
/* Efek hover semua ikon header (bukan kotak abu-abu) */
body.storefront .tpk-header .hdr-ic:hover { color: var(--xen-brand); background: #eaf1ff; }
body.storefront .tpk-header .hdr-ic:hover .icon { color: var(--xen-brand); }
body.storefront .tpk-header .hdr-ic:active { transform: translateY(1px); }
body.storefront .tpk-header .hdr-notif-btn { width: 100%; }
body.storefront .tpk-header .hdr-ic-wrap { position: relative; display: grid; place-items: center; }
body.storefront .tpk-header .hdr-ic .icon { width: 23px; height: 23px; transition: color .15s; }
body.storefront .tpk-header .hdr-ic em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
body.storefront .tpk-header .hdr-ic .cart-badge {
  position: absolute; top: -6px; right: -9px; min-width: 18px; height: 18px;
  border: 2px solid #fff; font-size: 10px; background: #e23744;
}
body.storefront .tpk-header .hdr-ic .cart-badge[data-zero="1"] { display: none; }
body.storefront .tpk-header .hdr-dot {
  position: absolute; top: -3px; right: -3px; width: 10px; height: 10px;
  background: #e23744; border: 2px solid #fff; border-radius: 50%;
}

/* ---- Flyout preview ikon header (hover di desktop) ---- */
body.storefront .hdr-ic-group { position: relative; }
body.storefront .hdr-flyout {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 300px;
  background: #fff; border: 1px solid #e4ebf5; border-radius: 14px; overflow: hidden;
  box-shadow: 0 22px 54px rgba(16,40,90,.20);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s, transform .16s, visibility .16s; pointer-events: none;
}
/* jembatan tak terlihat agar kursor bisa turun ke flyout tanpa terputus */
body.storefront .hdr-flyout::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
@media (min-width: 821px) {
  body.storefront .hdr-ic-group:hover > .hdr-flyout { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
}
body.storefront .hdr-ic-group.is-open > .hdr-flyout { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

body.storefront .flyout-head { padding: 12px 16px; font-weight: 700; color: var(--ink); border-bottom: 1px solid #eef2f8; font-size: 13px; }
body.storefront .flyout-body { padding: 14px 16px; }
body.storefront .flyout-body p { font-size: 13px; color: #5c6d86; margin: 0 0 12px; }
body.storefront .flyout-body .btn { width: 100%; margin-bottom: 8px; }
body.storefront .flyout-body .btn:last-child { margin-bottom: 0; }
body.storefront .flyout-empty { padding: 24px 16px; text-align: center; color: #8290a6; }
body.storefront .flyout-empty .icon { width: 30px; height: 30px; color: #b3c0d6; }
body.storefront .flyout-empty p { margin: 8px 0 0; font-size: 13px; }
body.storefront .flyout-link { display: flex; align-items: center; gap: 10px; padding: 11px 16px; text-decoration: none; color: #2c3c57; font-size: 13.5px; font-weight: 500; border: 0; background: none; width: 100%; cursor: pointer; text-align: left; font-family: inherit; }
body.storefront .flyout-link:hover { background: #f4f8ff; color: var(--xen-brand); }
body.storefront .flyout-link .icon { width: 19px; height: 19px; color: #8291a8; }
body.storefront .flyout-link:hover .icon { color: var(--xen-brand); }
body.storefront .flyout-logout { border-top: 1px solid #eef2f8; margin: 0; }
/* Keranjang */
body.storefront .flyout-list { max-height: 280px; overflow-y: auto; }
body.storefront .flyout-cart-row { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid #f4f7fb; }
body.storefront .flyout-thumb { width: 44px; height: 44px; border-radius: 9px; background: #eef2f7; display: grid; place-items: center; flex: none; overflow: hidden; }
body.storefront .flyout-thumb img { width: 100%; height: 100%; object-fit: cover; }
body.storefront .flyout-thumb .icon { width: 20px; height: 20px; color: #9aa7bd; }
body.storefront .flyout-cart-info { min-width: 0; }
body.storefront .flyout-cart-info strong { display: block; font-size: 12.5px; color: #26364f; line-height: 1.4; }
body.storefront .flyout-cart-info small { color: #7a899f; font-size: 12px; }
body.storefront .flyout-more { padding: 8px 16px; font-size: 12px; color: #8290a6; }
body.storefront .flyout-foot { padding: 12px 16px; }
body.storefront .flyout-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; color: #5c6d86; }
body.storefront .flyout-subtotal strong { font-size: 15px; color: var(--ink); font-family: 'Orbitron', sans-serif; }
body.storefront .flyout-foot .btn { width: 100%; }
/* Notifikasi (pakai dasar flyout) */
body.storefront .notif-item { display: flex; gap: 10px; align-items: center; padding: 11px 16px; text-decoration: none; color: #27364f; border-bottom: 1px solid #f2f5fa; }
body.storefront .notif-item:last-child { border-bottom: 0; }
body.storefront .notif-item:hover { background: #f7faff; }
body.storefront .notif-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #eef3ff; color: var(--xen-brand); flex: none; }
body.storefront .notif-ic .icon { width: 18px; height: 18px; }
body.storefront .notif-item strong { display: block; font-size: 13px; }
body.storefront .notif-item small { color: #7a899f; font-size: 11.5px; }
body.storefront .notif-empty { padding: 18px 16px; color: #7a899f; font-size: 13px; }
body.storefront .notif-empty a { color: var(--xen-brand); font-weight: 600; }

/* ---- Banner carousel beranda ---- */
body.storefront .banner-carousel {
  position: relative; margin: 4px 0 20px; border-radius: 18px; overflow: hidden;
  background: #e9eef6;
}
body.storefront .banner-track {
  display: flex; scroll-snap-type: x mandatory; overflow-x: auto;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
body.storefront .banner-track::-webkit-scrollbar { display: none; }
body.storefront .banner-slide { flex: 0 0 100%; scroll-snap-align: center; }
body.storefront .banner-slide a { display: block; }
body.storefront .banner-slide img {
  width: 100%; height: 300px; object-fit: cover; display: block;
}
body.storefront .banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: #14233e; display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(16,40,90,.18); transition: background .15s;
}
body.storefront .banner-nav:hover { background: #fff; }
body.storefront .banner-nav.prev { left: 14px; }
body.storefront .banner-nav.next { right: 14px; }
body.storefront .banner-nav .icon { width: 20px; height: 20px; }
body.storefront .banner-dots {
  position: absolute; bottom: 12px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center; gap: 7px;
}
body.storefront .banner-dot {
  width: 8px; height: 8px; border-radius: 10px; border: 0; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.55); transition: width .2s, background .2s;
}
body.storefront .banner-dot.is-active { width: 22px; background: #fff; }

/* ---- Tile kategori ala marketplace (landing toko) ---- */
body.storefront .cat-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 4px 0 8px;
}
body.storefront .cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 12px; text-align: center; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  color: #26364f; transition: transform .18s, box-shadow .18s, border-color .18s;
}
body.storefront .cat-tile:hover {
  transform: translateY(-3px); border-color: #b4caee;
  box-shadow: 0 14px 26px rgba(19, 52, 99, .10);
}
body.storefront .cat-tile .cat-ic {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(135deg, #eaf1ff, #f6f9ff); color: var(--xen-brand);
}
body.storefront .cat-tile .cat-ic .icon { width: 26px; height: 26px; }
body.storefront .cat-tile strong { font-size: 13px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
body.storefront .cat-tile small { font-size: 11px; color: #8290a6; }
body.storefront .cat-tile.all .cat-ic { background: linear-gradient(135deg, #14233e, #24406e); color: #fff; }

/* ---- Kartu alamat pengiriman (checkout ala Tokopedia) ---- */
body.storefront .address-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: #fbfdff; margin-bottom: 4px;
}
body.storefront .address-card .addr-ic { color: var(--xen-brand); flex: none; margin-top: 2px; }
body.storefront .address-card .addr-ic .icon { width: 22px; height: 22px; }
body.storefront .address-card .addr-body { flex: 1; min-width: 0; }
body.storefront .address-card .addr-name { font-weight: 700; color: var(--ink); font-size: 14px; }
body.storefront .address-card .addr-name span { font-weight: 500; color: var(--soft); }
body.storefront .address-card .addr-line { font-size: 13px; color: var(--text); line-height: 1.6; margin-top: 3px; }
body.storefront .address-card .addr-place { font-size: 12px; color: var(--soft); margin-top: 2px; }
body.storefront .address-card .addr-change {
  flex: none; align-self: center; font-size: 12px; font-weight: 650;
  color: var(--xen-brand); background: #eef3ff; border: 0; cursor: pointer;
  padding: 9px 14px; border-radius: 10px; text-decoration: none;
}
body.storefront .address-card .addr-change:hover { background: #e0e9ff; }
body.storefront .address-empty {
  border: 1px dashed #c7d4ea; border-radius: 14px; padding: 18px;
  background: #f7faff; text-align: center; color: var(--soft);
}
body.storefront .address-empty .btn { margin-top: 10px; }
body.storefront .addr-edit-panel { margin-top: 14px; }
body.storefront .addr-edit-panel[hidden] { display: none; }

/* ---- Tombol melayang "Pesan" ---- */
.msg-fab {
  position: fixed; right: 20px; bottom: 24px; z-index: 55;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 18px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #2677f9, #1652d1); color: #fff;
  font: 650 13px/1 Inter, "Segoe UI", sans-serif; border-radius: 30px;
  box-shadow: 0 10px 26px rgba(21, 91, 215, .38);
  transition: transform .18s, box-shadow .18s;
}
.msg-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(21, 91, 215, .45); }
.msg-fab .icon { width: 20px; height: 20px; }

.msg-overlay {
  position: fixed; inset: 0; z-index: 70; background: rgba(12, 24, 45, .42);
  opacity: 0; transition: opacity .25s;
}
.msg-overlay.show { opacity: 1; }

.msg-panel {
  position: fixed; z-index: 75; right: 20px; bottom: 24px;
  width: min(380px, calc(100vw - 32px));
  background: #fff; border: 1px solid #e4ebf5; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(12, 28, 60, .28);
  transform: translateY(20px) scale(.98); opacity: 0;
  transition: transform .26s cubic-bezier(.2,.8,.2,1), opacity .26s;
  overflow: hidden;
}
.msg-panel.show { transform: translateY(0) scale(1); opacity: 1; }
.msg-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; background: linear-gradient(135deg, #1b3a6b, #14233e); color: #fff;
}
.msg-panel-head strong { display: block; font-size: 15px; }
.msg-panel-head small { font-size: 11px; color: #c6d6f0; }
.msg-close { border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.msg-close .icon { width: 18px; height: 18px; }
.msg-form { padding: 16px 18px 18px; }
.msg-field { margin-bottom: 12px; display: flex; flex-direction: column; }
.msg-field label { font: 600 11px/1.5 Inter, "Segoe UI", sans-serif; color: #5c6e88; margin-bottom: 5px; }
.msg-field input, .msg-field textarea {
  border: 1px solid #dce4f0; background: #fafcff; border-radius: 10px;
  padding: 11px 13px; font: inherit; font-size: 13px; color: #14233e; resize: vertical;
}
.msg-field input:focus, .msg-field textarea:focus { border-color: #5e8fe8; background: #fff; outline: 0; box-shadow: 0 0 0 3px rgba(38,119,249,.1); }
.msg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.msg-form .btn { width: 100%; }
.msg-status { font-size: 12px; margin: 2px 0 10px; min-height: 0; }
.msg-status.ok { color: #0a7d55; }
.msg-status.err { color: #c83850; }
.msg-alt { font-size: 12px; color: #7c8aa0; text-align: center; margin-top: 10px; }
.msg-alt a { color: var(--xen-brand); font-weight: 600; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.msg-alt .icon { width: 13px; height: 13px; }
body.msg-open { overflow: hidden; }

/* Badge "ada balasan" pada tombol melayang */
.msg-fab-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  background: #e23744; color: #fff; border: 2px solid #fff; border-radius: 10px;
  font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px;
}

/* ---- Panel chat (dua arah) ---- */
.chat-panel { display: flex; flex-direction: column; height: 540px; max-height: 82vh; }
.chat-body {
  flex: 1; min-height: 0; overflow-y: auto; padding: 16px;
  background: #f3f6fb; display: flex; flex-direction: column; gap: 10px;
}
.chat-bubble {
  max-width: 78%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.5;
  display: flex; flex-direction: column; gap: 4px; word-break: break-word;
}
.chat-bubble .chat-text { white-space: pre-wrap; }
.chat-bubble time { font-size: 10px; opacity: .6; align-self: flex-end; }
.chat-bubble.from-me { align-self: flex-end; background: linear-gradient(135deg, #2677f9, #1b5fda); color: #fff; border-bottom-right-radius: 5px; }
.chat-bubble.from-me time { color: #e7f0ff; }
.chat-bubble.from-admin { align-self: flex-start; background: #fff; color: #1b2a44; border: 1px solid #e4ebf5; border-bottom-left-radius: 5px; }
.chat-img { max-width: 200px; max-height: 200px; border-radius: 10px; display: block; cursor: pointer; }
.chat-empty, .chat-login-note { margin: auto; text-align: center; color: #6b7a92; font-size: 13px; padding: 20px; }
.chat-login-note .icon { width: 34px; height: 34px; color: #9fb2cf; }
.chat-login-note p { margin: 10px 0; }
.chat-login-note .btn { margin: 6px auto; }
.chat-alt { font-size: 12px; }
.chat-alt a, .chat-login-note a { color: var(--xen-brand); font-weight: 600; text-decoration: none; }

.chat-compose { border-top: 1px solid #e7ecf4; padding: 10px 12px; background: #fff; }
.chat-compose-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-attach, .chat-send {
  flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer;
  display: grid; place-items: center;
}
.chat-attach { background: #eef3ff; color: var(--xen-brand); }
.chat-attach:hover { background: #e0e9ff; }
.chat-send { background: linear-gradient(135deg, #2677f9, #1652d1); color: #fff; }
.chat-send:disabled { opacity: .6; cursor: default; }
.chat-attach .icon, .chat-send .icon { width: 20px; height: 20px; }
#chat-input {
  flex: 1; min-width: 0; resize: none; border: 1px solid #dce4f0; border-radius: 12px;
  padding: 10px 12px; font: inherit; font-size: 13.5px; max-height: 96px; line-height: 1.4;
}
#chat-input:focus { outline: 0; border-color: #5e8fe8; box-shadow: 0 0 0 3px rgba(38,119,249,.1); }
.chat-preview { position: relative; display: inline-block; margin-bottom: 8px; }
.chat-preview[hidden], .msg-fab-badge[hidden] { display: none !important; }
.chat-preview img { max-width: 90px; max-height: 90px; border-radius: 10px; border: 1px solid #e4ebf5; }
#chat-preview-del {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 12px;
  background: #e23744; color: #fff; border: 2px solid #fff; cursor: pointer; display: grid; place-items: center;
}
#chat-preview-del .icon { width: 14px; height: 14px; }
.chat-status { font-size: 12px; margin: 6px 2px 0; min-height: 0; }
.chat-status.err { color: #c83850; }

@media (max-width: 820px) {
  .chat-panel { height: 86vh; max-height: 86vh; }
}

@media (max-width: 820px) {
  /* Tinggi panel banner di HP = separuh (sesuai permintaan) */
  body.storefront .banner-slide img { height: 150px; }
  body.storefront .banner-carousel { border-radius: 14px; margin-bottom: 14px; }
  body.storefront .banner-nav { width: 32px; height: 32px; }
  body.storefront .banner-nav.prev { left: 8px; } body.storefront .banner-nav.next { right: 8px; }
  body.storefront .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.storefront .cat-tile { padding: 16px 10px; }
  body.storefront .address-card { flex-wrap: wrap; }
  body.storefront .address-card .addr-change { align-self: stretch; width: 100%; text-align: center; margin-top: 4px; }
  /* FAB di atas tab bar; mengecil jadi ikon bulat */
  .msg-fab { right: 16px; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 14px); padding: 13px; border-radius: 50%; }
  .msg-fab span { display: none; }
  .msg-panel {
    right: 0; left: 0; bottom: 0; width: 100%;
    border-radius: 20px 20px 0 0; max-height: 88vh; overflow-y: auto;
    padding-bottom: var(--safe-bottom);
    transform: translateY(100%);
  }
  .msg-panel.show { transform: translateY(0); }
}

/* Tab bar & install bar disembunyikan secara default (tampil di mobile). */
.app-tabbar { display: none; }
.app-install-bar { display: none; }
body.storefront .store-header .app-back,
body.storefront .store-header .app-title,
body.storefront .store-header .app-actions { display: none; }

/* Mode standalone (sudah dipasang sebagai aplikasi): tegaskan nuansa app. */
@media (display-mode: standalone) {
  body.storefront .store-announcement { display: none; }
}

/* =====================================================================
   PONSEL & TABLET KECIL  (≤ 820px) — tampilan aplikasi
   ===================================================================== */
@media (max-width: 820px) {

  html:has(body.storefront) { scroll-padding-top: 76px; }

  body.storefront {
    padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
  }
  body.storefront .wrap { width: 100%; padding: 0 16px; }

  /* Pengumuman atas: tipis & tidak mengganggu */
  body.storefront .store-announcement {
    padding: calc(var(--safe-top) + 6px) 16px 6px;
    margin: 0 -16px 0;
    background: #f0f4fb;
    min-height: 0; font-size: 10.5px;
  }

  /* ---- APP BAR (header lengket ala aplikasi) ---- */
  body.storefront .store-header {
    position: sticky;
    top: 0; z-index: 50;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: auto;
    margin: 0 -16px 14px;
    padding: 10px 14px;
    padding-top: calc(var(--safe-top) + 10px);
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #e8edf5;
    box-shadow: 0 1px 10px rgba(16,40,90,.04);
  }
  /* Sembunyikan navigasi pill lama di dalam header pada mobile (diganti tab bar) */
  body.storefront .store-header .store-nav { display: none; }

  body.storefront .store-header .brand { justify-self: start; }
  body.storefront .store-header .brand img { width: 150px; }

  /* Tombol back + judul halaman (muncul di halaman selain katalog) */
  body.storefront .store-header .app-back {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px; border-radius: 12px;
    color: var(--xen-brand); background: #eef3ff;
    justify-self: start;
  }
  body.storefront .store-header .app-back .icon { width: 20px; height: 20px; }
  body.storefront .store-header .app-title {
    display: block;
    font-weight: 750; font-size: 16px; color: #14233e;
    letter-spacing: -.02em;
    justify-self: start; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  /* Saat ada judul halaman, sembunyikan logo besar demi ruang */
  body.storefront .store-header.has-app-title .brand { display: none; }
  body.storefront .store-header.has-app-title { grid-template-columns: auto 1fr auto; }

  /* Aksi kanan: cari + keranjang */
  body.storefront .store-header .app-actions {
    display: inline-flex; gap: 6px; align-items: center; justify-self: end;
  }
  body.storefront .app-icon-btn {
    position: relative;
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; border-radius: 12px;
    color: #27364f; background: #f1f4f9;
  }
  body.storefront .app-icon-btn:active { background: #e3e9f3; }
  body.storefront .app-icon-btn .icon { width: 21px; height: 21px; }
  body.storefront .app-icon-btn .cart-badge {
    position: absolute; top: 2px; right: 2px;
    min-width: 17px; height: 17px; font-size: 9px; padding: 0 4px;
    border: 2px solid #fff;
  }
  body.storefront .app-icon-btn .cart-badge[data-zero="1"] { display: none; }

  /* ---- Header Tokopedia-style di HP: 2 baris (logo+ikon, lalu pencarian) ---- */
  body.storefront .store-header.tpk-header {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px;
    grid-template-columns: none;
  }
  body.storefront .tpk-header .brand { order: 1; margin-right: auto; }
  body.storefront .tpk-header .brand img { width: 152px; }
  body.storefront .tpk-header .hdr-actions { order: 2; gap: 0; }
  body.storefront .tpk-header .hdr-search { order: 3; flex-basis: 100%; max-width: none; height: 42px; }
  body.storefront .tpk-header .hdr-ic { min-width: 0; padding: 7px; gap: 0; }
  body.storefront .tpk-header .hdr-ic em { display: none; }       /* label disembunyikan di HP */
  body.storefront .tpk-header .hdr-account { display: none; }     /* akun sudah ada di tab bar bawah */
  body.storefront .tpk-header .hdr-ic .icon { width: 24px; height: 24px; }
  /* Flyout preview hanya untuk notifikasi di HP (lainnya ikuti tap langsung) */
  body.storefront .hdr-ic-group:not(.hdr-notif-wrap) > .hdr-flyout { display: none; }
  body.storefront .tpk-header .notif-pop { position: fixed; top: calc(var(--safe-top) + 120px); left: 12px; right: 12px; width: auto; }
  /* Halaman detail/akun: tampilkan back + judul, sembunyikan logo & pencarian */
  body.storefront .store-header.tpk-header.has-app-title .brand,
  body.storefront .store-header.tpk-header.has-app-title .hdr-search { display: none; }
  body.storefront .store-header.tpk-header.has-app-title .app-title { order: 1; margin-right: auto; }
  body.storefront .store-header.tpk-header.has-app-title .app-back { order: 0; }

  /* ---- Kartu seksi lebih lembut & "mobile card" ---- */
  body.storefront .hero,
  body.storefront .sec {
    padding: 20px 16px;
    border-radius: 18px;
    margin-bottom: 14px; margin-top: 0;
  }
  body.storefront .sec { margin-top: 14px; }
  body.storefront h1 { font-size: clamp(24px, 7vw, 30px); }
  body.storefront h2 { font-size: 19px; }

  /* ---- Katalog: 2 kolom nyaman ---- */
  body.storefront .prods { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  body.storefront .prod { border-radius: 16px; }
  body.storefront .prod .body { padding: 12px; }
  body.storefront .prod h3 { font-size: 12.5px; min-height: 36px; }
  body.storefront .prod-price { font-size: 15px; }

  /* Satu kolom di layar sangat sempit */
  @media (max-width: 380px) {
    body.storefront .prods { grid-template-columns: 1fr; }
  }

  /* ---- Toolbar pencarian: sticky tipis, mudah dijangkau ---- */
  body.storefront .shop-toolbar {
    position: sticky; top: calc(var(--safe-top) + 62px); z-index: 20;
    grid-template-columns: 1fr auto; gap: 8px; padding: 8px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(16,40,90,.05);
  }
  body.storefront .shop-toolbar select { min-height: 44px; }

  /* ---- Chips kategori: scroll horizontal dengan "snap" ---- */
  body.storefront .chips {
    display: flex; flex-wrap: nowrap; overflow-x: auto;
    gap: 8px; margin: 0 -16px 14px; padding: 2px 16px 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  body.storefront .chips::-webkit-scrollbar { display: none; }
  body.storefront .chip { scroll-snap-align: start; padding: 9px 14px; font-size: 11px; }

  /* ---- Tombol: target sentuh nyaman ---- */
  body.storefront .btn { min-height: 46px; border-radius: 13px; font-size: 13px; }
  body.storefront .prod .acts { grid-template-columns: 1fr; }
  body.storefront .prod .acts .btn { min-height: 40px; }

  /* ---- Keranjang: ubah tabel jadi kartu per-item (tanpa scroll horizontal) ---- */
  body.storefront .cart-table-wrap { overflow: visible; }
  body.storefront .cart-table { min-width: 0; width: 100%; border-collapse: collapse; }
  body.storefront .cart-table thead { display: none; }
  body.storefront .cart-table tbody tr {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "prod prod" "sku sku" "harga qty" "berat sub" "hapus hapus";
    gap: 6px 12px;
    padding: 14px; margin-bottom: 12px;
    border: 1px solid var(--line); border-radius: 14px; background: #fff;
  }
  body.storefront .cart-table td { border: 0 !important; padding: 0; font-size: 13px; }
  body.storefront .cart-table td:nth-child(1) { grid-area: prod; }
  body.storefront .cart-table td:nth-child(2) { grid-area: sku; }
  body.storefront .cart-table td:nth-child(3) { grid-area: harga; }
  body.storefront .cart-table td:nth-child(4) { grid-area: berat; color: var(--soft); }
  body.storefront .cart-table td:nth-child(5) { grid-area: qty; justify-self: end; }
  body.storefront .cart-table td:nth-child(6) { grid-area: sub; justify-self: end; }
  body.storefront .cart-table td:nth-child(7) { grid-area: hapus; justify-self: start; }
  body.storefront .cart-table td:nth-child(3)::before { content: "Harga: "; color: var(--soft); }
  body.storefront .cart-table td:nth-child(5)::before { content: "Jumlah "; color: var(--soft); font-size: 11px; }
  body.storefront .cart-table .qty-input { width: 70px; }

  /* ---- Checkout: ringkasan jadi "sticky action" di bawah ---- */
  body.storefront .courier-option { padding: 14px; border-radius: 13px; }

  /* ---- Steps belanja ringkas ---- */
  body.storefront .store-steps { margin: 4px 0 14px; gap: 6px; font-size: 11px; }

  /* ---- Footer: beri ruang agar tak tertutup tab bar ---- */
  body.storefront .store-footer {
    grid-template-columns: 1fr 1fr; gap: 24px 18px;
    margin-top: 28px; padding-top: 26px;
  }

  /* ---- Toast di atas tab bar ---- */
  body.storefront .xen-toast {
    left: 16px; right: 16px; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 14px);
    text-align: center; border-radius: 12px;
  }

  /* =================================================================
     TAB BAR BAWAH — inti nuansa aplikasi
     ================================================================= */
  .app-tabbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 6px calc(6px + var(--safe-bottom));
    background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-top: 1px solid #e7ecf4;
    box-shadow: 0 -2px 16px rgba(16,40,90,.06);
  }
  .app-tab {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 6px 2px;
    color: #7c8ba3; text-decoration: none;
    font-size: 10.5px; font-weight: 600; letter-spacing: -.01em;
    border-radius: 12px;
    transition: color .15s;
  }
  .app-tab-icon { position: relative; display: grid; place-items: center; }
  .app-tab-icon .icon { width: 23px; height: 23px; }
  .app-tab .cart-badge {
    position: absolute; top: -5px; right: -9px;
    min-width: 16px; height: 16px; font-size: 9px; padding: 0 4px;
    border: 2px solid #fff;
  }
  .app-tab .cart-badge[data-zero="1"] { display: none; }
  .app-tab.is-current { color: var(--xen-brand); }
  .app-tab.is-current .app-tab-icon::after {
    content: ""; position: absolute; inset: -7px -10px;
    background: #eaf1ff; border-radius: 12px; z-index: -1;
  }
  .app-tab:active { color: var(--xen-brand-dark); }

  /* =================================================================
     BANNER "PASANG APLIKASI"
     ================================================================= */
  .app-install-bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 12px; right: 12px;
    bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
    z-index: 65;
    padding: 12px 14px;
    background: #fff; border: 1px solid #e2e9f4; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16,40,90,.16);
    transform: translateY(140%); opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
  }
  .app-install-bar.show { transform: translateY(0); opacity: 1; }
  .app-install-bar img { border-radius: 10px; flex: none; }
  .app-install-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .app-install-text strong { font-size: 13px; color: #14233e; }
  .app-install-text small { font-size: 11px; color: #67758c; }
  .app-install-yes {
    flex: none; border: 0; cursor: pointer;
    background: linear-gradient(135deg, #2677f9, #1652d1); color: #fff;
    font-weight: 650; font-size: 12.5px; padding: 10px 16px; border-radius: 11px;
  }
  .app-install-no {
    flex: none; border: 0; cursor: pointer; background: transparent;
    color: #94a0b2; font-size: 22px; line-height: 1; width: 30px; height: 30px;
  }
}

/* Tablet besar / desktop: pastikan tab bar & banner tidak pernah muncul. */
@media (min-width: 821px) {
  .app-tabbar, .app-install-bar { display: none !important; }
}

/* Hormati preferensi gerak minimal. */
@media (prefers-reduced-motion: reduce) {
  .app-install-bar { transition: none; }
}

/* ===== Wishlist, flyout tambahan, & tab pengaturan (20261026) ===== */
/* Jembatan hover lebih lebar supaya isi flyout mudah diklik tanpa terputus. */
body.storefront .hdr-flyout::before { top: -12px; height: 14px; }

/* Badge angka pada link flyout (mis. jumlah wishlist) */
body.storefront .flyout-badge { margin-left: auto; background: var(--xen-brand, #155bd7); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
body.storefront .flyout-badge[hidden] { display: none; }

/* Notifikasi: baris kategori status + jumlah */
body.storefront .notif-txt { flex: 1; min-width: 0; }
body.storefront .notif-count { background: #eef3ff; color: var(--xen-brand, #155bd7); font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; flex: none; }
body.storefront .flyout-foot-link { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 12.5px; font-weight: 600; color: var(--xen-brand, #155bd7); text-decoration: none; border-top: 1px solid #eef2f8; background: #fbfdff; }
body.storefront .flyout-foot-link:hover { background: #f2f7ff; }
body.storefront .flyout-foot-link .icon { width: 17px; height: 17px; }

/* Tombol hati wishlist pada kartu produk */
body.storefront .prod-wish { position: absolute; top: 10px; right: 10px; z-index: 3; }
body.storefront .wish-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #e4ebf5; background: #ffffffe8; color: #8294ad; display: grid; place-items: center; cursor: pointer; transition: color .15s, transform .12s, box-shadow .15s; box-shadow: 0 3px 10px rgba(20,50,100,.12); }
body.storefront .wish-btn:hover { color: #e4556e; transform: scale(1.08); }
body.storefront .wish-btn .icon { width: 20px; height: 20px; fill: none; transition: fill .15s; }
body.storefront .wish-btn.is-active { color: #e4556e; }
body.storefront .wish-btn.is-active .icon { fill: #e4556e; }
body.storefront .wish-inline.is-active { border-color: #f0b8c2; color: #e4556e; }
body.storefront .wish-inline.is-active .icon { fill: #e4556e; }

/* Tab pengaturan / filter riwayat */
body.storefront .settings-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; border-bottom: 1px solid #e6edf6; padding-bottom: 2px; }
body.storefront .settings-tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; font-size: 13px; font-weight: 600; color: #5c6d86; text-decoration: none; border-radius: 10px 10px 0 0; border: 1px solid transparent; border-bottom: 2px solid transparent; }
body.storefront .settings-tab .icon { width: 17px; height: 17px; }
body.storefront .settings-tab:hover { background: #f4f8ff; color: var(--xen-brand, #155bd7); }
body.storefront .settings-tab.is-active { color: var(--xen-brand, #155bd7); border-bottom-color: var(--xen-brand, #155bd7); background: #f4f8ff; }
body.storefront .settings-panel h2 { font-size: 18px; margin-bottom: 4px; }
body.storefront .settings-panel .card { border: 1px solid #e6edf6; border-radius: 14px; padding: 18px; background: #fbfdff; }
body.storefront .settings-panel .card h3 { font-size: 14px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }

/* === Perbaikan klik preview: hilangkan celah-mati ikon→flyout (20261026b) ===
   overflow:hidden pada .hdr-flyout memotong jembatan ::before, sehingga ada
   celah kosong tempat kursor "jatuh" dan flyout menutup sebelum link terklik.
   Solusi: flyout menempel ke ikon (top:100%) + border atas transparan sebagai
   jarak visual (border tidak ikut terpotong overflow). Jembatan grup sebagai
   cadangan bila ikon/flyout beda lebar. */
body.storefront .hdr-flyout { top: 100%; border-top: 10px solid transparent; background-clip: padding-box; }
body.storefront .hdr-flyout::before { display: none; }
/* Buka/tutup preview dikelola JS hover-intent (js/store-app.js) dengan jeda tutup,
   jadi sapuan antar-ikon tidak menumpuk & isi preview sempat diklik. CSS :hover
   tetap sebagai fallback bila JS mati. */

/* === Ikon mata lihat kata sandi (20261026c) === */
body.storefront .pw-field { position: relative; display: flex; align-items: center; }
body.storefront .pw-field input { flex: 1; width: 100%; padding-right: 46px; }
body.storefront .pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: #8294ad; display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
body.storefront .pw-toggle:hover { color: var(--xen-brand, #155bd7); background: #f0f5ff; }
body.storefront .pw-toggle .icon { width: 19px; height: 19px; }
body.storefront .pw-ic-hide { display: none; }
body.storefront .pw-toggle.is-shown .pw-ic-show { display: none; }
body.storefront .pw-toggle.is-shown .pw-ic-hide { display: inline-flex; }

/* === Foto profil + daftar alamat (20261026c) === */
body.storefront .biodata-photo { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
body.storefront .avatar-wrap { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: #eef3fb; display: grid; place-items: center; flex: none; border: 1px solid #e4ebf5; }
body.storefront .avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
body.storefront .avatar-ph .icon { width: 40px; height: 40px; color: #aab8cc; }
body.storefront .avatar-body { flex: 1; min-width: 220px; }
body.storefront .avatar-body h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 4px; }
body.storefront .avatar-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
body.storefront .avatar-form input[type=file] { font-size: 12px; max-width: 100%; }

body.storefront .addr-list { display: grid; gap: 10px; margin-bottom: 4px; }
body.storefront .addr-item { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #dde5f1; background: #fff; border-radius: 13px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
body.storefront .addr-item:hover { border-color: #b9ccec; background: #fafcff; }
body.storefront .addr-item.is-primary { border-color: #5d8ceb; background: #f3f7ff; }
body.storefront .addr-item > input[type=radio] { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: #155bd7; }
body.storefront .addr-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
body.storefront .addr-item-head { font-weight: 700; color: var(--ink); font-size: 14px; }
body.storefront .addr-item-phone { font-weight: 500; color: #7a899f; }
body.storefront .addr-item-label { font-weight: 600; font-size: 11px; color: #4a6cb0; background: #e8f0ff; padding: 1px 7px; border-radius: 6px; margin-left: 2px; }
body.storefront .addr-badge-utama { font-size: 11px; font-weight: 700; color: #fff; background: #155bd7; padding: 1px 8px; border-radius: 6px; margin-left: 4px; }
body.storefront .addr-item-line { font-size: 13px; color: var(--text); line-height: 1.55; }
body.storefront .addr-item-place { font-size: 12px; color: #7a899f; }
body.storefront .addr-item-acts { flex: none; }
body.storefront .addr-mini { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--xen-brand,#155bd7); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
body.storefront .addr-mini:hover { background: #e9f1ff; }
body.storefront .addr-mini .icon { width: 15px; height: 15px; }
body.storefront .addr-del { font-size: 12px !important; padding: 8px 12px; }

/* === Area klik preview per-kotak & target lebih besar (20261026e) === */
body.storefront .flyout-link { min-height: 46px; padding: 13px 16px; font-size: 14px; }
body.storefront .flyout-link:hover { background: #eef4ff; }
body.storefront .notif-item { min-height: 54px; }
body.storefront .notif-item:hover { background: #eef4ff; }
/* Seluruh baris (bukan hanya teks) jadi target klik. */
body.storefront .account-flyout .flyout-link,
body.storefront .notif-pop .notif-item,
body.storefront .flyout-foot-link { cursor: pointer; }

/* === Preview header: JS zona-deteksi jadi pengendali tunggal (20261026f) ===
   Bila JS aktif (html.hdr-js), CSS :hover tidak lagi membuka/menutup preview —
   hanya kelas .is-open dari JS. Mencegah dua mekanisme saling bentrok. */
@media (min-width: 821px) {
  html.hdr-js body.storefront .hdr-ic-group:not(.is-open):hover > .hdr-flyout {
    opacity: 0; visibility: hidden; transform: translateY(6px); pointer-events: none;
  }
}

/* === PERBAIKAN UTAMA: panel chat tersembunyi menutupi preview (20261026f) ===
   .msg-panel punya atribut [hidden] tetapi display:flex menimpanya, sehingga panel
   tak terlihat (opacity 0) tetap menutupi pojok kanan-bawah layar (z-index 75) —
   menghalangi kursor & klik pada bagian bawah preview header dan konten halaman. */
.msg-panel[hidden], .msg-overlay[hidden] { display: none !important; }
.msg-panel:not(.show) { pointer-events: none; }

/* === Baris preview Keranjang & Pesan juga bisa diklik penuh (20261026g) === */
body.storefront a.flyout-cart-row { text-decoration: none; color: inherit; cursor: pointer; }
body.storefront a.flyout-cart-row:hover { background: #eef4ff; }
body.storefront .flyout-link-tall { align-items: flex-start; min-height: 64px; }
body.storefront .flyout-link-tall > span { display: flex; flex-direction: column; gap: 2px; text-align: left; }
body.storefront .flyout-link-tall strong { font-size: 14px; color: var(--ink); }
body.storefront .flyout-link-tall small { font-size: 12px; color: #7a899f; font-weight: 400; }
body.storefront .flyout-link-tall .icon { margin-top: 2px; }

/* ==========================================================================
   20261030 — Rapikan tampilan toko + komponen fitur baru
   ========================================================================== */
body.storefront .page-hero { padding: 26px 30px; }
body.storefront .page-hero h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
body.storefront .note-err { background: #fff1f3; color: #92263c; border-color: #f4c6ce; border-left-color: #d23a55; }
body.storefront .note-ok { background: #eefaf4; color: #12603f; border-color: #c7ebd9; border-left-color: #17845a; }
body.storefront .note .icon { width: 16px; height: 16px; vertical-align: -3px; }
body.storefront .sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
body.storefront .sec-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 18px; }
body.storefront .step-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #edf3ff; color: #155bd7; font-size: 13px; font-weight: 750; letter-spacing: 0; }
body.storefront .link-sm { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #155bd7; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
body.storefront .link-sm:hover { text-decoration: underline; }
body.storefront .link-sm .icon { width: 15px; height: 15px; }
body.storefront .muted-sm { font-size: 12.5px; color: #7a899f; }
body.storefront .btn-sm { padding: 8px 12px !important; font-size: 12.5px !important; min-height: 36px; }
body.storefront .price-strong { color: #155bd7; font-weight: 750; letter-spacing: -.02em; }
body.storefront .total-dd { font-size: 20px; }
body.storefront .resi-strong { color: #155bd7; font-size: 14px; }
body.storefront .panel-title { font-size: 16px; margin: 4px 0 14px; }
body.storefront .tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #e3ecff; color: #155bd7; font-size: 11px; font-weight: 700; margin-left: 2px; }
body.storefront .scroll-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
body.storefront .scroll-tabs::-webkit-scrollbar { display: none; }
body.storefront .scroll-tabs .settings-tab { white-space: nowrap; flex: none; }

/* Status pil */
body.storefront .status-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: #edf3ff; color: #155bd7; }
body.storefront .status-pill.is-ok { background: #e6f6ee; color: #12754d; }
body.storefront .status-pill.is-warn { background: #fff3e4; color: #b4600f; }
body.storefront .status-pill.is-err { background: #fdecef; color: #b62f48; }

/* Area akun: menu samping + konten */
body.storefront .acct-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 8px; }
body.storefront .acct-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
body.storefront .acct-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
body.storefront .acct-avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #2677f9, #155bd7); color: #fff; font-size: 20px; font-weight: 750; }
body.storefront .acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
body.storefront .acct-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.storefront .acct-who strong { color: var(--ink); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.storefront .acct-who small { color: #7a899f; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.storefront .acct-unverified { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 650; color: #b62f48; }
body.storefront .acct-unverified .icon { width: 13px; height: 13px; }
body.storefront .acct-nav { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
body.storefront .acct-nav a, body.storefront .acct-logout button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; color: #3b4c66; font-size: 14px; font-weight: 550; text-decoration: none; background: none; border: 0; width: 100%; cursor: pointer; font-family: inherit; text-align: left; }
body.storefront .acct-nav .icon { width: 19px; height: 19px; color: #8495ae; }
body.storefront .acct-nav a:hover, body.storefront .acct-logout button:hover { background: #f2f6fd; color: #155bd7; }
body.storefront .acct-nav a.is-active { background: #edf3ff; color: #155bd7; font-weight: 650; }
body.storefront .acct-nav a.is-active .icon, body.storefront .acct-nav a:hover .icon { color: #155bd7; }
body.storefront .acct-logout { margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 4px; }
body.storefront .acct-main { min-width: 0; }
body.storefront .acct-main > .note:first-child { margin-top: 0; }
body.storefront .acct-panel { margin-top: 0; }
body.storefront .acct-main .acct-panel + .sec, body.storefront .acct-main .sec + .sec { margin-top: 18px; }
body.storefront .otp-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
body.storefront .otp-row .hud-field { margin-bottom: 0; max-width: 220px; }
body.storefront .wish-grid-wrap .prods { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Kartu pesanan (riwayat pembelian) */
body.storefront .order-list { display: flex; flex-direction: column; gap: 12px; }
body.storefront .order-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
body.storefront .order-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid #eef2f8; font-size: 13px; }
body.storefront .order-date { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--ink); }
body.storefront .order-date .icon { width: 16px; height: 16px; color: #155bd7; }
body.storefront .order-code { margin-left: auto; color: #7a899f; font-size: 12.5px; }
body.storefront .order-card-body { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
body.storefront .order-thumb { width: 60px; height: 60px; border-radius: 10px; background: #eef2f7; display: grid; place-items: center; overflow: hidden; flex: none; }
body.storefront .order-thumb img { width: 100%; height: 100%; object-fit: cover; }
body.storefront .order-thumb .icon { width: 26px; height: 26px; color: #9aa7bd; }
body.storefront .order-items { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.storefront .order-items strong { color: var(--ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.storefront .order-items small { color: #7a899f; font-size: 12.5px; }
body.storefront .order-more { color: #155bd7 !important; }
body.storefront .order-total { text-align: right; display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 1px solid #eef2f8; }
body.storefront .order-total small { color: #7a899f; font-size: 12px; }
body.storefront .order-total strong { color: var(--ink); font-size: 15px; }
body.storefront .order-disc { color: #12754d !important; }
body.storefront .order-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 16px 14px; }
body.storefront .order-ship { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5c6d86; }
body.storefront .order-ship .icon { width: 15px; height: 15px; }
body.storefront .order-acts { display: flex; gap: 8px; flex-wrap: wrap; }
body.storefront .refund-card { margin-top: 14px; }
body.storefront .refund-card summary { color: #155bd7; cursor: pointer; font-weight: 600; }
body.storefront .refund-card label { display: block; margin: 12px 0; }
body.storefront .refund-card input:not([type=checkbox]), body.storefront .refund-card textarea { width: 100%; box-sizing: border-box; }

/* Daftar alamat: tombol hapus di dalam kartu */
body.storefront .addr-item-acts { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
body.storefront button.addr-mini { background: none; border: 0; cursor: pointer; font-family: inherit; }
body.storefront .addr-mini-del { color: #b62f48 !important; }
body.storefront .addr-mini-del:hover { background: #fdecef !important; }
body.storefront .addr-list-compact .addr-item { padding: 12px 14px; }

/* Checkout: voucher & ringkasan */
body.storefront .ship-status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
body.storefront .ship-status-row p { margin: 0 !important; }
body.storefront .courier-option > .icon { color: #8aa2c6; flex: none; margin-left: auto; }
body.storefront .voucher-box { border: 1px dashed #b9ccec; background: #f7faff; border-radius: 13px; padding: 14px; margin-bottom: 16px; }
body.storefront .voucher-box > label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ink); margin-bottom: 8px; }
body.storefront .voucher-box > label .icon { width: 16px; height: 16px; color: #155bd7; }
body.storefront .voucher-row { display: flex; gap: 8px; }
body.storefront .voucher-row input { flex: 1; min-width: 0; border: 1px solid #d9e2ef; border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 13px; text-transform: uppercase; background: #fff; color: var(--ink); }
body.storefront .voucher-row input:focus { outline: 0; border-color: #5e8fe8; box-shadow: 0 0 0 3px rgba(38,119,249,.12); }
body.storefront .voucher-msg { font-size: 12px !important; margin: 8px 0 0 !important; min-height: 0; }
body.storefront .voucher-msg:empty { display: none; }
body.storefront .voucher-msg.is-ok { color: #12754d; font-weight: 600; }
body.storefront .voucher-msg.is-err { color: #b62f48; }
body.storefront .voucher-chips { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
body.storefront .voucher-chip { display: flex; flex-direction: column; gap: 1px; text-align: left; border: 1px solid #d9e2ef; background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; font-family: inherit; }
body.storefront .voucher-chip:hover { border-color: #5d8ceb; background: #f3f7ff; }
body.storefront .voucher-chip strong { font-size: 12.5px; color: #155bd7; letter-spacing: .02em; }
body.storefront .voucher-chip small { font-size: 11.5px; color: #5c6d86; }
body.storefront .disc-val { color: #12754d !important; font-weight: 650; }
body.storefront .disc-row[hidden] { display: none !important; }
body.storefront .order-summary #summary-total { color: #155bd7; font-weight: 800; }
body.storefront .order-summary .actions .btn[type=submit] { min-height: 48px; }

/* Breadcrumb */
body.storefront .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: #7a899f; margin: 4px 0 12px; }
body.storefront .crumbs a { color: #155bd7; text-decoration: none; }
body.storefront .crumbs a:hover { text-decoration: underline; }
body.storefront .crumbs [aria-current] { color: #5c6d86; }

/* Detail produk */
body.storefront .pd-main { margin-top: 0; }
body.storefront .pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px; align-items: start; }
body.storefront .pd-photo { aspect-ratio: 1; border-radius: 16px; background: #f0f4fa; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
body.storefront .pd-photo img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
body.storefront .pd-mono { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #4c6d97; font-weight: 700; letter-spacing: .06em; text-align: center; font-size: 22px; }
body.storefront .pd-mono .icon { width: 64px; height: 64px; color: #7297c4; }
body.storefront .pd-mono small { font-size: 15px; letter-spacing: .14em; }
body.storefront .pd-gallery .detail-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
body.storefront .pd-gallery .detail-thumbs button { width: 64px; height: 64px; flex: none; padding: 0; cursor: pointer; }
body.storefront .pd-gallery .detail-thumbs img { width: 100%; height: 100%; object-fit: cover; }
body.storefront .pd-cat { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #155bd7; }
body.storefront .pd-title { font-size: clamp(22px, 2.6vw, 30px); margin: 6px 0 10px; }
body.storefront .pd-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #5c6d86; margin-bottom: 14px; }
body.storefront .pd-rating { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); text-decoration: none; }
body.storefront .pd-rating span:last-child { color: #7a899f; }
body.storefront .pd-rating.is-empty { color: #7a899f; }
body.storefront .pd-rating .icon { width: 15px; height: 15px; }
body.storefront .stars { color: #f2a417; letter-spacing: 1px; }
body.storefront .stars.big { font-size: 20px; }
body.storefront .pd-price { font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin-bottom: 8px; }
body.storefront .pd-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: #12754d; background: #e6f6ee; padding: 5px 11px; border-radius: 999px; }
body.storefront .pd-stock.is-out { color: #b4600f; background: #fff3e4; }
body.storefront .pd-stock .icon { width: 15px; height: 15px; }
body.storefront .pd-lead { margin: 14px 0 6px; }
body.storefront .pd-buy { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin: 18px 0 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fafcff; }
body.storefront .qty-box label { display: block; font-size: 12px; font-weight: 600; color: #5c6d86; margin-bottom: 6px; }
body.storefront .qty-ctrl { display: inline-flex; align-items: center; border: 1px solid #d9e2ef; border-radius: 10px; background: #fff; overflow: hidden; }
body.storefront .qty-ctrl button { width: 38px; height: 42px; border: 0; background: none; font-size: 18px; color: #155bd7; cursor: pointer; }
body.storefront .qty-ctrl button:hover { background: #f2f6fd; }
body.storefront .qty-ctrl input { width: 54px; height: 42px; border: 0; text-align: center; font: inherit; font-weight: 650; color: var(--ink); -moz-appearance: textfield; }
body.storefront .qty-ctrl input::-webkit-outer-spin-button, body.storefront .qty-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.storefront .pd-buy-btns { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
body.storefront .pd-buy-btns .btn { flex: 1; min-width: 150px; min-height: 44px; }
body.storefront .pd-links { display: flex; gap: 6px 18px; flex-wrap: wrap; margin: 14px 0; }
body.storefront .link-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #3b4c66; background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: none; font-family: inherit; }
body.storefront .link-btn .icon { width: 17px; height: 17px; }
body.storefront .link-btn:hover { color: #155bd7; }
body.storefront .link-btn.wish-inline.is-active { color: #e4556e; }
body.storefront .link-btn.wish-inline.is-active .icon { fill: #e4556e; }
body.storefront .pd-perks { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #5c6d86; }
body.storefront .pd-perks li { display: flex; align-items: center; gap: 8px; }
body.storefront .pd-perks .icon { width: 17px; height: 17px; color: #155bd7; flex: none; }
body.storefront .pd-sections { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
body.storefront .pd-sections > .sec { margin-top: 20px; }
body.storefront .pd-section h2 { font-size: 18px; }
body.storefront .pd-desc { color: var(--text); line-height: 1.8; font-size: 14px; }

/* Ulasan */
body.storefront .rv-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; }
body.storefront .rv-summary { border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; position: sticky; top: 96px; }
body.storefront .rv-avg strong { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
body.storefront .rv-avg span { color: #7a899f; font-size: 15px; }
body.storefront .rv-summary small { color: #7a899f; font-size: 12.5px; margin-bottom: 10px; }
body.storefront .rv-bars { width: 100%; display: flex; flex-direction: column; gap: 6px; }
body.storefront .rv-bar { display: grid; grid-template-columns: 34px 1fr 26px; gap: 8px; align-items: center; font-size: 12px; color: #5c6d86; }
body.storefront .rv-bar .track { height: 7px; border-radius: 4px; background: #eef2f8; overflow: hidden; }
body.storefront .rv-bar .track span { display: block; height: 100%; background: #f2a417; border-radius: 4px; }
body.storefront .rv-form { border: 1px solid #d9e6f9; background: #f7faff; border-radius: 14px; padding: 16px; margin-bottom: 18px; }
body.storefront .rv-form h3 { font-size: 15px; margin-bottom: 8px; }
body.storefront .star-input { border: 0; padding: 0; margin: 0 0 12px; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
body.storefront .star-input legend { font-size: 12px; font-weight: 600; color: #5c6d86; margin-bottom: 4px; width: 100%; }
body.storefront .star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
body.storefront .star-input label { font-size: 30px; line-height: 1; color: #d5dcea; cursor: pointer; padding: 0 2px; transition: color .1s; }
body.storefront .star-input input:checked ~ label, body.storefront .star-input label:hover, body.storefront .star-input label:hover ~ label { color: #f2a417; }
body.storefront .star-input input:focus-visible + label { outline: 2px solid #5e8fe8; border-radius: 4px; }
body.storefront .rv-hint { display: flex; align-items: center; gap: 6px; margin-bottom: 14px !important; }
body.storefront .rv-hint .icon { width: 16px; height: 16px; color: #f2a417; }
body.storefront .rv-empty { color: #7a899f; }
body.storefront .rv-item { padding: 16px 0; border-bottom: 1px solid #eef2f8; }
body.storefront .rv-item:last-child { border-bottom: 0; }
body.storefront .rv-item header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
body.storefront .rv-item header > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
body.storefront .rv-item header strong { font-size: 13.5px; color: var(--ink); }
body.storefront .rv-item header small { font-size: 12px; color: #7a899f; }
body.storefront .rv-avatar { width: 34px; height: 34px; border-radius: 50%; background: #edf3ff; color: #155bd7; display: grid; place-items: center; font-weight: 750; flex: none; }
body.storefront .rv-item p { margin: 0; color: var(--text); font-size: 14px; }
body.storefront .rv-reply { margin-top: 10px; background: #f6f9ff; border-left: 3px solid #155bd7; border-radius: 0 10px 10px 0; padding: 10px 12px; }
body.storefront .rv-reply strong { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #155bd7; }
body.storefront .rv-reply .icon { width: 14px; height: 14px; }
body.storefront .rv-reply p { font-size: 13px; margin-top: 4px; }

/* Baris kartu produk ringkas (terkait / terakhir dilihat) */
body.storefront .mini-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
body.storefront .mini-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
body.storefront .mini-card:hover { border-color: #b4caee; box-shadow: 0 10px 22px rgba(25,52,99,.08); transform: translateY(-2px); }
body.storefront .mini-ph { aspect-ratio: 1.15; background: #eef2f7; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: #7297c4; }
body.storefront .mini-ph img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
body.storefront .mini-ph .icon { width: 30px; height: 30px; }
body.storefront .mini-ph small { font-size: 12px; font-weight: 700; color: #4c6d97; letter-spacing: .05em; }
body.storefront .mini-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
body.storefront .mini-name { font-size: 13px; color: var(--ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
body.storefront .mini-price { font-size: 15px; color: #155bd7; }
body.storefront .mini-meta { font-size: 11.5px; color: #7a899f; }
body.storefront .mini-rate { color: #c27c00; font-weight: 650; }
body.storefront .prod-rating { font-size: 12px; font-weight: 650; color: #c27c00; }
body.storefront .prod-rating small { color: #7a899f; font-weight: 500; }

/* Filter katalog */
body.storefront .filter-pop { position: relative; }
body.storefront .filter-pop > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid #d9e2ef; border-radius: 10px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; min-height: 42px; }
body.storefront .filter-pop > summary::-webkit-details-marker { display: none; }
body.storefront .filter-pop > summary .icon { width: 16px; height: 16px; }
body.storefront .filter-pop[open] > summary { border-color: #5d8ceb; background: #f3f7ff; color: #155bd7; }
body.storefront .filter-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(16,40,90,.16); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
body.storefront .filter-range { display: flex; align-items: flex-end; gap: 8px; }
body.storefront .filter-range label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: #5c6d86; flex: 1; min-width: 0; }
body.storefront .filter-range input { border: 1px solid #d9e2ef !important; border-radius: 9px !important; padding: 8px 10px !important; font: inherit; font-size: 13px; min-height: 38px; background: #fbfcfe !important; width: 100%; }
body.storefront .filter-range span { padding-bottom: 10px; color: #7a899f; }
body.storefront .filter-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); cursor: pointer; }
body.storefront .filter-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 821px) { body.storefront .shop-toolbar { position: relative; } }

/* Bilah beli bawah (HP) — menggantikan tab bar di halaman detail */
body.storefront .buybar { display: none; }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  body.storefront .acct-layout { grid-template-columns: 220px minmax(0, 1fr); }
  body.storefront .wish-grid-wrap .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.storefront .pd-sections { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  body.storefront .acct-layout { grid-template-columns: 1fr; gap: 12px; }
  body.storefront .acct-side { position: static; }
  body.storefront .acct-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 6px; }
  body.storefront .acct-nav::-webkit-scrollbar { display: none; }
  body.storefront .acct-nav a, body.storefront .acct-logout button { flex: none; width: auto; white-space: nowrap; padding: 9px 12px; font-size: 13px; }
  body.storefront .acct-logout { border-top: 0; margin: 0; padding: 0; border-left: 1px solid var(--line); }
  body.storefront .pd-grid { grid-template-columns: 1fr; gap: 18px; }
  body.storefront .rv-wrap { grid-template-columns: 1fr; }
  body.storefront .rv-summary { position: static; }
  body.storefront .filter-body { width: min(320px, calc(100vw - 48px)); }
  /* Detail produk: bilah beli tetap di bawah, tab bar aplikasi disembunyikan */
  body.storefront.has-buybar .app-tabbar { display: none !important; }
  body.storefront.has-buybar .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; gap: 8px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20,40,80,.08); backdrop-filter: blur(8px); }
  body.storefront.has-buybar .buybar-price { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
  body.storefront.has-buybar .buybar-price small { font-size: 11px; color: #7a899f; }
  body.storefront.has-buybar .buybar-price strong { font-size: 16px; color: var(--ink); white-space: nowrap; }
  body.storefront.has-buybar .buybar .btn { min-height: 44px; padding: 10px 14px; font-size: 13px; }
  body.storefront.has-buybar { padding-bottom: 76px; }
  body.storefront.has-buybar .pd-buy-btns { display: none; }
}
@media (max-width: 520px) {
  body.storefront .page-hero { padding: 20px; }
  body.storefront .order-card-body { flex-wrap: wrap; }
  body.storefront .order-total { width: 100%; flex-direction: row; justify-content: space-between; align-items: baseline; text-align: left; padding: 10px 0 0; border-left: 0; border-top: 1px solid #eef2f8; }
  body.storefront .order-code { margin-left: 0; width: 100%; }
  body.storefront .order-acts { width: 100%; }
  body.storefront .order-acts .btn { flex: 1; }
  body.storefront .wish-grid-wrap .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.storefront .mini-row { grid-auto-columns: 150px; }
  body.storefront .pd-buy { padding: 12px; }
  body.storefront .sec-head h2 { font-size: 16px; }
  /* Teks HP minimal terbaca (sebelumnya 6–9px) */
  body.storefront .prod .cat { font-size: 10px; }
  body.storefront .prod h3 { font-size: 13px; }
  body.storefront .prod-price { font-size: 16px; }
  body.storefront .prod-stock { font-size: 10px; padding: 2px 6px; }
  body.storefront .prod p { font-size: 12px; }
  body.storefront .photo-badge { font-size: 9px; padding: 3px 6px; }
  body.storefront .prod .acts .btn { font-size: 12.5px; min-height: 40px; border-radius: 10px; }
  body.storefront .prod .acts .btn.marketplace-link { font-size: 11px; min-height: 28px; }
  body.storefront .chip { font-size: 12px; padding: 8px 12px; }
  body.storefront .catalog-summary, body.storefront .catalog-count { font-size: 12px; }
  body.storefront .store-benefits { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px 0; }
  body.storefront .store-benefits > div { flex-direction: row; align-items: center; gap: 12px; }
  body.storefront .store-benefits strong { font-size: 13px; }
  body.storefront .store-benefits small { font-size: 12px; }
  body.storefront .store-announcement-text { font-size: 12px; }
  body.storefront .section-heading .eyebrow, body.storefront .catalog-hero .eyebrow { font-size: 10px; }
  body.storefront .catalog-hero h1 { font-size: 32px; }
  body.storefront .catalog-hero .lead { font-size: 13.5px; }
  body.storefront .catalog-hero .btn { font-size: 12.5px; padding: 11px 13px; }
  body.storefront .hero-caption { font-size: 11px; }
  body.storefront .hero-visual { height: 200px; }
  body.storefront .visual-label { display: none; }
  body.storefront .visual-card { font-size: 11px; }
  body.storefront .visual-card small { font-size: 10px; }
  body.storefront .how-to-order .card h3 { font-size: 13px; }
  body.storefront .how-to-order .card p { font-size: 12.5px; }
  body.storefront .store-footer > div > a:not(.footer-wordmark), body.storefront .footer-bottom, body.storefront .footer-bottom a { font-size: 12px !important; }
  body.storefront .courier-option strong { font-size: 13px; }
  body.storefront .insurance-choice strong { font-size: 13px; }
  body.storefront .insurance-choice small, body.storefront .rate-info small { font-size: 12px; }
  body.storefront .store-steps { font-size: 11px; }
}
body.storefront .stars.is-none { color: #cfd8e6; }
/* Perbaikan HP: kolom grid akun tidak boleh melebar mengikuti isi menu */
body.storefront .acct-side, body.storefront .acct-main, body.storefront .acct-nav { min-width: 0; }
@media (max-width: 820px) { body.storefront .acct-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  body.storefront .shop-toolbar { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
  body.storefront .shop-toolbar .search-field { grid-column: 1 / -1; }
  body.storefront .filter-pop > summary { min-height: 38px; padding: 8px 12px; font-size: 12.5px; }
  body.storefront .filter-body { right: -8px; }
}

body.storefront .filter-check input[type=checkbox] { width: 18px !important; height: 18px !important; min-height: 0 !important; flex: none; margin: 0; }
@media (max-width: 1100px) { body.storefront .pd-sections { gap: 0; } }

/* ==========================================================================
   KERANJANG ALA MARKETPLACE (20261030b)
   ========================================================================== */
body.storefront .cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin: 8px 0 24px; }
body.storefront .cart-head-card, body.storefront .cart-item, body.storefront .cart-summary-card, body.storefront .cart-empty { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
body.storefront .cart-head-card { padding: 18px 20px 12px; margin-bottom: 12px; }
body.storefront .cart-head-card h1 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 12px; color: var(--ink); }
body.storefront .cart-head-card h1 .muted { color: var(--soft); font-weight: 500; font-size: 15px; }
body.storefront .cart-bulk { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid #eef2f8; flex-wrap: wrap; }
body.storefront .cart-bulk-acts { display: flex; gap: 14px; flex-wrap: wrap; }
body.storefront .link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--xen-brand, #155bd7); font: 600 13px/1.4 inherit; cursor: pointer; padding: 4px 2px; }
body.storefront .link-btn .icon { width: 16px; height: 16px; }
body.storefront .link-btn.danger { color: #c83850; }
body.storefront .cart-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); }
body.storefront .cart-check input { width: 20px; height: 20px; accent-color: #155bd7; cursor: pointer; margin: 0; }
body.storefront .cart-items { display: grid; gap: 12px; }
body.storefront .cart-item { display: grid; grid-template-columns: 22px 88px minmax(0, 1fr) auto; gap: 16px; padding: 18px 20px; align-items: start; transition: opacity .2s; }
body.storefront .cart-item .cart-check { margin-top: 32px; }
body.storefront .cart-item.is-problem { background: #fffafa; border-color: #f1c9d1; }
body.storefront .cart-thumb { width: 88px; height: 88px; border-radius: 12px; background: #eef2f7; display: grid; place-items: center; overflow: hidden; border: 1px solid #edf1f7; }
body.storefront .cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
body.storefront .cart-thumb .icon { width: 30px; height: 30px; color: #9aa9c0; }
body.storefront .cart-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
body.storefront .cart-name { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.45; text-decoration: none; }
body.storefront .cart-name:hover { color: #155bd7; }
body.storefront .cart-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: #7a899f; }
body.storefront .cart-price { font-weight: 750; font-size: 16px; color: var(--ink); margin-top: 4px; }
body.storefront .cart-stock-low { font-size: 12px; color: #c2620f; font-weight: 600; margin: 2px 0 0; }
body.storefront .cart-warn { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #c83850; margin: 4px 0 0; }
body.storefront .cart-warn .icon { width: 15px; height: 15px; }
body.storefront .cart-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 18px; min-height: 88px; }
body.storefront .cart-line-total { font-weight: 750; font-size: 16px; color: #155bd7; white-space: nowrap; }
body.storefront .cart-row-acts { display: flex; align-items: center; gap: 6px; }
body.storefront .icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; color: #8191a8; display: grid; place-items: center; cursor: pointer; }
body.storefront .icon-btn:hover { background: #f1f5fc; color: #155bd7; }
body.storefront .icon-btn[data-act="remove"]:hover { color: #c83850; background: #fdf0f3; }
body.storefront .icon-btn .icon { width: 19px; height: 19px; }
body.storefront .stepper { display: inline-flex; align-items: center; border: 1px solid #d8e1ee; border-radius: 10px; overflow: hidden; margin-left: 6px; background: #fff; }
body.storefront .stepper button { width: 34px; height: 36px; border: 0; background: none; color: #155bd7; font-size: 18px; font-weight: 600; cursor: pointer; }
body.storefront .stepper button:disabled { color: #c3cddc; cursor: not-allowed; }
body.storefront .stepper input { width: 44px; height: 36px; border: 0; text-align: center; font: 600 14px/1 inherit; color: var(--ink); -moz-appearance: textfield; padding: 0; background: transparent; }
body.storefront .stepper input::-webkit-inner-spin-button, body.storefront .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body.storefront .cart-summary-card { padding: 20px; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 10px; }
body.storefront .cart-summary-card h2 { font-size: 16px; margin: 0 0 4px; color: var(--ink); }
body.storefront .cart-summary-card dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; font-size: 13.5px; margin: 0; }
body.storefront .cart-summary-card dt { color: var(--soft); }
body.storefront .cart-summary-card dd { margin: 0; text-align: right; color: var(--ink); }
body.storefront .cart-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #eef2f8; padding-top: 12px; margin-top: 4px; }
body.storefront .cart-total span { font-weight: 600; color: var(--ink); }
body.storefront .cart-total strong { font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
body.storefront .cart-hint { font-size: 12px; color: #7a899f; margin: 0; }
body.storefront .cart-summary-card .btn { width: 100%; justify-content: center; }
body.storefront .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
body.storefront .cart-empty { text-align: center; padding: 56px 20px; margin: 8px 0 24px; }
body.storefront .cart-empty-ic { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #eef4ff; color: #155bd7; }
body.storefront .cart-empty-ic .icon { width: 40px; height: 40px; }
body.storefront .cart-empty h1 { font-size: 22px; margin: 18px 0 6px; color: var(--ink); }
body.storefront .cart-empty p { color: var(--soft); margin: 0 auto 18px; max-width: 46ch; }
body.storefront .cart-empty .actions { justify-content: center; }
body.storefront .cart-mobile-bar { display: none; }
@media (max-width: 820px) {
  body.storefront .cart-layout { grid-template-columns: 1fr; }
  body.storefront .cart-summary-card { display: none; }
  body.storefront .cart-item { grid-template-columns: 22px 72px minmax(0, 1fr); gap: 12px; padding: 14px; }
  body.storefront .cart-thumb { width: 72px; height: 72px; }
  body.storefront .cart-item .cart-check { margin-top: 24px; }
  body.storefront .cart-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-height: 0; padding-top: 10px; border-top: 1px dashed #edf1f7; gap: 8px; }
  body.storefront .cart-row-acts { gap: 2px; }
  body.storefront .icon-btn { width: 32px; height: 32px; }
  body.storefront .stepper button { width: 30px; height: 32px; }
  body.storefront .stepper input { width: 34px; height: 32px; }
  body.storefront .cart-name { font-size: 14px; }
  body.storefront .cart-head-card h1 { font-size: 19px; }
  body.storefront .cart-mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 55; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(20,40,80,.08); padding: 10px 14px; align-items: center; gap: 12px; }
  body.storefront .cart-mobile-bar .cmb-total { flex: 1; display: flex; flex-direction: column; text-align: right; line-height: 1.2; }
  body.storefront .cart-mobile-bar small { color: var(--soft); font-size: 11px; }
  body.storefront .cart-mobile-bar strong { font-size: 16px; color: var(--ink); }
  body.storefront .cart-mobile-bar .btn { padding: 11px 16px; font-size: 13px; }
  body.storefront.page-cart .wrap { padding-bottom: 80px; }
}

/* ==========================================================================
   LACAK PESANAN + TIMELINE + INVOICE CETAK (20261030b)
   ========================================================================== */
body.storefront .track-search { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 8px 0 16px; display: grid; gap: 16px; }
body.storefront .track-search h1 { font-size: 26px; letter-spacing: -.02em; margin: 8px 0 6px; color: var(--ink); }
body.storefront .track-search p { color: var(--soft); margin: 0; max-width: 70ch; font-size: 14px; }
body.storefront .track-search p a { color: #155bd7; font-weight: 600; }
body.storefront .track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
body.storefront .track-form .hud-field { margin: 0; }
body.storefront .track-form .btn { height: 46px; }
body.storefront .track-search.is-compact { grid-template-columns: auto 1fr; align-items: end; padding: 16px 20px; }
body.storefront .track-search.is-compact h1 { font-size: 20px; margin: 6px 0 0; }
body.storefront .track-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
body.storefront .track-card h2 { font-size: 16px; margin: 0 0 14px; color: var(--ink); }
body.storefront .track-top { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; }
body.storefront .track-code { font-size: 20px; font-weight: 750; color: var(--ink); letter-spacing: -.01em; }
body.storefront .track-code small { font-size: 13px; font-weight: 500; color: var(--soft); }
body.storefront .track-date { font-size: 13px; color: var(--soft); margin-top: 2px; }
body.storefront .track-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid #eef2f8; }
body.storefront .track-actions .btn { font-size: 13px; padding: 9px 14px; }
body.storefront .track-cancel { border-left-color: var(--red); }
/* Timeline */
body.storefront .timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
body.storefront .tl-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; position: relative; padding: 0 6px; }
body.storefront .tl-step::before { content: ""; position: absolute; top: 20px; right: 50%; width: 100%; height: 3px; background: #e3e9f2; z-index: 0; }
body.storefront .tl-step:first-child::before { display: none; }
body.storefront .tl-step.is-done::before { background: #155bd7; }
body.storefront .tl-dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #d6dfec; color: #9aa8bd; position: relative; z-index: 1; }
body.storefront .tl-dot .icon { width: 19px; height: 19px; }
body.storefront .tl-step.is-done .tl-dot { background: #155bd7; border-color: #155bd7; color: #fff; }
body.storefront .tl-step.is-current .tl-dot { box-shadow: 0 0 0 6px #155bd722; }
body.storefront .tl-text { display: flex; flex-direction: column; gap: 2px; }
body.storefront .tl-text strong { font-size: 13px; color: var(--ink); }
body.storefront .tl-step:not(.is-done) .tl-text strong { color: #8a98ad; font-weight: 600; }
body.storefront .tl-text small { font-size: 11.5px; color: #7a899f; }
body.storefront .tl-text em { font-style: normal; font-size: 12px; color: #155bd7; font-weight: 600; margin-top: 2px; }
/* Grid isi */
body.storefront .track-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
body.storefront .track-items { display: grid; gap: 12px; }
body.storefront .track-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #f0f3f8; }
body.storefront .track-item:last-child { border-bottom: 0; padding-bottom: 0; }
body.storefront .track-item .cart-thumb { width: 64px; height: 64px; }
body.storefront .track-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.storefront .track-item-info a, body.storefront .track-item-info strong { color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
body.storefront .track-item-info a:hover { color: #155bd7; }
body.storefront .track-item-info small { color: #7a899f; font-size: 12px; }
body.storefront .track-item-sub { font-size: 14px; color: var(--ink); white-space: nowrap; }
body.storefront .track-kv { display: grid; grid-template-columns: 96px 1fr; gap: 10px 12px; margin: 0; font-size: 13.5px; }
body.storefront .track-kv dt { color: var(--soft); }
body.storefront .track-kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
body.storefront .track-kv.is-money { grid-template-columns: 1fr auto; }
body.storefront .track-kv.is-money dd { text-align: right; }
body.storefront .track-kv .muted { color: #7a899f; }
body.storefront .resi { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; color: #155bd7; }
body.storefront .invoice-head { display: none; }
@media (max-width: 820px) {
  body.storefront .track-form, body.storefront .track-search.is-compact { grid-template-columns: 1fr; }
  body.storefront .track-grid { grid-template-columns: 1fr; }
  body.storefront .timeline { grid-template-columns: 1fr; gap: 0; }
  body.storefront .tl-step { flex-direction: row; text-align: left; align-items: flex-start; gap: 12px; padding: 0 0 18px; }
  body.storefront .tl-step::before { display: none; }
  /* garis vertikal dari bulatan ke langkah berikutnya; biru bila langkah berikutnya sudah tercapai */
  body.storefront .tl-step:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 3px; background: #e3e9f2; }
  body.storefront .tl-step:has(+ .tl-step.is-done)::after { background: #155bd7; }
  body.storefront .tl-dot { flex: none; width: 40px; height: 40px; }
  body.storefront .tl-text { padding-top: 8px; }
  body.storefront .track-code { font-size: 17px; }
}
/* Cetak = invoice rapi */
@media print {
  body.storefront { background: #fff !important; }
  body.storefront .store-announcement, body.storefront .store-header, body.storefront .store-footer, body.storefront .app-tabbar,
  body.storefront .track-search, body.storefront .no-print, body.storefront .msg-panel, body.storefront .msg-overlay,
  body.storefront .skip-link, body.storefront .app-install-bar, body.storefront .xen-toast { display: none !important; }
  body.storefront .invoice-head { display: flex !important; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #14233e; padding-bottom: 12px; margin-bottom: 16px; }
  body.storefront .invoice-head p { font-size: 11px; color: #333; margin: 6px 0 0; }
  body.storefront .inv-title { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; }
  body.storefront .inv-title strong { font-size: 22px; letter-spacing: .1em; }
  body.storefront .track-card { border: 1px solid #ccc; break-inside: avoid; box-shadow: none; }
  body.storefront .track-grid { grid-template-columns: 1fr 1fr; }
  body.storefront .wrap { width: 100% !important; max-width: none !important; padding: 0 !important; }
  body.storefront .tl-dot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ==========================================================================
   FILTER KATALOG LENGKAP + LABEL DISKON & TERJUAL (20261030b)
   ========================================================================== */
body.storefront .filter-rating { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
body.storefront .filter-rating legend { font-size: 12px; font-weight: 600; color: #5c6d86; margin-bottom: 6px; width: 100%; }
body.storefront .filter-rating label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); cursor: pointer; }
body.storefront .filter-rating input { accent-color: #155bd7; }
body.storefront .active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 12px; }
body.storefront .af-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border-radius: 999px; background: #eaf2ff; color: #155bd7; font-size: 12.5px; font-weight: 600; text-decoration: none; border: 1px solid #cfe0fb; }
body.storefront .af-chip .icon { width: 13px; height: 13px; }
body.storefront .af-chip:hover { background: #dce9ff; }
body.storefront .af-clear { font-size: 12.5px; font-weight: 600; color: #c83850; text-decoration: none; margin-left: 4px; }
body.storefront .prod { position: relative; }
body.storefront .disc-badge { position: absolute; z-index: 3; top: 12px; left: 12px; background: #e5304f; color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 7px; letter-spacing: .01em; box-shadow: 0 4px 10px rgba(229,48,79,.25); }
body.storefront .prod:has(.disc-badge) .photo-badge { top: 44px; }
body.storefront .prod-was, body.storefront .mini-was { font-size: 12px; color: #8a97ab; display: inline-flex; gap: 6px; align-items: center; }
body.storefront .prod-was b, body.storefront .mini-was b { color: #e5304f; font-weight: 800; }
body.storefront .prod-rating small { color: #7a899f; font-weight: 500; }
body.storefront .pd-was { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #8a97ab; margin: -4px 0 6px; }
body.storefront .pd-was span:last-child { color: #12754d; font-weight: 600; font-size: 13px; }
body.storefront .disc-pill { background: #fde8ec; color: #e5304f; font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
@media (max-width: 520px) {
  body.storefront .disc-badge { top: 7px; left: 7px; font-size: 10px; padding: 2px 6px; }
  body.storefront .prod:has(.disc-badge) .photo-badge { top: 30px; }
  body.storefront .prod-was, body.storefront .mini-was { font-size: 10px; }
  body.storefront .filter-body { width: min(320px, calc(100vw - 48px)); }
}

/* === Strip voucher beranda (20261030b) === */
body.storefront .voucher-strip { margin: 4px 0 22px; }
body.storefront .vs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
body.storefront .vs-head h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0; color: var(--ink); letter-spacing: -.01em; }
body.storefront .vs-head h2 .icon { color: #e5304f; width: 20px; height: 20px; }
body.storefront .vs-head span { font-size: 12.5px; color: var(--soft); }
body.storefront .vs-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
body.storefront .vs-card { scroll-snap-align: start; display: flex; background: #fff; border: 1px solid #f2d4db; border-radius: 14px; overflow: hidden; position: relative; min-height: 112px; }
body.storefront .vs-val { flex: none; width: 96px; background: linear-gradient(160deg, #ff5a76, #e5304f); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; padding: 8px; }
body.storefront .vs-val::after { content: ""; position: absolute; right: -7px; top: 0; bottom: 0; width: 14px; background: radial-gradient(circle at 7px 7px, #fff 5px, transparent 5.5px) 0 0 / 14px 16px repeat-y; }
body.storefront .vs-val small { font-size: 11px; opacity: .9; font-weight: 600; }
body.storefront .vs-val strong { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
body.storefront .vs-info { flex: 1; min-width: 0; padding: 12px 14px 12px 18px; display: flex; flex-direction: column; gap: 3px; }
body.storefront .vs-info > strong { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.storefront .vs-info small { font-size: 11.5px; color: #7a899f; }
body.storefront .vs-code { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; border-top: 1px dashed #f0d2d9; }
body.storefront .vs-code code { font: 700 13px/1 ui-monospace, Menlo, Consolas, monospace; color: #e5304f; letter-spacing: .04em; }
body.storefront .vs-code button { border: 1px solid #e5304f; background: #fff; color: #e5304f; font: 700 12px/1 inherit; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
body.storefront .vs-code button:hover, body.storefront .vs-code button.is-done { background: #e5304f; color: #fff; }
@media (max-width: 520px) {
  body.storefront .vs-row { grid-auto-columns: 86%; }
  body.storefront .vs-head h2 { font-size: 16px; }
}
/* Jebakan bot pendaftaran: tidak terlihat oleh manusia, tetap ada untuk bot. */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* 20261031: tautan kategori/filter/tab membuka langsung bagian yang dituju (#katalog, #riwayat, #pengaturan) */
body.storefront #katalog, body.storefront #riwayat, body.storefront #pengaturan { scroll-margin-top: 16px; }
@media (max-width: 820px) {
  body.storefront #katalog, body.storefront #riwayat, body.storefront #pengaturan { scroll-margin-top: calc(var(--safe-top, 0px) + 84px); }
}

/* 20261031b: riwayat pembelian — status kosong & tab lebih rapi */
body.storefront .order-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 20px; border: 1px dashed #d6e0ee; border-radius: 14px; background: #f8fbff; min-height: 220px; justify-content: center; }
body.storefront .order-empty-ic { width: 52px; height: 52px; border-radius: 50%; background: #e8f0fd; color: var(--brand, #155bd7); display: grid; place-items: center; margin-bottom: 6px; }
body.storefront .order-empty-ic .icon { width: 24px; height: 24px; }
body.storefront .order-empty strong { font-size: 15px; color: var(--ink, #14213d); }
body.storefront .order-empty p { margin: 0 0 10px; font-size: 13px; color: var(--muted, #6b7a90); max-width: 360px; }
body.storefront #riwayat .settings-tabs { scrollbar-width: none; }
body.storefront #riwayat .settings-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 820px) {
  body.storefront #riwayat .settings-tab { white-space: nowrap; }
  body.storefront .order-empty { padding: 30px 16px; min-height: 0; }
}

/* 20261031c: perpindahan halaman mulus — tanpa kedip putih & tanpa animasi gulir saat halaman dibuka.
   Browser modern (Chrome/Edge/Safari terbaru) menyilangkan halaman lama → baru; header & tab bawah tetap diam. */
@view-transition { navigation: auto; }
html:has(body.storefront) { scroll-behavior: auto; }
body.storefront .store-announcement { view-transition-name: xen-announce; }
body.storefront .store-header { view-transition-name: xen-header; }
body.storefront .app-tabbar { view-transition-name: xen-tabbar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; animation-timing-function: ease-out; }
::view-transition-group(xen-header), ::view-transition-group(xen-announce), ::view-transition-group(xen-tabbar) { animation-duration: 0s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* =====================================================================
   20261031d — Beranda HP ala marketplace, toolbar katalog lengket,
   lembar dari bawah, dan daftar transaksi.
   ===================================================================== */
.m-only { display: none !important; }
@media (max-width: 820px) {
  .m-only { display: block !important; }
  .m-hide { display: none !important; }
}

/* --- Baris produk (Terlaris/Terbaru/Trending) --- */
body.storefront .home-row { margin: 14px 0 0; }
body.storefront .hr-head, body.storefront .hd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
body.storefront .hr-head h2 { font-size: 17px; margin: 0; letter-spacing: -.02em; }
body.storefront .hr-head a { font-size: 13px; font-weight: 650; color: var(--cyan); text-decoration: none; }
body.storefront .hr-track, body.storefront .hd-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 16px; padding: 2px 16px 8px; margin: 0 -16px; scrollbar-width: none; overscroll-behavior-x: contain; }
body.storefront .hr-track::-webkit-scrollbar, body.storefront .hd-track::-webkit-scrollbar { display: none; }
body.storefront .hc { flex: 0 0 132px; scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(20,35,62,.04); }
body.storefront .hc-ph { position: relative; aspect-ratio: 1; background: #eef3fa; display: grid; place-items: center; color: #8ea2bf; overflow: hidden; }
body.storefront .hc-ph img { width: 100%; height: 100%; object-fit: cover; }
body.storefront .hc-ph small { position: absolute; bottom: 8px; left: 8px; right: 8px; font-size: 10px; font-weight: 700; text-align: center; color: #5c6d86; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.storefront .hc-ph .icon { width: 30px; height: 30px; }
body.storefront .hc-disc { position: absolute; top: 0; left: 0; background: #e5384f; color: #fff; font: 700 10.5px/1 Inter, sans-serif; font-style: normal; padding: 4px 6px; border-bottom-right-radius: 8px; }
body.storefront .hc-body { display: flex; flex-direction: column; gap: 2px; padding: 8px 9px 10px; min-width: 0; }
body.storefront .hc-name { font-size: 12.5px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
body.storefront .hc-price { font-size: 14px; color: var(--ink); font-weight: 750; margin-top: 2px; }
body.storefront .hc-was { font-size: 11px; color: #97a5b8; }
body.storefront .hc-meta { font-size: 11px; color: var(--soft); margin-top: 2px; }
body.storefront .hc-meta b { color: #f5a623; }

/* --- Spesial Diskon --- */
body.storefront .home-diskon { margin: 14px -16px 0; padding: 14px 16px 6px; background: linear-gradient(135deg, #0f9f6e 0%, #19b37f 55%, #4cc79a 100%); position: relative; overflow: hidden; }
body.storefront .home-diskon::after { content: ""; position: absolute; right: -30px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
body.storefront .hd-head { color: #fff; text-decoration: none; justify-content: flex-start; position: relative; z-index: 1; }
body.storefront .hd-head h2 { color: #fff; font-size: 17px; margin: 0; letter-spacing: -.02em; }
body.storefront .hd-head .icon { margin-left: auto; color: #fff; }
body.storefront .hd-badge { background: #fff; color: #e5384f; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
body.storefront .hd-track { position: relative; z-index: 1; padding-bottom: 12px; }
body.storefront .hc-wide { flex: 0 0 272px; flex-direction: row; border: 0; }
body.storefront .hc-wide .hc-ph { width: 104px; flex: none; aspect-ratio: auto; }
body.storefront .hc-wide .hc-body { justify-content: center; padding: 10px 12px; }

/* --- Toolbar katalog HP (lengket) --- */
body.storefront .m-toolbar { position: sticky; top: var(--m-head, 64px); z-index: 30; margin: 0 -16px; padding: 10px 16px; background: #fff; display: flex !important; gap: 8px; overflow-x: auto; scrollbar-width: none; transition: box-shadow .15s; }
body.storefront .m-toolbar::-webkit-scrollbar { display: none; }
body.storefront .m-toolbar.is-stuck { box-shadow: 0 6px 14px -8px rgba(20,35,62,.25); border-bottom: 1px solid var(--line); }
@media (min-width: 821px) { body.storefront .m-toolbar { display: none !important; } }
body.storefront .mt-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid #cfd8e5; border-radius: 10px; background: #fff; color: var(--ink); font: 600 13px/1 Inter, "Segoe UI", sans-serif; cursor: pointer; max-width: 190px; }
body.storefront .mt-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.storefront .mt-pill .icon { width: 16px; height: 16px; flex: none; }
body.storefront .mt-pill.is-on { border-color: var(--cyan); color: var(--cyan); background: #eef4ff; }
body.storefront .mt-pill b { background: var(--cyan); color: #fff; font-size: 10.5px; min-width: 18px; height: 18px; border-radius: 9px; display: inline-grid; place-items: center; padding: 0 5px; }
body.storefront .m-count { display: flex !important; align-items: baseline; gap: 6px; margin: 4px 0 10px; }
body.storefront .m-count strong { font-size: 16px; color: var(--ink); }
body.storefront .m-count span { font-size: 13px; color: var(--soft); }
@media (max-width: 820px) {
  /* Di HP katalog tampil penuh tanpa kotak; toolbar desktop, chip, dan ringkasan disembunyikan. */
  body.storefront .catalog-section { background: transparent; border: 0; padding: 0; margin-top: 16px; border-radius: 0; }
  body.storefront .catalog-section > .section-heading,
  body.storefront .catalog-section > .shop-toolbar,
  body.storefront .catalog-section > .chips,
  body.storefront .catalog-section > .catalog-summary { display: none; }
  body.storefront .catalog-section > .m-toolbar + .m-count { margin-top: 2px; }
}

/* --- Lembar dari bawah --- */
html.sheet-lock, html.sheet-lock body { overflow: hidden; }
body.storefront .m-sheet { position: fixed; inset: 0; z-index: 200; }
body.storefront .m-sheet[hidden] { display: none; }
body.storefront .m-sheet-bg { position: absolute; inset: 0; background: rgba(12,22,40,.45); opacity: 0; transition: opacity .2s; }
body.storefront .m-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; display: flex; flex-direction: column; background: #fff; border-radius: 18px 18px 0 0; transform: translateY(100%); transition: transform .22s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom, 0); }
body.storefront .m-sheet-panel.tall { height: 82vh; }
body.storefront .m-sheet.is-open .m-sheet-bg { opacity: 1; }
body.storefront .m-sheet.is-open .m-sheet-panel { transform: none; }
body.storefront .m-sheet-panel::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: #d5dce7; margin: 8px auto 0; flex: none; }
body.storefront .m-sheet-panel header { display: flex; align-items: center; gap: 10px; padding: 10px 16px 12px; border-bottom: 1px solid #eef2f7; flex: none; }
body.storefront .m-sheet-panel header h3 { margin: 0; font-size: 17px; }
body.storefront .m-sheet-panel header button { border: 0; background: none; padding: 4px; color: var(--ink); cursor: pointer; display: grid; }
body.storefront .m-sheet-panel header .icon { width: 22px; height: 22px; }
body.storefront .m-sheet-reset { margin-left: auto; font-size: 13px; font-weight: 650; color: var(--cyan); text-decoration: none; }
body.storefront .m-sheet-list { overflow-y: auto; padding: 0 16px 12px; overscroll-behavior: contain; }
body.storefront .m-sheet-list > a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid #eef2f7; color: var(--ink); font-size: 14.5px; font-weight: 650; text-decoration: none; }
body.storefront .m-sheet-list > a[hidden] { display: none; }
body.storefront .m-sheet-list > a small { color: var(--soft); font-weight: 500; font-size: 12.5px; }
body.storefront .m-sheet-list > a .icon { margin-left: auto; color: #0f9f6e; width: 20px; height: 20px; }
body.storefront .m-sheet-list > a[aria-current="true"] { color: var(--cyan); }
body.storefront .cat-list > a .cl-name { flex: 1; min-width: 0; }
body.storefront .cat-list > a small { margin-left: auto; }
body.storefront .cl-ic { width: 40px; height: 40px; border-radius: 10px; background: #eaf1fd; color: var(--cyan); display: grid; place-items: center; flex: none; }
body.storefront .cl-ic .icon { margin: 0 !important; color: inherit !important; width: 20px !important; height: 20px !important; }
body.storefront .cl-ic.all { background: #e6f6ef; color: #0f9f6e; }
body.storefront .cl-ic.promo { background: #fdecef; color: #e5384f; }
body.storefront .cl-empty { padding: 24px 0; text-align: center; color: var(--soft); font-size: 13px; }
body.storefront .m-sheet-search { display: flex; align-items: center; gap: 8px; margin: 12px 16px 6px; padding: 0 12px; height: 40px; border: 1px solid #d5dce7; border-radius: 10px; flex: none; }
body.storefront .m-sheet-search input { border: 0; outline: 0; flex: 1; font: inherit; font-size: 14px; background: transparent; min-width: 0; }
body.storefront .m-sheet-search .icon { width: 17px; height: 17px; color: var(--soft); }
body.storefront .m-sheet-body { overflow-y: auto; padding: 4px 16px 12px; }
body.storefront .m-sheet-body h4 { font-size: 14px; margin: 14px 0 8px; color: var(--ink); }
body.storefront .m-sheet-body .filter-range { display: flex; align-items: flex-end; gap: 8px; }
body.storefront .m-sheet-body .filter-range label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--soft); }
body.storefront .m-sheet-body .filter-range input { height: 40px; border: 1px solid #d5dce7; border-radius: 10px; padding: 0 10px; font: inherit; font-size: 14px; width: 100%; }
body.storefront .m-opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
body.storefront .m-opt input { position: absolute; opacity: 0; pointer-events: none; }
body.storefront .m-opt span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid #d5dce7; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
body.storefront .m-opt input:checked + span { border-color: var(--cyan); background: #eef4ff; color: var(--cyan); }
body.storefront .m-opt input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
body.storefront .m-sheet-panel footer { padding: 12px 16px; border-top: 1px solid #eef2f7; flex: none; }
body.storefront .m-sheet-panel footer .btn { width: 100%; justify-content: center; }
@media (min-width: 821px) {
  /* Di layar lebar lembar tampil sebagai dialog di tengah. */
  body.storefront .m-sheet-panel { left: 50%; right: auto; bottom: auto; top: 50%; width: 440px; max-height: 76vh; border-radius: 16px; transform: translate(-50%, -46%); opacity: 0; transition: transform .2s, opacity .2s; }
  body.storefront .m-sheet.is-open .m-sheet-panel { transform: translate(-50%, -50%); opacity: 1; }
  body.storefront .m-sheet-panel.tall { height: 76vh; }
  body.storefront .m-sheet-panel::before { display: none; }
}

/* --- Daftar transaksi --- */
body.storefront .trx-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid #d5dce7; border-radius: 12px; background: #fff; margin-bottom: 10px; }
body.storefront .trx-search .icon { width: 18px; height: 18px; color: var(--soft); flex: none; }
body.storefront .trx-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 14px; background: transparent; }
body.storefront .trx-filters { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding-bottom: 2px; }
body.storefront .trx-filters::-webkit-scrollbar { display: none; }
body.storefront .trx-reset { font-size: 13px; font-weight: 650; color: var(--cyan); text-decoration: none; white-space: nowrap; padding: 0 4px; }
body.storefront .trx-list { display: flex; flex-direction: column; gap: 12px; }
body.storefront .trx-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; box-shadow: 0 1px 3px rgba(20,35,62,.05); transition: border-color .15s, box-shadow .15s; }
body.storefront .trx-card:hover { border-color: #c4d3ea; box-shadow: 0 6px 18px -10px rgba(20,35,62,.25); }
body.storefront .trx-link { position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
body.storefront .trx-card > *:not(.trx-link) { position: relative; z-index: 1; pointer-events: none; }
body.storefront .trx-card .trx-acts, body.storefront .trx-card .trx-acts * { pointer-events: auto; }
body.storefront .trx-head { display: flex; align-items: center; gap: 10px; }
body.storefront .trx-ic { width: 30px; height: 30px; border-radius: 8px; background: #e6f6ef; color: #0f9f6e; display: grid; place-items: center; flex: none; }
body.storefront .trx-ic .icon { width: 17px; height: 17px; }
body.storefront .trx-when { display: flex; flex-direction: column; min-width: 0; flex: 1; }
body.storefront .trx-when strong { font-size: 13px; color: var(--ink); line-height: 1.2; }
body.storefront .trx-when small { font-size: 11.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.storefront .trx-status { flex: none; font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: #eef4ff; color: var(--cyan); }
body.storefront .trx-status.is-warn { background: #fff4e0; color: #b86a00; }
body.storefront .trx-status.is-ship { background: #fff4e0; color: #c25e00; }
body.storefront .trx-status.is-ok { background: #e6f6ef; color: #087d5d; }
body.storefront .trx-status.is-err { background: #fdecef; color: #c83850; }
body.storefront .trx-item { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
body.storefront .trx-thumb { width: 52px; height: 52px; border-radius: 10px; background: #eef3fa; overflow: hidden; flex: none; display: grid; place-items: center; color: #8ea2bf; border: 1px solid #eef2f7; }
body.storefront .trx-thumb img { width: 100%; height: 100%; object-fit: cover; }
body.storefront .trx-name { display: flex; flex-direction: column; min-width: 0; }
body.storefront .trx-name strong { font-size: 14.5px; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.storefront .trx-name small { font-size: 12.5px; color: var(--soft); margin-top: 2px; }
body.storefront .trx-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
body.storefront .trx-total { display: flex; flex-direction: column; }
body.storefront .trx-total small { font-size: 11.5px; color: var(--soft); }
body.storefront .trx-total strong { font-size: 15px; color: var(--ink); }
body.storefront .trx-acts form { margin: 0; }
body.storefront .trx-acts .btn { min-width: 92px; justify-content: center; }
body.storefront .trx-info { margin: 10px 0 0; max-width: none; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; background: #f2f6fc; color: var(--text); }
body.storefront .trx-info.is-ok { background: #effaf5; color: #0b6b4f; }
body.storefront .trx-info.is-ship { background: #fff8ec; color: #8a5200; }
body.storefront .trx-info.is-warn { background: #fff8ec; color: #8a5200; }
body.storefront .trx-info.is-err { background: #fdf1f3; color: #a12c41; }
@media (min-width: 821px) {
  body.storefront .trx-filters { margin-bottom: 16px; }
  body.storefront .trx-card { padding: 16px 18px 14px; }
}
/* Kartu katalog HP ringkas ala marketplace: foto, nama, harga, diskon, rating/terjual. */
@media (max-width: 820px) {
  body.storefront .catalog-section .prods { gap: 8px; }
  body.storefront .catalog-section .prod { border-radius: 12px; }
  body.storefront .catalog-section .prod .ph { aspect-ratio: 1; min-height: 0; height: auto; }
  body.storefront .catalog-section .prod .ph img { width: 100%; height: 100%; object-fit: cover; }
  body.storefront .catalog-section .prod .photo-badge,
  body.storefront .catalog-section .prod .body > .cat,
  body.storefront .catalog-section .prod .body > p,
  body.storefront .catalog-section .prod .acts { display: none; }
  body.storefront .catalog-section .prod .body { padding: 8px 10px 10px; gap: 2px; }
  body.storefront .catalog-section .prod h3 { font-size: 13px; font-weight: 500; line-height: 1.35; margin: 0; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
  body.storefront .catalog-section .prod h3 a { color: var(--ink); }
  body.storefront .catalog-section .prod .prod-meta { gap: 2px; margin-top: 4px; }
  body.storefront .catalog-section .prod .prod-price { font-size: 15px; color: var(--ink); }
  body.storefront .catalog-section .prod .prod-was { font-size: 11px; }
  body.storefront .catalog-section .prod .prod-stock { font-size: 10px; padding: 2px 6px; }
  body.storefront .catalog-section .prod .wish-btn { width: 32px; height: 32px; }
}
body.storefront .cat-list > a.is-empty { opacity: .55; }
@media (max-width: 820px) {
  /* Tab "Pesanan" di HP langsung ke daftar transaksi; profil & menu akun ada di tab "Akun". */
  body.storefront .acct-side-mhide { display: none; }
  body.storefront #riwayat.acct-panel { background: transparent; border: 0; padding: 0; box-shadow: none; margin-top: 4px; }
  body.storefront #riwayat > .sec-head { margin-bottom: 10px; }
}

/* 20261031e: panah banner muncul hanya saat kursor di atas banner; di HP/layar sentuh disembunyikan (cukup digeser). */
body.storefront .banner-nav { opacity: 0; pointer-events: none; transition: opacity .2s, background .15s; }
body.storefront .banner-carousel:hover .banner-nav,
body.storefront .banner-nav:focus-visible { opacity: 1; pointer-events: auto; }
@media (max-width: 820px), (hover: none) {
  body.storefront .banner-nav { display: none; }
}

/* 20261101: pre-order (XenCore) */
body.storefront .prod-stock.pre { background: #fff4e0; color: #b25d00; }
body.storefront .pd-stock.is-pre { background: #fff6e8; color: #8a5200; border-color: #f6ddb0; }
body.storefront .pd-stock.is-pre small { color: #8a5200; opacity: .8; font-weight: 500; }
body.storefront .cart-pre { display: inline-flex; align-items: center; gap: 5px; margin: 6px 0 0; font-size: 12px; font-weight: 600; color: #8a5200; background: #fff6e8; padding: 3px 8px; border-radius: 6px; }
body.storefront .cart-pre .icon { width: 14px; height: 14px; }
body.storefront .note-pre { display: flex; gap: 10px; align-items: flex-start; background: #fff6e8; border-color: #f6ddb0; color: #6e4300; font-size: 13px; margin: 0 0 14px; }
body.storefront .note-pre .icon { flex: none; margin-top: 2px; color: #c27400; }
/* 20261101b: strip voucher juga tampil di HP (di bawah baris produk & Spesial Diskon). */
@media (max-width: 820px) {
  body.storefront .voucher-strip { margin: 16px 0 4px; }
  body.storefront .vs-head { margin-bottom: 8px; }
  body.storefront .vs-head span { display: none; }
  body.storefront .vs-row { margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; scrollbar-width: none; }
  body.storefront .vs-row::-webkit-scrollbar { display: none; }
  body.storefront .vs-card { min-height: 100px; }
  body.storefront .vs-val { width: 84px; }
  body.storefront .vs-val strong { font-size: 19px; }
}

/* 20261101c: batalkan pesanan & ganti metode bayar */
body.storefront .cancel-box { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
body.storefront .cancel-box summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; color: #c83850; list-style: none; }
body.storefront .cancel-box summary::-webkit-details-marker { display: none; }
body.storefront .cancel-box summary .icon { width: 16px; height: 16px; }
body.storefront .cancel-box form { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
body.storefront .cancel-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
body.storefront .cancel-reasons .m-opt input { position: absolute; opacity: 0; pointer-events: none; }
body.storefront .cancel-reasons .m-opt span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid #d5dce7; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
body.storefront .cancel-reasons .m-opt input:checked + span { border-color: #c83850; background: #fdf1f3; color: #a12c41; }
body.storefront .cancel-other { height: 40px; border: 1px solid #d5dce7; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; }
body.storefront .btn.danger-outline { background: #fff; color: #c83850; border: 1px solid #e7a3b0; align-self: flex-start; }
body.storefront .btn.danger-outline:hover { background: #fdf1f3; }

/* 20261101d: checkout — kurir rekomendasi & metode bayar ringkas, pilihan lengkap di lembar bawah */
body.storefront .ship-pick { display: flex; align-items: center; gap: 12px; padding: 14px 14px; border: 1px solid #cfd8e5; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
body.storefront .ship-pick:hover, body.storefront .ship-pick:focus-visible { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(21,91,215,.12); outline: 0; }
body.storefront .sp-ic { width: 38px; height: 38px; border-radius: 10px; background: #eaf1fd; color: var(--cyan); display: grid; place-items: center; flex: none; }
body.storefront .sp-ic .icon { width: 20px; height: 20px; }
body.storefront .sp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.storefront .sp-body strong { font-size: 14.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.storefront .sp-body small { font-size: 12px; color: var(--soft); }
body.storefront .sp-price { font-weight: 800; color: var(--ink); white-space: nowrap; font-size: 14.5px; }
body.storefront .sp-chev { color: var(--soft); display: grid; transform: rotate(-90deg); }
body.storefront .sp-chev .icon { width: 18px; height: 18px; }
body.storefront .rec-badge { display: inline-block; font-size: 10.5px; font-weight: 700; color: #087d5d; background: #e6f6ef; border-radius: 5px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }
body.storefront .insurance-choice.ins-under { margin: 0; border-top: 0; border-radius: 0 0 14px 14px; background: #f8fbff; position: relative; top: -6px; padding-top: 16px; }
body.storefront .insurance-choice.ins-under em { font-style: normal; color: var(--soft); font-weight: 600; }
body.storefront #sheet-kurir .m-sheet-body, body.storefront #sheet-bayar .m-sheet-body { padding-top: 12px; }
body.storefront #sheet-kurir .courier-list, body.storefront #sheet-bayar .courier-list { margin: 0; }
body.storefront .sec-head .link-sm { border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 650; color: var(--cyan); }

/* 20261101e: checkout rapi — nama kurir 1 baris, asuransi terpisah, tombol bayar menempel di bawah (HP) */
body.storefront #ship-pick .sp-body strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.storefront #ship-pick .sp-body strong .rec-badge { margin-left: 6px; }
body.storefront #ship-pick.is-loading { opacity: .6; pointer-events: none; }
body.storefront #ship-pick.is-loading .sp-price { visibility: hidden; }
body.storefront .insurance-choice.ins-under { margin: 10px 0 0; top: 0; border-top: 1px solid #d9e6f9; border-radius: 12px; padding: 12px 14px; align-items: center; }
body.storefront .insurance-choice.ins-under strong { margin: 0; }
body.storefront .co-paybar { display: none; }
@media (max-width: 820px) {
  body.storefront.page-checkout .app-tabbar { display: none; }
  body.storefront.page-checkout { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body.storefront .co-paybar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(20,35,62,.08); view-transition-name: xen-paybar; }
  body.storefront .co-paybar small { display: block; font-size: 11.5px; color: var(--soft); }
  body.storefront .co-paybar strong { font-size: 17px; color: var(--ink); white-space: nowrap; }
  body.storefront .co-paybar .btn { min-height: 46px; padding: 0 20px; border-radius: 12px; font-size: 14.5px; white-space: nowrap; }
  body.storefront .co-paybar .btn[disabled] { opacity: .5; }
  body.storefront.page-checkout .msg-fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
