/* =============================================================================
   ACQUY.NET theme — inherited storefront components
   Tokens live in tokens.css, which must load first.
   Shared storefront components inherited by AAZ_ACQUY.
   ========================================================================== */

/* ---- 2. Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--acquy-bg); color: var(--acquy-text);
  font: 400 var(--fs-base)/1.55 var(--acquy-font-sans);
}
h1, h2, h3, h4 { color: var(--acquy-ink); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: var(--fs-2xl); } h2 { font-size: var(--fs-xl); } h3 { font-size: var(--fs-lg); } h4 { font-size: var(--fs-md); }
p { margin: 0 0 1em; }
a { color: var(--acquy-link); text-decoration: none; }
a:hover { color: var(--acquy-link-hover); text-decoration: underline; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--acquy-focus-ring); }
.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: 8px; top: -48px; background: var(--acquy-yellow); color: var(--acquy-black); padding: 8px 12px; border-radius: var(--acquy-radius); z-index: 100; }
.skip-link:focus { top: 8px; }
/* Short pages (warranty lookup, empty cart) keep the footer at the bottom of the window. */
body:has(> .footer) { min-height: 100vh; display: flex; flex-direction: column; }
body:has(> .footer) > main { flex: 1 0 auto; }
.num, .price, .money { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--acquy-font-mono); letter-spacing: .02em; }
.muted { color: var(--acquy-muted); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; }

/* Layout primitives. Rule carried from V1 (§8.0): any grid/flex child that may
   hold a table, long token or user text gets min-width:0 — never hide overflow
   on body to mask it. */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.reading { max-width: var(--reading-max); margin: 0 auto; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row > *, .grid > *, .split > * { min-width: 0; }
.spacer { flex: 1; }
.section { padding: 40px 0; }
.section--soft { background: var(--acquy-bg); }
.section__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.section__head h2 { margin: 0; display: flex; align-items: center; gap: 12px; }
.section__head h2::before { content: ""; flex: none; width: 4px; height: 1.1em; background: var(--acquy-yellow); border-radius: 2px; }
.section__head a { margin-left: auto; font-weight: 600; font-size: var(--fs-sm); display: inline-flex; align-items: center; min-height: 32px; }

/* ---- 3. Primitives -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--acquy-radius);
  border: 1px solid transparent; font-weight: 600; font-size: var(--fs-base);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
/* Primary CTA: Electric Yellow with Power Black text (12.3:1). Never white on yellow. */
.btn--primary { background: var(--acquy-yellow); color: var(--acquy-black); border-color: var(--acquy-yellow); }
.btn--primary:hover { background: var(--acquy-yellow-hover); border-color: var(--acquy-yellow-hover); color: var(--acquy-black); }
.btn--primary:active { background: var(--acquy-yellow-active); border-color: var(--acquy-yellow-active); color: var(--acquy-black); }
.btn--secondary { background: #fff; color: var(--acquy-black); border-color: var(--acquy-border-strong); }
.btn--secondary:hover { background: var(--acquy-bg); border-color: var(--acquy-black); color: var(--acquy-black); }
.btn--ghost { background: transparent; color: var(--acquy-link); }
.btn--ghost:hover { background: var(--acquy-info-bg); }
.btn--danger { background: #fff; color: var(--acquy-danger); border-color: var(--acquy-danger-border); }
.btn--danger:hover { background: var(--acquy-danger-bg); }
.btn--lg { min-height: 48px; padding: 0 24px; font-size: var(--fs-md); }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
/* A disabled primary reads as waiting, not as a faded yellow: neutral fill, AA text. */
.btn--primary[disabled], .btn--primary[aria-disabled="true"] { background: var(--acquy-border); border-color: var(--acquy-border); color: var(--acquy-muted); opacity: 1; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-size: var(--fs-sm); font-weight: 600; color: var(--acquy-ink); }
.field .hint { font-size: var(--fs-xs); color: var(--acquy-muted); }
.field .error { font-size: var(--fs-xs); color: var(--acquy-danger); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; background: #fff;
  border: 1px solid var(--acquy-border-strong); border-radius: var(--acquy-radius);
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--acquy-black); box-shadow: var(--acquy-focus-ring); }
.input[aria-invalid="true"] { border-color: var(--acquy-danger); }
.input--affix { display: flex; align-items: stretch; border: 1px solid var(--acquy-border-strong); border-radius: var(--acquy-radius); overflow: hidden; background: #fff; }
.input--affix input { border: 0; flex: 1; min-width: 0; padding: 8px 12px; text-align: right; }
.input--affix input:focus { outline: none; }
.input--affix:focus-within { border-color: var(--acquy-black); box-shadow: var(--acquy-focus-ring); }
.input--affix span { display: flex; align-items: center; padding: 0 12px; background: var(--acquy-bg); color: var(--acquy-muted); border-left: 1px solid var(--acquy-border); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--acquy-danger); }
/* Checkout address: the Tỉnh/Thành phố and Phường/Xã selects. A native select on purpose — the
   ward list runs to 168 entries, and the platform's own full-screen picker beats any custom
   listbox we could build, on a phone especially. Only the arrow is ours. */
.select--location {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23343A40' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
/* Disabled is a real state here: the ward list waits for a province, so it must read as waiting
   rather than as broken. */
.select[disabled] { background-color: var(--acquy-bg); color: var(--acquy-muted); cursor: not-allowed; }
.select[aria-busy="true"] { cursor: progress; }

.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius-lg); background: #fff; cursor: pointer; }
.choice input { margin-top: 3px; accent-color: var(--acquy-black); }
.choice:has(input:checked) { border-color: var(--acquy-black); background: var(--acquy-selected-bg); box-shadow: inset 0 0 0 1px var(--acquy-black); }
.choice__title { font-weight: 600; color: var(--acquy-ink); }
.choice__meta { font-size: var(--fs-sm); color: var(--acquy-muted); }
.choice__aside { margin-left: auto; font-weight: 600; color: var(--acquy-ink); white-space: nowrap; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
/* Badge text is 12px: needs 4.5:1. --muted on --soft-2 is 4.26 and --success on
   --success-bg is 4.19 (measured UI-1), so badges use a darker step of each. */
.badge--muted { background: var(--acquy-soft-2); color: var(--acquy-text); }
.badge--info { background: var(--acquy-info-bg); color: var(--acquy-steel); }
.badge--success { background: var(--acquy-success-bg); color: var(--acquy-success); }
.badge--danger { background: var(--acquy-danger-bg); color: var(--acquy-danger); }
.badge--navy { background: var(--acquy-black); color: #fff; }
/* Gold on navy only (§2.1). The gold is the BORDER (non-text UI, 4.22:1 on
   logo navy ≥ 3:1). The label is white: 11px gold text would be 4.22:1, below
   the 4.5:1 small-text minimum — V1 §4.5 put gold on the text; corrected (§11). */
.badge--flagship { background: var(--acquy-black); color: #fff; border: 1px solid var(--acquy-yellow); letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
/* `display` here outranks the browser's own [hidden] rule, so hiding a badge needs saying again --
   otherwise a badge with no text still draws its pill, a coloured dot next to whatever it sits beside. */
.badge[hidden] { display: none; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--navy::before, .badge--flagship::before, .badge--plain::before { display: none; }

.card { background: #fff; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius-lg); }
.card__body { padding: 20px; }
.card__head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--acquy-border); }
.card__head h2, .card__head h3 { margin: 0; font-size: var(--fs-md); }

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--acquy-radius-lg); border: 1px solid var(--acquy-border); background: var(--acquy-bg); color: var(--acquy-text); }
.alert--info { background: var(--acquy-info-bg); border-color: var(--acquy-border); }
.alert--danger { background: var(--acquy-danger-bg); border-color: var(--acquy-danger-border); }
.alert--success { background: var(--acquy-success-bg); border-color: #C1DDCE; }
.alert strong { color: var(--acquy-ink); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-sm); color: var(--acquy-muted); padding: 14px 0; margin: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--acquy-border-strong); }
.breadcrumb [aria-current] { color: var(--acquy-ink); }
/* WCAG 2.5.8: inline crumbs still get a 24px-high target. */
.breadcrumb a { display: inline-flex; align-items: center; min-height: 24px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--acquy-border); overflow-x: auto; }
.tabs button, .tabs a { border: 0; background: none; padding: 12px 14px; font-weight: 600; color: var(--acquy-muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs [aria-selected="true"] { color: var(--acquy-black); border-bottom: 3px solid var(--acquy-yellow); }
.tabs button:hover, .tabs a:hover { color: var(--acquy-black); text-decoration: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--acquy-selected-bg); color: var(--acquy-black); box-shadow: inset 0 0 0 1px var(--acquy-yellow-active); font-size: var(--fs-sm); font-weight: 600; border: 0; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; line-height: 1; }

.pagination { display: flex; gap: 4px; align-items: center; justify-content: center; padding: 24px 0; }
.pagination a, .pagination span { min-width: 40px; height: 40px; background: #fff; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--acquy-radius); border: 1px solid var(--acquy-border); color: var(--acquy-text); }
.pagination [aria-current] { background: var(--acquy-black); border-color: var(--acquy-black); color: #fff; }

.steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--acquy-muted); counter-increment: s; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--acquy-border-strong); font-weight: 700; background: #fff; flex: none; }
.steps li + li { padding-left: 8px; }
.steps li + li::after { order: -1; content: ""; flex: 1; height: 1px; background: var(--acquy-border); margin-right: 8px; }
.steps [aria-current] { color: var(--acquy-black); font-weight: 700; }
.steps [aria-current]::before, .steps .done::before { background: var(--acquy-black); border-color: var(--acquy-black); color: #fff; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--acquy-border); }
.timeline li { position: relative; padding: 0 0 18px 14px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--acquy-black); }
.timeline li.is-done::before { background: var(--acquy-yellow); }
.timeline time { display: block; font-size: var(--fs-xs); color: var(--acquy-muted); }
.timeline .internal { border-left: 3px solid var(--acquy-border-strong); padding-left: 8px; }

/* ---- 4. Price (§10) -------------------------------------------------------- */
.price { color: var(--acquy-black); font-weight: 700; white-space: nowrap; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price-line del { color: var(--acquy-muted); font-weight: 400; font-size: .82em; white-space: nowrap; }
.price--pdp { font-size: var(--fs-2xl); }
.price--card { font-size: var(--fs-lg); }
.price--line { font-size: var(--fs-md); }
.discount { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--acquy-radius); background: var(--acquy-yellow); color: var(--acquy-black); font-size: var(--fs-xs); font-weight: 700; }
.price-state { color: var(--acquy-black); font-weight: 600; }
/* ShowPrice = false (P-25 §5.1): stands where the price stands, one step smaller so a word line is not louder than a number. */
.price-state--pdp { font-size: var(--fs-xl); }
.price-state--card { font-size: var(--fs-md); }
.price-state--line { font-size: var(--fs-sm); }

/* ---- 5. Storefront header -------------------------------------------------- */
.utility { background: var(--acquy-black); color: #F2F3F5; font-size: var(--fs-sm); border-bottom: 1px solid var(--acquy-steel); }
.utility .container { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.utility a { color: #fff; display: inline-flex; align-items: center; min-height: 32px; }
.utility a:hover { color: var(--acquy-yellow); }
.utility .spacer + a, .utility a + a { white-space: nowrap; }

.mainbar { background: var(--acquy-black); color: #fff; }
.mainbar .container { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--acquy-black); font-weight: 800; font-size: 26px; letter-spacing: .06em; text-decoration: none; }
.logo:hover { text-decoration: none; color: var(--acquy-black); }
.logo__mark { width: 36px; height: 36px; border-radius: 8px; background: var(--acquy-black); display: grid; place-items: center; color: #fff; }
.logo small { display: block; font-size: 10px; letter-spacing: .12em; font-weight: 600; color: var(--acquy-muted); margin-top: -4px; }
/* ACQUY.NET wordmark, reversed on the dark header and footer bands. */
.logo__img { display: block; height: 32px; width: auto; max-width: 100%; }  /* Design Lock §4: ≥32px desktop, ≥24px mobile */

.search { position: relative; display: flex; border: 1px solid var(--acquy-border-strong); border-radius: var(--acquy-radius); background: #fff; }
.search:focus-within { box-shadow: var(--acquy-focus-ring); }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; height: 46px; font-size: var(--fs-md); background: transparent; }
.search input:focus { outline: none; }
.search button { border: 0; background: var(--acquy-yellow); color: var(--acquy-black); padding: 0 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; cursor: pointer; border-radius: 0 3px 3px 0; }
.search button:hover { background: var(--acquy-yellow-hover); }
.search button:active { background: var(--acquy-yellow-active); }
.search__hints { display: flex; gap: 14px; font-size: var(--fs-xs); color: var(--acquy-muted); margin-top: 6px; flex-wrap: wrap; }
.mainbar .search__hints { color: #DDE1E5; }
.mainbar .search__hints a { color: #fff; }

.autocomplete { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius-lg); box-shadow: var(--acquy-shadow-2); z-index: 30; padding: 8px 0; display: none; }
.search:focus-within .autocomplete, .autocomplete.is-open { display: block; }
.autocomplete h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--acquy-muted); margin: 8px 16px 4px; }
.autocomplete a { display: flex; gap: 10px; align-items: center; padding: 8px 16px; color: var(--acquy-ink); }
.autocomplete a:hover { background: var(--acquy-bg); text-decoration: none; }

.actions { display: flex; align-items: center; gap: 6px; }
.action { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border-radius: var(--acquy-radius); color: #fff; font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; }
.action:hover { background: var(--acquy-steel); text-decoration: none; color: #fff; }
.action small { display: block; color: #DDE1E5; font-size: var(--fs-xs); font-weight: 400; }
.action .icon { width: 24px; height: 24px; color: var(--acquy-yellow); }
.cart-count { position: relative; margin-right: 10px; }
.cart-count b { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--acquy-yellow); color: var(--acquy-black); font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

.catnav { background: var(--acquy-steel); }
.catnav .container { display: flex; align-items: stretch; gap: 2px; min-height: 48px; overflow-x: auto; scrollbar-width: none; }
.catnav a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; color: #FFFFFF; font-weight: 600; font-size: 14px; white-space: nowrap; }
.catnav a:hover { background: var(--acquy-black); color: var(--acquy-yellow); text-decoration: none; }
.catnav a:focus-visible { box-shadow: inset 0 0 0 2px var(--acquy-yellow); }
.catnav .catnav__all { background: var(--acquy-yellow); color: var(--acquy-black); padding: 0 18px; }
.catnav .catnav__all:hover { background: var(--acquy-yellow-hover); color: var(--acquy-black); }
/* Finder navigation uses the approved yellow accent against the dark navigation band. */
.catnav .catnav__finder { color: #fff; box-shadow: inset 0 -3px 0 var(--acquy-yellow); }
.catnav .catnav__finder .icon { color: var(--acquy-yellow); }
/* Edge buttons for the category strip. They sit at the container's own edges, overlay the strip
   rather than resizing it, and each one hides at the end it would scroll towards — so nothing is
   ever permanently covered and the band never grows wider than the page. */
.catnav { position: relative; }
.catnav__nav { position: absolute; top: 0; bottom: 0; z-index: 2; width: 40px; border: 0; cursor: pointer; background: var(--acquy-steel); color: #fff; font-size: 20px; font-weight: 700; line-height: 1; display: grid; place-items: center; }
.catnav__nav[hidden] { display: none; }
.catnav__nav:hover { background: var(--acquy-black); }
.catnav__nav:focus-visible { box-shadow: inset 0 0 0 2px var(--acquy-yellow); }
.catnav__nav--prev { left: max(0px, calc(50% - var(--container-max) / 2)); box-shadow: 10px 0 14px -6px rgba(0,0,0,.6); }
.catnav__nav--next { right: max(0px, calc(50% - var(--container-max) / 2)); box-shadow: -10px 0 14px -6px rgba(0,0,0,.6); }
.menu-toggle { display: none; }

/* ---- 6. Hero + finder ------------------------------------------------------ */
.hero { background: var(--acquy-black); color: #fff; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 44px; align-items: center; }
.hero h1 { color: #fff; font-size: var(--fs-3xl); max-width: 16ch; }
.hero__rule { width: 72px; height: 3px; background: var(--acquy-yellow); border: 0; margin: 0 0 18px; }
.hero p { color: #F2F3F5; font-size: var(--fs-md); max-width: 52ch; }
.hero__trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: var(--fs-sm); color: #F2F3F5; margin-top: 18px; }
.hero__trust span { display: inline-flex; gap: 8px; align-items: center; }
.hero__trust .icon { color: #fff; }   /* sits over the lighter end of the gradient, where gold falls below 3:1 */

.finder { background: #fff; color: var(--acquy-text); border-radius: var(--acquy-radius-lg); padding: 22px; box-shadow: var(--acquy-shadow-2); }
.finder h2, .finder h3 { font-size: var(--fs-lg); display: flex; gap: 10px; align-items: center; }
.finder__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.finder--inline { box-shadow: none; border: 1px solid var(--acquy-border); }
.finder__note { font-size: var(--fs-xs); color: var(--acquy-muted); margin: 10px 0 0; }

.state-panel { border: 1px solid var(--acquy-border); background: var(--acquy-bg); border-radius: var(--acquy-radius-lg); padding: 24px; }
.state-panel h3 { margin-bottom: 6px; }
.state-panel .row { margin-top: 16px; }

/* ---- 7. Catalogue ------------------------------------------------------------ */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.tile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; min-height: 80px; padding: 14px 16px; background: #fff; border: 1px solid var(--acquy-border); border-left: 4px solid var(--acquy-black); border-radius: var(--acquy-radius); color: var(--acquy-ink); font-weight: 700; font-size: var(--fs-md); line-height: 1.3; }
.tile:hover { border-color: var(--acquy-steel); border-left-color: var(--acquy-yellow); text-decoration: none; color: var(--acquy-black); }
.tile .tile__icon { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: var(--acquy-radius); background: var(--acquy-black); display: grid; place-items: center; color: var(--acquy-yellow); }
.tile small { grid-column: 2; color: var(--acquy-muted); font-weight: 400; font-size: var(--fs-sm); }

.grid { display: grid; gap: 20px; }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius-lg); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.pcard:hover, .pcard:focus-within { border-color: var(--acquy-steel); box-shadow: 0 6px 18px rgba(20, 22, 25, .10); }
.pcard__media { aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--acquy-border); display: grid; place-items: center; padding: 16px; }
.pcard__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 14px; flex: 1; }
.pcard__name { color: var(--acquy-ink); font-weight: 600; font-size: var(--fs-base); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard__name:hover { color: var(--acquy-link); text-decoration: none; }
.pcard__spec { font-size: var(--fs-sm); color: var(--acquy-muted); }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-xs); color: var(--acquy-muted); }
.pcard__fit { font-size: var(--fs-xs); color: var(--acquy-success); display: flex; gap: 6px; align-items: center; }
.pcard__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--acquy-border); }
.pcard__foot .btn { margin-left: auto; }

.listing { display: grid; grid-template-columns: minmax(240px, 3fr) minmax(0, 9fr); gap: 24px; align-items: start; }
.rail { border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius-lg); background: #fff; position: sticky; top: 16px; }
.rail details { border-bottom: 1px solid var(--acquy-border); }
.rail details:last-child { border-bottom: 0; }
.rail summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--acquy-ink); list-style: none; display: flex; justify-content: space-between; }
.rail summary::-webkit-details-marker { display: none; }
.rail > details:first-of-type summary, .rail__head + details summary { border-top: 0; }
.rail summary::after { content: "▾"; color: var(--acquy-muted); }
.rail details:not([open]) summary::after { content: "▸"; }
.rail .opts { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-sm); }
.rail label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.rail label span { margin-left: auto; color: var(--acquy-muted); font-size: var(--fs-xs); }
.rail input { accent-color: var(--acquy-black); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; }
.toolbar .select { width: auto; min-width: 180px; }
.filter-btn { display: none; }

/* ---- 8. Product detail ------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.gallery { position: sticky; top: 16px; }
.gallery__main { aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius-lg); display: grid; place-items: center; padding: 48px; }
/* Wave 2A §4.5 — real Catalog images inside the existing square frames. */
.pcard__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery__track { display: flex; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.gallery__slide { flex: 0 0 100%; margin: 0; padding: 32px; display: grid; place-items: center; scroll-snap-align: center; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery__thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; padding: 0; list-style: none; }
.gallery__thumbs a { display: block; width: 56px; height: 56px; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius); background: #fff; overflow: hidden; }
.gallery__thumbs a:focus-visible { outline: none; box-shadow: var(--acquy-focus-ring); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.gallery__thumbs button { aspect-ratio: 1; background: #fff; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius); padding: 8px; cursor: pointer; }
.gallery__thumbs [aria-current] { border-color: var(--acquy-black); box-shadow: inset 0 0 0 1px var(--acquy-black), inset 0 -3px 0 var(--acquy-yellow); }
.buybox { display: flex; flex-direction: column; gap: 18px; }
.buybox h1 { font-size: 30px; margin: 0; }
.buybox__meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--acquy-muted); }
.buybox__panel { background: #fff; border: 1px solid var(--acquy-border); border-top: 3px solid var(--acquy-black); border-radius: var(--acquy-radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.qty { display: inline-flex; border: 1px solid var(--acquy-border-strong); border-radius: var(--acquy-radius); height: 48px; background: #fff; }
.qty button { width: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--acquy-black); }
.qty input { width: 52px; border: 0; text-align: center; font-weight: 700; }
/* Marketplace links (CX-AFFILIATE-STOREFRONT-1 §2.2). One block for every marketplace that will ever
   exist: the brand colour arrives as an inline --mp-accent from the Marketplace row, so adding a sàn is
   never a stylesheet edit. No rule here may be keyed to a marketplace name or code. */
.mplinks { display: flex; flex-direction: column; gap: 8px; }
.mplinks__title { margin: 0; font-size: var(--fs-sm); color: var(--acquy-muted); }
.mplinks__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mplinks__item { --mp-accent: var(--acquy-border-strong); display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--acquy-border); border-left: 3px solid var(--mp-accent); border-radius: var(--acquy-radius); text-decoration: none; }
.mplinks__item:hover { border-color: var(--acquy-border-strong); border-left-color: var(--mp-accent); }
.mplinks__item:focus-visible { outline: none; box-shadow: var(--acquy-focus-ring); }
.mplinks__logo { flex: 0 0 auto; width: 20px; height: 20px; object-fit: contain; }
.mplinks__label { flex: 1; min-width: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--acquy-ink); }
.mplinks__ext { flex: 0 0 auto; color: var(--acquy-muted); }
.assure { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-size: var(--fs-sm); }
.assure div { display: flex; gap: 10px; align-items: flex-start; }
.assure .icon { color: var(--acquy-black); }
.keyspecs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.keyspecs div { background: #fff; border: 1px solid var(--acquy-border); border-left: 3px solid var(--acquy-yellow); border-radius: var(--acquy-radius); padding: 10px 12px; }
.keyspecs b { display: block; color: var(--acquy-black); font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.keyspecs span { font-size: var(--fs-sm); color: var(--acquy-muted); }
.keyspecs b { overflow-wrap: anywhere; }
/* Rev 4 §5.3 (synced from AAZ_ZMAX, ACQUY tokens): tier 2 -- one row per attribute, name muted on the left, value on the right; every value printed. */
.pdp-facts { display: grid; margin: 12px 0 0; border-top: 1px solid var(--acquy-border); }
.pdp-facts__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--acquy-border); font-size: var(--fs-sm); }
.pdp-facts dt { color: var(--acquy-muted); }
.pdp-facts dd { margin: 0; color: var(--acquy-ink); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.spec { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec { background: #fff; }
.spec th, .spec td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--acquy-border); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 38%; color: var(--acquy-muted); font-weight: 600; background: var(--acquy-bg); }
/* Technical section heading uses a yellow accent bar on the dark band. */
.band-head { display: flex; align-items: center; gap: 12px; background: var(--acquy-black); color: #fff; padding: 12px 18px; border-radius: var(--acquy-radius-lg) var(--acquy-radius-lg) 0 0; border-left: 4px solid var(--acquy-yellow); }
.band-head h2, .band-head h3 { color: #fff; margin: 0; font-size: var(--fs-md); }
.band-body { background: #fff; border: 1px solid var(--acquy-border); border-top: 0; border-radius: 0 0 var(--acquy-radius-lg) var(--acquy-radius-lg); padding: 16px 18px; }
.devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 20px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.devices li { display: flex; gap: 8px; align-items: center; }
.devices .icon { color: var(--acquy-success); width: 16px; height: 16px; }
/* CX-SPEC-1 §6.2: an approved device is a link to /thiet-bi/{slug}; the whole row is the target (≥44px). */
.devices--links { gap: 4px 20px; }
.devices--links li { display: block; }
.devlink { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; margin: 0 -8px; border-radius: var(--acquy-radius); color: var(--acquy-ink); text-decoration: none; }
.devlink .icon { flex: none; }
a.devlink:hover, a.devlink:focus-visible { background: var(--acquy-bg); }
a.devlink:hover b { color: var(--acquy-black); text-decoration: underline; }
.devlink__text { display: flex; flex-direction: column; min-width: 0; }
.devlink__text b { font-weight: 600; overflow-wrap: anywhere; }
.devlink__text small { font-size: var(--fs-xs); color: var(--acquy-muted); }
.devlink__go { margin-left: auto; color: var(--acquy-muted); font-size: var(--fs-md); }
.devices__more { margin-top: 8px; }
.devices__more > summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); color: var(--acquy-black); min-height: 44px; display: flex; align-items: center; }
.devices__more[open] > summary { margin-bottom: 4px; }
.device-page .device-ref { padding-bottom: 0; }
.device-page .device-ref .kv { grid-template-columns: 200px minmax(0, 1fr); }
.page-title .device-summary { max-width: 72ch; margin-top: 12px; color: var(--acquy-text); line-height: 1.6; }
.device-help { padding-top: 0; }

/* ---- 9. Cart / checkout ------------------------------------------------------ */
.split { display: grid; grid-template-columns: minmax(0, 8fr) minmax(340px, 4fr); gap: 32px; align-items: start; }
.summary { position: sticky; top: 16px; }
.cartline { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--acquy-border); }
.cartline__media { aspect-ratio: 1; background: #fff; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius); display: grid; place-items: center; padding: 8px; }
.cartline .qty { height: 38px; }
.cartline .qty button { width: 34px; }
.cartline .qty input { width: 40px; }
.totals { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.totals td { padding: 8px 0; }
.totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals .grand td { border-top: 1px solid var(--acquy-border); padding-top: 14px; font-weight: 700; color: var(--acquy-ink); }
.totals .grand td:last-child { color: var(--acquy-black); font-size: var(--fs-xl); }
.gpay { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; background: #000; color: #fff; border-radius: 22px; font-weight: 600; border: 0; }
/* Cart design §3.3: a row that cannot be ordered — no price, no quantity, soft ground. */
.cartline--blocked { background: var(--acquy-bg); }
/* §3.3: with JS the quantity autosubmits, so the explicit button is redundant. */
.js .cartline__update { display: none; }
/* §3.8: the order number is read out loud over the phone, so it is large and unambiguous. */
.ordernum { font-family: var(--acquy-font-mono); font-size: var(--fs-xl); letter-spacing: .04em; color: var(--acquy-ink); }
/* §3.7: the collapsed order recap belongs to small screens; the sticky summary serves the rest. */
.checkout__recap { display: none; }
.checkout__recap summary { padding: 14px 20px; font-weight: 600; cursor: pointer; }
/* §3.4: subtotal and the one action stay in reach. Sticky, not fixed, so it reserves its own
   space and can never cover the last row of the cart. */
.cartbar { display: none; position: sticky; bottom: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--acquy-border); box-shadow: var(--acquy-shadow-2); }
.cartbar b { font-size: var(--fs-lg); color: var(--acquy-black); font-variant-numeric: tabular-nums; }

/* ---- 10. Account / warranty / KB --------------------------------------------- */
.account { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.sidenav { display: flex; flex-direction: column; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius-lg); overflow: hidden; }
.sidenav a { padding: 12px 16px; color: var(--acquy-text); border-left: 3px solid transparent; }
.sidenav a + a { border-top: 1px solid var(--acquy-border); }
.sidenav [aria-current] { border-left-color: var(--acquy-yellow); background: var(--acquy-selected-bg); color: var(--acquy-black); font-weight: 600; }
.code-display { font-family: var(--acquy-font-mono); font-size: 26px; font-weight: 700; letter-spacing: .08em; color: var(--acquy-ink); }
.kb-hero { background: var(--acquy-bg); border-bottom: 1px solid var(--acquy-border); padding: 32px 0; }
.article { font-size: 17px; line-height: 1.75; color: var(--acquy-text); }
.article h2 { margin-top: 1.6em; font-size: 23px; }
.article .callout { border-left: 4px solid var(--acquy-yellow); background: var(--acquy-info-bg); padding: 14px 18px; border-radius: 0 var(--acquy-radius) var(--acquy-radius) 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--reading-max)) 260px; gap: 48px; justify-content: center; }
.toc { position: sticky; top: 16px; font-size: var(--fs-sm); border-left: 2px solid var(--acquy-border); padding-left: 16px; }
.toc a { display: block; padding: 4px 0; color: var(--acquy-muted); }
.acard { display: flex; flex-direction: column; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius-lg); overflow: hidden; background: #fff; }
.acard__media { aspect-ratio: 16 / 9; background: var(--acquy-black); display: grid; place-items: center; color: var(--acquy-yellow); }
.acard__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.acard__body a { color: var(--acquy-ink); font-weight: 700; line-height: 1.4; }
.acard__body a:hover { color: var(--acquy-link); }
.acard__body small { color: var(--acquy-muted); }

.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.benefit { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius-lg); background: #fff; }
.benefit .icon { width: 44px; height: 44px; padding: 10px; border-radius: var(--acquy-radius); background: var(--acquy-black); color: var(--acquy-yellow); }
.benefit b { display: block; color: var(--acquy-ink); }
.benefit small { color: var(--acquy-muted); }
.brands { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.brands a { display: grid; place-items: center; height: 64px; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius); color: var(--acquy-black); font-weight: 800; letter-spacing: .06em; background: #fff; }
.brands a:hover { border-color: var(--acquy-black); box-shadow: inset 0 -3px 0 var(--acquy-yellow); text-decoration: none; color: var(--acquy-black); }
.promo { border-radius: var(--acquy-radius-lg); padding: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.promo b { display: block; font-size: var(--fs-lg); }
.promo small { color: #F2F3F5; }

/* ---- 11. Footer (navy surface: gold hairline allowed) ------------------------ */
.footer { background: var(--acquy-black); color: #DDE1E5; margin-top: 48px; border-top: 3px solid var(--acquy-yellow); font-size: var(--fs-sm); }
.footer .container { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.footer h4 { color: #fff; font-size: var(--fs-base); }
.footer a { color: #FFFFFF; display: block; padding: 4px 0; }
.footer a:hover { color: var(--acquy-yellow); }
.footer__legal { border-top: 1px solid var(--acquy-steel); padding: 14px 0; font-size: var(--fs-xs); color: #DDE1E5; }
.footer__legal .container { display: flex; padding-top: 0; padding-bottom: 0; }

/* ---- 12. Admin --------------------------------------------------------------- */
.admin { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: var(--acquy-bg); }
.sidebar { background: var(--acquy-black); color: #DDE1E5; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 16px 18px; color: #fff; font-weight: 800; letter-spacing: .06em; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar__back { display: flex; gap: 8px; align-items: center; padding: 10px 18px; font-size: var(--fs-sm); color: #DDE1E5; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar__back:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.sidebar nav { padding: 8px 0 20px; }
.sidebar h5 { margin: 16px 18px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #9AA1A9; }
.sidebar a.nav { display: flex; align-items: center; gap: 12px; padding: 9px 18px; color: #F2F3F5; font-size: var(--fs-sm); border-left: 3px solid transparent; }
.sidebar a.nav:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
/* The only gold in Admin: active indicator, 3px bar on navy (3.80:1, non-text UI) */
.sidebar a.nav[aria-current] { border-left-color: var(--acquy-yellow); background: rgba(255,255,255,.08); color: #fff; font-weight: 600; }
.sidebar .count { margin-left: auto; background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 8px; }
.sidebar .count--attn { background: transparent; color: #fff; border: 1px solid var(--acquy-yellow); }   /* gold = ring only; 11px text stays white */
.admin__main { min-width: 0; display: flex; flex-direction: column; }
.admin__top { position: sticky; top: 0; z-index: 10; height: 56px; background: #fff; border-bottom: 1px solid var(--acquy-border); display: flex; align-items: center; gap: 16px; padding: 0 20px; }
.admin__top .breadcrumb { padding: 0; }
.admin__search { margin-left: auto; width: min(360px, 40vw); }
.admin__content { padding: 20px; max-width: var(--admin-max); width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { font-size: var(--fs-xl); margin: 0; }
.page-head p { margin: 2px 0 0; color: var(--acquy-muted); font-size: var(--fs-sm); }
.page-head .row { margin-left: auto; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius-lg); padding: 16px 18px; color: var(--acquy-text); }
.stat:hover { border-color: var(--acquy-link); text-decoration: none; box-shadow: var(--acquy-shadow-1); }
.stat b { font-size: 28px; color: var(--acquy-ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat span { font-size: var(--fs-sm); }
.stat small { color: var(--acquy-link); font-weight: 600; font-size: var(--fs-xs); }
.stat--attn { border-left: 4px solid var(--acquy-danger); }

.dt { background: #fff; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius-lg); }
.dt__bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--acquy-border); }
.dt__bar .input, .dt__bar .select { width: auto; min-height: 34px; padding: 4px 10px; font-size: var(--fs-sm); }
.dt__bar .input { min-width: 220px; }
.dt__bulk { display: none; background: var(--acquy-info-bg); }
.dt__bulk.is-on { display: flex; }
.tbl-scroll { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { position: sticky; top: 0; background: var(--acquy-bg); text-align: left; font-weight: 600; color: var(--acquy-muted); padding: 0 12px; height: 40px; border-bottom: 1px solid var(--acquy-border); white-space: nowrap; }
.table th button { border: 0; background: none; font-weight: 600; color: inherit; cursor: pointer; padding: 0; }
.table td { padding: 0 12px; height: 44px; border-bottom: 1px solid var(--acquy-border); white-space: nowrap; }
.table tbody tr:hover { background: var(--acquy-selected-bg); }
.table tr[aria-selected="true"] { background: var(--acquy-selected-bg); }
.table .r { text-align: right; font-variant-numeric: tabular-nums; }
.table input[type=checkbox] { accent-color: var(--acquy-link); }
.table a { font-weight: 600; }
.dt__foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-size: var(--fs-sm); color: var(--acquy-muted); flex-wrap: wrap; }
.dt__foot .pagination { padding: 0; margin-left: auto; }
.dt__foot .pagination a, .dt__foot .pagination span { min-width: 32px; height: 32px; }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 16px; font-size: var(--fs-sm); margin: 0; }
.kv dt { color: var(--acquy-muted); }
.kv dd { margin: 0; color: var(--acquy-ink); min-width: 0; overflow-wrap: anywhere; }
.review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid var(--acquy-border); }
.review:last-child { border-bottom: 0; }
.evidence { font-size: var(--fs-xs); color: var(--acquy-muted); }
.attn-band { display: flex; gap: 14px; align-items: center; background: var(--acquy-black); color: #fff; border-radius: var(--acquy-radius-lg); padding: 12px 16px; margin-bottom: 16px; }
.attn-band .icon { color: var(--acquy-yellow); }
.attn-band a { color: #fff; text-decoration: underline; margin-left: auto; }


/* ---- 14. Responsive (§3.2) ------------------------------------------------------ */
@media (max-width: 1439px) {
  .grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brands { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1279px) {
  .grid--4, .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  :root { --gutter: 20px; }
  .mainbar .container { grid-template-columns: auto 1fr; gap: 10px 16px; min-height: 0; padding-top: 10px; padding-bottom: 12px; }
  .mainbar .search-wrap { grid-column: 1 / -1; grid-row: 2; }
  .actions { justify-self: end; }
  .action small, .action .action__label { display: none; }
  .hero .container { grid-template-columns: minmax(0, 1fr); }
  .hero__promos { display: none; }
  .listing { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; position: static; }
  .rail.is-open { display: block; }
  .filter-btn { display: inline-flex; }
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gallery { position: static; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .account { grid-template-columns: minmax(0, 1fr); }
  .sidenav { flex-direction: row; overflow-x: auto; }
  .sidenav a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .sidenav a + a { border-top: 0; }
  .sidenav [aria-current] { border-bottom-color: var(--acquy-yellow); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; }
  .sidebar nav { display: none; }
  .sidebar.is-open nav { display: block; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 767px) {
  h1 { font-size: 26px; }
  .hero h1 { font-size: 28px; }
  .section { padding: 24px 0; }
  .logo__img { height: 26px; }
  .action { padding: 6px 8px; }
  .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .finder__grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  /* §3.4 again, for the order form: thumb-sized fields, the two address selects included. */
  .checkout .input, .checkout .select, .checkout .textarea { min-height: 44px; }
  .utility .utility__extra { display: none; }
  /* Mobile header budget: utility, logo row, search and category strip together stay under ~190px. */
  .utility .container { min-height: 32px; }
  .utility a { min-height: 32px; }
  .mainbar .container { padding-top: 6px; padding-bottom: 10px; gap: 6px 12px; }
  .search input { height: 44px; }
  .catnav .container, .catnav a { min-height: 44px; }
  .cartline { grid-template-columns: 72px minmax(0, 1fr); }
  .cartline > :nth-child(3), .cartline > :nth-child(4) { grid-column: 2; }
  /* §3.4: thumb-sized controls for −, + and Xoá. */
  .cartline .qty { height: 44px; }
  .cartline .qty button { width: 44px; min-height: 44px; }
  .cartline .btn--sm { min-height: 44px; }
  .catnav__nav { width: 44px; }
  .cartbar { display: flex; }
  .checkout__recap { display: block; }
  .checkout .summary { display: none; }
  .keyspecs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assure { grid-template-columns: minmax(0, 1fr); }
  .devices { grid-template-columns: minmax(0, 1fr); }
  .review { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv dt { margin-top: 6px; }
  .device-page .device-ref .kv { grid-template-columns: minmax(0, 1fr); }
  .search button span { display: none; }
  .pcard__foot .btn { display: none; }
  .admin__search { display: none; }
  .state-panel .btn, .finder .btn { width: 100%; min-height: 44px; }
}
@media (max-width: 479px) {
  .grid--2, .benefits, .footer .container { grid-template-columns: minmax(0, 1fr); }
  .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li span { display: none; }
  .logo { font-size: 22px; }
  .logo__img { height: 24px; }
  .logo small { display: none; }
}
/* Full rows only: a 10-item strip shows 10 at 5-up, 8 at 4-up, 9 at 3-up, 10 at 2-up */
@media (min-width: 1280px) and (max-width: 1439px) { .grid--fill > :nth-child(n+9) { display: none; } }
@media (min-width: 768px) and (max-width: 1279px) { .grid--fill > :nth-child(n+10) { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---- 15. UI-1 storefront additions -------------------------------------------- */
.page-title { margin-bottom: 8px; }
.page-title h1 { margin: 0; }
.page-title p { margin: 4px 0 0; }

.hero__finder { margin-top: 20px; }
/* .hero p is light text for the navy band; the finder is a white card inside it. */
.hero .finder p.finder__note { color: var(--acquy-muted); max-width: none; }
a.promo { display: block; }
a.promo:hover { background: rgba(255,255,255,.14); text-decoration: none; color: #fff; }

.rail__actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--acquy-border); }
.js .rail__submit { display: none; }
.js .rail__actions:not(:has(a)) { display: none; }
.toolbar__label { color: var(--acquy-muted); font-size: var(--fs-sm); }
.chip:hover { text-decoration: none; background: var(--acquy-soft-2); color: var(--acquy-black); }

.state-panel__title { font-size: var(--fs-lg); margin-bottom: 6px; }
.state-panel p:last-child { margin-bottom: 0; }

.buybox__badges { gap: 8px; }
.buybox__lead { margin: 0; color: var(--acquy-text); }
.buybox__cta { flex: 1; }
.buybox__note { margin: 0; font-size: var(--fs-xs); color: var(--acquy-muted); }
.pdp__fit { padding-bottom: 0; }
.band-body__empty { margin: 0; font-size: var(--fs-sm); }
.tabpanel { padding-top: 16px; }
.reading-left { max-width: var(--reading-max); }
.spec-grid { align-items: start; }

.search-devices { margin: 16px 0 24px; }
.search-devices__groups { gap: 16px; }
.search-devices__brand { font-size: var(--fs-md); margin-bottom: 8px; }
.search-devices__list { gap: 8px; }
.card__hint { color: var(--acquy-muted); font-size: var(--fs-sm); }
.acard__icon { width: 40px; height: 40px; }

.logo--inverse, .logo--inverse:hover { color: #fff; }
.logo--inverse .logo__mark { background: #fff; color: var(--acquy-black); }
.footer__title { color: var(--acquy-yellow); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.footer__lead { margin-top: 12px; }
.footer__strong { color: #fff; }
.footer__muted { display: block; padding: 3px 0; color: #DDE1E5; }

@media (max-width: 1023px) {
  .rail { margin-bottom: 16px; }
  .card__hint { display: none; }
}
@media (max-width: 767px) {
  .search-devices .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .buybox h1 { font-size: 24px; }
  .toolbar .spacer { display: none; }
  .toolbar .select { min-width: 0; flex: 1 1 0; }
  .price--pdp { font-size: 26px; }
}
.pcard__fit { align-items: flex-start; }
.pcard__fit .icon { margin-top: 1px; }

/* ---- 16. UI-1 visual review corrections (2026-10-22) --------------------------- */
/* .footer a { display:block } stacked the footer logo mark above its wordmark. */
.footer a.logo { display: inline-flex; padding: 0; }
/* Hero headline left "bạn" alone on its last line at 1440px and 375px. The 20ch cap did that by
   forcing two lines everywhere; section 18 sizes the headline to the column instead and keeps
   text-wrap: balance, which is what actually evens out the wrap where it still wraps. */
.hero h1 { text-wrap: balance; }
/* Section links ("Tìm theo xe", "Xem tất cả") broke onto two lines at 375px. */
.section__head a { white-space: nowrap; }

/* No-image state: Catalog has no product media yet. Neutral, never a picture of a product. */
.noimg { width: 100%; aspect-ratio: 1 / 1; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--acquy-muted); border: 1px dashed var(--acquy-border-strong); border-radius: var(--acquy-radius); background: #fff; }
.noimg__icon { width: 36%; max-width: 72px; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.noimg__text { font-size: var(--fs-xs); font-weight: 600; }

/* ---- 17. Knowledge, FAQ, Warranty lookup (DS §7.1) ------------------------------ */
.kb, .wl { padding-bottom: 40px; }
/* /kien-thuc, its documents and the FAQ: 1/3 sidebar (Danh mục) + 2/3 content from 1024px. One column below,
   the sidebar first and folded to one line (.kb-nav is a <details>; acquy.js opens it on wide screens). */
.kb-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; align-items: start; }
.kb-main, .kb-side { min-width: 0; }
.kb-side { scroll-margin-top: 12px; }
.kb-nav { margin: 16px 0; background: #fff; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius-lg); }
.kb-nav > summary { display: flex; align-items: center; min-height: 44px; padding: 10px 16px; cursor: pointer; font-weight: 700; color: var(--acquy-ink); list-style: none; }
.kb-nav > summary::-webkit-details-marker { display: none; }
.kb-nav > summary::after { content: "▾"; margin-left: auto; color: var(--acquy-muted); }
.kb-nav:not([open]) > summary::after { content: "▸"; }
.kb-nav__list, .kb-nav__docs { list-style: none; margin: 0; padding: 0; }
.kb-nav__list { padding: 0 16px 8px; }
.kb-nav__list > li { border-top: 1px solid var(--acquy-border); }
.kb-nav__list a { display: block; padding: 10px 0; line-height: 1.4; font-weight: 600; color: var(--acquy-ink); overflow-wrap: anywhere; }
.kb-nav__docs { padding: 0 0 8px 12px; border-left: 2px solid var(--acquy-border); margin-left: 2px; }
.kb-nav__docs a { padding: 6px 0; font-weight: 400; font-size: var(--fs-sm); color: var(--acquy-text); }
.kb-nav__list a:hover { color: var(--acquy-link); }
.kb-nav__list a[aria-current] { color: var(--acquy-link); }
.kb-nav__docs a[aria-current] { font-weight: 700; }
.kb-topic { padding-top: 28px; scroll-margin-top: 12px; }
.kb-topic > h2 { margin-bottom: 14px; }
/* Cards wrap on their own: no fixed column count, never wider than the column. */
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(248px, 100%), 1fr)); gap: 16px; }
.kb-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; background: #fff; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius-lg); }
.kb-card:hover { border-color: var(--acquy-steel); }
.kb-card__title { margin: 0; font-size: var(--fs-md); line-height: 1.35; }
.kb-card__title a { color: var(--acquy-ink); }
.kb-card__title a:hover { color: var(--acquy-link); }
.kb-card__summary { margin: 0; font-size: var(--fs-sm); color: var(--acquy-muted); line-height: 1.5; }
.kb-pdf { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 4px; background: var(--acquy-danger-bg); color: var(--acquy-danger); font-size: 11px; font-weight: 700; letter-spacing: .04em; vertical-align: middle; }
.kb-card .kb-pdf { margin-left: 0; margin-top: auto; }
.kb-faq-panel { scroll-margin-top: 12px; }
.kb-faq-panel .section__head { margin-bottom: 12px; }
@media (max-width: 1023px) { .kb-nav__list a { min-height: 44px; display: flex; align-items: center; } }
.kb-faq-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--acquy-border); }
.kb-faq-links li { padding: 12px 0; border-bottom: 1px solid var(--acquy-border); line-height: 1.45; }
.kb-faq-links a { font-weight: 600; }
.kb-empty { margin-top: 16px; }
.kb-back { margin-top: 24px; }
.kb-doc { max-width: 72ch; }
.kb-doc h1 { overflow-wrap: anywhere; }
.kb-doc__meta { margin: 0 0 6px; font-size: var(--fs-sm); color: var(--acquy-muted); }
.kb-doc__lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--acquy-text); }
.kb-body { font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.kb-body h2, .kb-body h3 { margin-top: 1.4em; font-size: var(--fs-lg); }
.kb-body ul { padding-left: 1.3em; }
.kb-related h2 { font-size: var(--fs-lg); }
/* Policy pages (/giao-hang-doi-tra, /chinh-sach-bao-mat): the .kb-doc reading column, help panel under it. */
.policy__help { max-width: 72ch; margin-top: 32px; }
.kb-faq-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kb-faq-head .btn { margin-left: auto; }

/* FAQ accordion: <details>, no script needed; the summary is a 44px touch target (AC-K4). */
.faq-list { border-top: 1px solid var(--acquy-border); max-width: 860px; }
.faq { border-bottom: 1px solid var(--acquy-border); scroll-margin-top: 12px; }
.kb-faq-topic { font-size: var(--fs-lg); margin: 28px 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--acquy-border); }
.faq-list > .kb-faq-topic:first-child { margin-top: 16px; }
.faq summary { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 4px; cursor: pointer; font-weight: 600; color: var(--acquy-ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; flex: none; width: 24px; text-align: center; font-size: 20px; font-weight: 400; color: var(--acquy-black); }
.faq[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: none; box-shadow: var(--acquy-focus-ring); }
.faq summary:hover { color: var(--acquy-link); }
.faq__answer { padding: 0 4px 16px; line-height: 1.7; overflow-wrap: anywhere; }
.faq__answer p:last-child { margin-bottom: 0; }
.faq:target summary { color: var(--acquy-link); }
.pdp-kb .kb-faq-links { margin-bottom: 16px; }

/* Warranty lookup */
.wl-intro { max-width: 72ch; color: var(--acquy-text); }
.wl-lookup { max-width: 720px; margin-top: 12px; }
.wl-lookup__title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-lg); }
.wl-lookup__title .icon { color: var(--acquy-black); }
.wl-form { display: flex; gap: 10px; }
.wl-form .input { flex: 1 1 auto; min-width: 0; min-height: 44px; text-transform: uppercase; letter-spacing: .04em; }
.wl-form .input::placeholder { text-transform: none; letter-spacing: 0; }
.wl-form .btn { min-height: 44px; flex: none; }
.wl-lookup .hint { margin: 8px 0 0; font-size: var(--fs-xs); }
.wl-result { max-width: 720px; margin-top: 16px; }
.wl-result:empty { display: none; }
.wl-notfound p { margin: 4px 0 0; }
.wl-card__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.wl-code { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.wl-sub { margin: 20px 0 12px; font-size: var(--fs-md); }
.wl-timeline time { display: inline; margin-right: 8px; font-variant-numeric: tabular-nums; }
.wl-note { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--acquy-text); overflow-wrap: anywhere; }
.wl-intake__note { margin-top: 18px; font-size: var(--fs-sm); }
/* Intake points: one card up to 720px; two columns from 768px when there are several; 44px call/Zalo targets. */
.wl-points { max-width: 720px; padding-bottom: 0; }
.wl-points h2 { font-size: var(--fs-lg); margin-bottom: 4px; }
.wl-points > .muted { margin: 0 0 12px; font-size: var(--fs-sm); }
.wl-points__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 768px) { .wl-points__grid.is-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wl-point .card__body { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.wl-point__name { margin: 0; font-size: var(--fs-md); }
.wl-point__addr, .wl-point__note { margin: 0; overflow-wrap: anywhere; }
.wl-point__note { white-space: pre-line; font-size: var(--fs-sm); color: var(--acquy-muted); }
.wl-point__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding-top: 6px; }
.wl-point__actions .btn { min-height: 44px; }
.wl-intake__note p { margin: 4px 0 0; }
.support-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.wl-policies h2 { font-size: var(--fs-lg); }
.wl-policies { max-width: 720px; padding-bottom: 0; }
/* Knowledge sidebar (FAQ, technical documents): after everything else below 1024px, the right third from 1024px. */
.wl-side { display: grid; gap: 16px; margin-top: 32px; }
.wl-side .section__head { margin-bottom: 12px; }
.wl-side h2 { font-size: var(--fs-lg); }
.wl-side .kb-faq-links { border-top: 0; }
.wl-side .kb-faq-links li:last-child { border-bottom: 0; padding-bottom: 0; }

@media (min-width: 1024px) {
  .kb-layout--split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .kb-layout--aside { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .kb-layout--aside .wl-side { margin-top: 12px; }
  .kb-layout--split .kb-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
  .kb-layout--split .kb-nav > summary { cursor: default; pointer-events: none; }
  .kb-layout--split .kb-nav > summary::after { content: none; }
  .kb-layout--split .kb-faq-panel { margin-top: 28px; padding: 18px; background: #fff; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius-lg); }
  .kb-layout--split .kb-faq-links { border-top: 0; }
  .kb-layout--split .kb-faq-links li:last-child { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 767px) {
  .wl-form { flex-direction: column; }
  .wl-form .btn { width: 100%; }
  .support-line .btn { flex: 1 1 100%; min-height: 44px; }
  .kb-doc__pdf { width: 100%; min-height: 44px; }
}

/* ---- Unified Search UI (design §7) ------------------------------------------------------------
   New blocks only: .dpanel/.dcard (device choice), .dresolved (settled device), .sugg (header suggest),
   .finder--page (/tim-theo-xe). Gold is never text: hairlines and fills only (AC-X8). No !important. */
.search-page h1 { overflow-wrap: anywhere; }
.dpanel { border: 1px solid var(--acquy-border); border-top: 3px solid var(--acquy-yellow); border-radius: var(--acquy-radius-lg); background: #fff; padding: 20px; margin: 16px 0 24px; }
.dpanel__title { font-size: var(--fs-lg); margin-bottom: 4px; }
.dpanel__lead { color: var(--acquy-text); margin-bottom: 16px; }
.dpanel__note { font-size: var(--fs-sm); color: var(--acquy-muted); margin: -8px 0 16px; }
.dpanel__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dpanel__more { margin-top: 12px; }
.dpanel__more > summary { cursor: pointer; font-weight: 600; color: var(--acquy-link); min-height: 44px; display: inline-flex; align-items: center; }
.dpanel__more[open] > summary { margin-bottom: 12px; }
.dpanel__rule { font-size: var(--fs-sm); color: var(--acquy-muted); margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--acquy-border); }
.dpanel--aside { border-top-width: 1px; border-top-color: var(--acquy-border); background: var(--acquy-bg); padding: 14px 16px; }
.dpanel__aside-title { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--acquy-muted); margin-bottom: 10px; }
.dcard { display: flex; align-items: center; gap: 12px; min-height: 64px; height: 100%; padding: 12px 14px; border: 1px solid var(--acquy-border-strong); border-radius: var(--acquy-radius); background: #fff; color: var(--acquy-ink); }
.dcard:hover { border-color: var(--acquy-black); text-decoration: none; color: var(--acquy-ink); }
.dcard:focus-visible { outline: none; box-shadow: var(--acquy-focus-ring); border-color: var(--acquy-black); }
.dcard__icon { flex: none; width: 24px; height: 24px; color: var(--acquy-black); }
.dcard:hover .dcard__icon { color: var(--acquy-link); }
.dcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dcard__name { font-weight: 600; overflow-wrap: anywhere; }
.dcard__meta { font-size: var(--fs-xs); color: var(--acquy-muted); overflow-wrap: anywhere; }
.dcard__exact { align-self: flex-start; font-size: var(--fs-xs); font-weight: 600; color: #1C6E4A; background: var(--acquy-success-bg); border-radius: 999px; padding: 1px 8px; }
.dcard__go { flex: none; color: var(--acquy-link); font-weight: 600; }
.dresolved { margin: 16px 0 20px; padding: 16px 20px; border: 1px solid var(--acquy-border); border-left: 4px solid var(--acquy-success); border-radius: var(--acquy-radius-lg); background: var(--acquy-success-bg); }
.dresolved__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dresolved__head h2 { font-size: var(--fs-lg); margin: 0; flex: 1 1 260px; overflow-wrap: anywhere; }
.dresolved__icon { flex: none; color: var(--acquy-success); }
.dresolved__count { margin: 6px 0 0 34px; color: var(--acquy-text); font-size: var(--fs-sm); }
.dresolved--empty { margin: 16px 0 24px; }
.search-grid { margin-bottom: 8px; }

.sugg { position: absolute; top: calc(100% + 6px); left: -2px; right: -2px; z-index: 30; max-height: min(70vh, 520px); overflow-y: auto; background: #fff; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius-lg); box-shadow: var(--acquy-shadow-2); padding: 6px 0; }
.sugg[hidden] { display: none; }
.sugg__group + .sugg__group, .sugg__opt--all { border-top: 1px solid var(--acquy-border); }
.sugg__head { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--acquy-muted); padding: 10px 16px 4px; }
.sugg__opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px; color: var(--acquy-ink); }
.sugg__opt:hover, .sugg__opt[aria-selected="true"] { background: var(--acquy-info-bg); color: var(--acquy-black); text-decoration: none; }
.sugg__media { flex: none; width: 28px; height: 28px; border-radius: var(--acquy-radius); background: var(--acquy-soft-2); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.sugg__media img { width: 100%; height: 100%; object-fit: contain; }
.sugg__opt--device .sugg__media { background: var(--acquy-info-bg); }
.sugg__opt--device .sugg__media::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acquy-black); }
.sugg__opt--all .sugg__media { display: none; }
.sugg__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg__meta { flex: none; font-size: var(--fs-xs); color: var(--acquy-muted); }
.sugg__opt--all { font-weight: 600; color: var(--acquy-link); margin-top: 4px; }
.sugg__empty { padding: 10px 16px; font-size: var(--fs-sm); color: var(--acquy-muted); }
/* Home quick vehicle search: the header .search box above the three-level finder, same suggest list. */
.finder__quick { margin: 14px 0 0; }
.finder__quick .sugg { z-index: 40; }
.finder__or, .hero .finder p.finder__or { max-width: none; display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; font-size: var(--fs-xs); color: var(--acquy-muted); }
.finder__or::before, .finder__or::after { content: ""; flex: 1; border-top: 1px solid var(--acquy-border); }

.finder-page__lead { color: var(--acquy-text); margin-bottom: 16px; }
.finder-page__alt { font-size: var(--fs-sm); color: var(--acquy-muted); margin-top: 12px; }
.finder--page { box-shadow: none; border: 1px solid var(--acquy-border); border-top: 3px solid var(--acquy-yellow); }
.finder--page .finder__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; margin-bottom: 0; }
.finder__actions { display: flex; gap: 8px; align-self: end; }
.finder__go { min-width: 160px; min-height: 44px; }
.finder__step { min-height: 44px; }
.finder__go[disabled] { cursor: not-allowed; }

@media (max-width: 1023px) {
  .dpanel__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder--page .finder__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder--page .finder__actions { grid-column: 1 / -1; }
  .finder--page .finder__go { flex: 1; }
}
@media (max-width: 767px) {
  .dpanel { padding: 16px; }
  .dpanel__list { grid-template-columns: minmax(0, 1fr); }
  .dcard { min-height: 56px; }
  .finder--page .finder__grid { grid-template-columns: minmax(0, 1fr); }
  .finder--page .finder__actions { flex-direction: column; }
  .finder--page .finder__actions .btn { width: 100%; }
  .sugg { max-height: 60vh; } /* the search box is already full width under the header here */
  .sugg__opt { min-height: 48px; }
  .dresolved__count { margin-left: 0; }
  .dresolved .btn--sm, .finder--page .select { min-height: 44px; }
}
@media (max-width: 559px) {
  .search-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .sugg:not([hidden]) { animation: sugg-in .12s ease-out; }
  @keyframes sugg-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* ---- Home vehicle finder (Unified Search DESIGN §7.5, F-8) ---------------------------------------
   Three columns only where each field keeps ≥ 200 px. Between 1024 and 1279 px the levels used to
   stack because the hero's left column was ~150 px per field; section 18 gives the finder the full
   width at those sizes instead, so each field is back above the threshold and they stay in a row. */
@media (max-width: 767px) {
  .hero__finder .select { min-height: 44px; }
}

/* ---- 18. Home hero, two columns (UI-3) -----------------------------------------------------
   The hero grid always had a second column, but it only ever held the sample-data promos, so on
   real catalog data the right half rendered empty. It now carries a decorative illustration, and
   the headline is sized to the column instead of being capped at 20ch, which forced a second line
   at every width. Left column, finder markup and all finder states are unchanged. */
.hero .container { gap: 40px; padding-top: 32px; padding-bottom: 36px; }
.hero h1 { max-width: none; font-size: clamp(28px, 2.5vw, 38px); line-height: 1.18; margin-bottom: 10px; }
.hero__rule { margin-bottom: 14px; }
.hero p { margin-bottom: 0; }
/* The suggest list has to float over the three-level picker under it and over the illustration. */
.hero__finder { margin-top: 18px; position: relative; z-index: 2; }
.hero__aside { position: relative; z-index: 1; display: grid; gap: 18px; justify-items: center; }

.hero__art { display: block; width: 100%; max-width: 500px; height: auto; }
.hero__art-glow { fill: rgba(255, 255, 255, .06); }
.hero__art-ring { fill: none; stroke: rgba(255, 255, 255, .16); }
.hero__art-ring--gold { stroke: var(--acquy-gold-hairline); stroke-dasharray: 5 9; }
.hero__art-ground { stroke: rgba(255, 255, 255, .20); stroke-width: 2; stroke-linecap: round; }
.hero__art-moto { fill: rgba(255, 255, 255, .50); }
.hero__art-tyre { fill: none; stroke: rgba(255, 255, 255, .62); stroke-width: 7; }
.hero__art-fork, .hero__art-bar { fill: none; stroke: rgba(255, 255, 255, .62); stroke-width: 7; stroke-linecap: round; }
.hero__art-shade { fill: rgba(0, 0, 0, .45); }
.hero__art-cap { fill: #4A5158; }
.hero__art-case { fill: url(#hero-art-body); stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; }
.hero__art-term { fill: #9AA1A9; }
.hero__art-term--pos { fill: var(--acquy-yellow); }   /* gold as a non-text mark on the navy band only */
.hero__art-hair { fill: none; stroke: var(--acquy-gold-hairline); stroke-width: 2; }
.hero__art-bolt { fill: var(--acquy-yellow); stroke: none; }
.hero__art-cells rect { fill: var(--acquy-yellow); }
.hero__art-cells rect:last-child { fill: rgba(255, 255, 255, .22); }

/* The second column only earns its place where both halves are usable: below 1280 the finder needs
   the full width (at 1024-1279 it was ~150 px per select), so the hero collapses to one column and
   the illustration, being decorative, is dropped rather than squeezed. */
@media (max-width: 1279px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); }
  .hero__aside { display: none; }
}

/* ---- 19. Footer contact block (UI-4) -------------------------------------------
   `.footer a { display: block }` (section 11) is what stacked "Hotline" above its number and
   then stacked Zalo below that: three lines for two numbers. Inside the contact block the
   links go back to inline, the two numbers share one flex row, and each label+number pair is
   nowrap so a narrow column wraps between Hotline and Zalo, never through either of them.
   The address is a plain paragraph: it sits on one line wherever the column is wide enough
   (412 px at 1440, ample for a street address) and wraps by itself once the footer collapses. */
.footer__contact { margin-top: 10px; display: grid; gap: 6px; min-width: 0; }
.footer__contact p { margin: 0; }
.footer__contact a { display: inline; padding: 0; }
.footer__nums { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 4px; }
.footer__num { white-space: nowrap; }

/* ---- 19. Product description typography (.pdp-prose) --------------------------
   Catalog Description / ShortDescription are editorial HTML imported from the old site. They reach the
   page through ContentHtml.Render, which keeps an allow-list of tags and drops every class, id and style,
   so everything below is the ONLY styling that content gets. Reuses existing tokens; no new token, no
   !important, and .kb-body / .spec / .reading-left / .buybox__* are left exactly as they were.
   Design (inherited): docs/AAZ_ZMAX_PRODUCT_HTML_RENDERING_DESIGN.md §5. */
.pdp-prose { font-size: var(--fs-md); line-height: 1.75; overflow-wrap: anywhere; }
.pdp-prose > :first-child { margin-top: 0; }
.pdp-prose > :last-child { margin-bottom: 0; }
.pdp-prose p { margin: 0 0 1em; }
/* The page already owns an h1 (the product name); imported headings sit a step below the section heads. */
.pdp-prose h2 { font-size: var(--fs-lg); }
.pdp-prose h3 { font-size: var(--fs-md); }
.pdp-prose h4, .pdp-prose h5, .pdp-prose h6 { font-size: var(--fs-base); }
.pdp-prose h2, .pdp-prose h3, .pdp-prose h4, .pdp-prose h5, .pdp-prose h6 {
  margin: 1.4em 0 .4em; font-weight: 600; color: var(--acquy-ink); line-height: 1.35;
}
.pdp-prose ul, .pdp-prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.pdp-prose li + li { margin-top: .35em; }
.pdp-prose hr { border: 0; border-top: 1px solid var(--acquy-border); margin: 24px 0; }
/* Gold is a hairline, never text (AC-X8). */
.pdp-prose blockquote { margin: 0 0 1em; padding: 4px 0 4px 16px; border-left: 3px solid var(--acquy-yellow); color: var(--acquy-text); }
.pdp-prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: 0 0 1em; }
.pdp-prose th, .pdp-prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--acquy-border); vertical-align: top; }
.pdp-prose th { background: var(--acquy-bg); color: var(--acquy-muted); font-weight: 600; }
.pdp-prose img { max-width: 100%; height: auto; display: block; margin: 16px auto; border-radius: var(--acquy-radius); }
.pdp-prose figure { margin: 20px 0; }
.pdp-prose figcaption { font-size: var(--fs-sm); color: var(--acquy-muted); text-align: center; margin-top: 8px; }
/* A <figure> whose <img> the sanitizer dropped must not leave a hole in the column. */
.pdp-prose figure:empty { display: none; }
.pdp-prose code, .pdp-prose pre { font-size: var(--fs-sm); }
.pdp-prose pre { overflow-x: auto; background: var(--acquy-bg); padding: 12px 14px; border-radius: var(--acquy-radius); }
/* The short description shares the buybox with price and buy button: quieter, and no room for a table. */
.pdp-prose--lead { font-size: var(--fs-base); line-height: 1.6; }
.pdp-prose--lead h2, .pdp-prose--lead h3, .pdp-prose--lead h4,
.pdp-prose--lead h5, .pdp-prose--lead h6 { font-size: var(--fs-base); margin: 1em 0 .3em; }
.pdp-prose--lead hr, .pdp-prose--lead table, .pdp-prose--lead figure { display: none; }
@media (max-width: 767px) {
  /* A two-column spec table wraps well at 375px and must keep doing so, so the inner table stays a
     full-width table; the outer block only starts scrolling when a wider imported table cannot fit,
     and then it scrolls inside itself rather than pushing the whole page sideways. */
  .pdp-prose table { display: block; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
  .pdp-prose thead, .pdp-prose tbody, .pdp-prose tfoot { display: table; width: 100%; }
}

/* ---- 20. Listing filters ------------------------------------------------------
   The rail is data-driven (INV-F1): a facet with no option is not rendered at all, so the whole rail can
   be absent and the grid must then give the results the full width. */
.listing--nofilters { grid-template-columns: minmax(0, 1fr); }
.rail__head { display: none; }
.opts__hint { margin: -4px 16px 8px; font-size: var(--fs-xs); color: var(--acquy-muted); }
/* Capacity lists every Ah in the scope, so a long facet scrolls inside itself instead of
   pushing "Áp dụng" below the fold. ~7 rows stay visible before it does. */
.opts--scroll { max-height: 228px; overflow-y: auto; overscroll-behavior: contain; }
/* "Danh mục" is navigation (INV-F8): links laid out like the checkbox rows beside them, count on the right,
   the page being viewed in bold, its children indented under it. */
.rail-cats a { display: flex; gap: 8px; align-items: center; min-height: 28px; color: var(--acquy-text); }
.rail-cats a span { margin-left: auto; color: var(--acquy-muted); font-size: var(--fs-xs); }
.rail-cats a:hover { color: var(--acquy-link); }
.rail-cats a[aria-current="page"] { font-weight: 700; color: var(--acquy-ink); }
.rail-cats .rail-cats__child { padding-left: 14px; }
.rail-cats .rail-cats__up { color: var(--acquy-link); }
.rail-cats .rail-cats__up span { margin-left: 0; color: inherit; font-size: inherit; }
/* AC-26: every row in the open drawer is a 44px touch target, links and checkboxes alike. The gap between
   rows goes to the rows themselves so the drawer does not grow taller than the target size requires. */
@media (max-width: 1023px) {
  .rail.is-open .rail-cats a,
  .rail.is-open .opts label { min-height: 44px; }
  .rail.is-open .opts { gap: 0; }
}

/* ---- 21. /tim-theo-xe: one CTA ------------------------------------------------
   "Xem bước tiếp theo" is inside <noscript>, so with JavaScript it is not in the DOM and .finder__step
   below never matches — the rule stays for the no-JS rendering, where it is the only way forward. */
.finder__empty { margin: 12px 0 0; font-size: var(--fs-sm); color: var(--acquy-text); background: var(--acquy-bg); border-radius: var(--acquy-radius); padding: 10px 12px; }
.finder__empty strong { font-weight: 600; }
/* Every level change is a round trip; the card dims while the next one loads. */
.finder.is-busy { opacity: .6; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .finder { transition: opacity .15s; } }

/* Compact filter drawer below 1024px. Section 13 already does display:none / .is-open; this bounds the
   open panel so it cannot run past the viewport, keeps "Áp dụng" reachable without scrolling the page,
   and gives it a header with a way out. It stays in flow — no overlay, no scroll lock, no focus trap. */
@media (max-width: 1023px) {
  /* One scroll region, not one per facet: the panel scrolls and the header and the actions stay pinned
     to its edges. Nested scrollers would give each facet its own two-row window and its own scrollbar. */
  .rail.is-open {
    display: block; max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: var(--acquy-shadow-2); margin-bottom: 16px;
  }
  .rail.is-open .rail__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--acquy-border);
    position: sticky; top: 0; z-index: 1; background: #fff;
    border-radius: var(--acquy-radius-lg) var(--acquy-radius-lg) 0 0;
  }
  .rail__close {
    border: 0; background: none; padding: 6px 8px; margin: -6px -8px -6px 0;
    min-height: 32px; font: inherit; font-size: var(--fs-sm); font-weight: 600;
    color: var(--acquy-link); cursor: pointer; border-radius: var(--acquy-radius);
  }
  .rail__close:focus-visible { outline: none; box-shadow: var(--acquy-focus-ring); }
  /* The per-facet cap is for the tall desktop rail; inside the drawer the panel itself is the cap. */
  .rail.is-open .opts--scroll { max-height: none; overflow-y: visible; }
  /* Section 13 hides "Áp dụng" once JavaScript makes it redundant. In the open drawer it is not redundant:
     autosubmit stands down there so choices can be batched, and this is the button that sends them. */
  .js .rail.is-open .rail__actions,
  .rail.is-open .rail__actions {
    display: flex; position: sticky; bottom: 0; z-index: 1; background: #fff;
    border-top: 1px solid var(--acquy-border); border-radius: 0 0 var(--acquy-radius-lg) var(--acquy-radius-lg);
  }
  .js .rail.is-open .rail__submit { display: inline-flex; }
  .rail.is-open .rail__actions .btn { min-height: 44px; }
}

/* CX-SPEC-3: recommended engine-size groups (a recommendation, visibly apart from confirmed fits). */
.rail-engine .opts { padding-bottom: 4px; }
.rail-engine__finder { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px 8px; font-size: var(--fs-sm); font-weight: 600; }
.rail__group { margin: 8px 16px 0; padding-top: 12px; border-top: 1px solid var(--acquy-border); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--acquy-muted); }
.engine-rec { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius); font-size: var(--fs-sm); }
.engine-rec__label { font-weight: 600; color: var(--acquy-ink); }
.engine-rec__bands { display: flex; flex-wrap: wrap; gap: 6px; }
.engine-rec__band { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 999px; background: var(--acquy-bg); color: var(--acquy-ink); font-weight: 600; text-decoration: none; }
.engine-rec__band:hover, .engine-rec__band:focus-visible { background: var(--acquy-soft-2); }
.engine-rec__note { flex-basis: 100%; font-size: var(--fs-xs); color: var(--acquy-muted); }
.device-band { display: flex; flex-direction: column; gap: 2px; margin: 16px 0 0; font-size: var(--fs-sm); }
.device-band a { font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
@media (max-width: 1023px) {
  .engine-rec__band, .device-band a { min-height: 44px; }
}

/* ---- 20. PDP alternatives sidebar, "Mô tả" tab (PDP-ALT-1) -----------------------
   Layout is the existing .kb-layout--aside grid: one column below 1024px with the
   description first and the cards after it, description 2fr / sidebar 1fr above.
   The cards are their own compact block because the column is a third of the page -
   a .pcard square image would be taller there than the three cards together. Only
   existing tokens: no new colour, and the two states reuse --success and --muted. */
.pdp-alts__title { font-size: var(--fs-lg); margin: 0 0 12px; }
.pdp-alts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pdp-alts__note { margin: 12px 0 0; font-size: var(--fs-xs); color: var(--acquy-muted); }
.alt-card { display: flex; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius-lg); transition: border-color .15s; }
.alt-card:hover { border-color: var(--acquy-border-strong); }
.alt-card__media { flex: none; width: 72px; height: 72px; display: grid; place-items: center; background: #fff; border: 1px solid var(--acquy-border); border-radius: var(--acquy-radius); overflow: hidden; }
.alt-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* At 72px the "Chưa có ảnh" caption cannot be read; the art keeps its own aria-label. */
.alt-card__media .noimg { border: 0; background: none; }
.alt-card__media .noimg__text { display: none; }
.alt-card__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.alt-card__name { color: var(--acquy-ink); font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; overflow-wrap: anywhere; }
.alt-card__name:hover { color: var(--acquy-link); }
.alt-card__spec { font-size: var(--fs-xs); color: var(--acquy-muted); }
.alt-card__state { display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 0; font-size: var(--fs-xs); line-height: 1.35; }
.alt-card__state .icon { margin-top: 1px; }
.alt-card__state--fit { color: var(--acquy-success); }
.alt-card__state--similar { color: var(--acquy-muted); }
/* One column: the sidebar follows the description, so it needs the gap the grid does not give. */
.pdp-alts { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--acquy-border); }
@media (min-width: 1024px) {
  /* Two columns: no rule and no top gap - the cards start level with the description. */
  .pdp-alts { margin-top: 0; padding-top: 0; border-top: 0; }
}
@media (max-width: 1023px) {
  .alt-card__name { min-height: 44px; display: flex; align-items: center; }
}

/* Rev 5 §5 (synced from AAZ_ZMAX): the "Thông số kỹ thuật" tab is one two-column table, name 4 / value 8 of the 12-column grid; typed
   values wrap instead of widening the page. A card spec line stays one line when a product carries several values. */
.spec--free th { width: 33.333%; }
.spec--free td { width: 66.667%; overflow-wrap: anywhere; white-space: pre-line; }
.pcard__spec { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
