/* AIPay storefront — hand-written CSS, no build step. */

:root {
  --bg: #f0f0f3;
  --surface: #ffffff;
  --surface-2: #f6f6f8;
  --surface-3: #ececf0;
  --text: #15171c;
  --text-2: #3d424b;
  --muted: #6b717c;
  --line: #e6e7ec;
  --line-2: #d6d8df;
  --ink: #111214;
  --ink-text: #ffffff;
  --accent: #4f46e5;
  --accent-2: #6366f1;
  --accent-soft: #eef0ff;
  --green: #17803d;
  --green-bg: #e7f6ec;
  --blue: #1d4ed8;
  --blue-bg: #e8f0fe;
  --amber: #a15c07;
  --amber-bg: #fff3dc;
  --orange: #c2410c;
  --orange-bg: #fff0e6;
  --red: #c42b2b;
  --red-bg: #fdecec;
  --ring: 0 0 0 3px rgba(99, 102, 241, .28);
  --shadow: 0 1px 2px rgba(17, 18, 20, .04), 0 10px 30px -12px rgba(17, 18, 20, .12);
  --shadow-sm: 0 1px 2px rgba(17, 18, 20, .05);
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f12;
    --surface: #17181c;
    --surface-2: #1d1f24;
    --surface-3: #25272d;
    --text: #ececf1;
    --text-2: #c9ccd3;
    --muted: #9aa0ab;
    --line: #2a2c33;
    --line-2: #383b44;
    --ink: #f3f3f6;
    --ink-text: #111214;
    --accent: #8b8ff8;
    --accent-2: #a5a8fb;
    --accent-soft: #23243a;
    --green: #4ade80;
    --green-bg: #13291c;
    --blue: #7aa7ff;
    --blue-bg: #16213a;
    --amber: #fbbf24;
    --amber-bg: #2c2210;
    --orange: #fb923c;
    --orange-bg: #2e1c10;
    --red: #f87171;
    --red-bg: #321717;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

:lang(zh-TW) { --font: system-ui, -apple-system, "Segoe UI", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC", sans-serif; }
:lang(ja) { --font: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans CJK JP", "Noto Sans JP", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; }
h2 { font-size: 19px; font-weight: 750; }
h3 { font-size: 15.5px; font-weight: 700; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
[hidden] { display: none !important; }

.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; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: var(--ink-text); padding: 8px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small, small { font-size: 13px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
main.container { padding-top: 4px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- header ---------- */
.devbar { background: #b45309; color: #fff; text-align: center; font-size: 13px; padding: 6px 12px; font-weight: 600; }
.langbar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 44px; font-size: 14px; background: var(--accent-soft); color: var(--accent); position: relative; }
.langbar a { font-weight: 650; }
.langbar-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 20px; cursor: pointer; color: inherit; padding: 4px 10px; }

.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 16px 10px; }
.header-inner {
  max-width: 1108px; margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; gap: 18px; padding: 0 12px 0 16px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand img { border-radius: 10px; }
.brand-name { font-size: 17px; letter-spacing: -.02em; position: relative; }
.site-header .brand-name::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #6366f1, #ec4899); opacity: .9; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { text-decoration: none; padding: 7px 12px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 14.5px; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--surface-3); color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; justify-content: center; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-2); list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { background: var(--surface-2); }

.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); z-index: 60;
}
.menu-right { left: auto; right: 0; }
.header-actions .dropdown:first-child .menu { left: auto; right: 0; }
.menu a, .menu-btn { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-weight: 550; font-size: 14.5px; background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu-btn:hover { background: var(--surface-2); color: var(--text); }
.menu a[aria-current] { color: var(--accent); }
.menu form { margin: 0; }

/* ---------- buttons, chips, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font-weight: 650; font-size: 14.5px;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .08s ease, background .15s ease, opacity .15s;
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.btn-dark:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); color: var(--ink-text); }
.btn-ghost { background: transparent; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { height: 50px; font-size: 16px; padding: 0 26px; }
.btn-block { width: 100%; }
.btn[disabled], .btn-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.loading { opacity: .65; pointer-events: none; }
.btn .ico { width: 16px; height: 16px; }
.danger { color: var(--red) !important; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-content: center; max-width: 440px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 650; font-size: 13.5px; text-decoration: none; }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip-dark { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.chip-dark:hover { color: var(--ink-text); }
.chip .ico { width: 15px; height: 15px; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 650; line-height: 1; }
.badge .ico { width: 12px; height: 12px; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-orange { background: var(--orange-bg); color: var(--orange); }
.pill-green { display: inline-block; background: var(--green-bg); color: var(--green); font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }

.status { display: inline-block; font-size: 12.5px; font-weight: 650; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.status-pending, .status-reconciling { background: var(--amber-bg); color: var(--amber); }
.status-paid { background: var(--blue-bg); color: var(--blue); }
.status-delivered { background: var(--green-bg); color: var(--green); }
.status-closed { background: var(--surface-3); color: var(--muted); }
.status-refunded { background: var(--red-bg); color: var(--red); }

.stock { font-weight: 650; font-size: 13.5px; white-space: nowrap; }
.stock-ok { color: var(--green); }
.stock-low { color: var(--orange); }
.stock-out { color: var(--muted); }

/* ---------- cards & layout blocks ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 24px; }
.card.flush { padding: 0; overflow: hidden; }
.card > h2:first-child, .card > .eyebrow + h2 { margin-bottom: 14px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.lead { color: var(--text-2); font-size: 15.5px; max-width: 62ch; }
.narrow { max-width: 520px; width: 100%; margin: 24px auto; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-center { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.page-head { padding: 12px 4px 0; }
.page-head h1 { margin-bottom: 6px; }
.h-icon { margin-right: 8px; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-md); font-size: 14.5px; border: 1px solid transparent; }
.alert p { margin: 0; }
.alert p + p { margin-top: 6px; }
.alert .ico { margin-top: 2px; }
.alert-ok { background: var(--green-bg); color: var(--green); }
.alert-err { background: var(--red-bg); color: var(--red); }
.alert-warn { background: var(--amber-bg); color: var(--amber); }
.alert-info { background: var(--blue-bg); color: var(--blue); display: block; }

/* hero */
.hero { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 28px 28px; }
.hero h1 { margin-bottom: 8px; }
.hero .lead { margin: 0; }

.qa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qa { padding: 16px 18px; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.qa h2 { font-size: 14.5px; margin-bottom: 6px; }
.qa p { font-size: 13.5px; color: var(--text-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.shop-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.shop-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.side-card { padding: 20px; }
.side-card h2 { font-size: 17px; }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 650; font-size: 14.5px; }
.cat:hover { border-color: var(--line-2); background: var(--surface-2); color: var(--text); }
.cat.active { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.cat-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 13px; flex: none; }
.cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface-3); font-size: 12px; display: grid; place-items: center; color: var(--muted); }
.contact-card { text-align: center; }
.contact-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.contact-static { cursor: text; user-select: all; font-weight: 550; }

/* catalog */
.catalog { padding: 0; overflow: hidden; }
.catalog-head { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.catalog-head h2 { margin: 0; }
.search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 520px; height: 46px; padding: 0 5px 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); }
.search:focus-within { box-shadow: var(--ring); border-color: var(--accent-2); }
.search .ico { color: var(--muted); }
.search input[type="search"] { flex: 1; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; outline: none; box-shadow: none; height: 100%; }
.search-note { padding: 10px 22px 0; margin: 0; font-size: 13.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ptable { width: 100%; border-collapse: separate; border-spacing: 0; }
.catalog .table-wrap { padding: 14px; }
.ptable thead th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 650; padding: 10px 14px; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ptable thead th:first-child { border-left: 1px solid var(--line); border-top-left-radius: 14px; }
.ptable thead th:last-child { border-right: 1px solid var(--line); border-top-right-radius: 14px; }
.ptable td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable td:first-child { border-left: 1px solid var(--line); }
.ptable td:last-child { border-right: 1px solid var(--line); }
.ptable tbody tr:last-child td:first-child { border-bottom-left-radius: 14px; }
.ptable tbody tr:last-child td:last-child { border-bottom-right-radius: 14px; }
.ptable tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pcell { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.pthumb img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--surface-3); border: 1px solid var(--line); }
.pinfo { min-width: 0; }
.pname { font-weight: 700; text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.price { font-weight: 800; font-size: 16px; white-space: nowrap; }
.price s, .price-was { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.act { text-align: right; white-space: nowrap; }
.empty { padding: 28px; text-align: center; color: var(--muted); margin: 0; }

/* steps & faq */
.step-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step-list li { display: flex; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.step-list p { margin: 0; color: var(--text-2); font-size: 14px; }
.step-list h3 { margin-bottom: 4px; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--ink); color: var(--ink-text); font-size: 14px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--muted); font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list summary h3 { margin: 0; font-size: 15px; }
.faq-a { padding: 0 0 14px; color: var(--text-2); }
.faq-a p { margin: 0; white-space: pre-line; }
.help-links { font-size: 13.5px; color: var(--muted); padding: 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.help-links a { color: var(--text-2); }
.help-links .sep { opacity: .5; }

/* crumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }

/* ---------- product ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; padding: 24px; }
.product-media { position: relative; }
.product-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); position: sticky; top: 100px; }
.product-buy h1 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 8px; }
.price-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; }
.price-big { font-size: 32px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-line .price-was { display: inline; font-size: 15px; }
.summary { color: var(--text-2); }
.buy-form { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > span, .field > legend { font-weight: 650; font-size: 13.5px; color: var(--text-2); padding: 0; }
.field small { font-weight: 500; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-2); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.logged-hint { display: flex; gap: 6px; align-items: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; height: 44px; width: max-content; background: var(--surface); }
.stepper button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.stepper button:hover { background: var(--surface-2); }
.stepper input { width: 64px; min-height: 0; height: 100%; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; text-align: center; padding: 0; -moz-appearance: textfield; }
.stepper input:focus { box-shadow: none; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.total-box { display: flex; flex-direction: column; align-items: flex-end; }
.total-box span { font-size: 12.5px; color: var(--muted); }
.total-box strong { font-size: 22px; font-weight: 850; font-variant-numeric: tabular-nums; }
.pay-methods { padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.pay-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pay-option { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); cursor: pointer; font-weight: 650; font-size: 14px; }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.pay-option:has(input:focus-visible) { box-shadow: var(--ring); }
.pay-ico { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; flex: none; }
.pay-ico-alipay { background: #1677ff; }
.pay-ico-wx { background: #07c160; }
.pay-ico-qq { background: #12b7f5; }
.pay-ico-mock { background: #8b8f99; }
.assure { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 0; }
.assure .ico { color: var(--green); width: 16px; height: 16px; margin-top: 2px; }

.facts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.facts-list > div { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.facts-list dt { flex: none; width: 96px; color: var(--muted); font-size: 13.5px; }
.facts-list dd { margin: 0; font-weight: 550; font-size: 14px; }
.related-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.related-grid a { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--r-lg); border: 1px solid var(--line); text-decoration: none; height: 100%; }
.related-grid a:hover { border-color: var(--line-2); background: var(--surface-2); color: var(--text); }
.related-grid img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.rname { font-weight: 650; font-size: 13.5px; line-height: 1.4; }

/* prose (markdown) */
.prose { color: var(--text-2); font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.prose h2 { font-size: 18px; margin: 1.4em 0 .5em; color: var(--text); }
.prose h3 { font-size: 16px; margin: 1.2em 0 .4em; color: var(--text); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose a { color: var(--accent); }
.prose code { background: var(--surface-3); padding: 1px 6px; border-radius: 6px; }
.prose pre { background: var(--surface-2); padding: 12px 14px; border-radius: 12px; overflow-x: auto; border: 1px solid var(--line); }
.prose blockquote { margin: 0 0 1em; padding: 8px 14px; border-left: 3px solid var(--accent-2); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.prose > :last-child { margin-bottom: 0; }

/* ---------- pay & order ---------- */
.pay-card { max-width: 520px; width: 100%; margin: 12px auto; display: flex; flex-direction: column; gap: 14px; }
.pay-card h1 { margin: 0; font-size: 24px; }
.pay-amount { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.pay-amount strong { font-size: 30px; font-weight: 850; font-variant-numeric: tabular-nums; }
.pay-amount span { color: var(--muted); }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); }
.qr { width: 220px; height: 220px; padding: 8px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); }
.qr svg { width: 100%; height: 100%; }
.qr-box p { margin: 0; font-weight: 650; font-size: 14px; text-align: center; }
.show-mobile { display: none; }
.countdown { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 0; color: var(--muted); font-size: 14px; }
.countdown strong { color: var(--text); font-variant-numeric: tabular-nums; }
.pay-status { text-align: center; margin: 0; font-size: 14px; color: var(--muted); }
.pay-status.ok { color: var(--green); font-weight: 700; }
.pay-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pay-actions form { margin: 0; }

.kv { margin: 0; display: flex; flex-direction: column; }
.kv > div { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { flex: none; width: 110px; color: var(--muted); font-size: 13.5px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 14.5px; }
.kv-compact > div { padding: 7px 0; }

.order-card { display: flex; flex-direction: column; gap: 18px; }
.order-head { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.order-head h1 { margin: 0 0 2px; font-size: 24px; }
.order-head p { margin: 0; }
.order-head .eyebrow { margin-bottom: 2px; }
.status-dot { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--surface); color: var(--muted); box-shadow: var(--shadow-sm); }
.status-dot .ico { width: 24px; height: 24px; stroke-width: 2.2; }
.order-head.is-delivered { background: var(--green-bg); border-color: transparent; }
.order-head.is-paid { background: var(--blue-bg); border-color: transparent; }
.order-head.is-pending, .order-head.is-reconciling { background: var(--amber-bg); border-color: transparent; }
.order-head.is-refunded { background: var(--red-bg); border-color: transparent; }
.is-delivered .status-dot, .is-delivered h1 { color: var(--green); }
.is-paid .status-dot, .is-paid h1 { color: var(--blue); }
.is-pending .status-dot, .is-pending h1, .is-reconciling .status-dot, .is-reconciling h1 { color: var(--amber); }
.is-refunded .status-dot, .is-refunded h1 { color: var(--red); }
.pending-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-lg); background: var(--amber-bg); color: var(--amber); }
.pending-box p { margin: 0; display: flex; gap: 6px; align-items: center; font-weight: 600; }
.delivery { padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); }
.delivery-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.delivery-head h2 { margin: 0; font-size: 17px; }
.delivery-actions { display: flex; gap: 6px; }
.codes { list-style: none; counter-reset: c; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.codes li { counter-increment: c; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.codes li::before { content: counter(c); font-size: 12px; color: var(--muted); min-width: 16px; }
.codes code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14.5px; font-weight: 600; user-select: all; }
.delivery-text { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.copy { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); display: inline-grid; place-items: center; cursor: pointer; color: var(--text-2); }
.copy:hover { background: var(--surface-3); }
.copy.done { color: var(--green); border-color: var(--green); }
.copy.inline { width: 28px; height: 28px; vertical-align: middle; margin-left: 4px; }
.copy.inline .ico { width: 15px; height: 15px; }
.order-no { font-size: 15px; }
.order-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-inline { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; font-weight: 650; }

/* lookup, auth, user */
.lookup-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.otable, .atable { width: 100%; border-collapse: collapse; font-size: 14px; }
.otable th, .atable th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.otable td, .atable td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.otable tbody tr:last-child td, .atable tbody tr:last-child td { border-bottom: 0; }
.tips ul { margin: 0; padding-left: 1.2em; color: var(--text-2); }
.tips li { margin: 4px 0; }
.auth-card { max-width: 440px; width: 100%; margin: 24px auto; }
.auth-card h1 { font-size: 26px; }
.auth-links { text-align: center; margin: 16px 0 0; font-size: 14px; }
.tabs { display: flex; gap: 6px; padding: 0 4px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: 14px; border: 1px solid var(--line); background: var(--surface); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input { flex: 1; min-width: 160px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }

/* help */
.help-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.help-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; transition: transform .12s ease, border-color .12s; }
.help-card:hover { transform: translateY(-2px); border-color: var(--line-2); color: var(--text); }
.help-card h2 { font-size: 17px; }
.help-card p { color: var(--text-2); font-size: 14px; flex: 1; }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: 13.5px; color: var(--accent); }
.more .ico { width: 15px; height: 15px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.article { padding: 28px 32px; }
.article .meta { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.article-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.side-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.side-links a { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 550; }
.side-links a:hover { background: var(--surface-2); color: var(--text); }
.side-links a[aria-current] { background: var(--surface-3); font-weight: 700; }

.error-card { padding: 40px 28px; }
.error-code { font-size: 64px; font-weight: 900; margin: 0; line-height: 1; background: linear-gradient(135deg, #6366f1, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* first-run setup */
.setup-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 16px; }
.setup-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.setup-brand img { border-radius: 12px; }
.setup-brand .brand-name { font-size: 22px; }
.setup-card { width: 100%; max-width: 480px; }
.setup-card h1 { font-size: 26px; }
.setup-card label .ico { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; }
.setup-code { letter-spacing: .08em; text-transform: uppercase; }
.setup-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; }
.setup-note .ico { color: var(--green); width: 16px; height: 16px; margin-top: 2px; flex: none; }
.setup-langs { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 14px; }
.setup-langs a { text-decoration: none; color: var(--muted); }
.setup-langs a[aria-current] { color: var(--text); font-weight: 700; }

/* notice dialog */
.notice { border: 0; padding: 0; width: min(620px, calc(100% - 32px)); max-height: calc(100% - 48px); border-radius: 26px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: auto; }
.notice::backdrop { background: rgba(14, 15, 18, .45); backdrop-filter: blur(3px); }
.notice[open] { animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.notice-head { padding: 22px 24px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.notice-head h2 { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 20px; }
.notice-body { padding: 20px 24px 8px; }
.notice-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 24px 4px; }
.notice-hint { text-align: right; font-size: 12px; color: var(--muted); padding: 0 24px 18px; margin: 6px 0 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-top: 32px; padding-bottom: 20px; }
.footer-grid h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer-grid a { text-decoration: none; color: var(--text-2); }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pay-note { display: inline-flex; align-items: center; gap: 8px; }
.pay-note .pay-ico { width: 18px; height: 18px; font-size: 10px; border-radius: 5px; }

/* ---------- admin ---------- */
body.admin { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.admin-side .brand { padding: 0 8px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { padding: 9px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--text-2); font-size: 14.5px; }
.admin-nav a:hover { background: var(--surface-2); color: var(--text); }
.admin-nav a[aria-current="page"] { background: var(--ink); color: var(--ink-text); }
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; padding: 0 6px; }
.admin-side-foot a { text-decoration: none; color: var(--text-2); }
.admin-langs { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.admin-langs a[aria-current] { font-weight: 800; color: var(--accent); }
.admin-side-foot form .btn { justify-content: flex-start; overflow: hidden; text-overflow: ellipsis; }
.admin-main { padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-head h1 { font-size: 24px; margin: 0; }
.admin-head h1 code { font-size: 17px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat strong { font-size: 26px; font-weight: 850; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); }
.stat-alert { border-color: var(--orange); }
.stat-alert strong { color: var(--orange); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card-head.pad, .pad { padding: 14px 16px; margin: 0; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 180px; padding-top: 26px; border-bottom: 1px solid var(--line-2); }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; position: relative; outline: none; }
.bar .fill { display: block; min-height: 2px; background: var(--accent); border-radius: 4px 4px 0 0; margin: 0 18%; }
.bar:hover .fill, .bar:focus .fill { background: var(--accent-2); }
.bar em { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; }
.bar:nth-child(even) em { visibility: hidden; }
.bar .tip { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--ink-text); font-size: 12px; padding: 5px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s; z-index: 2; }
.bar:hover .tip, .bar:focus .tip { opacity: 1; }
.table-view { margin-top: 34px; font-size: 13.5px; }
.table-view summary { cursor: pointer; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.atable td.ellipsis { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plain-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.plain-list li { display: flex; justify-content: space-between; gap: 10px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-bar select { width: auto; min-width: 140px; }
.filter-bar input { width: 280px; max-width: 100%; }
.atable tr.dim td { opacity: .55; }
.atable .thumb { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.atable form.inline { display: inline; margin-left: 8px; }
.aform { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 14px; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }
.lang-panel { border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 10px; overflow: hidden; }
.lang-panel > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; background: var(--surface-2); }
.lang-fields { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.form-actions { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; }
.form-actions .btn { box-shadow: var(--shadow); min-width: 160px; }
.danger-zone { display: flex; gap: 12px; align-items: center; padding: 4px; }
.seg { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.seg a { padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); }
.seg a[aria-current] { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
code.wrap { overflow-wrap: anywhere; }
.h-with-icon { display: inline-flex; align-items: center; gap: 8px; }
.top-gap { margin-top: 12px; }
.aform .card > .field, .aform [data-key-panel] .field { margin-top: 14px; }
.file-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.file-row input[type=file] { font-size: 13px; }
.copy-field { display: flex; gap: 8px; align-items: flex-start; }
.copy-field textarea { flex: 1; }
.note-box { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px dashed var(--line-2); font-size: 14px; }
.note-box p { margin: 0 0 4px; }
.note-box code, .test-card code { overflow-wrap: anywhere; }
.note-title { font-weight: 700; }
.warn { color: var(--amber) !important; }
.narrow-field { max-width: 340px; }
.confirm-card h2 { display: flex; align-items: center; gap: 8px; }
.test-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.test-card h2 { margin-bottom: 4px; }
.test-card p { margin: 0; }
.note-log, .raw { white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); padding: 10px 12px; border-radius: 10px; margin: 6px 0 0; max-height: 280px; overflow: auto; }
.mono { font-family: var(--mono); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .admin-main .grid-2, .admin-main .grid-wide-left, .dash-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-side { position: static; }
  .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-side-foot { margin-top: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-main { padding: 18px 16px 40px; }
}

@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .site-header { padding: 8px 10px 6px; }
  .header-inner { height: 56px; padding: 0 8px 0 12px; gap: 8px; border-radius: 18px; }
  .nav, .hide-sm { display: none; }
  .card { padding: 18px; border-radius: 22px; }
  .hero { flex-direction: column; align-items: flex-start; padding: 22px 18px; gap: 16px; }
  .chips { justify-content: flex-start; max-width: none; }
  .qa-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .catalog-head { flex-direction: column; align-items: stretch; padding: 18px 16px 14px; }
  .search { max-width: none; }
  .catalog .table-wrap { padding: 10px; }
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; }
  .ptable tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; }
  .ptable td { padding: 0; border: 0 !important; background: none !important; }
  .ptable .pcell { grid-column: 1 / -1; min-width: 0; }
  .ptable .price { text-align: left; }
  .ptable .stock-col { display: none; }
  .ptable .act { grid-column: 2; grid-row: 2; }
  .step-list { grid-template-columns: minmax(0, 1fr); }
  .product { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 18px; }
  .product-media img { position: static; border-radius: 18px; }
  .facts-list { grid-template-columns: minmax(0, 1fr); }
  .lookup-form { grid-template-columns: minmax(0, 1fr); }
  .help-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .grid-wide-left { grid-template-columns: minmax(0, 1fr); }
  .article { padding: 20px 18px; }
  .kv dt { width: 90px; }
  .show-mobile { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .notice-foot { justify-content: stretch; }
  .notice-foot .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .devbar, .langbar, .delivery-actions, .copy, .pay-actions { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}
