:root {
  --bg: #f6f6f7;
  --surface: #ffffff;
  --surface-high: #f3f1f5;
  --text: #25232a;
  --muted: #6d6973;
  --border: #e4e2e7;
  --primary: #69418b;
  --primary-hover: #573473;
  --lavender: #69418b;
  --green: #258253;
  --radius: 7px;
  --font: 'Noto Sans Thai', Tahoma, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); font: 14px/1.65 var(--font); }
html { scroll-padding-top: 100px; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.45; font-weight: 600; }
p { color: var(--muted); }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.muted, .small-note { color: var(--muted); }
.container, .header-inner { width: calc(100% - 64px); max-width: 1180px; margin: 0 auto; }
.announcement { min-height: 34px; padding: 6px max(32px,calc((100% - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #f0eef2; color: #67616e; font-size: 11px; }
.announcement>div { display: flex; gap: 22px; }
.header { background: white; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 35px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 700; line-height: 1.25; letter-spacing: -.7px; white-space: nowrap; }
.brand-light { font-weight: 400; }
.brand:hover { color: var(--text); }
.brand img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.header nav { align-self: stretch; display: flex; align-items: stretch; gap: 25px; margin: 0 auto; }
.header nav a { display: flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; font-size: 13px; white-space: nowrap; color: #5f5a64; }
.header nav a.active { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--primary); border-radius: 5px; background: var(--primary); color: white; font-weight: 500; line-height: 1.5; white-space: nowrap; transition: background .15s; }
.button:hover:not(:disabled) { background: var(--primary-hover); color: white; }
.button.secondary { background: white; color: #4f4955; border-color: #d8d4dd; }
.button.secondary:hover:not(:disabled) { background: #f3f1f5; color: var(--primary); }
.button.small { padding: 8px 14px; font-size: 12px; }
.button.full { width: 100%; }
.button .icon { width: 17px; height: 17px; }
.icon-button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 5px; padding: 10px; }
.icon-button:hover { background: #f1eef4; }
.cart-button, .account-button { display: flex; align-items: center; gap: 8px; min-height: 44px; background: none; border: 0; padding: 5px 0; font-size: 12px; }
.cart-count { background: #ece6f1; color: #60407c; border-radius: 4px; min-width: 21px; line-height: 21px; text-align: center; font-size: 11px; }
.account-button { max-width: 145px; }
.account-button span { overflow: hidden; text-overflow: ellipsis; }
.store-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 31px 0 19px; }
.store-heading h1 { font-size: 26px; margin: 0 0 4px; }
.store-heading p { margin: 0; font-size: 13px; }
.plain-link { display: inline-flex; align-items: center; gap: 3px; color: #5c5365; font-size: 12px; min-height: 44px; }
.plain-link .icon { width: 15px; height: 15px; }
.shop-note { display: flex; align-items: start; gap: 9px; padding: 11px 14px; color: #74644d; background: #faf7ef; border: 1px solid #e9e2d1; border-radius: 5px; font-size: 12px; margin-bottom: 26px; }
.shop-note .icon { width: 16px; height: 16px; margin-top: 2px; }
.catalog-layout { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 28px; }
.filters { min-width: 0; align-self: start; padding-right: 22px; border-right: 1px solid var(--border); }
.filters h2 { font-size: 14px; margin: 10px 0 13px; }
.type-list { display: grid; gap: 4px; }
.type-link { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px; border: 0; border-radius: 5px; background: none; font-size: 13px; min-height: 44px; }
.type-link>span { display: inline-flex; align-items: center; gap: 9px; }
.type-link .icon { width: 17px; height: 17px; }
.type-link small { font-size: 11px; color: #77707e; }
.type-link:hover, .category:hover { background: #eeebf1; }
.type-link.active { background: #ece6f2; color: #623d82; font-weight: 500; }
.category-group { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--border); }
.category-group[hidden] { display: none; }
.category-group h3 { font-size: 12px; font-weight: 500; margin: 0 0 6px 10px; color: var(--muted); }
.category { width: 100%; min-height: 40px; border: 0; border-radius: 4px; background: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; color: #615b67; font-size: 12px; }
.category.active { color: var(--primary); font-weight: 600; background: #f0edf4; }
.category-count { color: #817989; font-size: 10px; }
.filter-help { margin-top: 23px; border-top: 1px solid var(--border); padding: 22px 9px 0; }
.filter-help b { font-weight: 500; font-size: 12px; }
.filter-help p { font-size: 11px; margin: 6px 0; line-height: 1.85; }
.filter-help a { color: var(--primary); font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.filter-help .icon { width: 13px; height: 13px; }
.catalog-content { min-width: 0; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.search { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; background: white; border: 1px solid #dcd8e1; border-radius: 5px; padding: 0 13px; height: 44px; }
.search .icon { width: 17px; height: 17px; color: #827a89; }
.search input { width: 100%; min-width: 0; border: 0!important; outline: 0; background: none!important; padding: 8px 0!important; font-size: 13px; }
.search:focus-within { outline: 2px solid var(--primary); outline-offset: 1px; }
.sort { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.sort select { width: 145px; font-size: 12px; padding: 10px; }
.result-line { margin: 15px 0; color: #706976; font-size: 12px; }
.result-line b { color: var(--text); font-weight: 500; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.product-card { min-width: 0; background: white; border: 1px solid #e1dfe5; border-radius: 6px; overflow: hidden; }
.product-card:hover { border-color: #b6a7c2; }
.product-image { position: relative; width: 100%; aspect-ratio: 1.5; display: flex; align-items: center; justify-content: center; border: 0; border-bottom: 1px solid #eeedf0; padding: 12px; background: #f0eff1; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-tag { position: absolute; top: 12px; left: 12px; background: #fff; color: #675475; border: 1px solid #dfd6e5; font-size: 10px; line-height: 1.5; padding: 2px 7px; border-radius: 3px; }
.product-info { padding: 15px 16px 16px; }
.product-category { display: block; color: #77717d; font-size: 11px; margin-bottom: 2px; }
.product-info h2 { margin: 0; font-size: inherit; }
.product-title { display: flex; align-items: center; min-height: 34px; font-size: 15px; font-weight: 500; line-height: 1.4; text-align: left; padding: 0; background: none; border: 0; overflow-wrap: anywhere; }
.product-title:hover { color: var(--primary); }
.product-bottom { display: flex; align-items: baseline; gap: 7px; margin: 8px 0 13px; }
.price { font-size: 22px; font-weight: 600; color: var(--primary); line-height: 1.4; font-variant-numeric: tabular-nums; }
.product-unit { font-size: 10px; color: #847c8b; }
.add-button { min-height: 41px; width: 100%; border: 1px solid #bda9cc; background: white; color: var(--primary); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px; font-size: 12px; }
.add-button:hover { background: #f1ebf6; border-color: var(--primary); }
.add-button .icon { width: 16px; height: 16px; }
.store-help { margin: 37px 0 45px; padding: 23px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.store-help>div { display: flex; align-items: center; gap: 13px; }
.store-help>div>.icon { width: 24px; height: 24px; color: #84738e; }
.store-help b { display: block; font-weight: 500; font-size: 12px; }
.store-help small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.store-help>a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--primary); font-size: 12px; }
.store-help>a>.icon { width: 14px; height: 14px; }
.page-heading { padding: 32px 0 26px; }
.page-heading h1 { font-size: 27px; margin: 0 0 7px; }
.page-heading p { font-size: 13px; margin: 0; }
.loading-page { min-height: 65vh; display: grid; place-items: center; color: var(--muted); }
.panel { background: white; border: 1px solid var(--border); border-radius: var(--radius); }
.empty-state { padding: 55px 24px; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state>.icon { width: 36px; height: 36px; color: #9b8da5; margin-bottom: 18px; }
.empty-state h2, .empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { font-size: 13px; max-width: 430px; }
.full-span { grid-column: 1/-1; }
.orders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 19px; color: var(--muted); font-size: 13px; }
.orders-toolbar h2 { font-size: 21px; color: var(--text); margin: 0; }
.orders-list { display: grid; gap: 20px; padding-bottom: 45px; }
.order-card { background: white; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 22px; background: #fbfafc; border-bottom: 1px solid var(--border); }
.order-top b { font-size: 13px; font-weight: 500; }
.order-top small { margin-left: 15px; color: var(--muted); font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 4px; padding: 4px 9px; color: #674087; background: #efe8f5; font-size: 11px; white-space: nowrap; }
.status>span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.awaiting_payment { color: #89621b; background: #fbf1dc; }
.status.queued { color: #674087; background: #eee6f6; }
.status.processing { color: #2c648c; background: #e8f2fa; }
.status.delivered { color: #25734e; background: #e6f3ea; }
.status.expired { color: #8b5559; background: #f6e9eb; }
.order-body { display: flex; justify-content: space-between; gap: 25px; padding: 23px; }
.order-body h3 { font-size: 17px; font-weight: 500; margin-bottom: 9px; }
.order-body p { font-size: 12px; margin-bottom: 4px; }
.order-body p .icon { width: 14px; height: 14px; }
.order-end { display: flex; flex-direction: column; align-items: end; gap: 12px; flex-shrink: 0; }
.order-end strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.order-progress { display: grid; grid-template-columns: repeat(4,1fr); padding: 13px 23px; border-top: 1px solid var(--border); gap: 10px; }
.order-progress>span { display: flex; align-items: center; justify-content: center; gap: 7px; color: #8b8590; font-size: 11px; }
.order-progress .icon { width: 15px; height: 15px; }
.order-progress .done { color: var(--primary); }
footer { background: white; border-top: 1px solid var(--border); padding: 31px max(32px,calc((100% - 1180px)/2)) 0; margin-top: 25px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 24px; }
.footer-brand { font-size: 20px; gap: 8px; }
.footer-brand img { width: 48px; height: 48px; }
.footer-inner p { font-size: 11px; margin: 7px 0 0; }
.footer-links { display: flex; align-items: center; gap: 28px; color: #62596b; font-size: 12px; }
.footer-links a { padding: 10px 0; }
.footer-bottom { padding: 16px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: #807986; }
.skip-link { position: fixed; top: 8px; left: 8px; background: var(--primary); color: white; padding: 12px; z-index: 100; transform: translateY(-200%); }
.skip-link:focus { transform: none; color: white; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
dialog { background: white; border: 1px solid #ded8e4; border-radius: 9px; color: var(--text); padding: 32px; width: calc(100% - 32px); max-width: 470px; max-height: calc(100dvh - 40px); overflow-y: auto; box-shadow: 0 16px 70px #21132c33; }
dialog::backdrop { background: #211a2a70; }
.modal-close { position: absolute; right: 8px; top: 8px; color: #6d6179; }
.modal-close .icon { width: 19px; height: 19px; }
dialog h2 { font-size: 23px; margin: 3px 25px 10px 0; }
dialog p { font-size: 13px; }
dialog label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: #514958; margin-bottom: 18px; }
input:not([type=checkbox]):not([type=file]), select, textarea { min-height: 44px; width: 100%; border: 1px solid #d8d2de; border-radius: 5px; background: white; color: var(--text); padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: #8b8392; font-size: 12px; }
textarea { resize: vertical; }
.form-error:empty { display: none; }
.form-error { background: #fdf0f0; border: 1px solid #e6b8bc; color: #994248; padding: 10px 12px; border-radius: 5px; font-size: 12px; margin: 15px 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { display: block; margin: -6px 0 20px; color: var(--muted); font-size: 11px; }
.modal-brand { margin-bottom: 20px; }
.modal-brand img { width: 96px; height: 96px; object-fit: contain; }
.auth-modal>p { margin-bottom: 24px; }
.registration-challenge { margin: 4px 0 18px; min-width: 0; }
.challenge-widget { max-width: 100%; }
.challenge-status { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.auth-switch { text-align: center; margin: 18px 0 0!important; font-size: 12px!important; }
.auth-switch button { min-height: 44px; border: 0; background: none; color: var(--primary); padding: 8px; }
.eyebrow { display: inline-block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.detail-image { display: flex; align-items: center; justify-content: center; background: #f1eff3; margin: -32px -32px 23px; min-height: 220px; padding: 20px; }
.detail-image img { width: 100%; height: auto; max-height: 270px; object-fit: contain; }
.detail-price { color: var(--primary); font-size: 29px; font-weight: 600; margin: 20px 0; font-variant-numeric: tabular-nums; }
.small-note { font-size: 11px!important; line-height: 1.85; margin: 15px 0; }
.cart-modal { max-width: 570px; }
.cart-items { margin-top: 23px; }
.cart-item { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.cart-item>img { width: 95px; height: 65px; object-fit: contain; background: #f2f0f4; border-radius: 4px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info b { display: block; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.cart-item-info small { color: var(--muted); font-size: 12px; }
.quantity { display: flex; align-items: center; border: 1px solid #dcd5e3; border-radius: 5px; overflow: hidden; }
.quantity button { background: #f8f6fa; border: 0; min-height: 44px; width: 38px; display: flex; align-items: center; justify-content: center; }
.quantity button .icon { width: 14px; height: 14px; }
.quantity span { width: 24px; text-align: center; font-size: 12px; }
.cart-total { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; font-size: 14px; }
.cart-total b { font-size: 23px; font-variant-numeric: tabular-nums; }
.notice { display: flex; align-items: start; gap: 10px; background: #f7f4fa; border: 1px solid #e1d6e9; color: #6b587a; border-radius: 5px; padding: 12px 14px; margin-bottom: 22px; font-size: 12px; line-height: 1.8; }
.notice>.icon { width: 17px; height: 17px; margin-top: 2px; }
.check-label { display: flex!important; flex-direction: row!important; align-items: center!important; gap: 10px!important; font-size: 12px!important; min-height: 36px; cursor: pointer; }
.check-label input { width: 17px; height: 17px; accent-color: var(--primary); flex-shrink: 0; }
.order-ref { color: var(--muted); font-size: 12px!important; }
.payment-modal { text-align: center; }
.payment-modal h2 { margin-right: 0; }
.payment-timer { display: flex; align-items: center; justify-content: center; gap: 9px; background: #f4f0f7; border: 1px solid #e3d9eb; padding: 10px; margin: 22px 0; color: #65477c; border-radius: 5px; font-size: 13px; }
.payment-timer strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.qr-area { min-height: 235px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; }
.qr-area img { border: 1px solid var(--border); padding: 9px; background: white; border-radius: 5px; }
.qr-area>b { font-size: 13px; }
.qr-unconfigured { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 210px; width: 100%; padding: 20px; border: 1px dashed #cabbd5; background: #fbf9fc; border-radius: 6px; }
.qr-unconfigured>.icon { width: 29px; height: 29px; color: #8a709c; margin-bottom: 14px; }
.qr-unconfigured b { font-size: 15px; font-weight: 500; }
.qr-unconfigured p { margin: 7px 0 0; font-size: 12px; line-height: 1.9; }
.payment-amount { position: relative; margin: 22px 0 8px; }
.payment-amount>span { display: block; color: var(--muted); font-size: 12px; }
.payment-amount strong { font-size: 38px; color: var(--primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.payment-amount>.icon-button { position: absolute; right: 0; bottom: 4px; color: var(--primary); }
.payment-breakdown { display: flex; justify-content: center; gap: 18px; color: var(--muted); font-size: 11px; margin-bottom: 23px; }
.payment-modal .notice { text-align: left; }
.payment-live { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px!important; }
.dot { display: inline-block; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.poll-error { color: #a03f3f; font-size: 12px!important; }
.poll-error:empty { display: none; }
.payment-result { padding: 25px 0; }
.payment-result>.icon { width: 48px; height: 48px; padding: 10px; background: #eaf5ed; color: #34815a; border-radius: 50%; margin-bottom: 18px; }
.payment-result.expired>.icon { color: #9b5959; background: #f8eaea; }
.payment-result h3 { font-size: 23px; margin-bottom: 12px; }
.payment-result p { line-height: 1.9; }
.spaced { margin-top: 12px; }
.upload-label { background: #f8f6fa; padding: 15px; border: 1px dashed #c7b9d1; border-radius: 5px; }
.upload-label input { max-width: 100%; font-size: 11px; }
.upload-label input::file-selector-button { background: white; border: 1px solid #cbbcd7; border-radius: 4px; padding: 8px; margin-right: 8px; font: inherit; color: #634b77; cursor: pointer; }
.product-modal { max-width: 530px; }
.narrow { max-width: 800px; padding-bottom: 50px; }
.guide-steps { display: grid; gap: 17px; margin: 0 0 28px; }
.guide-steps article { display: flex; gap: 23px; padding: 24px; background: white; border: 1px solid var(--border); border-radius: 6px; }
.guide-steps article>span { font-size: 24px; color: #8a729b; font-weight: 500; }
.guide-steps h2 { font-size: 19px; margin: 0 0 7px; }
.guide-steps p { font-size: 13px; line-height: 1.9; margin: 0; }
.faq { margin-top: 45px; }
.faq h2 { font-size: 22px; margin-bottom: 17px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; font-size: 14px; }
.faq summary .icon { width: 17px; height: 17px; color: #856e97; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { font-size: 13px; line-height: 1.9; padding-right: 26px; }
.admin-container { padding-bottom: 55px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 17px; margin-bottom: 25px; }
.stat { background: white; border: 1px solid var(--border); border-radius: 6px; padding: 20px; }
.stat>span { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.stat>span .icon { color: #94809f; }
.stat strong { display: inline-block; margin: 13px 7px 0 0; font-size: 29px; line-height: 1.3; font-weight: 500; }
.stat small { font-size: 11px; color: var(--muted); }
.admin-tabs { display: flex; gap: 27px; border-bottom: 1px solid var(--border); margin: 25px 0; }
.admin-tabs button { min-height: 46px; padding: 10px 2px; font-size: 13px; background: none; border: 0; border-bottom: 2px solid transparent; color: #74677e; }
.admin-tabs .active { color: var(--primary); border-color: var(--primary); }
.table-wrap { border: 1px solid var(--border); border-radius: 6px; background: white; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { background: #f5f2f7; color: #73647e; font-weight: 500; font-size: 11px; }
td, th { min-width: 100px; padding: 16px 18px; }
td { border-top: 1px solid var(--border); }
td:nth-child(2) { min-width: 180px; max-width: 300px; }
td b { font-size: 12px; font-weight: 500; }
td small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.admin-products { border: 1px solid var(--border); border-radius: 6px; background: white; overflow: hidden; }
.admin-product { display: flex; align-items: center; gap: 20px; padding: 14px 20px; }
.admin-product+.admin-product { border-top: 1px solid var(--border); }
.admin-product>img { width: 95px; height: 65px; object-fit: contain; background: #f3f0f5; border-radius: 4px; }
.admin-product>div { flex: 1; min-width: 0; }
.admin-product b { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.admin-product small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.admin-product>strong { font-size: 14px; font-weight: 500; }
.transfer-list { display: grid; gap: 14px; }
.transfer { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; padding: 19px; }
.transfer>div { flex: 1; min-width: 180px; }
.transfer b { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.transfer small { display: block; color: var(--muted); font-size: 11px; }
.transfer strong { font-size: 17px; }
.transfer p { width: 100%; border-top: 1px solid var(--border); margin: 0; padding-top: 12px; font-size: 12px; }
.orders-toolbar select { min-width: 150px; font-size: 12px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%,10px); opacity: 0; pointer-events: none; z-index: 100; background: #332b3c; border: 1px solid #51445d; color: white; border-radius: 6px; padding: 13px 22px; font-size: 13px; max-width: calc(100% - 32px); text-align: center; transition: opacity .15s,transform .15s; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
@media (max-width: 1100px) {
  .header-inner { gap: 24px; }
  .header nav { gap: 18px; }
  .header nav a { font-size: 12px; }
  .brand { font-size: 21px; }
  .header-actions { gap: 12px; }
  .cart-label, .admin-link { display: none!important; }
  .catalog-layout { grid-template-columns: 175px minmax(0,1fr); gap: 22px; }
  .filters { padding-right: 17px; }
  .product-grid { gap: 15px; }
  .product-info { padding: 13px; }
  .product-title { font-size: 14px; }
  .account-button { max-width: 105px; }
}
@media (max-width: 850px) {
  .header-inner { position: relative; min-height: 116px; align-items: flex-start; padding-top: 16px; }
  .header-actions { margin-left: auto; margin-top: -3px; }
  .header nav { position: absolute; height: 43px; bottom: 0; left: 0; right: 0; justify-content: space-between; }
  .header nav a { min-height: 43px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 20px; }
  .filters { border-right: 0; padding-right: 0; }
  .filters h2, .filter-help { display: none; }
  .type-list { display: flex; gap: 9px; }
  .type-link { width: auto; border: 1px solid #dcd6e2; background: white; gap: 20px; padding: 9px 14px; }
  .type-link.active { border-color: #bda9ce; }
  .category-group { margin-top: 14px; padding-top: 0; border-top: 0; }
  .category-group h3 { display: none; }
  #category-list { display: flex; flex-wrap: wrap; gap: 7px; }
  .category { width: auto; padding: 8px 12px; gap: 15px; border: 1px solid var(--border); min-height: 44px; background: white; }
  .category.active { border-color: #c7b6d3; }
  .store-help { flex-wrap: wrap; gap: 20px 35px; }
  .store-help>a { width: 100%; }
  .stats { gap: 12px; }
  .stat { padding: 17px; }
}
@media (max-width: 600px) {
  .container, .header-inner { width: calc(100% - 28px); }
  .announcement { min-height: 29px; padding: 5px 14px; font-size: 10px; }
  .announcement>div { display: none; }
  .header-inner { min-height: 113px; gap: 12px; }
  .brand { font-size: 20px; gap: 7px; }
  .brand img { width: 44px; height: 44px; }
  .header-actions { gap: 9px; }
  .header-actions .button { padding: 9px 12px; font-size: 11px; }
  .cart-button { gap: 4px; }
  .cart-button .icon { width: 18px; height: 18px; }
  .cart-count { min-width: 17px; line-height: 19px; font-size: 10px; }
  .account-button { max-width: 93px; gap: 4px; font-size: 11px; }
  .account-button .icon { width: 16px; height: 16px; }
  .header nav { gap: 10px; }
  .header nav a { font-size: 12px; }
  .store-heading { padding: 23px 0 17px; align-items: start; gap: 12px; }
  .store-heading h1 { font-size: 24px; }
  .store-heading p { font-size: 12px; }
  .store-heading .plain-link { font-size: 10px; margin-top: 2px; white-space: nowrap; }
  .store-heading .plain-link .icon { width: 12px; height: 12px; }
  .shop-note { font-size: 11px; line-height: 1.8; padding: 10px 12px; margin-bottom: 19px; }
  .type-list { gap: 7px; }
  .type-link { flex: 1; padding: 8px 9px; gap: 8px; min-height: 44px; font-size: 11px; }
  .type-link>span { gap: 6px; }
  .type-link .icon { width: 15px; height: 15px; }
  .type-link small { font-size: 10px; }
  #category-list { flex-wrap: nowrap; overflow-x: auto; padding: 2px 1px 7px; }
  #category-list .category { flex: 0 0 auto; white-space: nowrap; }
  .category { font-size: 11px; padding: 8px 10px; gap: 10px; }
  .category-count { font-size: 10px; }
  .catalog-toolbar { gap: 9px; }
  .search { flex: 1; padding: 0 10px; gap: 7px; }
  .search input { font-size: 16px; }
  .search input::placeholder { font-size: 12px; }
  .sort { font-size: 11px; }
  .sort>span { display: none; }
  .sort select { width: 119px; padding: 10px 7px; }
  .result-line { font-size: 11px; margin: 13px 0; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .product-image { aspect-ratio: 1.32; padding: 5px; }
  .product-image img { width: 110%; max-width: none; }
  .product-tag { top: 8px; left: 8px; font-size: 9px; padding: 2px 6px; }
  .product-info { padding: 11px; }
  .product-category { font-size: 10px; }
  .product-title { font-size: 14px; min-height: 44px; }
  .product-bottom { margin: 5px 0 11px; }
  .price { font-size: 21px; }
  .product-unit { font-size: 10px; }
  .add-button { min-height: 44px; font-size: 11px; gap: 6px; padding: 8px 4px; }
  .add-button .icon { width: 14px; height: 14px; }
  .store-help { margin: 28px 0 30px; padding: 20px 0; gap: 19px; }
  .store-help>div { width: 100%; }
  .store-help b { font-size: 12px; }
  .store-help small { font-size: 11px; }
  .store-help>a { font-size: 12px; }
  footer { padding: 25px 14px 0; margin-top: 18px; }
  .footer-inner { flex-direction: column; align-items: start; gap: 17px; padding-bottom: 18px; }
  .footer-links { gap: 25px; font-size: 11px; }
  .footer-bottom { flex-direction: column; gap: 3px; font-size: 9px; }
  .page-heading { padding: 25px 0 21px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { font-size: 12px; }
  .empty-state { min-height: 280px; padding: 35px 18px; }
  .empty-state h2, .empty-state h3 { font-size: 19px; }
  .order-top { padding: 14px; align-items: start; }
  .order-top b { font-size: 11px; }
  .order-top small { display: block; margin: 4px 0 0; font-size: 10px; }
  .status { font-size: 10px; padding: 4px 7px; }
  .order-body { padding: 17px; flex-direction: column; gap: 17px; }
  .order-body h3 { font-size: 16px; }
  .order-end { flex-direction: row; align-items: center; justify-content: space-between; }
  .order-progress { padding: 12px 9px; gap: 4px; }
  .order-progress>span { flex-direction: column; font-size: 9px; gap: 5px; }
  .orders-toolbar { font-size: 11px; }
  .orders-toolbar h2 { font-size: 19px; }
  .orders-toolbar select { min-width: 130px; font-size: 11px; }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 28px 21px; border-radius: 8px; }
  dialog h2 { font-size: 23px; }
  dialog input:not([type=checkbox]):not([type=file]), dialog select, dialog textarea { font-size: 16px; }
  .modal-close { top: 5px; right: 5px; }
  .cart-item { gap: 9px; }
  .cart-item>img { width: 56px; height: 49px; }
  .cart-item-info b { font-size: 12px; }
  .cart-item-info small { font-size: 11px; }
  .quantity button { width: 36px; }
  .quantity span { width: 21px; }
  .notice { font-size: 11px; padding: 11px; gap: 8px; }
  .check-label { font-size: 11px!important; }
  .detail-image { margin: -28px -21px 21px; min-height: 180px; padding: 15px; }
  .payment-amount strong { font-size: 36px; }
  .form-row { gap: 12px; }
  .form-row label { min-width: 0; }
  .guide-steps article { padding: 20px; gap: 16px; }
  .guide-steps h2 { font-size: 17px; }
  .guide-steps p { font-size: 12px; }
  .faq summary { font-size: 13px; }
  .faq details p { font-size: 12px; }
  .admin-heading { flex-direction: column; align-items: start; gap: 0; margin-bottom: 20px; }
  .admin-heading .page-heading { padding-bottom: 15px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px; }
  .stat>span { font-size: 11px; }
  .admin-tabs { gap: 23px; margin: 20px 0; }
  .admin-tabs button { font-size: 12px; }
  .admin-product { padding: 12px; gap: 10px; flex-wrap: wrap; }
  .admin-product>img { width: 60px; height: 46px; }
  .admin-product b { font-size: 12px; }
  .admin-product small { font-size: 10px; }
  .admin-product>strong { font-size: 12px; }
  .admin-product>.button { font-size: 11px; padding: 8px 10px; }
  .transfer { padding: 16px; gap: 12px; }
  .transfer b { font-size: 11px; }
  .transfer p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; animation-duration: .01ms!important; transition-duration: .01ms!important; }
}

.payment-items { border-bottom: 1px solid var(--border); padding: 0 0 15px; margin-bottom: 16px; }
.payment-items>div { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; padding: 4px 0; }
.payment-items b { white-space: nowrap; font-weight: 500; }
.qr-area>span { font-size: 12px; color: var(--muted); }
.qr-area .plain-link { min-height: 35px; font-size: 12px; }
.payment-connection { padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.payment-connection p { font-size: 12px; margin: 6px 0; }
.payment-connection small { display: block; font-size: 12px; color: var(--muted); }
.payment-connection .button { flex-shrink: 0; }
.warning-text { color: #935000!important; }
.bridge-checks { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 9px 0; font-size: 12px; }
.bridge-checks span { padding: 4px 8px; border-radius: 4px; }
.bridge-checks .connected { color: #226f43; background: #eaf4ee; }
.bridge-checks .pending { color: #815413; background: #fbf3e4; }
.transaction-panel { overflow: hidden; }
.transaction-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px 0; }
.transaction-heading h2 { font-size: 18px; margin: 0; }
.transaction-heading p, #transfer-sync { font-size: 11px; color: var(--muted); }
.transfer-filters { display: flex; align-items: end; gap: 12px; padding: 12px 22px 22px; }
.transfer-filters label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; min-width: 0; margin: 0; }
.transfer-filters input, .transfer-filters select { min-height: 44px; width: 100%; }
.transfer-filters label:first-child { width: 150px; }
.transfer-filters label:nth-child(2) { width: 160px; }
.transfer-filters .payer-search { flex: 1; }
.transfer-filters .button { flex-shrink: 0; }
.transaction-table { font-size: 12px; min-width: 760px; }
.transaction-table td { padding: 13px 16px; }
.transaction-table th { font-size: 11px; white-space: nowrap; }
.transaction-table .transfer-payer { min-width: 180px; max-width: 300px; overflow-wrap: anywhere; }
.match-check { appearance: none; width: 17px!important; height: 17px; padding: 0!important; border: 1px solid #9caaa1; border-radius: 3px; background: white; opacity: 1; }
.match-check:checked { background: #278450; border-color: #278450; }
.match-check:checked::after { content: '✓'; display: block; color: white; line-height: 15px; font-size: 12px; text-align: center; }
.transfer-amount { display: inline-block; border-radius: 4px; background: #eaf4ee; padding: 5px 9px; color: #226f43; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.matched-label { color: #226f43; }
.review-label { color: #8d5b15; white-space: nowrap; }
.transfer-pagination { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px 22px; font-size: 12px; }
.transfer-pagination>div { display: flex; gap: 9px; }
.transfer-details { display: grid; grid-template-columns: 120px 1fr; gap: 12px 18px; font-size: 13px; }
.transfer-details dt { color: var(--muted); }
.transfer-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width:850px) {
  .transfer-filters { flex-wrap: wrap; }
  .transfer-filters .payer-search { flex-basis: 100%; }
  .transaction-heading, .payment-connection { flex-direction: column; align-items: start; gap: 10px; }
}
@media (max-width:600px) {
  .payment-connection, .transfer-filters, .transaction-heading, .transfer-pagination { padding: 16px; }
  .transaction-heading { padding-bottom: 0; }
  .transfer-filters label:first-child, .transfer-filters label:nth-child(2) { width: calc(50% - 6px); }
  .transfer-filters .button { flex: 1; }
  .transfer-pagination { flex-wrap: wrap; }
  .transfer-details { grid-template-columns: 90px 1fr; gap: 12px; }
}

.table-scroll-hint { display: none; }
#manual-match-form { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 20px; }
@media (max-width:850px) { .table-scroll-hint { display: block; color: var(--muted); font-size: 11px; padding: 0 16px; } }
