/* LiteShop online store: clean, white, mobile-first. */
:root {
  --brand: #006AFF;
  --brand-ink: #FFFFFF;
  --brand-soft: rgba(0, 106, 255, 0.10);
  --brand-line: rgba(0, 106, 255, 0.35);
  --brand-text: #0058D6;
  --ink: #1F2328;
  --ink-2: #4B5563;
  --ink-3: #6B7280;
  --line: #E5E7EB;
  --line-2: #D1D5DB;
  --bg: #FFFFFF;
  --bg-2: #F6F7F9;
  --bg-3: #EEF0F3;
  --ok: #0B7A3E;
  --ok-bg: #E8F6EE;
  --low: #8A5300;
  --low-bg: #FFF4E0;
  --bad: #B42318;
  --bad-bg: #FDECEA;
  --info-bg: #EEF4FF;
  --viber: #7360F2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, 0.18);
  --font: Inter, "Noto Sans Myanmar", system-ui, -apple-system, "Segoe UI", Roboto, "Myanmar Text", sans-serif;
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
html:lang(my) body { line-height: 1.75; }
main { flex: 1 0 auto; outline: none; padding-bottom: 32px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
html:lang(my) h1, html:lang(my) h2, html:lang(my) h3 { line-height: 1.6; }
a { color: var(--brand-text); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
.icon { flex: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.block { display: block; }
.prewrap { white-space: pre-line; overflow-wrap: anywhere; }
.noscript { padding: 24px; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; text-align: center;
  background: var(--bg-3); color: var(--ink); transition: background-color .15s, border-color .15s, box-shadow .15s, transform .1s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: .5; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover:not(:disabled) { box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .08); }
.btn-secondary { background: var(--bg); border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-2); }
.btn-outline { background: var(--bg); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-2); }
.btn-add { background: var(--brand-soft); color: var(--brand-text); border-color: transparent; }
.btn-add:hover:not(:disabled) { background: var(--brand); color: var(--brand-ink); }
.btn-add:disabled { background: var(--bg-3); color: var(--ink-3); opacity: 1; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-outline-danger { background: var(--bg); color: var(--bad); border-color: #F1B8B2; }
.btn-outline-danger:hover { background: var(--bad-bg); }
.btn-viber { background: var(--viber); color: #fff; }
.btn-lg { min-height: 52px; font-size: 16px; padding: 12px 22px; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-grow { flex: 1 1 auto; }
.link-btn {
  background: none; border: 0; padding: 0 2px; min-height: 44px; color: var(--brand-text); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; border: 0; background: transparent;
  color: var(--ink); text-decoration: none;
}
.icon-btn:hover { background: var(--bg-2); }

/* ---------- header ---------- */
.announce { background: var(--brand); color: var(--brand-ink); font-size: 14px; font-weight: 500; text-align: center; }
.announce p { padding: 8px 16px; }
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; text-decoration: none; color: var(--ink); padding: 6px 0; }
.logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg-3); }
.logo-initials {
  display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: var(--brand-ink);
  font-weight: 700; font-size: 16px; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.brand-name {
  font-weight: 700; font-size: 17px; line-height: 1.25; overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.brand-tag { font-size: 13px; color: var(--ink-3); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:lang(my) .brand-name, html:lang(my) .brand-tag { line-height: 1.5; }
.header-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; margin-right: 4px; }
.lang-btn {
  min-width: 44px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.lang-btn[lang="my"] { font-size: 13px; }
.lang-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cart-btn { padding: 0 8px; }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
  border: 2px solid #fff; box-sizing: content-box; transform: translate(25%, -10%);
}
.cart-total { display: none; font-weight: 600; font-size: 14px; }
.orders-btn { display: none; }
@media (min-width: 480px) { .orders-btn { display: inline-flex; } }
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .cart-btn { padding: 0 14px 0 10px; border: 1px solid var(--line-2); }
  .cart-total:not(:empty) { display: inline; margin-left: 8px; }
  .cart-btn .cart-count { position: static; transform: none; border: 0; margin-left: -2px; }
  .brand-name { font-size: 19px; }
  .logo { width: 44px; height: 44px; }
}

/* ---------- banners / notices ---------- */
.banners { display: grid; gap: 8px; padding-top: 12px; }
.paused {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius);
  background: var(--low-bg); color: #5C3A00; font-size: 15px;
}
.paused .icon { margin-top: 2px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius);
  background: var(--bg-2); font-size: 15px; margin: 12px 0;
}
.notice > .icon { margin-top: 2px; }
.notice-body { display: grid; gap: 4px; min-width: 0; }
.notice-warn { background: var(--low-bg); color: #5C3A00; }
.notice-info { background: var(--info-bg); color: #10316B; }
.notice-bad { background: var(--bad-bg); color: #7A1A12; }
.change-list { margin: 4px 0 0; padding-left: 18px; }

/* ---------- catalog ---------- */
.catalog { padding-top: 16px; }
.hero { margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); aspect-ratio: 12 / 5; max-height: 340px; width: 100%; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .hero { aspect-ratio: 3 / 1; } }
.deals { margin: 0 -16px 12px; }
.deals-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.deals-row::-webkit-scrollbar { display: none; }
.promo-card {
  flex: 0 0 auto; width: min(300px, 80vw); scroll-snap-align: start; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--brand-line);
}
.promo-icon { color: var(--brand-text); margin-top: 2px; }
.promo-name { font-weight: 700; color: var(--brand-text); }
.promo-sentence { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.product-promos .promo-card { width: auto; }

.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 720px; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-input {
  width: 100%; height: 46px; padding: 0 44px 0 42px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--bg-2); font-size: 16px; appearance: none; -webkit-appearance: none;
}
.search-input::-webkit-search-cancel-button { display: none; }
.search-input:focus { background: var(--bg); border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.search-clear {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0;
  background: transparent; border-radius: 999px; color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center;
}
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.sort { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 14px; color: var(--ink-3); }
.sort-wrap { position: relative; display: inline-flex; }
.sort-select {
  height: 44px; padding: 0 34px 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg);
  font-size: 15px; font-weight: 500; color: var(--ink); appearance: none; -webkit-appearance: none; max-width: 52vw; text-overflow: ellipsis;
}
.sort-select:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sort-caret { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-3); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 4px; padding: 4px 16px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg); font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink-2);
  position: relative;
}
.chip::after { content: ""; position: absolute; inset: -3px 0; } /* 44px tap target */
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:hover:not([aria-pressed="true"]) { border-color: var(--ink-3); }
.result-count { font-size: 14px; min-height: 1.5em; }
.cat-section { margin-bottom: 28px; }
.cat-title { font-size: 19px; font-weight: 700; margin: 4px 0 12px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; flex: 1 1 auto; border-radius: var(--radius); }
.card-link:hover .card-name { text-decoration: underline; text-underline-offset: 2px; }
.card-link:hover .media img { transform: scale(1.03); }
.media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.media-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3)); color: #8B929B;
  font-weight: 600; font-size: clamp(28px, 9vw, 44px); letter-spacing: .02em; user-select: none;
}
.media-badges { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.sale-badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--bad); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 20px;
}
.sale-badge.inline { margin-left: 8px; vertical-align: middle; }
.promo-badge {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 8px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 600; line-height: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.promo-badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-body { display: grid; gap: 2px; padding: 0 2px; }
.card-name {
  font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html:lang(my) .card-name { line-height: 1.6; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price { font-weight: 700; font-size: 15px; }
.price.on-sale { color: var(--bad); }
.compare { color: var(--ink-3); font-size: 13px; }
.price-row.large .price { font-size: 24px; }
.price-row.large .compare { font-size: 16px; }
.card-meta { min-height: 22px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.stock .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.stock-in { color: var(--ok); }
.stock-low { color: var(--low); }
.stock-out { color: var(--bad); }
.stock-back { color: var(--brand-text); }
.card.is-out .media img, .card.is-out .media-ph { opacity: .55; }
.card-action { min-height: 44px; }
.card-action .btn { width: 100%; }

/* stepper */
.stepper { display: inline-flex; align-items: center; justify-content: space-between; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); min-height: 44px; }
.stepper.compact { width: 100%; }
.card-action .stepper { width: 100%; border-color: var(--brand-line); background: var(--brand-soft); }
.stepper-btn {
  width: 44px; height: 44px; border: 0; background: transparent; border-radius: 999px; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.stepper-btn:hover:not(:disabled) { background: rgba(0, 0, 0, .05); }
.stepper-btn:disabled { color: #B8BDC4; }
.stepper-value { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.line-side .stepper { width: 132px; }

/* empty / error */
.empty { text-align: center; padding: 48px 16px; display: grid; justify-items: center; gap: 10px; }
.empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.empty-icon.bad { background: var(--bad-bg); color: var(--bad); }
.empty-title { font-size: 20px; font-weight: 700; outline: none; }
.empty .btn { margin-top: 8px; }

/* skeletons */
.sk { background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-3) 40%, var(--bg-2) 80%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: var(--radius-sm); }
.sk-line { height: 14px; margin: 6px 0; width: 90%; }
.sk-line.short { width: 55%; }
.sk-input { flex: 1; height: 46px; border-radius: 999px; }
.sk-select { width: 120px; height: 46px; border-radius: 999px; }
.sk-chip { width: 84px; height: 40px; border-radius: 999px; flex: none; }
.sk-title { height: 28px; width: 70%; margin: 8px 0 16px; }
.sk-btn { height: 52px; border-radius: 999px; margin-top: 16px; }
.site-header .logo.sk { display: inline-block; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- product page ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 8px 0 4px -6px; padding: 0 8px 0 4px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 999px;
}
.back-link:hover { color: var(--ink); background: var(--bg-2); }
.product { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .gallery { position: sticky; top: calc(var(--header-h) + 16px); }
}
.gallery { min-width: 0; }
.gallery-stage { position: relative; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.gallery-media { border-radius: 0; }
.gallery > .gallery-media { border-radius: var(--radius); }
.gallery-media .media-ph { font-size: clamp(48px, 18vw, 96px); }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); display: none; align-items: center; justify-content: center;
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .gallery-nav { display: inline-flex; } }
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gdot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.gdot.on { background: #fff; width: 18px; border-radius: 999px; }
.thumbs { display: none; gap: 8px; margin-top: 10px; overflow-x: auto; }
@media (min-width: 900px) { .thumbs { display: flex; } .gallery-dots { display: none; } }
.thumb { width: 72px; height: 72px; flex: none; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--ink); }

.product-info { display: grid; gap: 14px; align-content: start; min-width: 0; }
.crumbs { font-size: 14px; }
.product-name { font-size: 24px; font-weight: 700; outline: none; overflow-wrap: anywhere; }
@media (min-width: 900px) { .product-name { font-size: 30px; } }
.product-price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.product-stock:empty { display: none; }
.product-promos { display: grid; gap: 8px; }
.variants { display: grid; gap: 8px; }
.field-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.variant-list { display: grid; gap: 8px; }
.variant {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; border: 1px solid var(--line-2);
  border-radius: var(--radius); cursor: pointer; background: var(--bg); transition: border-color .15s, box-shadow .15s;
}
.variant:hover { border-color: var(--ink-3); }
.variant:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-soft); }
.variant:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.variant.is-out { cursor: not-allowed; color: var(--ink-3); background: var(--bg-2); }
.variant input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.variant-main { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.variant-name { font-weight: 600; }
.variant-price { display: grid; justify-items: end; font-weight: 700; white-space: nowrap; }
.variant-price .compare { font-weight: 400; }
.buybar { display: block; }
.buy-row { display: flex; gap: 10px; align-items: center; }
.buy-row .stepper { flex: none; }
@media (max-width: 899.98px) {
  .buybar {
    position: sticky; bottom: 0; z-index: 15; margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(16, 24, 40, .06);
  }
}
.in-cart { font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.in-cart:empty { display: none; }
.in-cart .icon { color: var(--ok); }
.product-tools { display: flex; gap: 8px; }
.product-tools .btn { margin-left: -12px; }
.section-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.description p { color: var(--ink-2); }
.meta-list { margin: 0; display: grid; gap: 6px; font-size: 15px; }
.meta-list div { display: flex; gap: 8px; }
.meta-list dt { color: var(--ink-3); min-width: 90px; }
.meta-list dd { margin: 0; }
.field-error { color: var(--bad); font-size: 14px; font-weight: 500; margin-top: 4px; }

/* ---------- cart ---------- */
.cart-page { padding-bottom: 24px; }
.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 8px; }
.page-title { font-size: 26px; font-weight: 700; outline: none; margin: 4px 0 12px; }
.cart-head .page-title { margin: 0; }
.lines { list-style: none; margin: 0; padding: 0; }
.line {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "thumb info" "thumb side";
  gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) {
  .line { grid-template-columns: 80px minmax(0, 1fr) auto; grid-template-areas: "thumb info side"; align-items: center; }
}
.line-thumb { grid-area: thumb; display: block; text-decoration: none; }
.line-thumb .media { border-radius: var(--radius-sm); }
.line-thumb .media-ph { font-size: 22px; }
.line-info { grid-area: info; display: grid; gap: 2px; min-width: 0; }
.line-name { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.line-name:hover { text-decoration: underline; }
.line-variant, .line-unit { font-size: 14px; }
.line-side { grid-area: side; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 600px) { .line-side { flex-direction: column; align-items: flex-end; } }
.line-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.line.is-unavailable .line-name { color: var(--ink-3); text-decoration: line-through; }
.cart-summary { display: grid; gap: 12px; padding: 16px 0 0; }
.cart-summary.in-drawer { position: sticky; bottom: 0; background: var(--bg); padding: 16px 0 calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 8px; }
.meter { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-2); }
.meter-text { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; }
.meter-bar { height: 6px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.meter-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s ease; }
.meter.done { background: var(--ok-bg); color: var(--ok); }
.meter.done .meter-bar span { background: var(--ok); }
.sum-rows { display: grid; gap: 6px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.sum-row.total { font-size: 18px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.sum-row.good { color: var(--ok); }
.promo-note, .blocker, .order-note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.promo-note .icon, .blocker .icon, .order-note .icon { margin-top: 3px; }
.promo-note .icon { color: var(--brand-text); }
.blocker { color: #5C3A00; background: var(--low-bg); padding: 10px 12px; border-radius: var(--radius-sm); }

/* ---------- checkout ---------- */
.checkout { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
  .checkout-side { position: sticky; top: calc(var(--header-h) + 16px); padding-top: 52px; }
}
.checkout-main { display: grid; gap: 16px; min-width: 0; }
.checkout-main .page-title { margin-bottom: 0; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--bg); display: grid; gap: 12px; }
.choice-set { display: grid; gap: 10px; }
.choice-set.invalid .choice { border-color: #F1B8B2; }
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  cursor: pointer; min-height: 56px; transition: border-color .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--ink-3); }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.choice-icon { color: var(--ink-2); flex: none; margin-top: 1px; }
.choice-main { display: grid; gap: 2px; min-width: 0; }
.choice-title { font-weight: 600; }
.choice-desc { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-line; }
.pay-how { display: grid; gap: 4px; margin-top: 8px; padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); border: 1px dashed var(--brand-line); font-size: 14px; }
.field { display: grid; gap: 4px; }
.input {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg); font-size: 16px; line-height: 1.4;
}
textarea.input { resize: vertical; min-height: 72px; }
.input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.hint { font-size: 13px; color: var(--ink-3); }
.summary { gap: 14px; }
.summary .section-title { margin-bottom: 0; }
.summary-body { display: grid; gap: 12px; }
.mini-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-lines li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; font-size: 15px; align-items: baseline; }
.mini-lines li.is-unavailable { color: var(--ink-3); }
.mini-qty { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mini-name { overflow-wrap: anywhere; }
.mini-total { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.edit-cart { font-size: 14px; font-weight: 600; justify-self: start; min-height: 32px; display: inline-flex; align-items: center; }
.place-status { font-size: 14px; color: var(--ink-2); text-align: center; }
.place-status:empty { display: none; }
.form-error .notice { margin: 0; }
.form-error:empty { display: none; }
.place-btn[aria-busy="true"] { opacity: .85; cursor: progress; }

/* ---------- order status ---------- */
.order-page .order-body { display: grid; gap: 16px; }
.thanks { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--ok-bg); color: #0A4D29; }
.thanks-icon { color: var(--ok); }
.thanks-title { font-size: 18px; font-weight: 700; }
.status-hero { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--brand-soft); }
.status-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.status-text { display: grid; gap: 4px; min-width: 0; }
.status-title { font-size: 26px; font-weight: 800; outline: none; letter-spacing: -.01em; }
.status-desc { font-size: 16px; color: var(--ink-2); }
.status-reason { font-size: 15px; font-weight: 500; }
.st-completed.status-hero { background: var(--ok-bg); }
.st-completed .status-icon { background: var(--ok); color: #fff; }
.st-cancelled.status-hero { background: var(--bad-bg); }
.st-cancelled .status-icon { background: var(--bad); color: #fff; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(11, 122, 62, .5); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(11, 122, 62, .45); } 70% { box-shadow: 0 0 0 8px rgba(11, 122, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 122, 62, 0); } }
.code-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.order-code { font-size: 24px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.save-code { grid-column: 1 / -1; color: var(--ink-2); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.step { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step.is-done::before { background: var(--brand); }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--line-2); background: var(--bg); color: #fff; position: relative; z-index: 1;
}
.step.is-done .step-dot { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.step.is-current .step-dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.step.is-current .step-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.step.is-cancelled .step-dot { background: var(--bad); border-color: var(--bad); }
.step-text { display: grid; gap: 0; padding-top: 2px; min-width: 0; }
.step-label { font-weight: 600; }
.step.is-todo .step-label { color: var(--ink-3); font-weight: 500; }
.step.is-current .step-label { color: var(--ink); font-weight: 700; }
.step.is-cancelled .step-label { color: var(--bad); }
.step-time { font-size: 13px; color: var(--ink-3); }
.cancel-row { display: flex; justify-content: center; }
.contact-row { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-row .btn { flex: 1 1 140px; }
.details { margin: 0; display: grid; gap: 10px; }
.details div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
.details dt { color: var(--ink-3); font-size: 15px; }
.details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .details div { grid-template-columns: 1fr; gap: 0; } }

/* dialogs */
.modal { border: 0; border-radius: 16px; padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--ink); }
.modal::backdrop { background: rgba(17, 24, 39, .45); }
.modal-body { display: grid; gap: 12px; padding: 20px; }
.modal-title { font-size: 20px; font-weight: 700; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.modal-actions .btn { flex: 1 1 140px; }

/* ---------- my orders ---------- */
.order-list { list-style: none; margin: 16px 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.order-list li + li { border-top: 1px solid var(--line); }
.order-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px; text-decoration: none; color: inherit; }
.order-row:hover { background: var(--bg-2); }
.order-row-main { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.order-row-code { font-weight: 700; letter-spacing: .05em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.status-chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand-text); white-space: nowrap;
}
.status-chip.st-completed { background: var(--ok-bg); color: var(--ok); }
.status-chip.st-cancelled, .status-chip.st-missing { background: var(--bad-bg); color: var(--bad); }
.status-chip.st-ready, .status-chip.st-out_for_delivery { background: var(--low-bg); color: var(--low); }
.empty-orders { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.track-form { display: grid; gap: 6px; }
.track-row { display: flex; gap: 8px; }
.track-row .input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; letter-spacing: .06em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.track-row .input::placeholder { letter-spacing: .06em; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 24px; padding: 28px 0 16px; font-size: 15px; }
.footer-inner { display: grid; gap: 20px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.3fr 1fr .8fr; gap: 40px; } }
.footer-name { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.footer-about { color: var(--ink-2); }
.footer-info, .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-info li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); overflow-wrap: anywhere; }
.footer-info .icon { margin-top: 3px; color: var(--ink-3); }
.footer-info a { color: var(--ink); min-height: 32px; }
.footer-label { font-weight: 700; margin-bottom: 6px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); }
.powered { margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; }
.powered a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); text-decoration: none; min-height: 44px; opacity: .85; }
.powered a:hover { color: var(--ink); }
.powered-mark { width: 14px; height: 14px; border-radius: 4px; background: url("/favicon.svg") center / cover no-repeat; filter: grayscale(1); opacity: .7; }
body[data-mode="store"] .site-footer:not(:has(.footer-inner)) { margin-top: 0; padding-top: 0; background: transparent; border-top: 0; }
body[data-mode="store"] .site-footer:not(:has(.footer-inner)) .powered { text-align: center; border-top: 0; }
.closed-info { text-align: left; margin: 4px 0; }
body.has-cartbar .site-footer { padding-bottom: 96px; }

/* ---------- phone cart bar ---------- */
.cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; }
.cartbar-inner {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px 8px 10px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); text-decoration: none; box-shadow: var(--shadow-lg); font-weight: 600;
}
.cartbar-count { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.cartbar-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cartbar-cta { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.cartbar.pulse .cartbar-inner { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@media (min-width: 900px) { .cartbar { display: none !important; } body.has-cartbar .site-footer { padding-bottom: 16px; } }

/* ---------- desktop drawer ---------- */
.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); max-width: 100vw;
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg);
}
.drawer[open] { animation: slidein .22s ease-out; }
.drawer::backdrop { background: rgba(17, 24, 39, .4); }
@keyframes slidein { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-panel { position: relative; height: 100%; display: flex; flex-direction: column; }
.drawer-close { position: absolute; top: 10px; right: 10px; z-index: 2; }
.drawer-content { flex: 1 1 auto; overflow-y: auto; padding: 16px 20px 0; display: flex; flex-direction: column; }
.drawer-content .lines { flex: 1 0 auto; }
.drawer-title { font-size: 22px; font-weight: 700; outline: none; }
.drawer .cart-head { padding-right: 48px; margin-top: 4px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
body.has-cartbar .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
body[data-route="product"] .toasts { bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .toasts, body.has-cartbar .toasts, body[data-route="product"] .toasts { bottom: 24px; } }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 520px; min-height: 48px; padding: 8px 8px 8px 18px;
  background: #1F2328; color: #fff; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: 15px; font-weight: 500;
  animation: toastin .2s ease-out;
}
.toast:not(:has(.toast-action)) { padding-right: 18px; }
.toast-action { color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- closed store ---------- */
.closed-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.closed-card { max-width: 460px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.closed-card h1 { font-size: 24px; font-weight: 700; outline: none; }
.closed-card .logo { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; }
.closed-mark { width: 64px; height: 64px; border-radius: 16px; background: var(--bg-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.closed-lang { margin-top: 12px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .sk { animation: none; }
  .card-link:hover .media img { transform: none; }
}

/* =================== Marketplace =================== */
.market-logo { background: transparent; border-radius: 10px; }
.mk-hero { background: linear-gradient(180deg, var(--brand-soft), rgba(255, 255, 255, 0)); padding: 28px 0 16px; }
.mk-hero-title { font-size: 26px; font-weight: 800; letter-spacing: -.01em; outline: none; max-width: 720px; }
.mk-hero-body { color: var(--ink-2); margin-top: 6px; max-width: 640px; }
.mk-search { display: flex; gap: 8px; margin-top: 16px; max-width: 760px; }
.mk-search .search { max-width: none; }
.mk-search-input { height: 52px; background: var(--bg); box-shadow: var(--shadow); border-color: var(--line); }
.mk-search-btn { min-height: 52px; flex: none; }
@media (min-width: 900px) { .mk-hero { padding: 48px 0 24px; } .mk-hero-title { font-size: 36px; } }
@media (max-width: 420px) { .mk-search-btn { padding: 10px 14px; } }
.mk-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 8px; }
.mk-filters .chips { flex: 1 1 100%; margin-bottom: 0; }
@media (min-width: 900px) { .mk-filters .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 4px 0 8px; } }
.city { color: var(--ink-2); }
.city-select { min-width: 150px; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; }
.cat-chip .icon { color: var(--ink-3); }
.cat-chip[aria-pressed="true"] .icon { color: #fff; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; }
.section-h2 { font-size: 20px; font-weight: 700; }
.see-all { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; flex: none; }
@media (max-width: 599px) { .section-h2 { font-size: 18px; } }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }
.product-row { grid-auto-columns: minmax(160px, 200px); }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.store-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); color: var(--ink); text-decoration: none; transition: box-shadow .15s, border-color .15s; min-width: 0; }
.store-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.store-card-cover { position: relative; height: 84px; background: var(--bg-3); }
.store-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.store-card-paused { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--low-bg); color: #5C3A00; font-size: 12px; font-weight: 600; }
.store-card-body { display: flex; gap: 12px; padding: 0 14px 14px; align-items: flex-start; }
.store-card-body .logo { width: 48px; height: 48px; margin-top: -20px; border: 3px solid #fff; border-radius: 12px; box-sizing: content-box; flex: none; }
.store-card-text { display: grid; gap: 1px; min-width: 0; padding-top: 8px; }
.store-card-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-card-meta, .store-card-areas, .store-card-count { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-card-count { color: var(--ink-2); font-weight: 500; }
.sk-store { min-height: 150px; }
.load-more { display: flex; justify-content: center; margin: 24px 0 8px; }
.card-store { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 2px; min-width: 0; }
.store-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 1px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.store-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-city { font-size: 12px; color: var(--ink-3); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.facts li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.facts .icon { margin-top: 2px; color: var(--ink-3); }
.facts strong { color: var(--ink); }
.mk-store-head { display: grid; gap: 14px; padding-bottom: 8px; }
.mk-store-banner { border-radius: var(--radius); overflow: hidden; aspect-ratio: 12 / 5; max-height: 280px; background: var(--bg-3); }
.mk-store-banner img { width: 100%; height: 100%; object-fit: cover; }
.mk-store-id { display: flex; gap: 14px; align-items: center; }
.mk-store-id.over-banner { padding: 0 12px; align-items: flex-start; }
.mk-store-id.over-banner .logo { margin-top: -40px; }
.mk-store-id.over-banner .mk-store-text { padding-top: 6px; }
.mk-store-id .logo { width: 72px; height: 72px; border-radius: 16px; border: 4px solid #fff; box-sizing: content-box; font-size: 24px; box-shadow: var(--shadow); }
.mk-store-text { min-width: 0; display: grid; gap: 2px; }
.mk-store-name { font-size: 24px; font-weight: 800; outline: none; overflow-wrap: anywhere; }
.mk-store-tag { color: var(--ink-2); }
.mk-store-about { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mk-store-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-store-actions .contact-row { display: contents; }
.mk-store-actions .contact-row .btn { flex: 0 1 auto; }
.mk-store .catalog { padding-top: 4px; }
.store-box { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.store-box .section-title { margin: 0; font-size: 14px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
html:lang(my) .store-box .section-title { text-transform: none; letter-spacing: 0; }
.store-box-head { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 44px; }
.store-box-head:hover .store-box-name { text-decoration: underline; }
.store-box-text { display: grid; flex: 1 1 auto; min-width: 0; }
.store-box-name { font-weight: 700; }
.more-from { margin-top: 32px; }
.shop-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 16px; margin-bottom: 16px; }
.shop-group .lines .line:last-child { border-bottom: 0; }
.shop-group-head { padding: 12px 0 4px; border-bottom: 1px solid var(--line); }
.shop-group-link { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.shop-group-link .logo { width: 36px; height: 36px; border-radius: 9px; font-size: 13px; }
.shop-group-text { display: grid; min-width: 0; }
.shop-group-name { font-weight: 700; }
.shop-group-link:hover .shop-group-name { text-decoration: underline; }
.shop-group-loading { padding: 12px 0; }
.shop-group-sum { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.shop-checkout { gap: 14px; }
.shop-checkout .shop-group-head { padding-top: 0; }
.shop-checkout-sum { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.shop-totals li { align-items: center; }
.shop-totals .mini-qty { color: var(--ink-3); display: inline-flex; }
.sum-row.grand { font-size: 19px; }
.order-shop { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.order-shop .logo { width: 32px; height: 32px; border-radius: 8px; font-size: 12px; }
.order-row-shop { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.sell-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; min-height: 52px; border-radius: var(--radius); background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; }
.sell-link:hover { background: #000; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.track-form select.input { appearance: auto; }

/* =================== Delivery zones =================== */
.loc-picker { display: grid; gap: 10px; }
.loc-row { display: grid; gap: 10px; }
@media (min-width: 600px) { .loc-row { grid-template-columns: 1fr 1fr; align-items: start; } }
.loc-row .field { gap: 6px; }
.loc-town { display: grid; gap: 6px; }
.loc-search { min-height: 44px; padding: 8px 12px; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-msg { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.loc-msg:empty { display: none; }
.loc-msg .icon { margin-top: 3px; flex: none; }
.deliver-to { display: grid; gap: 10px; padding: 12px 14px; margin: 12px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.deliver-to-head { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.deliver-to-head > .icon { color: var(--ink-3); flex: none; }
.deliver-to-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.deliver-to-change { min-height: 36px; }
.dz-msg { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 0; }
.dz-msg .icon { margin-top: 3px; flex: none; }
.dz-ok { color: var(--ok); font-weight: 500; }
.dz-bad { color: #7A1A12; background: var(--bad-bg); padding: 8px 10px; border-radius: var(--radius-sm); }
.dz-info { color: var(--ink-2); }
.quote-box:empty { display: none; }
.quote-box { padding: 2px 0; }
#field-location.invalid .loc-picker select { border-color: var(--bad); }
.quote-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.quote-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-chip.ok { color: var(--ok); }
.quote-chip.no { color: var(--low); }
.card-store .quote-chip { flex-basis: 100%; }
.store-card-text .quote-chip { margin-top: 1px; }
.delivery-info { margin: 32px 0 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 10px; max-width: 760px; }
.delivery-info .section-title { margin: 0; }
.deliver-bar { border-top: 1px solid var(--line); background: var(--bg-2); }
.deliver-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 2px; border: 0; background: transparent;
  font-size: 14px; color: var(--ink); max-width: 100%;
}
.deliver-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deliver-chip > .icon:first-child { color: var(--brand-text); }
.deliver-chip:hover strong { text-decoration: underline; }
.choice.is-disabled { cursor: not-allowed; background: var(--bg-2); color: var(--ink-3); border-style: dashed; }
.choice.is-disabled .choice-desc { color: var(--low); }
.dz-filter { display: inline-flex; align-items: center; gap: 6px; }
.dz-filter[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.loc-dialog { width: min(520px, calc(100vw - 24px)); }
.loc-dialog .loc-row { grid-template-columns: 1fr; }

/* carriers: fee breakdown, featured badge */
.fee-breakdown { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 14px; }
.fee-breakdown summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; cursor: pointer; color: var(--brand-text); font-weight: 600; list-style: none; }
.fee-breakdown summary::-webkit-details-marker { display: none; }
.fee-breakdown summary::after { content: "+"; margin-left: auto; font-weight: 700; color: var(--ink-3); }
.fee-breakdown[open] summary::after { content: "−"; }
.fee-breakdown .sum-rows { padding: 0 12px 10px; gap: 4px; }
.fee-breakdown .sum-row.total { font-size: 15px; padding-top: 6px; }
.store-card-featured { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #FFF8E1; color: #6B4E00; font-size: 12px; font-weight: 700; }
.fee-breakdown .sum-row > span:last-child { white-space: nowrap; }
.fee-breakdown .sum-row > span:first-child { min-width: 0; }

/* shared receipt (/r/{token}) */
.rc { display: grid; gap: 16px; padding-top: 16px; padding-bottom: 24px; }
.rc-header { justify-content: space-between; }
.rc-header-title { font-weight: 700; font-size: 18px; }
.rc-shop { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.rc-shop .logo { width: 56px; height: 56px; border-radius: 12px; font-size: 20px; }
.rc-shop-text { display: grid; gap: 2px; min-width: 0; }
.rc-shop-name { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.rc-shop-address { overflow-wrap: anywhere; }
.rc-contact { grid-column: 1 / -1; margin-top: 8px; }
.rc-status { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--ok-bg); }
.rc-status-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; background: var(--ok); color: #fff; }
.rc-status-title { font-size: 26px; font-weight: 800; letter-spacing: -.01em; outline: none; margin: 0; }
.rc-status-desc { margin: 2px 0 0; color: var(--ink-2); }
.rc-partial { background: var(--low-bg); }
.rc-partial .rc-status-icon { background: var(--low); }
.rc-refunded { background: var(--bg-3); }
.rc-refunded .rc-status-icon { background: var(--ink-2); }
.rc-voided { background: var(--bad-bg); }
.rc-voided .rc-status-icon { background: var(--bad); }
.rc-meta { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.rc-meta-right { text-align: right; }
.rc-meta-full { grid-column: 1 / -1; }
.rc-no { font-weight: 700; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.rc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rc-line-main { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rc-line-name { overflow-wrap: anywhere; min-width: 0; }
.rc-line-total { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-line-sub { font-variant-numeric: tabular-nums; }
.rc-line-sub .good { color: var(--ok); }
.rc-refunded-line { color: var(--low); }
.rc-refund-row { color: var(--low); }
.rc-fulfil-row { display: flex; align-items: center; gap: 10px; }
.rc-delivery .section-title { display: flex; align-items: center; gap: 6px; }
.rc-actions { display: flex; justify-content: center; }
.rc-actions .btn { min-width: 220px; }
.rc-tz { text-align: center; margin: 0; }
.print-only { display: none; }
body[data-mode="receipt"] .site-footer .powered { text-align: center; border-top: 0; }
@media print {
  @page { margin: 12mm; }
  body { background: #fff; font-size: 12pt; }
  .no-print, .site-header .lang, .skip-link, .cartbar, .toasts, #announce, #store-banner { display: none !important; }
  .print-only { display: block; }
  .site-header { position: static; box-shadow: none; border: 0; }
  .rc { padding: 0; gap: 10px; }
  .rc .panel { border: 1px solid #ccc; break-inside: avoid; }
  .rc-status { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rc-status-icon, .step-dot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a[href]::after { content: none !important; }
}
