/* ============================================
   RED LINE SUPERSTORE — Universal Styles
   The ONE source of truth for shared component CSS. Light-only.
   Markup is Bootstrap 5.3 first; these rules only add the brand skin
   and the handful of components Bootstrap does not ship.
   Page-specific rules live in css/pages/[name].css, scoped .page-[name].
   ============================================ */

/* ---- GLOBAL ---- */
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--brand-text-body);
    background: var(--brand-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img { max-width: 100%; height: auto; }
/* Header/footer carry both logo variants in the markup so a dark-theme toggle
   needs no JS swap — only one is ever visible per theme. Default (light) shows
   the dark-ink logo; [data-bs-theme="dark"] flips to the light/white logo. */
.logo-theme-light { display: none; }
[data-bs-theme="dark"] .logo-theme-dark { display: none; }
[data-bs-theme="dark"] .logo-theme-light { display: inline-block; }
/* Contain absolutely positioned .visually-hidden text inside scrolling tables, or it widens the page. */
.table-responsive { position: relative; }
a { text-decoration: none; transition: color var(--transition-fast); }
:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: 2px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 2000; background: var(--brand-charcoal); color: #fff; padding: .6rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; color: #fff; }

h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: var(--tracking-tight);
    color: var(--brand-text);
}
h1,.h1 { font-size: var(--text-4xl); }
h2,.h2 { font-size: var(--text-3xl); }
h3,.h3 { font-size: var(--text-2xl); font-weight: 700; }
h4,.h4 { font-size: var(--text-xl); font-weight: 700; }
h5,.h5 { font-size: var(--text-lg); font-weight: 700; letter-spacing: var(--tracking-wide); }
h6,.h6 { font-size: var(--text-base); font-weight: 700; letter-spacing: var(--tracking-wide); }
.lead { font-size: var(--text-md); font-weight: 400; line-height: 1.65; color: var(--brand-text-body); }
.text-steel { color: var(--brand-text-secondary) !important; }
.text-red { color: var(--brand-primary) !important; }
.text-navy { color: var(--brand-secondary) !important; }
.fw-display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; }

.section { padding-block: var(--section-py); }
.section-sm { padding-block: var(--section-py-sm); }
.section-alt { background: var(--brand-bg-alt); }
.section-soft { background: var(--brand-bg-soft); }
.section-dark { background: var(--brand-ink); color: var(--brand-text-on-dark-2); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--brand-text-on-dark); }
.section-dark .eyebrow { color: var(--brand-primary-on-dark); }
.section-dark .lead, .section-dark p { color: var(--brand-text-on-dark-2); }
/* Photo heroes can put bright spray or sky behind the eyebrow, so it goes white (the red/navy bar stays) */
.page-hero:not(.page-hero-plain) .eyebrow { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }

/* ---- EYEBROW — skewed racing tag ---- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--font-heading); font-weight: 700; font-size: var(--text-sm);
    letter-spacing: var(--tracking-widest); text-transform: uppercase;
    color: var(--brand-primary); margin-bottom: .75rem;
}
.eyebrow::before {
    content: ""; width: 26px; height: 10px; flex: none;
    background: linear-gradient(90deg, var(--brand-primary) 0 55%, transparent 55% 70%, var(--brand-secondary) 70% 100%);
    transform: skewX(var(--skew));
}
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.text-center { margin-inline: auto; }
.section-head.text-center .eyebrow { justify-content: center; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head-row .section-head { margin-bottom: 0; }
.link-arrow { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--brand-primary); display: inline-flex; align-items: center; gap: .5rem; }
.link-arrow i, .link-arrow span[class*="fa-"] { transition: transform var(--transition-fast); }
.link-arrow:hover i, .link-arrow:hover span[class*="fa-"] { transform: translateX(4px); }

/* Racing stripe divider */
.race-stripe { height: 6px; background: linear-gradient(90deg, var(--brand-primary) 0 70%, #fff 70% 72%, var(--brand-secondary) 72% 100%); }

/* ---- UTILITY BAR ---- */
.utility-bar { background: var(--brand-ink); color: var(--brand-text-on-dark-2); font-size: var(--text-sm); }
.utility-bar .container-xl { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 1rem; }
.utility-bar a { color: var(--brand-text-on-dark-2); }
.utility-bar a:hover { color: #fff; }
.utility-bar .util-promo { color: #fff; font-family: var(--font-heading); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.utility-bar .util-promo i, .utility-bar .util-promo span[class*="fa-"] { color: var(--brand-primary-on-dark); }
.utility-bar .util-links { display: flex; gap: 1.25rem; align-items: center; }
@media (max-width: 767.98px) { .utility-bar .util-links { display: none; } .utility-bar .container-xl { justify-content: center; } }

/* ---- HEADER / NAVBAR ---- */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff;transition: box-shadow var(--transition-base); }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.site-header .navbar { --bs-navbar-padding-y: 0; min-height: 76px; position: static; }
.site-header .container-xl { position: static; }
.navbar-brand img { height: 46px; width: auto; }
.navbar-rl .navbar-nav .nav-link {
    font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
    text-transform: uppercase; letter-spacing: var(--tracking-wide);
    color: var(--brand-text); padding: 1.6rem .8rem; position: relative;
}
.navbar-rl .navbar-nav .nav-link::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 1.1rem; height: 3px;
    background: var(--brand-primary); transform: scaleX(0) skewX(var(--skew)); transform-origin: left; transition: transform var(--transition-base);
}
.navbar-rl .navbar-nav .nav-link:hover::after,
.navbar-rl .navbar-nav .nav-link.active::after,
.navbar-rl .navbar-nav .show > .nav-link::after { transform: scaleX(1) skewX(var(--skew)); }
.navbar-rl .navbar-nav .nav-link.active { color: var(--brand-primary); }
.navbar-rl .dropdown-toggle::after { display: none; }
.nav-divider { width: 1px; height: 28px; background: var(--brand-border); margin-inline: .5rem; align-self: center; }
.nav-actions { display: flex; align-items: center; gap: .25rem; }
.btn-icon {
    position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; background: transparent; color: var(--brand-text); border-radius: var(--radius-sm); font-size: 1.15rem;
}
.btn-icon:hover { background: var(--brand-bg-alt); color: var(--brand-primary); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--radius-sm); background: var(--brand-primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }

/* Mega menu — a Bootstrap .dropdown-menu stretched across the header.
   Bootstrap makes every .dropdown position:relative, which would pin the menu to the
   width of its own nav item; the item is static so the sticky .site-header is the anchor. */
.navbar-rl .nav-item.dropdown { position: static; }
.navbar-rl .navbar-nav .mega-menu.dropdown-menu { position: absolute; left: 0; right: 0; top: 100%; width: 100%; margin: 0; padding: 2rem 0; border: 0; border-top: 3px solid var(--brand-primary); box-shadow: var(--shadow-lg); border-radius: 0; transform: none; }
@media (min-width: 1200px) {
    .navbar-rl .nav-item.dropdown:hover > .mega-menu,
    .navbar-rl .nav-item.dropdown:focus-within > .mega-menu { display: block; }
}
.mega-menu .mega-title { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-xl); text-transform: uppercase; color: var(--brand-text); margin-bottom: .75rem; }
.mega-menu .mega-links a { display: flex; align-items: center; gap: .5rem; padding: .45rem 0; color: var(--brand-text-body); font-weight: 500; }
.mega-menu .mega-links a:hover { color: var(--brand-primary); }
.mega-menu .mega-links a i, .mega-menu .mega-links a span[class*="fa-"] { color: var(--brand-primary); font-size: .8rem; }
.mega-brands { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.mega-brands a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: .6rem; border: 1px solid var(--brand-border); border-radius: var(--radius-md); background: #fff; font-size: var(--text-xs); color: var(--brand-text-secondary); text-align: center; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.mega-brands a:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-sm); color: var(--brand-primary); }
.mega-brands img { max-height: 42px; width: auto; }
.mega-feature { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; min-height: 220px; height: 100%; color: #fff; }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--brand-ink-rgb), .05), rgba(var(--brand-ink-rgb), .88)); }
.mega-feature .mega-feature-body { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.1rem; z-index: 1; }
.mega-feature .mega-feature-body strong { display: block; font-family: var(--font-heading); font-size: var(--text-xl); text-transform: uppercase; line-height: 1.1; }
.mega-feature .mega-feature-body span { font-size: var(--text-sm); color: var(--brand-text-on-dark-2); }

/* Mobile offcanvas nav */
.offcanvas-nav .accordion-button { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: 1.1rem; }
.offcanvas-nav .list-group-item { border-inline: 0; }
.offcanvas-nav .mobile-link { display: block; padding: .9rem 1.25rem; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: 1.1rem; color: var(--brand-text); border-bottom: 1px solid var(--brand-border); }
.offcanvas-nav button.mobile-link { width: 100%; text-align: start; background: transparent; border: 0; border-bottom: 1px solid var(--brand-border); }

/* Search offcanvas */
.offcanvas-search { height: auto !important; }
.offcanvas-search .form-control { font-size: 1.25rem; padding: 1rem 1.25rem; }
.search-suggest a { display: inline-block; margin: .25rem .35rem .25rem 0; }
.offcanvas-search .offcanvas-body { max-height: 100vh; overflow-y: auto; }

/* Findbar live search inside the search panel (html/mod_j2commerce_findbar/bootstrap5/*) */
.rl-findbar { font-size: 1rem; }
.rl-findbar .input-group { flex-wrap: nowrap; }
.rl-findbar .j2c-findbar__field { flex: 1 1 auto; min-width: 0; }
.rl-findbar .j2c-findbar__input { padding-right: 3rem; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.rl-findbar .input-group > .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
/*.rl-findbar .j2c-findbar__input:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: -3px; box-shadow: none; }*/
.rl-findbar .j2c-findbar__clear { right: .75rem; width: 2rem; height: 2rem; border-radius: var(--radius-sm); color: var(--brand-text); background: var(--brand-bg-alt); box-shadow: none; }
.rl-findbar .j2c-findbar__clear:hover, .rl-findbar .j2c-findbar__clear:focus-visible { background: var(--brand-primary); color: #fff; box-shadow: none; }
.rl-findbar .j2c-findbar__clear:focus-visible { outline: 3px solid var(--brand-primary); }
.rl-findbar .j2c-findbar__panel { position: static; margin-top: .75rem; border: 1px solid var(--brand-border); border-radius: var(--radius-sm); box-shadow: none; max-height: min(30rem, 60vh); }
.rl-findbar .j2c-findbar__item > a { align-items: center; gap: 1rem; padding: .6rem .9rem; color: var(--brand-text); }
.rl-findbar .j2c-findbar__item > a:hover, .rl-findbar .j2c-findbar__item[aria-selected="true"] > a { background: var(--brand-bg-alt); }
.rl-findbar .j2c-findbar__item[aria-selected="true"] > a, .rl-findbar .j2c-findbar__link:focus-visible, .rl-findbar .j2c-findbar__showall-btn:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: -3px; }
.rl-findbar .j2c-findbar__thumb-wrap { background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius-sm); }
.rl-findbar .j2c-findbar__title { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; line-height: 1.15; }
.rl-findbar .j2c-findbar__title mark { padding: 0; background: transparent; color: var(--brand-primary); }
.rl-findbar .j2c-findbar__price { font-family: var(--font-display); font-weight: 700; color: var(--brand-text); }
.rl-findbar .j2c-findbar__status { color: var(--brand-text-secondary); }
.rl-findbar .j2c-findbar__showall-btn { font-family: var(--font-heading); text-transform: uppercase; color: var(--brand-primary); }
@media (max-width: 575.98px) {
    .offcanvas-search .form-control { font-size: 1rem; padding: .75rem .9rem; }
    .rl-findbar .input-group > .btn { padding-inline: .9rem; }
    .rl-findbar .j2c-findbar__thumb-wrap { --j2c-findbar-img-width: 72px !important; }
}

/* ---- HERO (home) ---- */
.hero-rl { position: relative; min-height: clamp(520px, 78vh, 760px); display: flex; align-items: center; overflow: hidden; background: var(--brand-ink); color: #fff; isolation: isolate; }
.hero-rl .hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-rl .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-rl::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(var(--brand-ink-rgb), .92) 0%, rgba(var(--brand-ink-rgb), .72) 38%, rgba(var(--brand-ink-rgb), .15) 72%, rgba(var(--brand-ink-rgb), 0) 100%); }
.hero-rl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: #fff; clip-path: polygon(0 100%, 100% 30%, 100% 100%); }
.hero-tag { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; margin-bottom: 1.25rem; background: var(--brand-primary); color: #fff; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-widest); font-size: var(--text-sm); transform: skewX(var(--skew)); }
.hero-tag > * { transform: skewX(calc(var(--skew) * -1)); }
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-5xl); line-height: .95; color: #fff; text-transform: uppercase; max-width: 13ch; margin-bottom: 1.25rem; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero-title em { font-style: italic; color: var(--brand-primary-on-dark); }
.hero-sub { font-size: var(--text-md); line-height: 1.65; color: #E4E6EA; max-width: 52ch; margin-bottom: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; padding: 0; list-style: none; font-size: var(--text-sm); color: #E4E6EA; }
.hero-points i, .hero-points span[class*="fa-"] { color: var(--brand-primary-on-dark); margin-right: .4rem; }

/* ---- PAGE HERO (interior) ---- */
.page-hero { position: relative; background: var(--brand-ink); color: #fff; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); overflow: hidden; isolation: isolate; }
.page-hero .page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--brand-ink-rgb), .93) 0%, rgba(var(--brand-ink-rgb), .75) 45%, rgba(var(--brand-ink-rgb), .35) 100%); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 36px; background: var(--page-hero-cut, #fff); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero .lead { color: #E4E6EA; max-width: 62ch; margin-bottom: 0; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: #B9BEC5; --bs-breadcrumb-item-active-color: #fff; margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: #B9BEC5; }
.page-hero .breadcrumb a:hover { color: #fff; }
/* Action-photo hero: taller, scrim fades out so the wrapped vehicle on the right stays vivid */
.page-hero-action { min-height: clamp(420px, 62vh, 640px); display: flex; align-items: center; }
.page-hero-action > .container-xl { width: 100%; }
.page-hero-action .page-hero-bg img { object-position: 70% 50%; }
.page-hero-action::before { background: linear-gradient(95deg, rgba(var(--brand-ink-rgb), .92) 0%, rgba(var(--brand-ink-rgb), .7) 35%, rgba(var(--brand-ink-rgb), .12) 65%, rgba(var(--brand-ink-rgb), 0) 100%); }
.page-hero-action h1, .page-hero-action .lead { text-shadow: 0 2px 16px rgba(0, 0, 0, .45); }
.hero-design-credit { font-size: var(--text-sm); color: var(--brand-text-on-dark-2); }
.hero-design-credit a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767.98px) { .page-hero-action::before { background: linear-gradient(180deg, rgba(var(--brand-ink-rgb), .55) 0%, rgba(var(--brand-ink-rgb), .9) 100%); } }
.page-hero-plain { background: var(--brand-bg-alt); color: var(--brand-text-body); padding-block: 2rem 2.25rem; border-bottom: 1px solid var(--brand-border); }
.page-hero-plain::before, .page-hero-plain::after { display: none; }
.page-hero-plain h1 { color: var(--brand-text); font-size: var(--text-3xl); margin-bottom: .25rem; }
.page-hero-plain .lead { color: var(--brand-text-body); }
.page-hero-plain .breadcrumb { --bs-breadcrumb-divider-color: #8A9099; --bs-breadcrumb-item-active-color: var(--brand-text); margin-bottom: .6rem; }
.page-hero-plain .breadcrumb a { color: var(--brand-text-secondary); }
.page-hero-plain .breadcrumb a:hover { color: var(--brand-primary); }
.page-hero.hero-cut-alt::after { background: var(--brand-bg-alt); }

/* ---- KIT FINDER ---- */
.kit-finder { position: relative; z-index: 3; margin-top: -4.5rem; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: clamp(1.25rem, 3vw, 2rem); border-top: 4px solid var(--brand-primary); }
.kit-finder .kf-title { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: var(--text-xl); margin: 0; }
.kit-finder .form-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--brand-text-secondary); font-weight: 700; margin-bottom: .3rem; }

/* ---- VEHICLE TYPE TILES ---- */
.type-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; height: 100%; padding: 1.25rem .75rem 1rem; background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius-sm); text-align: center; color: var(--brand-text); position: relative; overflow: hidden; transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base); }
.type-tile img { width: 110px; height: auto; transition: transform var(--transition-base); }
.type-tile .type-name { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lg); text-transform: uppercase; line-height: 1; }
.type-tile .type-meta { font-size: var(--text-xs); color: var(--brand-text-secondary); }
.type-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--brand-primary); transform: scaleX(0); transition: transform var(--transition-base); }
.type-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; color: var(--brand-primary); }
.type-tile:hover img { transform: scale(1.06); }
.type-tile:hover::after { transform: scaleX(1); }

/* ---- IMAGE PROMO TILE ---- */
.promo-tile { position: relative; display: flex; align-items: flex-end; min-height: 320px; height: 100%; padding: 1.75rem; border-radius: var(--radius-sm); overflow: hidden; color: #fff; isolation: isolate; }
.promo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform var(--transition-slow); }
.promo-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--brand-ink-rgb), 0) 25%, rgba(var(--brand-ink-rgb), .9) 100%); }
.promo-tile:hover img { transform: scale(1.05); }
.promo-tile h3 { color: #fff; margin-bottom: .35rem; }
.promo-tile p { color: #E4E6EA; margin-bottom: .9rem; }
.promo-tile .link-arrow { color: #fff; }
.promo-tile .link-arrow::before { content: ""; width: 18px; height: 3px; background: var(--brand-primary); transform: skewX(var(--skew)); }

/* ---- ACTION TILE (wrapped-and-ridden photography) ---- */
.action-tile { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--brand-ink-2); isolation: isolate; }
.action-tile-lg { height: 100%; min-height: 100%; }
.action-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform var(--transition-slow); }
.action-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--brand-ink-rgb), 0) 45%, rgba(var(--brand-ink-rgb), .85) 100%); }
.action-tile::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 4px; background: var(--brand-primary); transition: width var(--transition-base); }
.action-tile:hover img { transform: scale(1.06); }
.action-tile:hover::after, .action-tile:focus-visible::after { width: 100%; }
.action-caption { position: absolute; left: 1rem; right: 1rem; bottom: .85rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; }
.action-type { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: var(--text-lg); color: #fff; line-height: 1; }
.action-design { font-size: var(--text-sm); color: var(--brand-text-on-dark-2); }
.action-tile-lg .action-type { font-size: var(--text-2xl); }
@media (max-width: 991.98px) { .action-tile-lg { height: auto; } }

/* ---- PRODUCT CARD (Bootstrap .card) ---- */
.card-product { height: 100%; overflow: hidden; transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base); }
.card-product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-product .card-media { position: relative; display: block; aspect-ratio: 3 / 2; background: #fff; border-bottom: 1px solid var(--brand-border); overflow: hidden; }
.card-product .card-media-link { display: block; width: 100%; height: 100%; }
.card-product .card-media img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; transition: transform var(--transition-slow); }
.card-product:hover .card-media img { transform: scale(1.05); }
.card-product .card-badges { position: absolute; top: .6rem; left: .6rem; display: flex; flex-wrap: wrap; gap: .35rem; z-index: 1; }
.card-product .card-body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.1rem; }
.card-product .card-brand { font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--brand-text-secondary); margin: 0; }
.card-product .card-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; line-height: 1.15; margin: 0; }
.card-product .card-title a { color: var(--brand-text); }
.card-product .card-title a::after { content: ""; position: absolute; inset: 0; }
.card-product .card-title a:hover { color: var(--brand-primary); }
.card-product .card-fit { font-size: var(--text-sm); color: var(--brand-text-secondary); margin: 0; }
.card-product .card-fit-design { color: var(--brand-text-body); }
.card-product .card-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.card-product .card-price { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--brand-text); line-height: 1; }
.card-product .card-price small { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 500; color: var(--brand-text-secondary); text-transform: none; margin-right: .25rem; }
.card-product .card-price-base { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; color: var(--brand-text-secondary); margin-left: .35rem; }
/* Decorative (aria-hidden, no href) — must NOT out-stack .card-title a::after's inset:0
   stretched link (see card.php), or clicks on this text/icon are swallowed by an inert
   span instead of reaching the full-card link underneath. */
.card-product .card-cta { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: var(--text-sm); color: var(--brand-primary); }
.badge-premade { background: var(--brand-charcoal); color: #fff; }
.badge-years { background: var(--brand-charcoal); color: #fff; }
.badge-custom { background: var(--brand-secondary); color: #fff; }
.badge-new { background: var(--brand-primary); color: #fff; }

/* ---- DESIGN CARD ---- */
.design-card { display: block; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #fff; border: 1px solid var(--brand-border); color: var(--brand-text); transition: transform var(--transition-base), box-shadow var(--transition-base); }
.design-card .design-media { aspect-ratio: 300 / 198; overflow: hidden; background: var(--brand-bg-alt); }
.design-card .design-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.design-card .design-name { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .9rem; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.design-card .design-name i, .design-card .design-name span[class*="fa-"] { color: var(--brand-primary); transition: transform var(--transition-fast); }
.design-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--brand-primary); }
.design-card:hover img { transform: scale(1.07); }
.design-card:hover .design-name i, .design-card:hover .design-name span[class*="fa-"] { transform: translateX(3px); }

/* ---- BRAND TILE ---- */
.brand-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; height: 100%; padding: 1.1rem .75rem .9rem; background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius-sm); color: var(--brand-text-secondary); font-size: var(--text-sm); font-weight: 500; text-align: center; transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast); }
.brand-tile img { max-height: 58px; width: auto; filter: grayscale(1); opacity: .85; transition: filter var(--transition-base), opacity var(--transition-base); }
.brand-tile:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--brand-primary); }
.brand-tile:hover img { filter: none; opacity: 1; }

/* ---- TRUST STRIP ---- */
.trust-strip { background: var(--brand-bg-alt); border-block: 1px solid var(--brand-border); }
.trust-item { display: flex; align-items: center; gap: .9rem; }
.trust-item .trust-icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: #fff; color: var(--brand-primary); border: 2px solid var(--brand-primary); transform: skewX(var(--skew)); font-size: 1.2rem; }
.trust-item .trust-icon > i, .trust-item .trust-icon > span[class*="fa-"], .trust-item .trust-icon > span { transform: skewX(calc(var(--skew) * -1)); }
.trust-item strong { display: block; font-family: var(--font-heading); text-transform: uppercase; font-size: 1.05rem; color: var(--brand-text); line-height: 1.1; }
.trust-item > div > span { font-size: var(--text-sm); color: var(--brand-text-secondary); }

/* ---- FEATURE / STEP CARDS ---- */
.feature-card { height: 100%; padding: 1.75rem; background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius-sm); }
.feature-card .feature-num { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--brand-primary); opacity: .95; }
.feature-card h3 { font-size: var(--text-xl); margin: .5rem 0; }
.feature-card p { margin: 0; color: var(--brand-text-secondary); }
.icon-badge { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--brand-primary-subtle); color: var(--brand-primary); font-size: 1.3rem; margin-bottom: 1rem; }

/* ---- STATS ---- */
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: var(--text-4xl); line-height: 1; color: #fff; }
.stat-num span { color: var(--brand-primary-on-dark); }
.stat-label { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-size: var(--text-sm); color: var(--brand-text-on-dark-2); }

/* ---- AS SEEN ON ---- */
.seen-on { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 3rem; }
.seen-on .seen-label { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-widest); font-size: var(--text-sm); color: var(--brand-text-secondary); }
.seen-on img { height: 44px; width: auto; filter: grayscale(1) contrast(1.1); opacity: .8; }

/* ---- REVIEW CARD ---- */
.review-card { height: 100%; padding: 1.75rem; background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius-sm); position: relative; }
.review-card::before { content: "\201C"; position: absolute; top: .25rem; right: 1.25rem; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--brand-primary-subtle); }
.stars { color: var(--color-star); letter-spacing: 2px; }
.review-card .review-author { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; color: var(--brand-text); }

/* ---- CTA BAND ---- */
.cta-band { position: relative; overflow: hidden; background: var(--brand-primary); color: #fff; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0 auto 0 -10%; width: 55%; z-index: -1; background: var(--brand-primary-hover); transform: skewX(var(--skew)); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #FDE7EA; }
.cta-band .btn-light { --bs-btn-color: #B11117; --bs-btn-hover-color: #8C0D12; }

/* ---- NEWSLETTER ---- */
.newsletter-band { background: var(--brand-ink-2); color: var(--brand-text-on-dark-2); }
.newsletter-band h2 { color: #fff; font-size: var(--text-2xl); margin-bottom: .25rem; }
.newsletter-band .form-control { border-color: #5A5E66; background: #fff; }

/* ---- FILTER SIDEBAR ---- */
.filter-block { border-bottom: 1px solid var(--brand-border); padding-block: 1rem; }
.filter-block:first-child { padding-top: 0; }
.filter-title { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: 1rem; letter-spacing: var(--tracking-wide); margin-bottom: .6rem; color: var(--brand-text); }
.filter-block .form-check { margin-bottom: .35rem; }
.filter-block .form-check-label { display: flex; justify-content: space-between; gap: .5rem; width: 100%; }
.filter-block .form-check-label span { color: var(--brand-text-secondary); font-size: var(--text-sm); }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--brand-border); }
.results-bar .results-count { margin: 0; color: var(--brand-text-secondary); }
.results-bar .results-count strong { color: var(--brand-text); }

/* Chip-style radios / checkboxes built on .btn-check */
.btn-chip { --bs-btn-padding-y: .35rem; --bs-btn-padding-x: .9rem; --bs-btn-font-size: .875rem; --bs-btn-color: #202324; --bs-btn-border-color: #8A9099; --bs-btn-hover-border-color: #B11117; --bs-btn-hover-color: #B11117; --bs-btn-active-bg: #B11117; --bs-btn-active-border-color: #B11117; --bs-btn-active-color: #fff; border-radius: var(--radius-sm); letter-spacing: .02em; }
.btn-check:checked + .btn-chip { background: #B11117; border-color: #B11117; color: #fff; }

/* ---- PDP GALLERY ---- */
.pdp-gallery .gallery-main { position: relative; background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius-sm); aspect-ratio: 3 / 2; overflow: hidden; }
.pdp-gallery .gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.pdp-gallery .gallery-enlarge { position: absolute; right: .75rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; font-size: var(--text-xs); font-weight: 600; color: var(--brand-text-body); background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius-sm); }
.pdp-gallery .gallery-enlarge:hover, .pdp-gallery .gallery-enlarge:focus-visible { border-color: var(--brand-primary); color: var(--brand-primary); }
.pdp-gallery .gallery-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .75rem; }
.pdp-gallery .gallery-thumb { flex: 0 0 calc((100% - 4 * .6rem) / 5); padding: 0; aspect-ratio: 3 / 2; background: #fff; border: 2px solid var(--brand-border); border-radius: var(--radius-md); overflow: hidden; }
.pdp-gallery .gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-gallery .gallery-thumb:hover { border-color: var(--brand-border-strong); }
.pdp-gallery .gallery-thumb[aria-current="true"] { border-color: var(--brand-primary); }
.pdp-gallery .gallery-more { position: relative; }
.pdp-gallery .gallery-more img { filter: brightness(.45); }
.pdp-gallery .gallery-more-label { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; }
.pdp-gallery .gallery-thumb:focus-visible { outline: 3px solid var(--brand-secondary); outline-offset: 2px; }
/* Pagination must reflow at 320px (WCAG 1.4.10): wrap the core page links instead of overflowing. */
.pagination { flex-wrap: wrap; row-gap: .375rem; max-width: 100%; }
.j2commerce-pagination .pagination { justify-content: center; }
@media (max-width: 575.98px) {
    .pagination .page-link { padding: .375rem .6rem; }
    .pagination .page-item:not(.active):not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-last-child(2)) { display: none; }
    .pagination .page-item.active + .page-item, .pagination .page-item:has(+ .page-item.active) { display: list-item; }
}
/* Category FAQ accordion ("About This Category"): blue/navy brand treatment, same pairing
   as the PDP "Looking for a different color or design?" box (--brand-secondary / -subtle),
   not the site-wide red/pink .accordion default used elsewhere (PDP tabs, help center, mobile nav). */
.accordion.category-faq { --bs-accordion-active-bg: var(--brand-secondary-subtle); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(var(--brand-secondary-rgb), .25); }
.accordion.category-faq .accordion-button { font-weight: 700; }
.pdp-title { font-size: var(--text-3xl); margin-bottom: .5rem; }
.pdp-price { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; line-height: 1; color: var(--brand-text); }
.pdp-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: var(--text-sm); color: var(--brand-text-secondary); padding: 0; margin: 0; list-style: none; }
.pdp-meta strong { color: var(--brand-text); }
.pdp-panel { background: var(--brand-bg-soft); border: 1px solid var(--brand-border); border-radius: var(--radius-sm); padding: clamp(1.1rem, 2.5vw, 1.75rem); }
.pdp-perks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.pdp-perks li { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--text-sm); }
.pdp-perks i, .pdp-perks span[class*="fa-"] { color: var(--brand-primary); margin-top: .2rem; }
.upsell-card { display: flex; gap: 1rem; align-items: center; padding: 1rem; border: 2px dashed var(--brand-secondary); border-radius: var(--radius-sm); background: var(--brand-secondary-subtle); }
.upsell-card img { width: 120px; flex: none; border-radius: var(--radius-md); background: #fff; }

.pdp-brand-row { display: flex; }
.pdp-fitment-note p { max-width: 42rem; }
.pdp-share { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.pdp-share-link { width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--brand-border); border-radius: var(--radius-sm); background: #fff; color: var(--brand-text-body); padding: 0; }
.pdp-share-link:hover, .pdp-share-link:focus-visible { border-color: var(--brand-primary); color: var(--brand-primary); }
.policy-modal .policy-modal-frame { width: 100%; height: min(70vh, 640px); border: 0; }
.policy-modal .modal-title { text-transform: none; }

/* Qty stepper (Bootstrap .input-group), sized to match the Add to Cart button beside it */
.qty-group { width: 140px; }
.qty-group, .qty-group .btn, .qty-group .form-control, .pdp-panel .j2commerce-cart-button.btn-lg { height: 3.375rem; }
.qty-group .btn { --bs-btn-padding-x: .7rem; border-color: #8A9099; background-color: #fff; }
.qty-group .form-control { text-align: center; font-weight: 700; }

/* ---- CONFIGURATOR (custom kits) ---- */
.config-step { border: 1px solid var(--brand-border); border-radius: var(--radius-sm); background: #fff; margin-bottom: 1rem; }
.config-step-head { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--brand-border); }
.config-step-num { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: var(--brand-primary); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; transform: skewX(var(--skew)); }
.config-step-num span { transform: skewX(calc(var(--skew) * -1)); }
.config-step-head h2 { font-size: var(--text-lg); margin: 0; }
.config-step-head .config-choice { margin-left: auto; font-size: var(--text-sm); color: var(--brand-text-secondary); text-align: right; }
.config-step-head .config-choice strong { color: var(--brand-text); }
.config-step-body { padding: 1.25rem; }
.design-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .6rem; max-height: 420px; overflow-y: auto; padding: .25rem; }
.design-picker label { display: block; cursor: pointer; border: 2px solid var(--brand-border); border-radius: var(--radius-md); overflow: hidden; background: #fff; font-size: .72rem; font-weight: 500; line-height: 1.2; text-align: center; color: var(--brand-text-body); transition: border-color var(--transition-fast); }
.design-picker label img { width: 100%; aspect-ratio: 82 / 54; object-fit: cover; }
.design-picker label span { display: block; padding: .3rem .2rem; }
.design-picker label:hover { border-color: var(--brand-border-strong); }
.design-picker input:checked + label { border-color: var(--brand-primary); box-shadow: 0 0 0 2px var(--brand-primary); color: var(--brand-primary); font-weight: 700; }
.design-picker input:focus-visible + label { outline: 3px solid var(--brand-secondary); outline-offset: 2px; }
.swatch-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch-group label { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 64px; cursor: pointer; font-size: .72rem; text-align: center; color: var(--brand-text-body); }
.swatch-group .swatch { width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid #8A9099; box-shadow: inset 0 0 0 3px #fff; transition: box-shadow var(--transition-fast); }
.swatch-group input:checked + label { color: var(--brand-text); font-weight: 700; }
.swatch-group input:checked + label .swatch { box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--brand-primary); }
.swatch-group input:focus-visible + label .swatch { outline: 3px solid var(--brand-secondary); outline-offset: 3px; }
.sw-yellow { background: #F6D32D; } .sw-white { background: #FFFFFF; } .sw-silver { background: linear-gradient(135deg, #D7DADF, #9AA0A8); }
.sw-red { background: #B11117; } .sw-purple { background: #6A2C91; } .sw-pink { background: #E8579B; }
.sw-orange { background: #F07F13; } .sw-green { background: #2E8B3E; } .sw-blue { background: #1F4FA8; }
.sw-black { background: #181B24; } .sw-aqua { background: #1FB5C9; }
/* Sidebar product-filter color swatches (inline hex from #__j2commerce_filters.filter_color) */
.pfilter-swatch-group { display: flex; flex-wrap: wrap; gap: .6rem; }
.pfilter-swatch-group label { display: flex; align-items: center; gap: .4rem; cursor: pointer; font-size: .8rem; color: var(--brand-text-body); }
.pfilter-swatch-group .pfilter-swatch { flex: 0 0 auto; width: 22px; height: 22px; border-radius: var(--radius-sm); border: 1px solid #8A9099; box-shadow: inset 0 0 0 2px #fff; transition: box-shadow var(--transition-fast); }
.pfilter-swatch-group input:checked + label { color: var(--brand-text); font-weight: 700; }
.pfilter-swatch-group input:checked + label .pfilter-swatch { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--brand-primary); }
.pfilter-swatch-group input:focus-visible + label .pfilter-swatch { outline: 3px solid var(--brand-secondary); outline-offset: 2px; }
.config-summary { position: sticky; top: 96px; }
.config-summary .summary-preview { aspect-ratio: 3 / 2; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--brand-border); overflow: hidden; }
.config-summary .summary-preview img { width: 100%; height: 100%; object-fit: cover; }
.summary-list { list-style: none; padding: 0; margin: 0; }
.summary-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--brand-border); font-size: var(--text-sm); }
.summary-list li span:last-child { font-weight: 700; color: var(--brand-text); text-align: right; }

/* ---- CART / CHECKOUT ---- */
.cart-line { display: grid; grid-template-columns: 110px 1fr auto; gap: 1rem; align-items: start; padding-block: 1.25rem; border-bottom: 1px solid var(--brand-border); }
.cart-line img { width: 110px; aspect-ratio: 3 / 2; object-fit: contain; background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius-md); }
.cart-line .cart-line-title { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; line-height: 1.15; margin-bottom: .25rem; }
.cart-line .cart-line-title a { color: var(--brand-text); }
.cart-line dl { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; margin: .25rem 0 .5rem; font-size: var(--text-sm); color: var(--brand-text-secondary); }
.cart-line dt { font-weight: 500; }
.cart-line dd { margin: 0; color: var(--brand-text); }
.cart-line .line-price { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--brand-text); }
@media (max-width: 575.98px) { .cart-line { grid-template-columns: 80px 1fr; } .cart-line img { width: 80px; } .cart-line .line-total { grid-column: 2; } }
.order-summary { background: var(--brand-bg-soft); border: 1px solid var(--brand-border); border-radius: var(--radius-sm); padding: 1.5rem; position: sticky; top: 96px; }
.order-summary h2 { font-size: var(--text-xl); }
.order-summary .summary-row { display: flex; justify-content: space-between; padding: .4rem 0; }
.order-summary .summary-total { border-top: 2px solid var(--brand-charcoal); margin-top: .5rem; padding-top: .75rem; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: 1.35rem; color: var(--brand-text); }
.free-ship-meter .progress { height: 10px; border-radius: 0; }
.checkout-step { border: 1px solid var(--brand-border); border-radius: var(--radius-sm); background: #fff; padding: clamp(1.1rem, 2.5vw, 1.75rem); margin-bottom: 1.25rem; }
.checkout-step-title { display: flex; align-items: center; gap: .75rem; font-size: var(--text-xl); margin-bottom: 1.25rem; }
.checkout-step-title .config-step-num { width: 32px; height: 32px; font-size: 1rem; }
.pay-option { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; border: 2px solid var(--brand-border); border-radius: var(--radius-md); cursor: pointer; }
.btn-check:checked + .pay-option, .form-check-input:checked ~ .pay-option { border-color: var(--brand-primary); background: var(--brand-primary-subtle); }
.btn-check:focus-visible + .pay-option { outline: 3px solid var(--brand-secondary); outline-offset: 2px; }

/* Cart offcanvas drawer */
.offcanvas-cart { --bs-offcanvas-width: 420px; }
.offcanvas-cart .offcanvas-header { background: var(--brand-ink); color: #fff; }
.offcanvas-cart .offcanvas-title { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; }
.offcanvas-cart .mini-line { display: grid; grid-template-columns: 84px 1fr auto; gap: .75rem; padding-block: 1rem; border-bottom: 1px solid var(--brand-border); }
.offcanvas-cart .mini-line img { width: 84px; aspect-ratio: 3 / 2; object-fit: contain; border: 1px solid var(--brand-border); border-radius: var(--radius-md); }
.offcanvas-cart .mini-title { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: .95rem; line-height: 1.15; color: var(--brand-text); }

/* ---- HEADER ACCOUNT OFFCANVAS ---- */
.offcanvas-account { --bs-offcanvas-width: 380px; }
.offcanvas-account .account-menu-link { display: flex; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--brand-border); color: var(--brand-text); font-weight: 600; width: 100%; text-align: start; background: transparent; border-inline: 0; border-top: 0; }
.offcanvas-account .account-menu-logout-form { margin: 0; }
.offcanvas-account .account-menu-list ul.mod-menu { list-style: none; padding: 0; margin: 0; flex-direction: column; }
.offcanvas-account .account-menu-list li.nav-item { border-bottom: 1px solid var(--brand-border); }
.offcanvas-account .account-menu-list li.nav-item a { display: flex; align-items: center; padding: .9rem 0; color: var(--brand-text); }
.offcanvas-account .account-menu-list li.nav-item a:hover, .offcanvas-account .account-menu-link:hover { color: var(--brand-primary); }
.offcanvas-login-form .btn-outline-dark.input-password-toggle { border-color: #8A9099; }

/* ---- ACCOUNT ---- */
.account-nav .list-group-item { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wide); display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; }
.account-nav .list-group-item i, .account-nav .list-group-item span[class*="fa-"] { width: 1.25rem; text-align: center; }
.account-card { border: 1px solid var(--brand-border); border-radius: var(--radius-sm); padding: 1.25rem; height: 100%; background: #fff; }
.status-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem; border-radius: var(--radius-sm); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status-pill.shipped { background: #E6F4EC; color: #155C34; }
.status-pill.production { background: #FFF3DC; color: #7A4800; }
.status-pill.delivered { background: #E3F6F5; color: #15625F; }
.status-pill.cancelled { background: #FDE8EA; color: #8A1024; }
.status-pill.pending { background: #EEF0F3; color: #3A4250; }

/* ---- ARTICLE / PROSE ---- */
.prose { max-width: 760px; font-size: 1.05rem; line-height: 1.75; }
.prose h2 { font-size: var(--text-2xl); margin-top: 2.25rem; margin-bottom: .75rem; }
.prose h3 { font-size: var(--text-xl); margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose table { width: 100%; margin-block: 1rem 1.5rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.help-sidebar .list-group-item.active { font-weight: 700; }
.toc-card { border-left: 4px solid var(--brand-primary); background: var(--brand-bg-soft); padding: 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---- VIDEO ---- */
.video-card { height: 100%; }
.video-card .video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--brand-ink); }
.video-card .video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform var(--transition-slow), opacity var(--transition-base); }
.video-card .video-thumb .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; background: var(--brand-primary); color: #fff; font-size: 1.4rem; transform: skewX(var(--skew)); }
.video-card .video-thumb .play i, .video-card .video-thumb .play span[class*="fa-"] { transform: skewX(calc(var(--skew) * -1)); }
.video-card:hover .video-thumb img { transform: scale(1.05); opacity: 1; }
.video-card h3 { font-size: 1.15rem; margin-top: .9rem; }

/* ---- AUTH ---- */
.auth-card { max-width: 480px; margin-inline: auto; background: #fff; border: 1px solid var(--brand-border); border-top: 4px solid var(--brand-primary); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: clamp(1.5rem, 4vw, 2.5rem); }

/* ---- FOOTER ---- */
.site-footer { background: var(--brand-ink); color: var(--brand-text-on-dark-2); }
.site-footer .footer-main { padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.site-footer h2:not(.module-title) { font-size: 1.05rem; letter-spacing: var(--tracking-widest); color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--brand-text-on-dark-2); }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 1rem; }
.footer-contact li { display: flex; gap: .65rem; }
.footer-contact i, .footer-contact span[class*="fa-"] { color: var(--brand-text-on-dark); margin-top: .25rem; width: 1rem; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--brand-border-dark); border-radius: var(--radius-sm); color: #fff; transition: background var(--transition-fast), border-color var(--transition-fast); }
.footer-social a:hover { background: var(--brand-primary); border-color: var(--brand-primary); }
.footer-bottom { border-top: 1px solid var(--brand-border-dark); padding-block: 1.25rem; font-size: var(--text-sm); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-pay { display: flex; gap: .6rem; font-size: 1.75rem; color: var(--brand-text-on-dark-2); }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--text-sm); }
.hours-list .open { color: #7BD89F; }

/* ---- ANIMATION ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
    .reveal.in { opacity: 1; transform: none; }
    .reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (min-width: 1200px) {
    .row-cols-xl-7 > * { flex: 0 0 auto; width: calc(100% / 7); }
}
@media (max-width: 1199.98px) {
    .site-header .navbar { min-height: 68px; }
    .navbar-brand img { height: 40px; }
}
@media (max-width: 575.98px) {
    .hero-rl .btn-lg { width: 100%; }
    .kit-finder { margin-top: -3rem; }
}

/* Font Awesome style weights + brand glyphs.
   Joomla's vendored fontawesome.css carries the solid/regular glyph variables but not the
   per-style weights (solid.css) or the brand glyphs (brands.css). Without the weight, a
   .fa-solid icon at font-weight 400 resolves to the regular face, which lacks most glyphs. */
/* Joomla core icon-* glyphs (pagination, password toggle, J2C cart JS). The icon-* to glyph map
   lives only in media/system/css/joomla-fontawesome.css, which this template does not load, so
   the classes core emits are mapped here. Codepoints copied from that file. Listed explicitly
   rather than [class^="icon-"] so unrelated classes that merely start with icon- are untouched. */
.icon-angle-left, .icon-angle-right, .icon-angle-double-left, .icon-angle-double-right,
.icon-chevron-left, .icon-chevron-right, .icon-eye, .icon-eye-slash, .icon-eye-open, .icon-eye-close,
.icon-times, .icon-cancel, .icon-checkmark, .icon-check, .icon-search, .icon-plus, .icon-minus,
.icon-tag, .icon-print, .icon-download, .icon-trash, .icon-edit, .icon-user, .icon-lock,
.icon-envelope, .icon-mail, .icon-info-circle, .icon-warning, .icon-calendar {
    display: inline-block; font-family: "Font Awesome 6 Free"; font-weight: 900; font-style: normal;
    font-variant: normal; line-height: 1; text-rendering: auto; -webkit-font-smoothing: antialiased;
}
.icon-angle-left::before, .icon-angle-right::before, .icon-angle-double-left::before, .icon-angle-double-right::before,
.icon-chevron-left::before, .icon-chevron-right::before, .icon-eye::before, .icon-eye-slash::before, .icon-eye-open::before, .icon-eye-close::before,
.icon-times::before, .icon-cancel::before, .icon-checkmark::before, .icon-check::before, .icon-search::before, .icon-plus::before, .icon-minus::before,
.icon-tag::before, .icon-print::before, .icon-download::before, .icon-trash::before, .icon-edit::before, .icon-user::before, .icon-lock::before,
.icon-envelope::before, .icon-mail::before, .icon-info-circle::before, .icon-warning::before, .icon-calendar::before { content: var(--icon); }
.icon-angle-left, .icon-chevron-left { --icon: "\f104"; }
.icon-angle-right, .icon-chevron-right { --icon: "\f105"; }
.icon-angle-double-left { --icon: "\f100"; }
.icon-angle-double-right { --icon: "\f101"; }
.icon-eye, .icon-eye-open { --icon: "\f06e"; }
.icon-eye-slash, .icon-eye-close { --icon: "\f070"; }
.icon-times, .icon-cancel { --icon: "\f00d"; }
.icon-checkmark, .icon-check { --icon: "\f00c"; }
.icon-search { --icon: "\f002"; }
.icon-plus { --icon: "\2b"; }
.icon-minus { --icon: "\f068"; }
.icon-tag { --icon: "\f02b"; }
.icon-print { --icon: "\f02f"; }
.icon-download { --icon: "\f019"; }
.icon-trash { --icon: "\f1f8"; }
.icon-edit { --icon: "\f044"; }
.icon-user { --icon: "\f007"; }
.icon-lock { --icon: "\f023"; }
.icon-envelope, .icon-mail { --icon: "\f0e0"; }
.icon-info-circle { --icon: "\f05a"; }
.icon-warning { --icon: "\f071"; }
.icon-calendar { --icon: "\f133"; }

.fas, .fa-solid { font-weight: 900; }
.far, .fa-regular, .fab, .fa-brands { font-weight: 400; }
.fa-facebook { --fa: "\f09a"; }
.fa-facebook-f { --fa: "\f39e"; }
.fa-instagram { --fa: "\f16d"; }
.fa-youtube { --fa: "\f167"; }
.fa-x-twitter { --fa: "\e61b"; }
.fa-tiktok { --fa: "\e07b"; }
.fa-pinterest-p { --fa: "\f231"; }
.fa-cc-visa { --fa: "\f1f0"; }
.fa-cc-mastercard { --fa: "\f1f1"; }
.fa-cc-discover { --fa: "\f1f2"; }
.fa-cc-amex { --fa: "\f1f3"; }
.fa-cc-paypal { --fa: "\f1f4"; }

/* Rounding cap: nothing on the site is rounded more than 0.25rem (owner rule).
   html:root outranks :root in later stylesheets, and html [data-bs-theme] covers Bootstrap's
   per-theme variable block (body carries data-bs-theme), so neither can bring back pills. */
body .btn-close, body .j2c-drawer-item-thumb, body .j2c-drawer-btn-checkout { border-radius: var(--radius-sm); }
html:root, html [data-bs-theme] {
    --bs-border-radius: 4px;
    --bs-border-radius-sm: var(--radius-sm);
    --bs-border-radius-lg: var(--radius-sm);
    --bs-border-radius-xl: var(--radius-sm);
    --bs-border-radius-xxl: var(--radius-sm);
    --bs-border-radius-2xl: var(--radius-sm);
    --bs-border-radius-pill: var(--radius-sm);
}

/* Findbar header search (display mode Offcanvas) renders inside the navbar. Bootstrap's
   .navbar-expand-xl .offcanvas rule turns any offcanvas in a navbar into inline content at
   xl+, so keep the panel out of the layout until it opens; template.js moves it to <body>
   on show.bs.offcanvas, where the regular top-down offcanvas styles apply. */
.navbar .j2c-findbar-offcanvas:not(.show):not(.showing):not(.hiding) { display: none !important; }

/* Mega result layout inside the header search panel: Findbar caps .j2c-findbar__mega-results at
   24rem with its own scrollbar, which clips the page of results. The offcanvas already caps itself
   at 90vh and scrolls its body, so let the list take its natural height here. */
.j2c-findbar-offcanvas .j2c-findbar__mega-results { max-height: none; overflow-y: visible; }

/* Bootstrap focuses the offcanvas container itself on open (tabindex="-1", not an operable control);
   hide the site focus ring on the container only. Controls inside keep their visible focus. */
.offcanvas:focus-visible { outline: 0; }


/* About page: Made In-House print-shop photos. */
.about-make-media { position: relative; overflow: hidden; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); background: var(--brand-charcoal); height: 100%; }
.about-make-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-make-media figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .75rem; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); color: #fff; font-size: var(--text-sm); font-weight: 600; }
@media (min-width: 992px) { .about-make .col-lg-5 .about-make-media { flex: 1 1 0; min-height: 0; } }

/* Graphic Kits page: vehicle card with a real-kit photo that alternates sides (category fields showcase-image / showcase-product). */
.type-card-photo { overflow: hidden; }
.type-photo { position: relative; height: 100%; min-height: 24rem; background: var(--brand-charcoal); overflow: hidden; }
.type-photo-link { position: absolute; inset: 0; display: block; }
.type-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-base); }
.type-card-photo:hover .type-photo img { transform: scale(1.04); }
.type-photo::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; z-index: 2; background: linear-gradient(90deg, var(--brand-primary) 0 70%, #fff 70% 72%, var(--brand-secondary) 72% 100%); }
.type-photo-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 3rem 1.25rem 1rem; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); color: #fff; font-size: var(--text-sm); line-height: 1.35; }
.type-photo-caption a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.type-photo-caption a:hover, .type-photo-caption a:focus-visible { color: #fff; text-decoration-thickness: 2px; }
.type-photo-label { display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.type-card-head img { width: 96px; height: auto; }
@media (max-width: 767.98px) { .type-photo { min-height: 0; aspect-ratio: 4 / 3; } .type-photo img { object-position: center 40%; } }
