:root {
  --ink: #172321;
  --muted: #66716f;
  --line: #d9dfdd;
  --surface: #ffffff;
  --canvas: #fffdf8;
  --teal: #0c766a;
  --teal-dark: #095e55;
  --teal-soft: #e3f3ef;
  --navy: #18364c;
  --blue-soft: #eaf1f6;
  --coral: #b94a35;
  --coral-soft: #fff0ec;
  --amber: #8a5a08;
  --amber-soft: #fff7df;
  --shadow: 0 14px 45px rgba(23, 35, 33, .12);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: 0; }
h1 { margin-bottom: 12px; font-size: clamp(32px, 4vw, 54px); line-height: 1.06; }
h2 { margin-bottom: 8px; font-size: 22px; line-height: 1.2; }
h3 { margin-bottom: 8px; font-size: 18px; }
p { color: var(--muted); line-height: 1.65; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 750; text-decoration: none; }
.brand > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark { position: relative; width: 27px; height: 27px; flex: 0 0 27px; }
.brand-mark i { position: absolute; width: 17px; height: 17px; border: 2px solid var(--teal); }
.brand-mark i:first-child { top: 1px; left: 1px; background: var(--teal-soft); }
.brand-mark i:last-child { right: 1px; bottom: 1px; background: var(--surface); }
.header-actions { display: inline-flex; align-items: center; gap: 16px; font-size: 13px; }
.header-actions > a:first-child { color: var(--teal-dark); }
.language-select { width: 72px; min-height: 32px; height: 32px; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--surface); cursor: pointer; font-size: 12px; font-weight: 700; }
.language-select:hover, .language-select:focus { border-color: #8d9b98; outline: none; }
.language-select:focus-visible { box-shadow: 0 0 0 3px rgba(12, 118, 106, .16); }

main, .site-footer { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.store-intro { display: flex; align-items: end; justify-content: space-between; gap: 48px; padding: 74px 0 48px; }
.store-intro > div:first-child { max-width: 640px; }
.store-intro > div:first-child > p:last-child { max-width: 540px; margin-bottom: 0; font-size: 17px; }
.eyebrow { margin-bottom: 9px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.trust-list { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); margin: 0; border: 1px solid var(--line); background: var(--surface); }
.trust-list div { padding: 17px 18px; border-right: 1px solid var(--line); }
.trust-list div:last-child { border-right: 0; }
.trust-list dt { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.trust-list dd { margin: 0; font-size: 14px; font-weight: 750; }

.notice { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; padding: 13px 16px; border: 1px solid; border-radius: 6px; font-size: 14px; }
.notice-demo { border-color: #d8c17c; color: var(--amber); background: var(--amber-soft); }
.notice span { color: inherit; }
.catalog { padding: 12px 0 88px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin-bottom: 17px; }
.muted { color: var(--muted); font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; min-height: 292px; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.product-visual { position: relative; display: flex; aspect-ratio: 4 / 3; min-height: 0; align-items: center; justify-content: space-between; padding: 22px; overflow: hidden; color: white; background: var(--navy); }
.product-visual::after { content: ""; width: 56px; height: 56px; border: 12px solid rgba(255,255,255,.13); transform: rotate(12deg); }
.product-visual strong { font-size: 13px; letter-spacing: .12em; }
.product-visual span { position: absolute; right: 82px; bottom: 21px; color: #b9d7e6; font-size: 11px; }
.product-visual.has-image { padding: 0; background: #f3f5f4; }
.product-visual.has-image::after { display: none; }
.product-image { width: 100%; height: 100%; object-fit: contain; background: #f3f5f4; }
.product-visual .product-category-badge { position: absolute; top: 12px; left: 12px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.75); border-radius: 4px; color: var(--ink); background: rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(23,35,33,.12); letter-spacing: 0; }
.product-content { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.product-content h3 { font-size: 18px; }
.product-content p { min-height: 49px; margin-bottom: 20px; font-size: 14px; }
.product-meta { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; }
.product-meta > div:last-child { display: grid; justify-items: end; gap: 8px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 25px; }
.price span { color: var(--muted); font-size: 12px; font-weight: 700; }
.stock { color: var(--muted); font-size: 12px; }
.stock.is-low { color: var(--coral); }
.empty-state { padding: 70px 24px; border: 1px dashed #bfc8c5; text-align: center; background: rgba(255,255,255,.45); }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid transparent; border-radius: 5px; cursor: pointer; font-weight: 750; text-decoration: none; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button-primary { color: #fff; background: var(--teal); }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { border-color: var(--line); color: var(--ink); background: var(--surface); }
.button-secondary:hover { border-color: #9aa9a5; background: #fafbfb; }
.button-danger { border-color: #e1b9b0; color: var(--coral); background: var(--coral-soft); }
.button-small { min-height: 36px; padding-inline: 13px; font-size: 13px; }
.button-wide { width: 100%; }
.icon-button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); cursor: pointer; font-size: 24px; line-height: 1; }
.icon-button:hover { border-color: #9aa9a5; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer a { color: var(--teal-dark); }
.footer-links { display: inline-flex; gap: 18px; }
.policy-main { width: min(820px, calc(100% - 48px)); padding: 70px 0 84px; }
.policy-title { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.policy-title h1 { max-width: 700px; }
.policy-title > p:last-child { max-width: 650px; font-size: 17px; }
.policy-section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.policy-section h2 { font-size: 20px; }
.policy-section p, .policy-section li { color: var(--muted); line-height: 1.75; }
.policy-section ul { margin: 0; padding-left: 22px; }
.policy-section li + li { margin-top: 8px; }

dialog { padding: 0; border: 0; color: var(--ink); background: transparent; }
dialog::backdrop { background: rgba(17, 28, 26, .55); backdrop-filter: blur(3px); }
.dialog-shell { width: min(540px, calc(100vw - 32px)); max-height: min(780px, calc(100vh - 32px)); overflow: auto; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; }
.order-body { padding: 24px; }
.checkout-form label { margin-bottom: 12px; }
.checkout-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 22px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.checkout-summary span { min-width: 0; overflow-wrap: anywhere; font-weight: 750; }
.checkout-summary strong { flex: 0 0 auto; color: var(--teal-dark); }
.quantity-field { display: grid; gap: 9px; margin-bottom: 18px; }
.quantity-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; color: #35413f; font-size: 13px; font-weight: 700; }
.quantity-header small { color: var(--muted); font-size: 11px; font-weight: 500; }
.quantity-stepper { display: grid; width: 168px; grid-template-columns: 44px 80px 44px; border: 1px solid #bcc6c3; border-radius: 4px; overflow: hidden; }
.quantity-stepper input { min-height: 42px; padding: 0 4px; border: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 0; text-align: center; appearance: textfield; }
.quantity-stepper input::-webkit-inner-spin-button, .quantity-stepper input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.quantity-button { min-width: 44px; min-height: 42px; padding: 0; border: 0; color: var(--teal-dark); background: #f7f9f8; cursor: pointer; font-size: 20px; font-weight: 700; }
.quantity-button:hover { background: var(--teal-soft); }
.quantity-button:disabled { color: #aeb7b4; cursor: not-allowed; background: #f7f9f8; }
.checkout-note { margin: -2px 0 20px; font-size: 12px; }
.checkout-policy-notice { margin: 0 0 18px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; color: #35413f; background: #f7f9f8; font-size: 12px; line-height: 1.55; }
.checkout-policy-notice a { color: var(--teal-dark); font-weight: 750; }
.delivery-target { margin: -4px 0 14px; color: var(--muted); font-size: 12px; }
.payment-reference { margin: 0 0 18px; padding: 15px; border: 1px solid #b8d8d1; background: var(--teal-soft); }
.payment-reference > strong { color: var(--teal-dark); }
.payment-reference > p { margin: 5px 0 10px; font-size: 12px; }
.payment-reference-form label { margin-bottom: 12px; }
.payment-txid { overflow-wrap: anywhere; font-family: Consolas, monospace; font-size: 11px; line-height: 1.6; }
.order-progress { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 25px; }
.progress-step { position: relative; padding-top: 20px; color: var(--muted); font-size: 12px; text-align: center; }
.progress-step::before { position: absolute; z-index: 1; top: 0; left: calc(50% - 5px); width: 10px; height: 10px; border: 3px solid var(--surface); border-radius: 50%; background: #bcc5c2; box-shadow: 0 0 0 1px #bcc5c2; content: ""; }
.progress-step::after { position: absolute; top: 5px; left: -50%; width: 100%; height: 1px; background: #ccd3d1; content: ""; }
.progress-step:first-child::after { display: none; }
.progress-step.is-done, .progress-step.is-active { color: var(--ink); font-weight: 700; }
.progress-step.is-done::before, .progress-step.is-active::before { background: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.payment-box { margin-bottom: 18px; padding: 19px; border: 1px solid var(--line); background: #fafcfb; }
.payment-box > p { margin-bottom: 8px; font-size: 13px; }
.payment-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.payment-amount strong { font-size: 30px; line-height: 1; word-break: break-all; }
.payment-amount span { flex: 0 0 auto; color: var(--muted); font-weight: 750; }
.payment-recipient { display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: center; gap: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.payment-qr { display: grid; justify-items: center; gap: 6px; }
.payment-qr img { display: block; width: 152px; height: 152px; background: #fff; }
.payment-qr span { color: var(--muted); font-size: 11px; }
.payment-address { min-width: 0; }
.payment-address > strong { display: block; margin-bottom: 9px; font-size: 13px; }
.payment-address > p { margin: 9px 0 0; font-size: 11px; line-height: 1.55; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.copy-value { min-width: 0; padding: 10px 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); font-family: Consolas, monospace; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.timer-row { display: flex; justify-content: space-between; gap: 16px; margin: 15px 0 20px; color: var(--muted); font-size: 13px; }
.timer-row strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.instruction-list { margin: 0 0 22px; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.warning { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--coral); color: #7d3426; background: var(--coral-soft); font-size: 12px; line-height: 1.6; }
.delivery-panel { padding: 22px; border: 1px solid #a8d7cd; background: var(--teal-soft); }
.delivery-panel h3 { color: var(--teal-dark); }
.delivery-code-list { display: grid; gap: 8px; margin: 18px 0 12px; }
.delivery-code { display: grid; min-width: 0; grid-template-columns: 30px minmax(0, 1fr); align-items: center; padding: 13px; border: 1px dashed #70aa9e; color: #073f39; background: var(--surface); }
.delivery-code span { color: var(--muted); font-size: 11px; font-weight: 700; }
.delivery-code code { overflow-wrap: anywhere; font-family: Consolas, monospace; font-size: 15px; font-weight: 750; line-height: 1.5; }
.delivery-code-empty { display: block; color: var(--muted); text-align: center; }
.status-message { padding: 32px 20px; text-align: center; }
.status-message .status-symbol { display: grid; width: 54px; height: 54px; margin: 0 auto 18px; place-items: center; border-radius: 50%; font-size: 23px; font-weight: 800; }
.status-symbol.success { color: var(--teal-dark); background: var(--teal-soft); }
.status-symbol.expired { color: var(--coral); background: var(--coral-soft); }
.order-reference { margin-top: 18px; color: var(--muted); font-family: Consolas, monospace; font-size: 11px; text-align: center; }
.order-history-list { display: grid; }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.history-item:first-child { padding-top: 0; }
.history-item:last-child { padding-bottom: 0; border-bottom: 0; }
.history-item > div:first-child { min-width: 0; }
.history-item strong, .history-item span, .history-item time { display: block; }
.history-item > div:first-child span, .history-item time { margin-top: 4px; color: var(--muted); font-size: 11px; }
.history-item > div:last-child { display: grid; justify-items: end; gap: 8px; }
.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 48px)); padding: 12px 16px; border-radius: 5px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 13px; }

.admin-main { padding: 48px 0 80px; }
.login-panel { width: min(420px, 100%); margin: 46px auto; padding: 34px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.login-panel h1, .admin-titlebar h1 { font-size: 34px; }
label { display: grid; gap: 8px; margin-bottom: 17px; color: #35413f; font-size: 13px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #bcc6c3; border-radius: 4px; color: var(--ink); background: var(--surface); outline: none; }
input { min-height: 43px; padding: 0 12px; }
select { min-height: 43px; padding: 0 10px; }
textarea { resize: vertical; padding: 11px 12px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(12,118,106,.12); }
.product-image-field { margin-bottom: 17px; }
.form-label { display: block; margin-bottom: 8px; color: #35413f; font-size: 13px; font-weight: 700; }
.product-image-editor { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: start; gap: 14px; }
.product-image-preview { display: grid; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; border: 1px solid #bcc6c3; border-radius: 4px; color: var(--muted); background: #f3f5f4; font-size: 12px; }
.product-image-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.product-image-actions { display: grid; align-content: start; gap: 10px; }
.product-image-actions .button { justify-self: start; }
.login-panel .button { width: 100%; margin-top: 4px; }
.form-error { margin: -4px 0 15px; color: var(--coral); font-size: 13px; }
.admin-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.admin-titlebar h1 { margin-bottom: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 24px; border: 1px solid var(--line); background: var(--line); }
.stat { display: flex; min-height: 96px; flex-direction: column; justify-content: space-between; padding: 17px 19px; background: var(--surface); }
.stat span { color: var(--muted); font-size: 12px; }
.stat strong { font-size: 27px; }
.tabs { display: inline-flex; gap: 2px; margin-bottom: 15px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #e9edeb; }
.tab { min-height: 36px; padding: 0 14px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; cursor: pointer; font-size: 13px; font-weight: 750; }
.tab.is-active { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgba(23,35,33,.12); }
.admin-panel { border: 1px solid var(--line); background: var(--surface); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin-bottom: 4px; font-size: 18px; }
.panel-heading p { margin: 0; font-size: 12px; }
.table-wrap { width: 100%; overflow-x: auto; }
.order-filters { display: grid; grid-template-columns: minmax(240px, 1fr) 180px auto; align-items: end; gap: 12px; padding: 15px 20px 0; }
.order-filters label { margin-bottom: 0; }
.order-filters .muted { padding-bottom: 13px; text-align: right; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 15px; border-bottom: 1px solid #e8ecea; text-align: left; vertical-align: middle; white-space: nowrap; }
th { color: var(--muted); background: #fafbfb; font-size: 11px; font-weight: 750; }
tbody tr:last-child td { border-bottom: 0; }
td.product-cell { max-width: 310px; white-space: normal; }
.product-cell strong { display: block; margin-bottom: 3px; }
.product-cell span { display: block; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.status-badge { display: inline-flex; min-height: 25px; align-items: center; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 750; }
.status-badge.active, .status-badge.fulfilled { color: var(--teal-dark); background: var(--teal-soft); }
.status-badge.pending { color: var(--amber); background: var(--amber-soft); }
.status-badge.inactive, .status-badge.expired { color: var(--muted); background: #edf0ef; }
.table-actions { display: flex; justify-content: flex-end; gap: 7px; }
.link-button { padding: 4px 2px; border: 0; color: var(--teal-dark); background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; }
.link-button.danger { color: var(--coral); }
.form-dialog .dialog-shell { padding-bottom: 1px; }
.inventory-dialog-shell { width: min(820px, calc(100vw - 32px)); }
.inventory-import-section { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.inventory-import-section label:last-of-type { margin-bottom: 12px; }
.inventory-import-actions { display: flex; justify-content: flex-end; }
.inventory-list-section { padding: 20px 24px 8px; }
.inventory-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.inventory-list-heading h3 { margin-bottom: 3px; }
.inventory-list-heading p { margin: 0; }
.inventory-search-label { margin-bottom: 12px; }
.inventory-table-wrap { max-height: 320px; border: 1px solid var(--line); }
.inventory-table-wrap thead { position: sticky; z-index: 1; top: 0; }
.inventory-table-wrap th:first-child { width: 65%; }
.inventory-table-wrap td:first-child { min-width: 280px; max-width: 460px; white-space: normal; }
.inventory-code { display: block; overflow-wrap: anywhere; color: var(--ink); font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 1.5; user-select: all; }
.inventory-row-actions { display: flex; gap: 10px; }
.inventory-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; }
.inventory-pagination > div { display: flex; gap: 8px; }
.order-detail-body { padding: 22px 24px 28px; }
.order-detail-summary { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 28px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.order-detail-summary div { min-width: 0; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-detail-summary dt { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.order-detail-summary dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
.event-timeline { margin: 0; padding: 0 0 0 16px; list-style: none; }
.event-timeline li { position: relative; padding: 0 0 20px 22px; border-left: 1px solid #b9c5c2; }
.event-timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.event-timeline li::before { position: absolute; top: 2px; left: -5px; width: 9px; height: 9px; border: 2px solid var(--surface); border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px var(--teal); content: ""; }
.event-timeline strong, .event-timeline time, .event-timeline span { display: block; }
.event-timeline time { margin-top: 3px; color: var(--muted); font-size: 11px; }
.event-txid { margin-top: 5px; max-width: 100%; }
.form-dialog form { padding: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; padding: 22px 24px 0; }
.form-dialog > form > label, .form-dialog > form > textarea, .form-dialog > form > .form-error { margin-inline: 24px; }
.full-width { grid-column: 1 / -1; }
.toggle-label { display: flex; align-items: center; gap: 9px; }
.toggle-label input { width: 18px; min-height: 18px; accent-color: var(--teal); }
.compliance-check { align-items: flex-start; padding: 12px; border: 1px solid #d8c17c; border-radius: 4px; color: #72500f; background: var(--amber-soft); font-weight: 650; line-height: 1.5; }
.category-line { color: var(--teal-dark) !important; font-weight: 700; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 4px; padding: 17px 24px; border-top: 1px solid var(--line); }
.empty-table { padding: 34px 20px; color: var(--muted); text-align: center; }
.txid { display: inline-block; max-width: 150px; overflow: hidden; color: var(--muted); font-family: Consolas, monospace; font-size: 11px; text-overflow: ellipsis; vertical-align: bottom; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 850px) {
  .store-intro { align-items: stretch; flex-direction: column; gap: 30px; padding-top: 52px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .site-header { min-height: 58px; gap: 10px; padding-inline: 16px; }
  .brand { min-width: 0; }
  .header-actions { flex: 0 0 auto; gap: 8px; }
  .header-actions .button { padding-inline: 10px; }
  main, .site-footer { width: min(100% - 32px, 1160px); }
  h1 { font-size: 35px; }
  .store-intro { padding: 40px 0 32px; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list div { display: flex; justify-content: space-between; padding: 13px 15px; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-list div:last-child { border-bottom: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .catalog { padding-bottom: 60px; }
  .product-card { min-height: 276px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .policy-main { width: calc(100% - 32px); padding-top: 44px; }
  .dialog-shell { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .dialog-header, .order-body { padding: 18px; }
  .payment-amount { align-items: flex-start; flex-direction: column; }
  .payment-amount strong { font-size: 25px; }
  .payment-recipient { grid-template-columns: 1fr; }
  .copy-row { grid-template-columns: 1fr; }
  .history-item { align-items: flex-start; }
  .admin-main { padding-top: 28px; }
  .login-panel { margin-top: 20px; padding: 24px; }
  .admin-titlebar h1, .login-panel h1 { font-size: 29px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 82px; padding: 14px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .order-filters { grid-template-columns: 1fr; }
  .order-filters .muted { padding-bottom: 4px; text-align: left; }
  .order-detail-summary { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: auto; }
  .product-image-editor { grid-template-columns: 1fr; }
  .product-image-preview { width: min(100%, 280px); }
  .inventory-dialog-shell { width: calc(100vw - 20px); }
  .inventory-import-section, .inventory-list-section { padding-inline: 16px; }
  .inventory-table-wrap td:first-child { min-width: 210px; max-width: 270px; }
  .inventory-pagination { align-items: flex-start; flex-direction: column; }
  .toast { right: 16px; bottom: 16px; }
}
