/* GDOC design system: components v0.1 (BLD-UI)
   Tokens come from theme.json (--wp--preset--*). Short aliases below; never hard-code hex in components. */

:root {
  --ink: var(--wp--preset--color--ink, #18202B);
  --navy-900: var(--wp--preset--color--navy-900, #16264D);
  --navy: var(--wp--preset--color--navy, #253C75);
  --on-navy-muted: #D6DEE8; /* secondary text on navy (hero lede, footer) */
  --navy-700: var(--wp--preset--color--navy-700, #2E5590);
  --link: var(--wp--preset--color--link, #1B6AA3);
  --amber: var(--wp--preset--color--amber, #E8A317);
  --amber-dark: var(--wp--preset--color--amber-dark, #C98A0C);
  --amber-50: var(--wp--preset--color--amber-50, #FDF3DC);
  --gray-700: var(--wp--preset--color--gray-700, #3A4554);
  --gray-500: var(--wp--preset--color--gray-500, #5F6B7A);
  --gray-200: var(--wp--preset--color--gray-200, #DADFE6);
  --gray-100: var(--wp--preset--color--gray-100, #ECEEF2);
  --gray-50: var(--wp--preset--color--gray-50, #F6F7F9);
  --white: #FFFFFF;
  --green: var(--wp--preset--color--green, #1E7A46);
  --green-50: var(--wp--preset--color--green-50, #E8F5EE);
  --red: var(--wp--preset--color--red, #B42318);
  --red-50: var(--wp--preset--color--red-50, #FDECEA);
  --r-sm: 6px;
  --r-md: 10px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(22,38,77,.08);
  --shadow-md: 0 4px 14px rgba(22,38,77,.10);
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--link);
  --wide: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.icon--lg { width: 2rem; height: 2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: var(--white); padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--gray-500); }

/* ---------- Buttons ---------- */
.btn, .wp-element-button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.25rem; border: 2px solid transparent; border-radius: var(--r-sm);
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--amber); color: var(--navy-900); }
.btn--primary:hover { background: var(--amber-dark); color: var(--navy-900); }
.btn--secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: var(--white); }
.btn--ghost { background: transparent; color: var(--link); padding-inline: .5rem; }
.btn--ghost:hover { text-decoration: underline; }
.btn--block { width: 100%; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem;
  border-radius: var(--r-pill); font-size: var(--wp--preset--font-size--xs); font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.badge .icon { width: 1rem; height: 1rem; }
.badge--genuine { background: var(--navy); color: var(--white); }
.badge--aftermarket { background: var(--amber-50); color: var(--navy-900); box-shadow: inset 0 0 0 1px var(--amber-dark); }
.badge--stock { background: var(--green-50); color: var(--green); }
.badge--oos { background: var(--gray-100); color: var(--gray-700); }
.badge--probable { background: var(--gray-100); color: var(--gray-700); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: .75rem; padding: 1rem 1.125rem; border-radius: var(--r-md); border-left: 4px solid; }
.alert--info { background: var(--gray-50); border-color: var(--link); }
.alert--success { background: var(--green-50); border-color: var(--green); }
.alert--warn { background: var(--amber-50); border-color: var(--amber-dark); }
.alert--danger { background: var(--red-50); border-color: var(--red); }
.alert > .icon { margin-top: .15rem; }

/* ---------- Forms ---------- */
.field { display: grid; gap: .375rem; }
.field__label { font-weight: 700; font-size: var(--wp--preset--font-size--sm); color: var(--navy-900); }
.field__hint { font-size: var(--wp--preset--font-size--xs); color: var(--gray-500); }
.input, .select {
  width: 100%; min-height: 48px; padding: .625rem .875rem; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--gray-500); border-radius: var(--r-sm);
}
.select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314304A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 1.1rem;
}
.select:disabled { background-color: var(--gray-50); color: var(--gray-500); border-color: var(--gray-200); }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tint { background: var(--gray-50); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy :is(h1, h2, h3) { color: var(--white); }
.section__head { max-width: 720px; margin-bottom: 2rem; }
.section__head h2, .section h2:not([class]) { font-size: var(--wp--preset--font-size--xxl); line-height: 1.2; margin: 0; }
.section__head p { color: var(--gray-700); font-size: var(--wp--preset--font-size--lg); margin: .5rem 0 0; }
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--gray-200); }
.utility-bar { background: var(--navy-900); color: var(--white); font-size: var(--wp--preset--font-size--xs); }
.utility-bar .container { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; padding-block: .45rem; }
.utility-bar span { display: inline-flex; align-items: center; gap: .4rem; }
.utility-bar .icon { color: var(--amber); width: 1rem; height: 1rem; }
.header-main { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.header-logo { display: block; flex: none; line-height: 0; }
.header-logo img { width: 240px; height: auto; }
.header-search { flex: 1; display: flex; max-width: 520px; margin-inline: auto; }
.header-search .input { border-radius: var(--r-sm) 0 0 var(--r-sm); border-right: 0; }
.header-search button { border-radius: 0 var(--r-sm) var(--r-sm) 0; min-width: 52px; background: var(--navy); color: var(--white); border: 0; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-actions a { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem; color: var(--navy); text-decoration: none; font-weight: 600; border-radius: var(--r-sm); }
.header-actions a:hover { background: var(--gray-50); }
.cart-count { min-width: 1.25rem; padding: 0 .35rem; border-radius: var(--r-pill); background: var(--amber); color: var(--navy-900); font-size: var(--wp--preset--font-size--xs); font-weight: 800; text-align: center; }
.primary-nav { border-top: 1px solid var(--gray-100); }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 0 .125rem; list-style: none; margin: 0; padding: 0; } /* wrap, never hide items (UI audit D-071) */
.primary-nav a { display: block; padding: .75rem .625rem; font-size: var(--wp--preset--font-size--sm); color: var(--navy); text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { border-bottom-color: var(--amber); }
.menu-toggle { display: none; }
/* Phones: every menu item visible in a compact two-column grid (Baymard: sideways-scrolling nav hides options; D-062) */
@media (max-width: 860px) {
  .primary-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .5rem; overflow: visible; padding: .25rem 0; }
  .primary-nav a { padding: .5rem .25rem; font-size: var(--wp--preset--font-size--sm); white-space: normal; border-bottom-width: 2px; min-height: 40px; display: flex; align-items: center; }
}
@media (max-width: 860px) {
  .header-main { flex-wrap: wrap; gap: .5rem 1rem; padding-block: .75rem; }
  .header-logo img { width: 180px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { margin-left: auto; }
  .header-actions .label { display: none; }
  .utility-bar .container span:nth-child(n+2) { display: none; }
}

/* ---------- Hero + finder ---------- */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%); color: var(--white); padding-block: clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.hero::after { /* decorative panel lines, echo of the mark */
  content: ""; position: absolute; inset: auto -10% -40% 45%; height: 140%;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 22px, transparent 22px 44px);
  transform: skewY(-6deg); pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; gap: 2.5rem; grid-template-columns: 1.05fr 1fr; align-items: center; }
.hero h1 { color: var(--white); margin: 0 0 1rem; font-size: var(--wp--preset--font-size--display); line-height: 1.1; }
.hero__lede { font-size: var(--wp--preset--font-size--lg); color: var(--on-navy-muted); margin: 0 0 1.5rem; max-width: 34ch; }
.hero__points { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.hero__points li { display: flex; gap: .6rem; align-items: center; }
.hero__points .icon { color: var(--amber); }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } }

.finder { background: var(--white); color: var(--ink); border-radius: var(--r-md); padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.finder h2 { font-size: var(--wp--preset--font-size--xl); margin: 0 0 .25rem; }
.finder > p { margin: 0 0 1.25rem; color: var(--gray-700); }
.finder__steps { display: grid; gap: 1rem; }
.finder__step-num { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-right: .4rem; border-radius: 50%; background: var(--navy); color: var(--white); font-size: var(--wp--preset--font-size--xs); }
.finder__results { margin-top: 1.25rem; display: grid; gap: .75rem; }
.finder__result { display: grid; grid-template-columns: 56px 1fr auto; gap: .875rem; align-items: center; padding: .75rem; border: 1px solid var(--gray-200); border-radius: var(--r-md); text-decoration: none; color: inherit; }
.finder__result:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.finder__result img { width: 56px; height: 56px; object-fit: contain; background: var(--gray-50); border-radius: var(--r-sm); }
.finder__result strong { display: block; color: var(--navy-900); line-height: 1.3; }
.finder__result .badge { margin-top: .25rem; }
.finder__alt { font-size: var(--wp--preset--font-size--sm); margin-top: 1rem; color: var(--gray-700); }

/* ---------- Trust strip ---------- */
.trust-strip { border-bottom: 1px solid var(--gray-200); background: var(--white); }
.trust-strip ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.trust-strip li { display: flex; gap: .75rem; align-items: center; padding: 1.125rem 1rem; }
.trust-strip li + li { border-left: 1px solid var(--gray-100); }
.trust-strip .icon { width: 1.75rem; height: 1.75rem; color: var(--navy); }
.trust-strip strong { display: block; color: var(--navy-900); line-height: 1.25; }
.trust-strip small { color: var(--gray-500); font-size: var(--wp--preset--font-size--xs); }
@media (max-width: 860px) { .trust-strip ul { grid-template-columns: 1fr 1fr; } .trust-strip li:nth-child(3) { border-left: 0; } .trust-strip li:nth-child(n+3) { border-top: 1px solid var(--gray-100); } }

/* ---------- Brand tiles (logos: Stuart #1445, rights per Jared #1442 in the IP register) ---------- */
/* Equal-size tiles that fit the space available, so rows never differ in height (D-077). */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); grid-auto-rows: 1fr; gap: 1rem; }
.brand-tile {
  hyphens: none; overflow-wrap: normal; min-height: 4.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: 1.125rem 1.25rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md);
  color: var(--navy-900); text-decoration: none; font-weight: 750; font-size: var(--wp--preset--font-size--lg);
}
.brand-tile small { display: block; font-weight: 500; font-size: var(--wp--preset--font-size--xs); color: var(--gray-500); }
.brand-tile .icon { color: var(--gray-500); }
.brand-tile:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.brand-tile:hover .icon { color: var(--navy); }
.brand-tile__name { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; }
/* Logo tiles: logo on top in a fixed-height box so every logo sits on the same line, name below (D-078). */
.brand-tile--logo { flex-direction: column; align-items: stretch; justify-content: space-between; gap: .75rem; }
.brand-tile--logo .brand-tile__logo { display: block; height: 3rem; width: 100%; object-fit: contain; object-position: left center; }
.brand-tile--logo .brand-tile__name { font-size: var(--wp--preset--font-size--md); }

/* ---------- Product card ---------- */
.product-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md); overflow: hidden; }
.product-card:hover { box-shadow: var(--shadow-md); }
.product-card__media { aspect-ratio: 1; background: var(--gray-50); display: grid; place-items: center; padding: 1rem; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; }
.product-card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.125rem 1.125rem; flex: 1; }
.product-card__title { font-size: var(--wp--preset--font-size--md); font-weight: 700; line-height: 1.35; margin: 0; }
.product-card__title a { color: var(--navy-900); text-decoration: none; }
.product-card__title a::after { content: ""; position: absolute; inset: 0; }
.product-card { position: relative; }
.product-card__fits { font-size: var(--wp--preset--font-size--sm); color: var(--gray-700); margin: 0; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .5rem; }
.price { font-size: var(--wp--preset--font-size--xl); font-weight: 800; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.price small { font-size: var(--wp--preset--font-size--xs); font-weight: 500; color: var(--gray-500); }

/* ---------- Info cards ---------- */
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md); padding: 1.5rem; }
.card h3 { margin: .75rem 0 .5rem; font-size: var(--wp--preset--font-size--lg); }
.card p { margin: 0; color: var(--gray-700); }
.card .icon--lg { color: var(--navy); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.compare .card ul { padding-left: 1.1rem; margin: .75rem 0 0; color: var(--gray-700); }
.compare .card li + li { margin-top: .35rem; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { counter-increment: s; position: relative; padding: 1.25rem 1.25rem 1.25rem 4rem; background: var(--white); border-radius: var(--r-md); border: 1px solid var(--gray-200); }
.steps li::before { content: counter(s); position: absolute; left: 1.25rem; top: 1.2rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--amber); color: var(--navy-900); font-weight: 800; display: grid; place-items: center; }
.steps strong { display: block; color: var(--navy-900); margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--gray-700); font-size: var(--wp--preset--font-size--sm); }

/* ---------- Tables (spec tables, compatibility lists) ---------- */
.table { width: 100%; border-collapse: collapse; font-size: var(--wp--preset--font-size--sm); }
.table th, .table td { text-align: left; padding: .7rem .875rem; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.table th { color: var(--gray-700); font-weight: 700; background: var(--gray-50); }
.table td.num, .table th.num { text-align: right; }
.table-scroll { overflow-x: auto; margin: 1rem 0 0; }

.bnpl-line { margin: -.25rem 0 .75rem; color: var(--gray-700); font-size: var(--wp--preset--font-size--sm); }

/* ---------- Remote matcher (mu-plugins/gdoc-matcher.php) ---------- */
.identify { max-width: 640px; display: grid; gap: 1rem; }
.identify__drop { display: grid; gap: .35rem; padding: 1.5rem; border: 2px dashed var(--gray-200); border-radius: 10px; background: var(--gray-50); cursor: pointer; }
.identify__drop span { color: var(--gray-700); font-size: var(--wp--preset--font-size--sm); }
.identify__drop input { margin-top: .5rem; }
.identify__meta { color: var(--gray-700); font-size: var(--wp--preset--font-size--sm); margin: 0; }
.identify__status:empty { display: none; }
.identify__results { max-width: 760px; margin-top: 2rem; }
.identify__title { font-size: var(--wp--preset--font-size--xl); margin: 0 0 .5rem; }
.identify__list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .75rem; }
.identify__card { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--gray-200); border-radius: 10px; }
.identify__card img { flex: none; object-fit: contain; background: #fff; border-radius: 6px; }
.identify__card--low { opacity: .85; }
.identify__name { display: block; font-weight: 700; margin: .35rem 0 .25rem; }
.identify__reason, .identify__price { margin: 0; font-size: var(--wp--preset--font-size--sm); }
.identify__price { color: var(--gray-700); margin-top: .25rem; }

/* ---------- Category depth (below the product grid, SEO plan item 3) ---------- */
/* Full-width grey band (Stuart #1553, item 6): the band bleeds to the window edges; prose stays at reading width. */
.cat-depth { margin-top: 3.5rem; padding: 3rem 0 3.5rem; background: var(--gray-50); box-shadow: 0 0 0 100vmax var(--gray-50); clip-path: inset(0 -100vmax); }
.cat-depth > p, .cat-depth .cat-body > p, .cat-depth .cat-body > ul, .cat-depth .cat-body > ol, .cat-depth .cat-body h2, .cat-depth .cat-body h3 { max-width: 70ch; }
.cat-depth .fit-table { background: var(--white); }
.cat-depth > h2, .cat-depth .cat-body h2 { font-size: var(--wp--preset--font-size--xl); line-height: 1.25; margin: 2.5rem 0 .75rem; }
.cat-depth .table-scroll + .cat-body, .cat-depth > .cat-body { margin-top: 2.5rem; }
.cat-depth > h2:first-child { margin-top: 0; }
.fit-table tbody th { background: none; color: var(--ink); font-weight: 600; width: 40%; }
.fit-table td a { text-decoration: none; }
.fit-table td a:hover { text-decoration: underline; }
.cat-body { max-width: none; }
.cat-body h3 { font-size: var(--wp--preset--font-size--lg); margin: 1.5rem 0 .4rem; }

/* ---------- Product page ---------- */
.breadcrumb { font-size: var(--wp--preset--font-size--sm); padding-block: 1rem; color: var(--gray-500); }
.breadcrumb a { color: var(--gray-700); }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }
.pdp__gallery { background: var(--gray-50); border-radius: var(--r-md); aspect-ratio: 1; display: grid; place-items: center; padding: 2rem; }
.pdp__thumbs { display: flex; gap: .5rem; margin-top: .75rem; }
.pdp__thumbs button { width: 72px; height: 72px; padding: .35rem; background: var(--gray-50); border: 2px solid var(--gray-200); border-radius: var(--r-sm); cursor: pointer; }
.pdp__thumbs button[aria-current="true"] { border-color: var(--navy); }
.pdp h1 { font-size: var(--wp--preset--font-size--xxl); margin: .5rem 0 .25rem; }
.pdp__mpn { color: var(--gray-500); font-size: var(--wp--preset--font-size--sm); margin: 0 0 1rem; }
.pdp__buy { margin-top: 1.25rem; padding: 1.25rem; border: 1px solid var(--gray-200); border-radius: var(--r-md); display: grid; gap: 1rem; }
.pdp__buy .price { font-size: var(--wp--preset--font-size--xxl); }
.pdp__buy .wp-block-woocommerce-product-price { font-size: var(--wp--preset--font-size--xxl); font-weight: 800; color: var(--navy-900); font-variant-numeric: tabular-nums; line-height: 1.1; }
.pdp__buy .woocommerce-price-suffix { font-size: var(--wp--preset--font-size--sm); font-weight: 500; color: var(--gray-500); }
.pdp__buy .stock { margin: 0 0 .75rem; font-weight: 700; font-size: var(--wp--preset--font-size--sm); }
.pdp__buy .stock.in-stock { color: var(--green); }
.pdp__buy .stock.out-of-stock { color: var(--red); }
.pdp__buy form.cart { display: flex; gap: .75rem; align-items: stretch; margin: 0; }
.pdp__buy form.cart .quantity input { width: 4.5rem; min-height: 48px; text-align: center; font: inherit; border: 1.5px solid var(--gray-500); border-radius: var(--r-sm); }
.pdp__buy form.cart .single_add_to_cart_button { flex: 1; min-height: 48px; }
.pdp__summary .wp-block-post-excerpt__excerpt { margin: 0; color: var(--gray-700); }
.qty-row { display: flex; gap: .75rem; }
.qty-row .input { width: 5rem; text-align: center; }
.qty-row .btn { flex: 1; }
.pdp__assure { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: var(--wp--preset--font-size--sm); }
.pdp__assure li { display: flex; gap: .5rem; align-items: center; }
.pdp__assure .icon { color: var(--green); }
.fits-box { margin-top: 1.25rem; }
.fits-box h2 { font-size: var(--wp--preset--font-size--lg); margin: 0 0 .5rem; }
.fits-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.fits-box li { display: flex; gap: .5rem; align-items: baseline; }
.fits-box li .icon { color: var(--green); }
.tabs-section { margin-top: 3rem; display: grid; gap: 2.5rem; grid-template-columns: 2fr 1fr; }
@media (max-width: 860px) { .tabs-section { grid-template-columns: 1fr; } }
.prose { max-width: 70ch; }
.wp-block-post-content.prose { max-width: none; } /* constrained layout already caps text at 720px; lets alignwide blocks widen */
.prose h2 { font-size: var(--wp--preset--font-size--xl); margin: 2rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose ol, .prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .4rem; }

/* ---------- Content pages ---------- */
.lede { font-size: var(--wp--preset--font-size--lg); color: var(--gray-700); }
.finder-page .finder { box-shadow: none; border: 1px solid var(--gray-200); margin-block: 1.5rem 2.5rem; }
.wp-block-details { border: 1px solid var(--gray-200); border-radius: var(--r-md); padding: 0; margin-block: .5rem; background: var(--white); }
.wp-block-details summary { cursor: pointer; padding: 1rem 2.75rem 1rem 1.125rem; font-weight: 700; color: var(--navy-900); list-style: none; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 1.125rem; top: 50%; transform: translateY(-50%); font-size: var(--wp--preset--font-size--xl); font-weight: 500; color: var(--gray-500); }
.wp-block-details[open] summary::after { content: "\2212"; }
.wp-block-details[open] summary { border-bottom: 1px solid var(--gray-100); }
.wp-block-details > :not(summary) { padding: .25rem 1.125rem 1rem; margin: 0; }
main > .wp-block-post-title { font-size: var(--wp--preset--font-size--display); margin-bottom: .5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; max-width: 1000px !important; }
.contact-grid .grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 1rem; margin-top: 1rem; }
.contact-form textarea.input { min-height: 140px; resize: vertical; }
.contact-form input[type="file"].input { padding: .6rem; }
.contact-card h3 { margin: 0 0 .25rem; font-size: var(--wp--preset--font-size--md); }
.contact-card p + h3 { margin-top: 1.25rem; }
.contact-phone { font-size: var(--wp--preset--font-size--xl); font-weight: 800; margin: 0; }
.contact-phone a { color: var(--navy-900); text-decoration: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Help panel ---------- */
.help-panel { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1.5rem; border-radius: var(--r-md); background: var(--amber-50); border: 1px solid var(--amber); }
.help-panel strong { display: block; font-size: var(--wp--preset--font-size--lg); color: var(--navy-900); }
.help-panel p { margin: .25rem 0 0; color: var(--gray-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--on-navy-muted); font-size: var(--wp--preset--font-size--sm); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); padding-block: 3rem 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h2 { color: var(--white); font-size: var(--wp--preset--font-size--md); margin: 0 0 .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-brand img { width: 194px; height: auto; margin-bottom: .75rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.25rem; font-size: var(--wp--preset--font-size--xs); display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }

@media (max-width: 520px) {
  .trust-strip ul { grid-template-columns: 1fr; }
  .trust-strip li { padding: .75rem 0; border-left: 0 !important; }
  .trust-strip li + li { border-top: 1px solid var(--gray-100); }
  .product-card__body { padding: .75rem; }
  .product-card__foot { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .price { font-size: var(--wp--preset--font-size--lg); }
  .brand-tile { padding: .875rem 1rem; font-size: var(--wp--preset--font-size--md); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Checkout header (WooCommerce checkout template part, D-047) */
.checkout-header { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray-200); }
.checkout-header .header-logo img { width: 200px; height: auto; }
.checkout-header__secure { font-size: var(--wp--preset--font-size--sm); color: var(--gray-700); font-weight: 600; }

.checkout-header__phone { display: block; font-weight: 400; font-size: var(--wp--preset--font-size--sm); text-align: right; }

/* Sticky Add to cart (phones only, D-062) */
.sticky-buy { display: none; }
@media (max-width: 860px) {
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 1rem; padding: .625rem 1rem calc(.625rem + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--gray-200); box-shadow: 0 -4px 14px rgba(22,38,77,.10); transform: translateY(110%); transition: transform .2s ease; }
  .sticky-buy.is-visible { transform: translateY(0); }
  .sticky-buy__price { font-weight: 800; font-size: var(--wp--preset--font-size--lg); color: var(--navy-900); }
  .sticky-buy__btn { min-height: 44px; padding-inline: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .sticky-buy { transition: none; } }

/* Product list: filters sidebar + results (Baymard; D-062) */
.list-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.list-results .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.list-count { margin: 0 0 1rem; color: var(--gray-700); font-size: var(--wp--preset--font-size--sm); }
.filters__panel > summary { display: none; }
.filters__group { margin-bottom: 1.5rem; }
.filters__title { font-size: var(--wp--preset--font-size--md); margin: 0 0 .5rem; color: var(--navy-900); }
.filters ul { list-style: none; margin: 0; padding: 0; }
.filters li a { display: block; padding: .375rem .5rem; border-radius: var(--r-sm, 6px); color: var(--ink); text-decoration: none; }
.filters li a:hover { background: var(--gray-50); }
.filters li a.is-on { background: var(--amber-50); font-weight: 700; color: var(--navy-900); }
@media (max-width: 860px) {
  .list-layout { grid-template-columns: 1fr; gap: 1rem; }
  .list-results .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters__panel { border: 1px solid var(--gray-200); border-radius: var(--r-md, 10px); padding: .25rem 1rem; }
  .filters__panel > summary { display: list-item; cursor: pointer; font-weight: 700; padding: .625rem 0; color: var(--navy-900); }
  .filters__panel[open] { padding-bottom: .75rem; }
  .filters__group { margin-bottom: 1rem; }
  .filters ul { display: flex; flex-wrap: wrap; gap: .375rem; }
  .filters li a { border: 1px solid var(--gray-200); padding: .5rem .75rem; min-height: 40px; display: flex; align-items: center; }
}

/* Header search suggestions (D-062) */
.search-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 80; list-style: none; margin: 0; padding: .25rem 0; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md, 10px); box-shadow: var(--shadow-md); max-height: 70vh; overflow-y: auto; }
.search-suggest a { display: flex; flex-direction: column; gap: .125rem; padding: .5rem .875rem; color: var(--ink); text-decoration: none; }
.search-suggest li.is-active a, .search-suggest a:hover { background: var(--gray-50); }
.search-suggest__t { font-weight: 600; font-size: var(--wp--preset--font-size--sm); }
.search-suggest__m { font-size: var(--wp--preset--font-size--xs); color: var(--gray-700); }
.search-suggest__all { border-top: 1px solid var(--gray-100); font-weight: 600; color: var(--link) !important; }

/* eBay rating line (D-062) */
.ebay-rating { display: flex; align-items: center; gap: .375rem; margin: .25rem 0 .75rem; font-size: var(--wp--preset--font-size--sm); color: var(--gray-700); }
.ebay-rating .icon { width: 1.1em; height: 1.1em; color: var(--amber-dark); }

.battery-warning { margin-top: 1.25rem; font-size: var(--wp--preset--font-size--sm); } /* D-076 */
@media (max-width: 600px) { .brand-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: .75rem; } .brand-tile--logo .brand-tile__logo { height: 2.25rem; } .brand-tile small { display: none; } } /* D-077/078: rows size to their own content on phones */

/* Page numbers as one joined bar (Stuart #1553, item 5) */
.list-results .pagination { margin-top: 2rem; }
.list-results .nav-links { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--gray-200); border-radius: var(--r-sm); overflow: hidden; background: var(--white); }
.list-results .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .9rem; border-left: 1px solid var(--gray-200); color: var(--navy); font-weight: 600; text-decoration: none; }
.list-results .page-numbers:first-child { border-left: 0; }
.list-results a.page-numbers:hover { background: var(--gray-50); }
.list-results .page-numbers.current { background: var(--navy); color: var(--white); }
.list-results .page-numbers.dots { color: var(--gray-500); font-weight: 500; }

/* "Find it" strip above category products and the two-way help panel (item 4) */
.find-strip { margin: -.5rem 0 1.5rem; font-size: var(--wp--preset--font-size--sm); color: var(--gray-700); }
.help-panel__actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
/* Photo check progress, aftermarket note and team hand-off (Jared #1534) */
.identify__progress { display: grid; gap: .5rem; }
.identify__bar { display: block; height: 8px; border-radius: 999px; background: var(--gray-200); overflow: hidden; }
.identify__bar i { display: block; height: 100%; width: 0; background: var(--navy); border-radius: 999px; transition: width .2s linear; }
.identify__step { margin: 0; font-size: var(--wp--preset--font-size--sm); color: var(--gray-700); }
.identify__generic { margin: .35rem 0 0; font-size: var(--wp--preset--font-size--sm); color: var(--gray-700); padding-left: .6rem; border-left: 3px solid var(--amber); }
.identify__team { margin-top: 1.5rem; }
@media (prefers-reduced-motion: reduce) { .identify__bar i { transition: none; } }

/* Guides page (Stuart #1553, item 10; Remote Pro style) */
.btn--sm { min-height: 40px; padding: .45rem .85rem; font-size: var(--wp--preset--font-size--sm); }
.guides { margin: 1.5rem 0 3rem; }
.guides__search { max-width: 560px; margin-bottom: 1.5rem; }
.guides__search .input { width: 100%; }
.guides__none { margin-top: .75rem; color: var(--gray-700); }
.guides__brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 2.5rem; }
.guides__brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; min-height: 96px; padding: .9rem; border: 1px solid var(--gray-200); border-radius: var(--r-md); background: var(--white); text-decoration: none; color: var(--navy-900); font-weight: 600; text-align: center; }
.guides__brand:hover { border-color: var(--navy); }
.guides__brand img { max-width: 110px; max-height: 40px; width: auto; height: auto; object-fit: contain; }
.guides__brand small { color: var(--gray-500); font-weight: 500; }
.guides__group { margin-top: 2.5rem; scroll-margin-top: 1.5rem; }
.guides__group h2 { font-size: var(--wp--preset--font-size--xl); margin: 0 0 1rem; }
.guides__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.guide-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--gray-200); border-radius: var(--r-md); background: var(--white); }
.guide-card__media { flex: none; width: 88px; height: 88px; display: grid; place-items: center; background: var(--gray-50); border-radius: var(--r-sm); overflow: hidden; }
.guide-card__media img { width: 100%; height: 100%; object-fit: contain; }
.guide-card__name { display: block; font-weight: 700; color: var(--navy-900); text-decoration: none; line-height: 1.3; }
.guide-card__name:hover { text-decoration: underline; }
.guide-card__suits { margin: .35rem 0 0; font-size: var(--wp--preset--font-size--sm); color: var(--gray-700); }
.guide-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
@media (max-width: 600px) { .guides__cards { grid-template-columns: 1fr; } }
/* Let the guides break out of the narrow page text column on wide screens. */
@media (min-width: 900px) { .guides { max-width: none !important; width: min(1180px, calc(100vw - 3rem)); margin-left: calc((100% - min(1180px, calc(100vw - 3rem))) / 2) !important; margin-right: 0 !important; } }
.guides ul.guides__cards { padding-left: 0; margin-left: 0; }
.guides .guides__cards > li, .guides .guides__cards > li + li { margin: 0; }

/* The guides search hides cards with the hidden attribute; card and grid display rules must not override it. */
.guides [hidden] { display: none !important; }

/* Item 21: wpautop leaves empty <p> elements inside cards; each one added an extra flex gap above the title. */
.product-card__body > p:empty, .product-card__body > br { display: none; }

/* Item 22 (Stuart #1588): phones fold the menu behind a Menu button; desktop keeps the full row. */
.nav-menu-btn { display: none; }
@media (max-width: 860px) {
  .nav-menu-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .6rem; background: none; border: 0; border-radius: var(--r-sm); color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }
  .nav-menu-btn:hover { background: var(--gray-50); }
  .has-nav-toggle .primary-nav:not(.is-open) { display: none; }
  .has-nav-toggle .primary-nav.is-open { box-shadow: 0 6px 14px rgba(22, 38, 77, .08); }
}

/* Item 23: shorter card titles on phones (three lines max; the full name is on the product page). */
@media (max-width: 600px) {
  .product-card__title { font-size: var(--wp--preset--font-size--sm); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .product-card__fits { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--wp--preset--font-size--xs); }
  .product-card__body { padding: .75rem .8rem .9rem; }
}

/* Items 19-20: brand row above the all-remotes grid; brand list and help in the sidebar. */
.brand-strip { margin: 0 0 1.75rem; }
.brand-strip__label { margin: 0 0 .6rem; font-weight: 700; color: var(--navy-900); }
.brand-strip__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; }
.brand-strip__tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 78px; padding: .6rem; border: 1px solid var(--gray-200); border-radius: var(--r-md); background: var(--white); color: var(--navy-900); text-decoration: none; font-weight: 600; font-size: var(--wp--preset--font-size--sm); text-align: center; }
.brand-strip__tile:hover { border-color: var(--navy); }
.brand-strip__tile img { max-width: 92px; max-height: 30px; width: auto; height: auto; object-fit: contain; }
.filters__count { color: var(--gray-500); font-weight: 500; font-size: var(--wp--preset--font-size--xs); }
.filters__help { margin-top: .5rem; padding: 1rem; border-radius: var(--r-md); background: var(--gray-50); }
.filters__help .filters__title { font-size: var(--wp--preset--font-size--sm); }
.filters__help li a { padding: .3rem 0; color: var(--link); font-size: var(--wp--preset--font-size--sm); }
@media (min-width: 861px) { .filters { position: sticky; top: 9.5rem; max-height: calc(100vh - 10.5rem); overflow-y: auto; } }
@media (max-width: 600px) { .brand-strip__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; } .brand-strip__tile { min-height: 64px; padding: .45rem; font-size: var(--wp--preset--font-size--xs); } .brand-strip__tile img { max-width: 76px; max-height: 24px; } }

/* Items 24-26: own range panel, gate brand grid */
.brand-grid--gate { margin-bottom: .75rem; }
.own-range { display: flex; gap: 1.5rem; align-items: center; margin: 2.5rem 0 1.5rem; padding: 1.5rem; border: 1px solid var(--gray-200); border-radius: var(--r-md); background: var(--gray-50); }
.own-range img { flex: none; width: 160px; height: auto; }
.own-range h2 { font-size: var(--wp--preset--font-size--lg); margin: 0 0 .35rem; }
.own-range p { margin: 0 0 .75rem; color: var(--gray-700); }
@media (max-width: 600px) { .own-range { flex-direction: column; align-items: flex-start; } }
.gva-table { margin: 1.5rem 0 2rem; } .gva-table th[scope=row] { width: 26%; background: var(--gray-50); } .gva-table td { width: 37%; }

.cart-ship-note { margin: .25rem 16px .75rem; padding: .6rem .75rem; border-radius: var(--r-sm); background: var(--gray-50); font-size: var(--wp--preset--font-size--sm); color: var(--gray-700); }

/* Free tracked delivery progress (cart) */
.freeship { margin: .25rem 16px .9rem; padding: .75rem .85rem; border-radius: var(--r-sm); background: var(--gray-50); }
.freeship__msg { margin: 0 0 .5rem; font-size: var(--wp--preset--font-size--sm); color: var(--navy-900); }
.freeship__bar { height: 8px; border-radius: 999px; background: var(--gray-200); overflow: hidden; }
.freeship__bar i { display: block; height: 100%; background: var(--amber); border-radius: 999px; transition: width .25s ease; }
.freeship.is-done .freeship__bar i { background: var(--success, #1f7a4d); }
.freeship__sub { margin: .5rem 0 0; font-size: var(--wp--preset--font-size--xs); color: var(--gray-700); }
[data-freeship-parcel] .freeship__msg { margin: 0; }
@media (prefers-reduced-motion: reduce) { .freeship__bar i { transition: none; } }
