/* AirForce — vehicle page (single cb_air_kit) + make/model landings. Aluminium ground. */

.af-kit .af-breadcrumbs { padding-bottom: 18px; }

/* ===== Above the fold ===== */
.af-pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px var(--gutter); align-items: start; padding-bottom: var(--rhythm); }
.af-pdp__main { min-width: 0; }

.af-pdp-header { margin-bottom: 28px; display: flex; flex-direction: column; }
.af-pdp-header__eyebrow { order: -3; }
.af-pdp-header__facts { order: -2; margin-bottom: 14px; }
.af-pdp-header__title { order: -1; }
.af-pdp-header__eyebrow { font-family: var(--font-mono); font-size: var(--t-13); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-dark); margin: 0 0 16px; }
.af-pdp-header__title { margin: 0 0 12px; font-family: var(--font-display); font-weight: 800; font-size: var(--t-56); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.af-pdp-header__make, .af-pdp-header__model { display: inline; }
.af-pdp-header__make::after { content: " "; }
.af-pdp-header__years { display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--t-20); letter-spacing: 0; color: var(--steel-dark); margin-top: 10px; }
.af-pdp-header__from { margin: 0 0 18px; font-size: var(--t-17); color: var(--steel-dark); }
.af-pdp-header__from .woocommerce-Price-amount { font-family: var(--font-mono); font-weight: 500; color: var(--ink); font-size: var(--t-20); }
.af-pdp-header__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; font-family: var(--font-mono); font-size: var(--t-15); color: var(--steel-dark); }
.af-pdp-header__fact { display: flex; gap: 8px; align-items: baseline; }
.af-pdp-header__fact-label { font-size: var(--t-13); letter-spacing: 0.04em; }
.af-pdp-header__fact-value { margin: 0; color: var(--ink); font-weight: 500; }

.af-kit-image { position: relative; margin: 0; background: #fff; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; border-top: 2px solid var(--ink); }
.af-kit-image picture { display: contents; }
.af-kit-image__img { width: 92%; height: 92%; object-fit: contain; transition: opacity 240ms; }
.af-kit-image__caption { position: absolute; left: 18px; bottom: 14px; font-family: var(--font-mono); font-size: var(--t-13); color: var(--steel-dark); letter-spacing: 0.06em; }

/* ===== Buy box / tier selector (plugin .af-tier-selector) ===== */
.af-buy { background: #fff; padding: 26px 26px 28px; position: sticky; top: calc(var(--header-h) + 16px); border-top: 2px solid var(--ink); }
.af-tier-selector { margin: 0; }
/* wpautop inserts <br> into the shortcode markup; they must not become grid cells. */
.af-tier-selector br, .af-tier-card br, .af-pdp-header br, .af-kit-image br, .af-product-card br, .af-kit-card br, .mgmt-item br { display: none; }
.af-tier-selector__cards { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.af-tier-selector__legend { padding: 0; margin: 0 0 18px; font-size: var(--t-20); font-weight: 600; }
.af-tier-card { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--hairline-light); border-radius: var(--radius-control); cursor: pointer; transition: border-color var(--dur-fast), background-color var(--dur-fast); margin: 0; }
.af-tier-card:hover { border-color: var(--steel-dark); }
.af-tier-card.is-selected { border-color: var(--ink); background: #FAFAFA; box-shadow: inset 3px 0 0 var(--champagne); }
.af-tier-card__input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.af-tier-card:has(.af-tier-card__input:focus-visible) { outline: 2px solid var(--champagne); outline-offset: 2px; }
.af-tier-card::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--steel-dark); position: relative; grid-column: 1; }
.af-tier-card.is-selected::before { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 5px, transparent 5.5px); }
.af-tier-card__media { display: none; }
.af-tier-card__body { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; grid-column: 2 / span 2; min-width: 0; }
.af-tier-card__name { font-family: var(--font-display); font-weight: 700; font-size: var(--t-17); letter-spacing: -0.01em; grid-column: 1; grid-row: 1; }
.af-tier-card__tagline { grid-column: 1; grid-row: 2; font-size: var(--t-13); color: var(--steel-dark); line-height: 1.35; }
.af-tier-card__price { grid-column: 2; grid-row: 1; font-family: var(--font-mono); font-weight: 500; font-size: var(--t-15); text-align: right; white-space: nowrap; }
.af-tier-card__price .woocommerce-Price-amount { font-family: inherit; }
.af-tier-card__vat { grid-column: 2; grid-row: 2; font-size: 11px; color: var(--steel-dark); text-align: right; }
.af-tier-card__sku { display: none; }

/* The real WC select must stay in the DOM for add-to-cart-variation.js; keep it off-screen. */
.af-tier-selector__variations { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); margin: -1px; }
.af-tier-selector__summary { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline-light); }
.af-tier-selector__variation { display: none !important; }
.af-tier-selector__selected-price { margin: 0 0 18px; }
.af-tier-selector__selected-price:empty { display: none; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.price-tier { font-size: var(--t-15); color: var(--steel-dark); margin: 0; padding-bottom: 6px; }
.price-tier b { color: var(--ink); font-weight: 600; }
.price-lcd { font-family: var(--font-mono); font-weight: 500; font-size: var(--t-40); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); transition: color 120ms; text-align: right; }
.price-lcd .woocommerce-Price-amount { font-family: inherit; }
.price-lcd.is-ticking { color: #2B6E86; text-shadow: 0 0 14px rgba(191,232,245,0.9); }
.price-vat { font-size: var(--t-13); color: var(--steel-dark); margin: 6px 0 0; text-align: right; }
.af-tier-selector__selected-price .price-vat { grid-column: 1 / -1; }
.af-tier-selector__actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: stretch; }
.af-tier-selector__actions .quantity { display: flex; }
.af-tier-selector__actions .quantity .qty { width: 72px; height: 52px; text-align: center; padding: 0 8px; border: 1px solid var(--control-border); border-radius: var(--radius-control); font-family: var(--font-mono); }
.af-tier-selector__actions .quantity .screen-reader-text { position: absolute; }
.af-tier-selector__submit { width: 100%; min-height: 52px; }
.af-tier-selector__submit.disabled, .af-tier-selector__submit:disabled { background: #CFD0D4; color: var(--steel-dark); border-color: var(--control-border); box-shadow: none; cursor: not-allowed; }
.af-tier-selector__lead-time { margin: 16px 0 0; font-size: var(--t-13); color: var(--steel-dark); padding-left: 16px; position: relative; }
.af-tier-selector__lead-time::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--champagne); box-shadow: inset 0 0 0 1px var(--brass); }
.af-buy-ask { margin-top: 10px; }
.af-buy-ask .btn { width: 100%; }
.af-buy-kitonly { margin: 12px 0 0; font-size: var(--t-13); color: var(--steel-dark); padding-left: 16px; position: relative; }
.af-buy-kitonly::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--champagne); box-shadow: inset 0 0 0 1px var(--brass); }
.af-tier-selector--poa { display: grid; gap: 12px; }
.af-tier-selector__poa-title { margin: 0; font-size: var(--t-20); font-weight: 600; }
.af-tier-selector__poa-text { margin: 0; color: var(--steel-dark); font-size: var(--t-15); }
.af-tier-selector__poa-cta { justify-self: start; }
.af-buy .woocommerce-notices-wrapper:empty { display: none; }
.af-buy .woocommerce-error, .af-buy .woocommerce-message, .af-buy .woocommerce-info { margin: 0 0 16px; }
.af-buy .reset_variations { display: none !important; }
.af-buy .stock { font-size: var(--t-13); color: var(--steel-dark); margin: 0 0 8px; }
.af-buy .woocommerce-variation-availability { display: none; }

@media (max-width: 960px) { .af-pdp { grid-template-columns: 1fr; gap: 28px; } .af-buy { position: static; } }
@media (max-width: 720px) { .af-buy { padding: 20px 18px 22px; margin-inline: calc(-1 * var(--gutter)); border-top-width: 2px; } .af-kit-image { aspect-ratio: auto; padding-bottom: 40px; } .af-kit-image__img { width: 100%; height: auto; aspect-ratio: 4/3; } .af-tier-selector__actions { grid-template-columns: 1fr; } .af-tier-selector__actions .quantity .qty { width: 100%; } }

/* ===== Chapters (plugin sections) ===== */
.af-chapters { display: block; }
.af-chapters--tail { padding-bottom: var(--rhythm); }
.af-chapter__body .lead { margin-bottom: 16px; }
.af-hero-copy p { margin: 0 0 16px; }
.af-hero-copy p:first-child { font-size: var(--t-20); line-height: 1.4; }
.af-hero-copy p:last-child { margin-bottom: 0; }
.af-hero-copy h2, .af-hero-copy h3 { font-size: var(--t-20); font-weight: 600; margin: 24px 0 8px; }

.af-kit-contents__panel { max-width: 760px; }
.af-kit-contents__tier { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: var(--t-20); letter-spacing: -0.01em; }
.af-kit-contents__summary { margin: 0 0 12px; font-size: var(--t-17); }
.af-kit-contents__who { margin: 0 0 20px; font-size: var(--t-15); color: var(--steel-dark); }
.af-kit-contents__who strong { color: var(--ink); }
.af-kit-contents__points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: box; }
.af-kit-contents__point { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline-light); font-size: var(--t-15); font-weight: 500; counter-increment: box; }
.af-kit-contents__point::before { content: counter(box, decimal-leading-zero); font-family: var(--font-mono); color: var(--steel-dark); font-size: var(--t-13); padding-top: 2px; font-weight: 400; }
.af-kit-contents__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--hairline-light); border: 1px solid var(--hairline-light); margin: 0; }
.af-kit-contents__spec { background: var(--aluminium); padding: 14px 16px; }
.af-kit-contents__spec dt { font-family: var(--font-mono); font-size: var(--t-13); letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-dark); margin-bottom: 4px; }
.af-kit-contents__spec dd { margin: 0; font-weight: 500; font-size: var(--t-15); }
.af-kit-contents__body p { margin: 0 0 14px; }
.af-kit-contents__switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.af-kit-contents__switch button { border: 1px solid var(--hairline-light); background: #fff; border-radius: var(--radius-control); padding: 6px 12px; font-size: var(--t-13); font-family: var(--font-mono); letter-spacing: 0.04em; color: var(--steel-dark); }
.af-kit-contents__switch button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 -2px 0 var(--champagne); }

.af-fitment-notes__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 760px; }
.af-fitment-notes__item { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: var(--t-15); }
.af-fitment-notes__item::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; margin-top: 3px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--ink); color: var(--aluminium); }
.af-fitment-notes__item--electronicDampingCancellationKit::before, .af-fitment-notes__item--row-yellow::before, .af-fitment-notes__item--row-red::before, .af-fitment-notes__item--strut::before, .af-fitment-notes__item--top-mount-option::before { content: "!"; background: var(--champagne); color: var(--obsidian); box-shadow: inset 0 0 0 1px var(--brass); }
.af-fitment-notes__item--lead-time::before, .af-fitment-notes__item--listed-as::before { content: "i"; background: transparent; color: var(--steel-dark); box-shadow: inset 0 0 0 1px var(--steel-dark); font-family: var(--font-mono); font-style: normal; }

.af-xsell-band { margin-top: 24px; }
.af-crosssell .af-product-grid__title { color: var(--paper); font-size: var(--t-56); line-height: 1.05; margin-bottom: 40px; }
.af-crosssell .af-product-grid__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.af-crosssell .af-product-card__name { color: var(--paper); }
.af-crosssell .af-product-card__price { color: var(--paper); }
@media (max-width: 860px) { .af-crosssell .af-product-grid__list { grid-template-columns: 1fr; } }

.af-warranty__body { max-width: 760px; }
.af-warranty__body p { margin: 0 0 14px; }
.af-warranty__body p:first-child { font-size: var(--t-20); line-height: 1.4; }
.af-related__list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.af-related__all { margin: 20px 0 0; }
.af-related__all a { color: var(--brass); font-weight: 600; }

@media (max-width: 860px) { .af-kit-contents__points, .af-kit-contents__specs { grid-template-columns: 1fr; } }

/* ===== Landings: /air-suspension/, make, model ===== */
.af-route .af-main { padding-bottom: var(--rhythm); }
.af-landing { padding: 24px 0 var(--rhythm); }
.af-landing__head { margin-bottom: 32px; max-width: 760px; }
.af-landing__head .lead { margin: 14px 0 0; }
.af-landing__back { margin: 32px 0 0; }
.af-make-index, .af-model-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--hairline-light); border: 1px solid var(--hairline-light); }
.af-make-index__link, .af-model-index__link { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 20px; background: #fff; font-weight: 600; transition: background-color var(--dur-fast); min-height: 64px; }
.af-make-index__link:hover, .af-model-index__link:hover { background: #FAFAFA; box-shadow: inset 3px 0 0 var(--champagne); }
.af-make-index__count, .af-model-index__count { font-family: var(--font-mono); font-size: var(--t-13); color: var(--steel-dark); font-weight: 400; white-space: nowrap; }
.af-landing__finder { margin-bottom: 40px; }

/* Adaptive-damper variant chooser — the "-C" distinction decides whether a kit
   fits at all, so it sits directly under the title, not in the fitment notes. */
.af-variant-note {
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--gunmetal, #2A2C31);
  border-left: 3px solid var(--champagne, #E3C26F);
  background: color-mix(in srgb, var(--champagne, #E3C26F) 7%, transparent);
  border-radius: 4px;
}
.af-variant-note__title {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: var(--t-17, 17px);
  line-height: 1.3;
}
.af-variant-note__body {
  margin: 0;
  font-size: var(--t-15, 15px);
  line-height: 1.55;
  color: var(--text-muted, #6F7278);
}
.af-variant-note__action { margin: 10px 0 0; }
.af-variant-note__link {
  font-size: var(--t-15, 15px);
  font-weight: 600;
  color: var(--brass, #8C6F2E);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.af-variant-note__link:hover { color: var(--obsidian, #0B0B0C); }

/* Kit-only steer under the build selector. */
.af-tier-selector__steer {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--gunmetal, #2A2C31);
  font-size: var(--t-15, 15px);
  line-height: 1.55;
  color: var(--text-muted, #6F7278);
}
.af-tier-selector__steer strong { color: var(--obsidian, #0B0B0C); font-weight: 600; }
