/* AirForce — sitewide components: header, footer, finder, crumbs, chapters, cards. Flat selectors. */

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(11, 11, 12, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--dur-fast), background-color var(--dur-fast); color: var(--paper); }
.site-header.is-scrolled { border-bottom-color: var(--gunmetal); background: rgba(11, 11, 12, 0.86); }
.ground-light .site-header, .ground-light .site-header.is-scrolled { background: var(--obsidian); border-bottom-color: var(--gunmetal); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; height: 100%; flex: 0 0 auto; }
.brand img { width: 124px; height: auto; }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav > p, .nav > div { display: contents; }
.nav a { font-size: var(--t-15); font-weight: 500; color: var(--steel); padding: 8px 0; position: relative; transition: color var(--dur-fast); white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--paper); }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: var(--champagne); transition: right var(--dur-fast) var(--ease-out-quint); }
.nav a:hover::after, .nav a[aria-current]::after { right: 0; }
.header-tools { display: flex; align-items: center; gap: 20px; }
.basket { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); font-size: var(--t-15); font-weight: 500; min-height: 44px; }
.basket svg { width: 22px; height: 22px; }
.basket-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--champagne); color: var(--obsidian); font: 600 12px/20px var(--font-mono); text-align: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--gunmetal); border-radius: var(--radius-control); width: 44px; height: 44px; color: var(--paper); align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; transition: transform var(--dur-fast), box-shadow var(--dur-fast); }
.nav-open .nav-toggle span { box-shadow: none; transform: rotate(45deg); }
@media (max-width: 920px) {
  .header-inner { gap: 16px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-open .nav { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--graphite); border-bottom: 1px solid var(--gunmetal); padding: 8px 24px 16px; margin: 0; }
  .nav-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--gunmetal); font-size: var(--t-17); }
  .nav-open .nav a::after { display: none; }
}

/* ===== Footer ===== */
.footer { padding-block: 64px 40px; border-top: 1px solid var(--gunmetal); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter); margin-bottom: 48px; }
.footer h4 { margin: 0 0 14px; font-size: var(--t-13); font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); font-weight: 500; }
.footer div > p:empty { display: none; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul + ul { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--gunmetal); }
.footer li a { color: var(--paper); font-size: var(--t-15); }
.footer li a:hover { color: var(--champagne); }
.footer-brand img { width: 118px; height: auto; margin-bottom: 18px; }
.footer-brand p { margin: 0; color: var(--steel); font-size: var(--t-15); max-width: 360px; }
.footer-legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--gunmetal); color: var(--steel); font-size: var(--t-13); }
.footer-legal p { margin: 0; max-width: 820px; }
.pay { display: flex; gap: 8px; flex-wrap: wrap; }
.pay span { border: 1px solid var(--gunmetal); border-radius: 3px; padding: 3px 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--steel); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ===== Finder (wraps the plugin's [af_finder] markup) ===== */
.finder { position: relative; z-index: 2; background: var(--aluminium); color: var(--ink); border-top: 2px solid var(--champagne); }
.finder-inner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px var(--gutter); align-items: start; padding-block: 28px 24px; }
.finder-lead .eyebrow { margin-bottom: 6px; }
.finder-lead h2 { margin: 0; }
.finder-form { display: grid; gap: 12px; }
.af-finder { margin: 0; }
.af-finder__heading { margin: 0 0 12px; font-size: var(--t-20); font-weight: 600; }
.af-finder__fields { display: grid; grid-template-columns: 1fr 1.3fr 1.1fr auto; gap: 10px; align-items: end; }
.af-finder__field { position: relative; display: block; margin: 0; }
.af-finder__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.af-finder__select { width: 100%; height: 54px; padding: 0 44px 0 16px; border: 1px solid var(--control-border); border-radius: var(--radius-control); background: #fff; appearance: none; -webkit-appearance: none; font-size: var(--t-17); color: var(--ink); }
.finder .af-finder__select, .af-landing .af-finder__select { background: #fff; color: var(--ink); border-color: var(--control-border); }
.af-finder__select:disabled { color: var(--steel); background: #F3F3F4; }
.af-finder__field::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.af-finder__field:has(select:disabled)::after { border-color: var(--steel); }
.af-finder__submit { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 28px; border-radius: var(--radius-control); border: 1px solid var(--brass); background: var(--champagne); color: var(--obsidian); font-weight: 600; font-size: var(--t-15); box-shadow: inset 0 -1px 0 var(--brass); white-space: nowrap; }
.af-finder__submit:hover { background: #EACD82; }
.af-finder__status { margin: 6px 0 0; min-height: 1.4em; font-size: var(--t-13); color: var(--steel-dark); }
.af-finder__status:empty { display: none; }
.af-finder__noscript { margin: 8px 0 0; font-size: var(--t-15); }
.finder-foot { margin: 0; font-size: var(--t-13); color: var(--steel-dark); }
.finder-result { padding: 16px 18px; background: #fff; border-left: 3px solid var(--champagne); }
.finder-result p { margin: 0; }
.finder-hit { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.finder-hit strong { font-size: var(--t-17); }
.finder-hit .btn { min-height: 44px; }
.finder--inline { border: 1px solid var(--hairline-light); border-top: 2px solid var(--champagne); margin: 24px 0 40px; }
.finder--inline .finder-inner { grid-template-columns: 1fr; padding: 24px; }
@media (max-width: 1024px) {
  .finder-inner { grid-template-columns: 1fr; }
  .af-finder__fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .af-finder__fields { grid-template-columns: 1fr; }
  .af-finder__submit { width: 100%; }
}

/* ===== Breadcrumbs (plugin .af-breadcrumbs) ===== */
.af-breadcrumbs { padding: 18px 0 0; font-family: var(--font-mono); font-size: var(--t-13); letter-spacing: 0.02em; color: var(--steel-dark); }
.af-breadcrumbs__list { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; }
.af-breadcrumbs__item + .af-breadcrumbs__item::before { content: "/"; margin-right: 10px; color: #B8BABF; }
.af-breadcrumbs__link:hover { color: var(--ink); }
.ground-dark .af-breadcrumbs { color: var(--steel); }
.ground-dark .af-breadcrumbs__link:hover { color: var(--paper); }

/* ===== Chapters (vehicle page, product page, which-build) ===== */
.af-chapter, .af-kit-contents, .af-fitment-notes, .af-warranty, .af-related { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px var(--gutter); padding-block: 56px; border-top: 1px solid var(--hairline-light); }
.af-chapter > *, .af-kit-contents > *, .af-fitment-notes > *, .af-warranty > *, .af-related > * { grid-column: 2; }
/* grid-row: 1 (not "1 / span 20") — spanning rows the chapter does not have
   conjures the missing rows plus a row gap each, which showed up as a column of
   dead space under short chapters. */
.af-chapter__title, .af-kit-contents__title, .af-fitment-notes__title, .af-warranty__title, .af-related__title { grid-column: 1; grid-row: 1; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--t-28); letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.af-chapter__body { max-width: 760px; }
.af-chapter__body p, .af-prose p { margin: 0 0 16px; }
.af-chapter__body p:last-child { margin-bottom: 0; }
.ground-dark .af-chapter, .ground-dark .af-kit-contents, .ground-dark .af-fitment-notes, .ground-dark .af-warranty, .ground-dark .af-related { border-color: var(--gunmetal); }
@media (max-width: 860px) {
  .af-chapter, .af-kit-contents, .af-fitment-notes, .af-warranty, .af-related { grid-template-columns: 1fr; padding-block: 40px; }
  .af-chapter > *, .af-kit-contents > *, .af-fitment-notes > *, .af-warranty > *, .af-related > * { grid-column: 1; }
  .af-chapter__title, .af-kit-contents__title, .af-fitment-notes__title, .af-warranty__title, .af-related__title { grid-row: auto; }
}

/* ===== Kit cards (plugin .af-kit-card) ===== */
.af-kit-card br, .af-product-card br, .af-breadcrumbs br, .finder br { display: none; }
.af-kit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gutter); }
.af-kit-card { margin: 0; background: #fff; border-top: 2px solid var(--ink); transition: transform var(--dur-fast), box-shadow var(--dur-fast); }
.af-kit-card:hover { box-shadow: 0 12px 32px -18px rgba(0,0,0,0.5); }
.af-kit-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.af-kit-card__media { display: block; aspect-ratio: 4/3; overflow: hidden; background: #fff; border-bottom: 1px solid var(--hairline-light); }
.af-kit-card__img { width: 100%; height: 100%; object-fit: contain; }
.af-kit-card__body { display: grid; gap: 4px; padding: 18px 20px 20px; }
.af-kit-card__vehicle { font-weight: 600; font-size: var(--t-17); line-height: 1.3; }
.af-kit-card__years, .af-kit-card__part { font-family: var(--font-mono); font-size: var(--t-13); color: var(--steel-dark); letter-spacing: 0.02em; }
.af-kit-card__price { margin-top: 10px; font-size: var(--t-15); color: var(--steel-dark); }
.af-kit-card__amount { font-family: var(--font-mono); font-weight: 500; font-size: var(--t-20); color: var(--ink); }
.af-kit-card__amount .woocommerce-Price-amount { font-family: inherit; }
.ground-dark .af-kit-card { background: var(--graphite); border-top-color: var(--champagne); }
.ground-dark .af-kit-card__amount { color: var(--paper); }
.ground-dark .af-kit-card__years, .ground-dark .af-kit-card__part, .ground-dark .af-kit-card__price { color: var(--steel); }

/* ===== Product cards (plugin + theme .af-product-card) ===== */
.af-product-grid { margin: 0; }
.af-product-grid__title { margin: 0 0 24px; font-family: var(--font-display); font-weight: 800; font-size: var(--t-40); letter-spacing: -0.02em; line-height: 1.1; }
.af-product-grid__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gutter); }
.af-product-card { margin: 0; background: #fff; border-top: 2px solid var(--ink); display: flex; flex-direction: column; }
.af-product-card:hover { box-shadow: 0 12px 32px -18px rgba(0,0,0,0.5); }
.af-product-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.af-product-card__media { display: block; aspect-ratio: 4/3; overflow: hidden; background: #fff; border-bottom: 1px solid var(--hairline-light); }
.af-product-card__img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.af-product-card__body { display: grid; gap: 6px; padding: 18px 20px 22px; flex: 1; align-content: start; }
.af-product-card__sku { font-size: var(--t-13); color: var(--brass); letter-spacing: 0.08em; }
.af-product-card__name { font-weight: 600; font-size: var(--t-17); line-height: 1.3; }
.af-product-card__summary { font-size: var(--t-15); color: var(--steel-dark); }
.af-product-card__price { margin-top: auto; padding-top: 12px; font-family: var(--font-mono); font-weight: 500; font-size: var(--t-17); }
.af-product-card__price .woocommerce-Price-amount { font-family: inherit; }
.af-price-poa { font-family: var(--font-body); font-weight: 500; color: var(--steel-dark); font-size: var(--t-15); }
.ground-dark .af-product-card, .af-crosssell .af-product-card { background: var(--graphite); border: 1px solid var(--gunmetal); border-top: 1px solid var(--gunmetal); }
.ground-dark .af-product-card__sku, .af-crosssell .af-product-card__sku { color: var(--champagne); }
.ground-dark .af-product-card__summary, .af-crosssell .af-product-card__summary { color: var(--steel); }
.ground-dark .af-product-card__media, .af-crosssell .af-product-card__media { border-bottom-color: var(--gunmetal); }
.af-empty { color: var(--steel-dark); font-size: var(--t-15); padding: 24px 0; }

/* ===== Lightbox / video modal shells ===== */
.af-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(11,11,12,0.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.af-modal.is-open { display: flex; }
.af-modal__panel { position: relative; width: min(1280px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 12px; color: var(--paper); }
.af-modal__media { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.af-modal__media video, .af-modal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.af-modal__caption { margin: 0; font-family: var(--font-mono); font-size: var(--t-13); letter-spacing: 0.06em; color: var(--steel); display: flex; justify-content: space-between; gap: 16px; }
.af-modal__close, .af-modal__nav { position: absolute; width: 44px; height: 44px; border-radius: var(--radius-control); border: 1px solid var(--gunmetal); background: rgba(23,24,27,0.9); color: var(--paper); display: grid; place-items: center; font-size: 22px; line-height: 1; }
.af-modal__close { top: -8px; right: -8px; transform: translate(0, -100%); }
.af-modal__nav { top: 50%; transform: translateY(-50%); }
.af-modal__nav--prev { left: -8px; }
.af-modal__nav--next { right: -8px; }
.af-modal__close:hover, .af-modal__nav:hover { border-color: var(--steel); }
@media (max-width: 720px) { .af-modal { padding: 12px; } .af-modal__close { right: 0; } .af-modal__nav--prev { left: 0; } .af-modal__nav--next { right: 0; } }
body.af-modal-open { overflow: hidden; }
