/* ==========================================================================
   AFXUS Design System — minimal European/industrial
   light-first, dark supported, 1px lines, generous whitespace
   ========================================================================== */

/* Always honour the hidden attribute — author display rules (.admin-body etc.)
   must not override it, otherwise gated UI (e.g. the admin login) leaks through. */
[hidden] { display: none !important; }

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f2;
  --bg-elev: #ffffff;
  --ink: #0b0c0e;
  --ink-soft: #26292e;
  --muted: #6d7278;
  --line: #e4e4df;
  --line-strong: #cfcfc9;
  --accent: #1d5bff;
  --accent-soft: rgba(29, 91, 255, 0.08);
  --ok: #12805c;
  --warn: #a86400;
  --danger: #c0392b;
  --shadow-sm: 0 1px 2px rgba(11, 12, 14, 0.05);
  --shadow-md: 0 12px 32px -12px rgba(11, 12, 14, 0.18);
  --shadow-lg: 0 32px 80px -24px rgba(11, 12, 14, 0.28);
  --r: 3px;
  --r-lg: 6px;
  --header-h: 66px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
    "Noto Sans SC", "PingFang SC", "Hiragino Sans", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #0a0b0d;
  --bg-alt: #111316;
  --bg-elev: #14161a;
  --ink: #f3f3f0;
  --ink-soft: #d8d9d5;
  --muted: #9298a0;
  --line: #23262b;
  --line-strong: #34383f;
  --accent: #5b86ff;
  --accent-soft: rgba(91, 134, 255, 0.14);
  --ok: #3ecf9a;
  --warn: #e0a34a;
  --danger: #ff6b5e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 32px 80px -24px rgba(0, 0, 0, 0.75);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ------------------------------ layout ------------------------------ */
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.section { padding: 108px 0; }
.section-sm { padding: 64px 0; }
.sec-alt { background: var(--bg-alt); }
.grid { display: grid; gap: 24px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }

/* ------------------------------ type ------------------------------ */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
h1, .h1 { font-size: clamp(38px, 5.4vw, 76px); line-height: 0.98; letter-spacing: -0.038em; font-weight: 500; }
h2, .h2 { font-size: clamp(27px, 3.2vw, 42px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 500; }
h3, .h3 { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 500; }
h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.underline-link { border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: opacity 0.2s; }
.underline-link:hover { opacity: 0.55; }

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 26px; border-radius: var(--r);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 10.5px; }
.btn-lg { height: 54px; padding: 0 34px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn-link { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* ------------------------------ announcement + header ------------------------------ */
.announce {
  background: var(--ink); color: var(--bg);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  height: 32px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 16px; overflow: hidden;
}
.announce span { opacity: 0.92; }

header.site {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
header.site .inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 19px; letter-spacing: 0.01em; line-height: 1; }
.brand img { height: 30px; width: auto; display: block; }
nav.main { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
nav.main a {
  position: relative; padding: 8px 12px; font-size: 13px; color: var(--ink-soft);
  transition: color 0.2s;
}
nav.main a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
nav.main a:hover::after, nav.main a.active::after { transform: scaleX(1); }
nav.main a.active { color: var(--ink); }
.h-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  color: var(--ink); transition: background 0.2s;
}
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn svg { width: 17px; height: 17px; }
.cart-count {
  position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--accent); color: #fff;
  font-size: 9px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.badge-dot { position: relative; }
.lang-sel {
  height: 32px; border: 1px solid var(--line); border-radius: var(--r); background: transparent;
  font-size: 12px; padding: 0 8px; cursor: pointer;
}
.burger { display: none; }

/* mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 200; background: var(--bg);
  padding: 24px 24px max(40px, env(safe-area-inset-bottom)); flex-direction: column; gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 24px; letter-spacing: -0.02em; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* ------------------------------ hero ------------------------------ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .inner { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; padding: 76px 0 64px; }
.hero h1 { max-width: 12ch; }
.hero .lead { margin-top: 26px; max-width: 46ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .meta { display: flex; gap: 30px; margin-top: 52px; flex-wrap: wrap; }
.hero .meta div span { display: block; font-size: 22px; letter-spacing: -0.02em; }
.hero .meta div em { font-style: normal; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero .visual { position: relative; }
.hero .visual img { width: 100%; height: auto; filter: drop-shadow(0 24px 48px rgba(11, 12, 14, 0.1)); }
.hero .tag-float {
  position: absolute; bottom: 8%; left: -4%;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 12px 16px; box-shadow: var(--shadow-md); font-size: 11px; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 10px;
}
.hero .tag-float i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: block; }

/* ------------------------------ section head ------------------------------ */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.sec-head .txt { max-width: 62ch; }
.sec-head .txt h2 { margin-top: 14px; }
.sec-head .txt p { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* ------------------------------ product card ------------------------------ */
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.p-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.p-card { position: relative; }
.p-card .media {
  position: relative; background: var(--bg-alt); border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 1 / 1; display: grid; place-items: center;
}
.p-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.p-card:hover .media img { transform: scale(1.035); }
.p-card .flag {
  position: absolute; top: 12px; left: 12px; background: var(--bg-elev); color: var(--ink);
  font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 9px;
  border-radius: 2px; border: 1px solid var(--line);
}
.p-card .flag.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.p-card .quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  height: 40px; border-radius: 2px; background: var(--bg-elev); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: all 0.35s var(--ease);
}
.p-card:hover .quick { opacity: 1; transform: translateY(0); }
.p-card .quick:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.p-card .info { padding: 16px 2px 0; }
.p-card .info h3 { font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; }
.p-card .info .sub { font-size: 12px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.p-card .info .price { margin-top: 10px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.p-card .info .price s { color: var(--muted); font-size: 12.5px; }

/* ------------------------------ filters ------------------------------ */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); background: var(--bg); z-index: 30; }
.chip {
  height: 34px; padding: 0 15px; border: 1px solid var(--line); border-radius: 20px;
  font-size: 12.5px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--line-strong); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filters .spacer { flex: 1; }
.sel {
  height: 34px; border: 1px solid var(--line); border-radius: 20px; padding: 0 30px 0 14px;
  background: var(--bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' fill='none' stroke='%236d7278' stroke-width='1.4'/></svg>") no-repeat right 14px center;
  font-size: 12.5px; appearance: none;
}

/* ------------------------------ spec / detail ------------------------------ */
.pdp { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; padding: 48px 0 96px; }
.gallery .main { background: var(--bg-alt); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1/1; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery .thumbs button { width: 76px; height: 76px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-alt); }
.gallery .thumbs button.on { border-color: var(--ink); }
.buybox { position: sticky; top: calc(var(--header-h) + 24px); }
.buybox h1 { font-size: clamp(28px, 3vw, 40px); }
.price-line { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 6px; }
.price-line strong { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.price-line s { color: var(--muted); }
.opt-group { margin-top: 26px; }
.opt-group .label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r); font-size: 12.5px; }
.opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); height: 46px; }
.qty button { width: 42px; height: 100%; font-size: 16px; }
.qty span { width: 40px; text-align: center; font-size: 13px; }
.spec-table td { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.spec-table td:first-child { color: var(--muted); width: 42%; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.trust div { font-size: 11.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.trust svg { width: 15px; height: 15px; }

/* tabs */
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.tabs button { padding: 14px 0; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-color: var(--ink); }

/* accordion */
.acc { border-top: 1px solid var(--line); }
.acc .item { border-bottom: 1px solid var(--line); }
.acc .q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; text-align: left; font-size: 14.5px; }
.acc .q i { font-style: normal; color: var(--muted); font-size: 19px; line-height: 1; width: 20px; text-align: center; transition: transform 0.3s var(--ease); }
.acc .item.open .q i { transform: rotate(45deg); }
.acc .a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.acc .a p { padding: 0 0 22px; color: var(--muted); font-size: 14px; max-width: 78ch; white-space: pre-line; }
.acc .item.open .a { max-height: 600px; }

/* ------------------------------ forms ------------------------------ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.input, textarea.input, select.input {
  height: 46px; padding: 0 14px; background: transparent; border: 1px solid var(--line);
  border-radius: var(--r); font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; line-height: 1.55; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--accent); }
.err { color: var(--danger); font-size: 12px; }
.note { font-size: 12px; color: var(--muted); }

/* ------------------------------ panels / cards ------------------------------ */
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-elev); }
.panel-pad { padding: 26px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; background: var(--bg-elev); transition: border-color 0.25s, transform 0.35s var(--ease); }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .num { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 13.5px; }

/* ------------------------------ cart / checkout ------------------------------ */
.cart-grid { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 48px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line .thumb { width: 84px; height: 84px; background: var(--bg-alt); border-radius: var(--r); overflow: hidden; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.summary { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; position: sticky; top: calc(var(--header-h) + 24px); background: var(--bg-elev); }
.summary .line { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13.5px; }
.summary .line.total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; font-size: 17px; }
.steps { display: flex; gap: 8px; align-items: center; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; }
.steps b { color: var(--ink); font-weight: 600; }
.pay-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; cursor: pointer; }
.pay-opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-opt input { accent-color: var(--accent); }

/* ------------------------------ table ------------------------------ */
.table { width: 100%; font-size: 13px; }
.table th { text-align: left; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 500; white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: color-mix(in srgb, var(--bg-alt) 60%, transparent); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); }
.pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.pill.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.pill.info { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }

/* ------------------------------ footer ------------------------------ */
footer.site { border-top: 1px solid var(--line); padding: 72px 0 32px; background: var(--bg); }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.f-grid h5 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.f-grid a, .f-grid p { font-size: 13px; color: var(--ink-soft); display: block; padding: 5px 0; }
.f-grid a:hover { color: var(--accent); }
.f-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.soc { display: flex; gap: 8px; margin-top: 18px; }
.soc a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.soc a:hover { border-color: var(--ink); }
.soc svg { width: 15px; height: 15px; }
.news { display: flex; gap: 8px; margin-top: 14px; }
.news input { flex: 1; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; font-size: 13px; }
.news button { height: 42px; padding: 0 16px; background: var(--ink); color: var(--bg); border-radius: var(--r); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ------------------------------ drawer ------------------------------ */
.drawer-mask { position: fixed; inset: 0; background: rgba(11, 12, 14, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.35s; z-index: 120; backdrop-filter: blur(2px); }
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw; background: var(--bg);
  z-index: 130; transform: translateX(102%); transition: transform 0.45s var(--ease);
  display: flex; flex-direction: column; border-left: 1px solid var(--line);
}
.drawer.open { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer .body { flex: 1; overflow: auto; padding: 8px 24px; }
.drawer footer { border-top: 1px solid var(--line); padding: 20px 24px 24px; }

/* ------------------------------ toast / modal ------------------------------ */
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 24px;
  font-size: 12.5px; box-shadow: var(--shadow-lg); animation: toastIn 0.4s var(--ease);
  max-width: 90vw;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
.modal-mask { position: fixed; inset: 0; z-index: 210; background: rgba(11, 12, 14, 0.5); display: none; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(3px); }
.modal-mask.open { display: flex; }
.modal { background: var(--bg); border-radius: var(--r-lg); width: 100%; max-width: 480px; padding: 32px; box-shadow: var(--shadow-lg); max-height: 88vh; overflow: auto; }

/* ------------------------------ AI assistant ------------------------------ */
.ai-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 140;
  width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  transition: transform 0.35s var(--ease), background 0.3s;
}
.ai-fab:hover { transform: translateY(-3px) scale(1.03); background: var(--accent); color: #fff; }
.ai-fab svg { width: 22px; height: 22px; }
.ai-fab .ping { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); border: 2px solid var(--bg); }
.ai-panel {
  position: fixed; right: 24px; bottom: 92px; z-index: 145; width: 384px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 140px); background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.98); pointer-events: none;
  transition: all 0.4s var(--ease);
}
.ai-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.ai-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; background: var(--bg); }
.ai-head .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 11px; letter-spacing: 0.06em; font-weight: 600; }
.ai-head .t { font-size: 13px; font-weight: 500; }
.ai-head .s { font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.ai-head .s i { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); display: block; }
.ai-body { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { max-width: 86%; font-size: 13px; line-height: 1.55; padding: 10px 14px; border-radius: 12px; white-space: pre-line; }
.msg.bot { background: var(--bg-alt); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg .cards { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.msg .mini { display: flex; gap: 10px; align-items: center; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.msg .mini img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: var(--bg-alt); }
.msg .mini b { font-size: 11.5px; font-weight: 500; display: block; }
.msg .mini span { font-size: 11px; color: var(--muted); }
.ai-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px 10px; }
.ai-chips button { font-size: 11px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink-soft); }
.ai-chips button:hover { border-color: var(--ink); }
.ai-foot { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: flex-end; background: var(--bg); }
.ai-foot textarea { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13px; resize: none; max-height: 88px; background: transparent; }
.ai-foot button { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--bg); display: grid; place-items: center; flex: none; }
.ai-disclaimer { font-size: 10px; color: var(--muted); text-align: center; padding: 0 18px 10px; }
.typing { display: flex; gap: 4px; padding: 4px 0; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* ------------------------------ admin ------------------------------ */
.admin-body { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }
.admin-side { border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
.admin-side .brand { padding: 0 8px 20px; }
.admin-side a.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); font-size: 13px; color: var(--ink-soft); }
.admin-side a.nav-item:hover { background: var(--bg-alt); }
.admin-side a.nav-item.on { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .admin-side a.nav-item.on { background: rgba(255,255,255,.10); color: var(--ink); }
.admin-main { padding: 28px 32px 60px; background: var(--bg-alt); min-width: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.kpi span { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin-top: 8px; }
.kpi em { font-style: normal; font-size: 11px; color: var(--ok); }
.admin-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.admin-card > header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-card > header h3 { font-size: 14px; font-weight: 500; }
.admin-card .pad { padding: 20px; }
.admin-tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tabs button { padding: 8px 14px; font-size: 12px; border-radius: 20px; border: 1px solid var(--line); }
.admin-tabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 90px; }
.spark i { flex: 1; background: var(--accent); opacity: 0.75; border-radius: 1px 1px 0 0; min-height: 2px; }

/* ------------------------------ cookie consent ------------------------------ */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 150; max-width: 460px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 18px 20px;
  opacity: 0; transform: translateY(14px); animation: cookieIn 0.5s var(--ease) 0.8s forwards;
}
@keyframes cookieIn { to { opacity: 1; transform: none; } }
.cookie p { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.cookie .acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.cookie .acts button { height: 34px; padding: 0 14px; border-radius: 2px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line-strong); }
.cookie .acts button.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 900px) { .cookie { left: 12px; right: 12px; bottom: 84px; max-width: none; } }

/* ------------------------------ misc ------------------------------ */
/* 渐进显示：仅在 JS 生效时启用，避免无 JS 时内容不可见 */
.reveal { opacity: 1; transform: none; }
html.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.anim .reveal.in { opacity: 1; transform: none; }
.skeleton { background: linear-gradient(90deg, var(--bg-alt) 25%, var(--line) 37%, var(--bg-alt) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: var(--r); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.dayhot { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.dayhot .media { background: var(--bg-alt); }
.dayhot .txt { padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.breadcrumb { font-size: 11.5px; color: var(--muted); display: flex; gap: 8px; padding: 18px 0; }
.breadcrumb a:hover { color: var(--ink); }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee > div { display: inline-flex; gap: 48px; animation: marq 34s linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }

@media (max-width: 1100px) {
  .p-grid { grid-template-columns: repeat(3, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  nav.main, .h-actions .desk { display: none; }
  .burger { display: grid; }
  .hero .inner { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 40px; }
  .hero .visual { order: -1; }
  .hero .tag-float { display: none; }
  .section { padding: 68px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .p-grid, .p-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .card-grid { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; gap: 32px; padding: 24px 0 64px; }
  .cart-grid { grid-template-columns: 1fr; gap: 28px; }
  .f-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-side { position: fixed; bottom: 0; top: auto; height: auto; width: 100%; flex-direction: row; overflow-x: auto; border-right: 0; border-top: 1px solid var(--line); z-index: 50; padding: 8px; }
  .admin-side .brand, .admin-side .side-foot { display: none; }
  .admin-side a.nav-item { white-space: nowrap; font-size: 12px; }
  .admin-main { padding: 20px 16px 100px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .dayhot { grid-template-columns: 1fr; }
  .dayhot .media { aspect-ratio: 4 / 3; }
  .dayhot .txt { padding: 28px; }
  .tabs { overflow-x: auto; }
}
@media (max-width: 560px) {
  .p-grid { gap: 18px 12px; }
  .p-card .info h3 { font-size: 13px; }
  .ai-panel { right: 8px; left: 8px; width: auto; bottom: 84px; }
  .ai-fab { right: 16px; bottom: 16px; }
  .f-grid { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
}
/* ==========================================================================
   RESPONSIVE — tablet & phone refinements
   The default layout above is the PC / desktop design. These breakpoints
   adapt it for tablets (≤1024px) and phones (≤640px, ≤380px).
   ========================================================================== */

/* scroll lock while the mobile menu is open */
body.nav-open { overflow: hidden; }

/* ---- Tablet (≤1024px): keep large grids from crowding ---- */
@media (max-width: 1024px) {
  .f-grid { grid-template-columns: 1fr 1fr; }
  .p-grid { grid-template-columns: repeat(3, 1fr); }
  /* inline grids that don't collapse on their own */
  [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---- Phone (≤640px) ---- */
@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .section { padding: 52px 0; }
  .section-sm { padding: 36px 0; }
  .lead { font-size: 15px; }

  /* collapse every remaining multi-column inline grid */
  [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1.2fr .8fr"],
  [style*="grid-template-columns:1.1fr .9fr"],
  [style*="grid-template-columns:1.35fr .65fr"],
  [style*="grid-template-columns:.62fr 1fr"] { grid-template-columns: 1fr !important; }

  .p-grid, .p-grid.cols-3 { gap: 16px 12px; }
  .p-card .info h3 { font-size: 13px; }

  .hero .inner { padding: 40px 0 36px; }
  .hero .meta { gap: 18px 22px; }
  .hero .meta div span { font-size: 19px; }

  .sec-head { gap: 10px; }
  .tabs { gap: 16px; overflow-x: auto; }
  .filters { gap: 8px; }
  .chip { height: 38px; }

  .dayhot .media { aspect-ratio: 4 / 3; }

  .cart-line { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .cart-line .thumb { width: 64px; height: 64px; }

  .f-grid { grid-template-columns: 1fr; gap: 26px; }
  .news { flex-direction: column; }
  .news input, .news button { width: 100%; }
  .summary { position: static; }

  .ai-panel { right: 8px; left: 8px; width: auto; bottom: 84px; }
  .ai-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .drawer { width: 100%; }
  .cookie { left: 12px; right: 12px; bottom: 84px; max-width: none; }

  .announce { font-size: 10px; letter-spacing: 0.1em; }

  /* admin: avoid horizontal overflow on tablets/phones */
  .admin-card { overflow-x: auto; }
  .admin-card .table { min-width: 600px; }
}

/* ---- Small phone (≤380px) ---- */
@media (max-width: 380px) {
  .p-grid, .p-grid.cols-3 { grid-template-columns: 1fr; }
  .hero .cta { flex-direction: column; align-items: stretch; }
  .hero .cta .btn { width: 100%; }
  [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   商品详情页（Amazon 式编排：左图库 + 右 Buy Box + A+ 模块）
   ========================================================================== */
.amz { display: grid; grid-template-columns: minmax(0, 1fr) 412px; gap: 54px; align-items: start; padding: 26px 0 64px; }
.amz-media { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 14px; align-items: start; }
.amz-thumbs { display: flex; flex-direction: column; gap: 8px; position: sticky; top: calc(var(--header-h) + 18px); }
.amz-thumbs button { width: 66px; height: 66px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-alt); padding: 0; cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.amz-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amz-thumbs button:hover { border-color: var(--line-strong); }
.amz-thumbs button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.amz-stage { position: sticky; top: calc(var(--header-h) + 18px); background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / 1; }
.amz-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amz-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.amz-buy { position: sticky; top: calc(var(--header-h) + 18px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-elev); padding: 22px 22px 24px; box-shadow: var(--shadow-sm); }
.amz-brand { font-size: 12px; color: var(--accent); text-decoration: none; letter-spacing: .01em; }
.amz-brand:hover { text-decoration: underline; }
.amz-buy h1 { font-size: 25px; line-height: 1.25; margin: 8px 0 10px; letter-spacing: -0.015em; }
.amz-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.amz-sep { color: var(--line-strong); }
.stars { display: inline-flex; gap: 1px; font-size: 13px; color: var(--line-strong); letter-spacing: 1px; }
.stars i { font-style: normal; }
.stars i.on { color: #e79a1e; }
.amz-divider { height: 1px; background: var(--line); margin: 16px 0; }
.amz-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.amz-price strong { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.amz-price s { color: var(--muted); font-size: 14px; }
.amz-off { background: #c0392b; color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 2px; letter-spacing: .02em; }
.amz-summary { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.6; }

.amz-bullets { margin-top: 18px; }
.amz-bullets-head { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.amz-bullets ul { margin: 0; padding-left: 17px; }
.amz-bullets li { font-size: 13px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 7px; }
.amz-bullets li b { font-weight: 600; color: var(--ink); }

.amz-stock { font-size: 12.5px; margin-top: 18px; color: var(--muted); }
.amz-in { color: var(--ok); font-weight: 600; }
.amz-out { color: var(--danger); font-weight: 600; }
.amz-actions { display: flex; gap: 10px; margin-top: 14px; }
.amz-actions .qty { height: 44px; flex: none; }
.amz-add { flex: 1; }
.amz-buynow { width: 100%; margin-top: 8px; }
.amz-meta { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 7px; }
.amz-meta div { display: grid; grid-template-columns: 78px 1fr; gap: 10px; font-size: 12px; color: var(--ink-soft); }
.amz-k { color: var(--muted); }
.amz-privacy { display: flex; gap: 10px; margin-top: 18px; padding: 14px; background: var(--bg-alt); border-radius: var(--r); }
.amz-privacy svg { width: 17px; height: 17px; flex: none; color: var(--accent); margin-top: 2px; }
.amz-privacy div > div { font-size: 12.5px; }
.amz-privacy p { margin: 4px 0 0; line-height: 1.5; }

/* ---------- A+ 模块 ---------- */
.ap { padding: 60px 0; border-top: 1px solid var(--line); }
.ap:first-child { border-top: 0; }
.ap-head { margin-bottom: 26px; }
.ap-head h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0; letter-spacing: -0.02em; }
.ap-center { text-align: center; }
.ap-center .ap-head { margin-bottom: 18px; }
.ap-lead { font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); max-width: 74ch; margin: 0 auto; }
.ap-center .ap-lead { margin: 0 auto; }
.ap-wide { width: 100%; max-width: 1000px; border-radius: var(--r-lg); margin-top: 26px; display: block; }
.ap-center .ap-wide { margin-left: auto; margin-right: auto; }

.ap-dark { background: #10141a; border-top: 0; color: #eef2f5; }
.ap-dark .ap-head h2 { color: #fff; }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ap-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--bg-elev); }
.ap-dark .ap-card { background: #171d24; border-color: #232a33; }
.ap-card h3 { font-size: 15.5px; margin: 0 0 8px; }
.ap-card p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.ap-dark .ap-card p { color: #98a2ad; }
.ap-glyph { display: inline-block; font-size: 22px; line-height: 1; margin-bottom: 12px; color: var(--accent); }
.ap-dark .ap-glyph { color: #00a8b0; }
.ap-shield { width: 20px; height: 20px; color: #00a8b0; margin-bottom: 12px; }

.ap-itext { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ap-itext.rev .ap-it-body { order: 2; }
.ap-itext .ap-it-body h2 { font-size: clamp(20px, 2.4vw, 28px); margin: 0 0 14px; letter-spacing: -0.02em; }
.ap-itext .ap-lead { margin: 0; }
.ap-itext .ap-it-media img { width: 100%; border-radius: var(--r-lg); display: block; background: var(--bg-alt); }
.ap-list { margin: 18px 0 0; padding-left: 18px; }
.ap-list li { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; line-height: 1.55; }
.ap-ph { aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: var(--bg-alt); border: 1px solid var(--line); }

.ap-tablewrap { overflow-x: auto; }
.ap-cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.ap-cmp th, .ap-cmp td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ap-cmp thead th { font-size: 12px; letter-spacing: .04em; color: var(--muted); font-weight: 500; }
.ap-cmp th.hi { color: var(--ink); font-weight: 600; }
.ap-cmp td { color: var(--ink-soft); }
.ap-cmp td:first-child { color: var(--muted); width: 30%; }
.ap-cmp td.hi { background: var(--accent-soft); color: var(--ink); font-weight: 500; }

.ap-specs .ap-specgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; max-width: 1000px; }
.ap-specrow { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ap-specrow span:first-child { color: var(--muted); }

.ap-scenes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.ap-scene { margin: 0; }
.ap-scene img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); display: block; background: var(--bg-alt); }
.ap-scene figcaption h3 { font-size: 15px; margin: 14px 0 6px; }
.ap-scene figcaption p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.6; }
.ap-faq { max-width: 880px; }

.amz-mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--bg-elev); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(0, 0, 0, .4); }
.amz-mobilebar strong { font-size: 17px; margin-right: 8px; }

@media (max-width: 1080px) {
  .amz { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
  .ap-itext { gap: 30px; }
}
@media (max-width: 900px) {
  .amz { grid-template-columns: 1fr; gap: 26px; padding-bottom: 90px; }
  .amz-media { grid-template-columns: 1fr; }
  .amz-thumbs { flex-direction: row; order: 2; position: static; overflow-x: auto; padding-bottom: 4px; }
  .amz-stage { position: static; order: 1; }
  .amz-buy { position: static; }
  .ap-itext { grid-template-columns: 1fr; }
  .ap-itext.rev .ap-it-body { order: 0; }
  .ap-specs .ap-specgrid { grid-template-columns: 1fr; }
  .ap { padding: 44px 0; }
}
