/* =========================================================================
   AutoParts Theme — design system
   Tokens → base → layout → header → home → WooCommerce → footer → utilities
   Brand colours are overridden inline from the Customizer (see inc/customizer.php).
   ========================================================================= */

:root {
	--ap-primary: #0f1b2d;
	--ap-primary-2: #1a2a40;
	--ap-primary-3: #2a3a52;
	--ap-accent: #e8461f;
	--ap-accent-strong: #c7370f;
	--ap-accent-soft: #fdeee9;
	--ap-bg: #f3f5f8;
	--ap-surface: #ffffff;
	--ap-ink: #0f1b2d;
	--ap-text: #26313f;
	--ap-muted: #5b6676;
	--ap-line: #dfe3e8;
	--ap-line-soft: #eef1f4;
	--ap-success: #13a36e;
	--ap-focus: #2b7de9;
	--ap-radius: 12px;
	--ap-radius-sm: 8px;
	--ap-shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .08);
	--ap-shadow: 0 10px 30px rgba(15, 27, 45, .12);
	--ap-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ap-font-head: "Barlow", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ap-font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
	--ap-container: 1320px;
	--ap-gutter: clamp(16px, 3vw, 32px);
	--ap-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--ap-bg); color: var(--ap-text); font: 16px/1.55 var(--ap-font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--ap-primary); text-underline-offset: 2px; }
a:hover { color: var(--ap-accent-strong); }
h1, h2, h3, h4 { font-family: var(--ap-font-head); color: var(--ap-ink); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ap-focus); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.ap-skip { position: absolute; left: 12px; top: -60px; z-index: 10000; padding: 10px 16px; background: var(--ap-accent); color: #fff; border-radius: var(--ap-radius-sm); font-weight: 700; transition: top .2s; }
.ap-skip:focus { top: 12px; color: #fff; }
.ap-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }

/* ---------- Layout ---------- */
.ap-container { width: 100%; max-width: var(--ap-container); margin-inline: auto; padding-inline: var(--ap-gutter); }
.ap-container--narrow { max-width: 860px; }
.ap-main { min-height: 50vh; padding-block: 24px 64px; }
.ap-home { padding-top: 0; }
.ap-section { padding-block: clamp(32px, 5vw, 56px); }
.ap-section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ap-section__title { margin: 0; }
.ap-section__title::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--ap-accent); }
.ap-section__more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ap-page-head { margin-bottom: 24px; }
.ap-prose { background: var(--ap-surface); padding: clamp(18px, 3vw, 36px); border-radius: var(--ap-radius); box-shadow: var(--ap-shadow-sm); }
.ap-prose > :last-child { margin-bottom: 0; }
.ap-eyebrow { display: inline-block; margin-bottom: 12px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ap-accent); }
.ap-meta { color: var(--ap-muted); font-size: .9rem; }

/* ---------- Buttons ---------- */
.ap-btn, .button, button.button, a.button, input[type="submit"], .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.3em; border: 2px solid transparent; border-radius: var(--ap-radius-sm);
	background: var(--ap-primary); color: #fff; font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background-color .15s var(--ap-ease), border-color .15s, color .15s, transform .1s;
}
.ap-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--ap-primary-3); color: #fff; }
.ap-btn:active, .button:active { transform: translateY(1px); }
.ap-btn--accent, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #place_order, .woocommerce a.checkout-button, .single_add_to_cart_button { background: var(--ap-accent) !important; color: #fff !important; }
.ap-btn--accent:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .single_add_to_cart_button:hover, .woocommerce #place_order:hover { background: var(--ap-accent-strong) !important; }
.ap-btn--primary { background: var(--ap-primary); }
.ap-btn--outline { background: transparent; color: var(--ap-primary); border-color: var(--ap-line); }
.ap-btn--outline:hover { background: var(--ap-surface); color: var(--ap-primary); border-color: var(--ap-primary); }
.ap-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.ap-btn--ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.ap-btn--lg { min-height: 54px; padding-inline: 1.6em; font-size: 1.05rem; }
.ap-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--ap-radius-sm); background: transparent; color: inherit; cursor: pointer; }
.ap-icon-btn:hover { background: rgba(127, 127, 127, .12); }
.ap-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--ap-surface); border: 1px solid var(--ap-line); color: var(--ap-ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.ap-chip span { color: var(--ap-muted); font-weight: 400; }
.ap-chip:hover { border-color: var(--ap-primary); }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], select, textarea,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
	min-height: 46px; padding: 10px 12px; border: 1px solid #c9d0d8; border-radius: var(--ap-radius-sm); background: #fff; color: var(--ap-ink); max-width: 100%;
}
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--ap-focus); outline: 3px solid rgba(43, 125, 233, .25); outline-offset: 0; }

/* ---------- Header ---------- */
.ap-header { position: sticky; top: 0; z-index: 900; background: var(--ap-primary); color: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .04); }
.admin-bar .ap-header { top: 32px; }
.ap-topbar { background: #0a1320; font-size: .85rem; }
.ap-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.ap-topbar__msg { margin: 0; opacity: .9; }
.ap-topbar__links { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.ap-topbar a { color: #dbe3ee; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ap-topbar a:hover { color: #fff; }
.ap-topbar__menu { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.ap-lang ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 2px; background: rgba(255, 255, 255, .08); border-radius: 6px; }
.ap-lang a, .ap-lang span { display: block; padding: 3px 8px; border-radius: 4px; font-weight: 700; font-size: .78rem; }
.ap-lang span[aria-current] { background: #fff; color: var(--ap-primary); }

.ap-mainbar__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 2.5vw, 32px); min-height: 76px; }
.ap-burger { display: none; color: #fff; }
.ap-logo img { max-height: 52px; width: auto; display: block; }
.ap-logo-text { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--ap-font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.ap-logo-text .ap-icon { width: 34px; height: 34px; padding: 6px; border-radius: 8px; background: var(--ap-accent); color: #fff; }
.ap-logo-text:hover { color: #fff; }

.ap-search { position: relative; display: flex; max-width: 760px; width: 100%; justify-self: center; background: #fff; border-radius: 10px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }
.ap-search input[type="search"] { flex: 1; min-width: 0; min-height: 50px; border: 0; border-radius: 10px 0 0 10px; padding: 0 16px; font-size: 1rem; background: transparent; }
.ap-search input[type="search"]:focus { outline: none; }
.ap-search:focus-within { box-shadow: 0 0 0 3px var(--ap-accent); }
.ap-search__btn { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; border: 0; border-radius: 0 10px 10px 0; background: var(--ap-accent); color: #fff; font-weight: 800; cursor: pointer; }
.ap-search__btn:hover { background: var(--ap-accent-strong); }

.ap-actions { display: flex; align-items: center; gap: 4px; }
.ap-action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 6px 8px; border-radius: var(--ap-radius-sm); color: #fff; text-decoration: none; font-size: .75rem; font-weight: 600; }
.ap-action:hover { background: var(--ap-primary-2); color: #fff; }
.ap-action .ap-icon { width: 26px; height: 26px; }
.ap-action__label { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-vehicle-chip.has-vehicle { background: var(--ap-primary-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.ap-vehicle-chip.has-vehicle .ap-icon { color: var(--ap-accent); }
.ap-cart-count { position: absolute; top: 2px; right: 12px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ap-accent); color: #fff; font-size: .72rem; font-weight: 800; line-height: 20px; text-align: center; }
.ap-cart-count.is-empty { display: none; }

.ap-catbar { background: var(--ap-primary-2); border-top: 1px solid rgba(255, 255, 255, .06); }
.ap-catbar__inner { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.ap-catbar__all { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 6px; background: var(--ap-accent); color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ap-catbar__all:hover { background: var(--ap-accent-strong); color: #fff; }
.ap-catbar__list { display: flex; flex-wrap: nowrap; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.ap-catbar__list::-webkit-scrollbar { display: none; }
.ap-catbar__list > li { position: relative; }
.ap-catbar__list a { display: block; padding: 12px 12px; color: #dbe3ee; text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.ap-catbar__list a:hover, .ap-catbar__list .current-menu-item > a { color: #fff; box-shadow: inset 0 -3px 0 var(--ap-accent); }
.ap-catbar__list .sub-menu { display: none; position: absolute; left: 0; top: 100%; z-index: 50; min-width: 240px; padding: 8px; margin: 0; list-style: none; background: #fff; border-radius: 0 0 var(--ap-radius-sm) var(--ap-radius-sm); box-shadow: var(--ap-shadow); }
.ap-catbar__list li:hover > .sub-menu, .ap-catbar__list li:focus-within > .sub-menu { display: block; }
.ap-catbar__list .sub-menu a { color: var(--ap-ink); padding: 8px 10px; border-radius: 6px; }
.ap-catbar__list .sub-menu a:hover { background: var(--ap-bg); box-shadow: none; }

/* Drawer (mobile menu + filters) */
.ap-drawer { position: fixed; inset: 0; z-index: 1000; }
.ap-drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 19, 32, .55); opacity: 0; transition: opacity .2s; }
.ap-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); overflow-y: auto; background: #fff; color: var(--ap-ink); padding: 12px 16px 32px; transform: translateX(-100%); transition: transform .25s var(--ap-ease); z-index: 1; }
.ap-drawer.is-open .ap-drawer__backdrop { opacity: 1; }
.ap-drawer.is-open .ap-drawer__panel { transform: none; }
.ap-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ap-drawer__title { margin: 0; font-weight: 800; font-size: 1.1rem; }
.ap-drawer__cats, .ap-drawer__links { list-style: none; margin: 0 0 16px; padding: 0; }
.ap-drawer__cats a, .ap-drawer__links a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 4px; border-bottom: 1px solid var(--ap-line-soft); color: var(--ap-ink); text-decoration: none; font-weight: 600; }
.ap-drawer__cats .ap-icon { color: var(--ap-accent); width: 24px; height: 24px; }
.ap-drawer .ap-lang ul { background: var(--ap-bg); width: max-content; }
.ap-drawer .ap-lang a { color: var(--ap-ink); }
.ap-drawer .ap-lang span[aria-current] { background: var(--ap-primary); color: #fff; }
body.ap-locked { overflow: hidden; }

/* ---------- Home ---------- */
.ap-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background:
	radial-gradient(1200px 500px at 85% -10%, rgba(232, 70, 31, .28), transparent 60%),
	linear-gradient(135deg, var(--ap-primary) 0%, var(--ap-primary-2) 55%, var(--ap-primary-3) 100%); }
.ap-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: linear-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .7) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.ap-hero--image .ap-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.ap-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(36px, 6vw, 80px); }
.ap-hero__title { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.ap-hero__text { font-size: clamp(1rem, 1.4vw, 1.15rem); color: #d6deea; max-width: 56ch; }
.ap-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.ap-finder { background: #fff; color: var(--ap-ink); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.ap-finder__tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--ap-bg); }
.ap-finder__tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border: 0; background: transparent; color: var(--ap-muted); font-weight: 800; cursor: pointer; border-bottom: 3px solid transparent; }
.ap-finder__tabs button[aria-selected="true"] { background: #fff; color: var(--ap-ink); border-bottom-color: var(--ap-accent); }
.ap-finder__panel .apc-vs { box-shadow: none; border-radius: 0; }
.ap-finder__panel .apc-ref { padding: clamp(16px, 3vw, 28px); }
.ap-finder .apc-vs__form { grid-template-columns: 1fr 1fr; }
.ap-finder .apc-vs__submit { grid-column: 1 / -1; }


.ap-cats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.ap-cat { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; padding: 20px 12px 16px; background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius); color: var(--ap-ink); text-decoration: none; text-align: center; transition: transform .18s var(--ap-ease), box-shadow .18s, border-color .18s; }
.ap-cat:hover { transform: translateY(-3px); box-shadow: var(--ap-shadow); border-color: transparent; color: var(--ap-ink); }
.ap-cat__visual { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--ap-bg); transition: background-color .18s; }
.ap-cat:hover .ap-cat__visual { background: var(--ap-accent-soft); }
.ap-cat__icon { width: 36px; height: 36px; color: var(--ap-primary); }
.ap-cat:hover .ap-cat__icon { color: var(--ap-accent-strong); }
.ap-cat__visual img { width: 56px; height: 56px; object-fit: contain; }
.ap-cat__name { font-weight: 700; font-size: .95rem; line-height: 1.25; }

.ap-help__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.ap-help__card { padding: clamp(20px, 3vw, 32px); background: #fff; border-radius: var(--ap-radius); border: 1px solid var(--ap-line); }
.ap-help__card--dark { background: var(--ap-primary); color: #d6deea; border-color: transparent; }
.ap-help__card--dark h2 { color: #fff; }
.ap-help__links { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-help__list { list-style: none; margin: 0; padding: 0; }
.ap-help__list a { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--ap-line-soft); color: var(--ap-ink); text-decoration: none; font-weight: 600; }
.ap-help__list .ap-icon { color: var(--ap-accent); width: 18px; }

/* ---------- WooCommerce: product cards ---------- */
.woocommerce ul.products, .woocommerce-page ul.products { display: grid !important; grid-template-columns: repeat(var(--ap-cols, 4), minmax(0, 1fr)); gap: 16px; margin: 0 0 24px !important; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products.columns-3 { --ap-cols: 3; }
.woocommerce ul.products.columns-2 { --ap-cols: 2; }
.woocommerce ul.products.columns-5 { --ap-cols: 5; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; display: flex; flex-direction: column; padding: 14px 14px 16px; background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius); transition: box-shadow .18s var(--ap-ease), transform .18s var(--ap-ease); }
.woocommerce ul.products li.product:hover { box-shadow: var(--ap-shadow); transform: translateY(-2px); }
.woocommerce ul.products li.product a img { aspect-ratio: 1 / 1; object-fit: contain; background: #fafbfc; border-radius: var(--ap-radius-sm); margin: 0 0 12px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 !important; font-family: var(--ap-font); font-size: .98rem !important; font-weight: 700; color: var(--ap-ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.woocommerce ul.products li.product .price { margin-top: auto !important; padding-top: 6px; color: var(--ap-ink) !important; font-size: 1.2rem !important; font-weight: 800; }
.woocommerce ul.products li.product .price del { color: var(--ap-muted); font-size: .85rem; font-weight: 400; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--ap-accent-strong); }
.woocommerce ul.products li.product .button { margin-top: 10px; width: 100%; }
.woocommerce ul.products li.product .button.loading { opacity: .7; }
.woocommerce ul.products li.product .added_to_cart { display: block; margin-top: 6px; text-align: center; font-weight: 700; }
.woocommerce span.onsale { top: 10px !important; left: 10px !important; right: auto !important; min-width: 0; min-height: 0; padding: 4px 10px; border-radius: 6px; background: var(--ap-accent); line-height: 1.4; font-size: .78rem; font-weight: 800; }
.woocommerce ul.products li.product .star-rating { font-size: .8rem; margin: 4px 0; }

/* Listing layout */
.ap-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .85rem; color: var(--ap-muted); }
.ap-breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #9aa3ad; }
.ap-breadcrumb a { color: var(--ap-muted); text-decoration: none; }
.ap-breadcrumb a:hover { color: var(--ap-accent-strong); }
.ap-shop__layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.ap-shop__layout:not(:has(.ap-filters)) { grid-template-columns: minmax(0, 1fr); }
.ap-filters { position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow: auto; padding: 16px; background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius); }
.ap-filters__head { display: none; }
.ap-filter + .ap-filter { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ap-line-soft); }
.ap-filter__title { font-size: .95rem; margin-bottom: 10px; font-family: var(--ap-font); }
.ap-filter ul { list-style: none; margin: 0; padding: 0; }
.ap-filter li { padding: 4px 0; }
.ap-filters-toggle { display: none; }
.woocommerce .woocommerce-result-count { margin: 0; color: var(--ap-muted); font-size: .9rem; }
.woocommerce .woocommerce-ordering { margin: 0 0 16px; }
.ap-shop__content > .woocommerce-notices-wrapper + .woocommerce-result-count, .ap-shop__content .woocommerce-result-count { float: none; }
.ap-shop__content { display: flow-root; }
.ap-shop__content .woocommerce-products-header { margin-bottom: 12px; }
.ap-shop__content .woocommerce-products-header__title { margin-bottom: 8px; }
.ap-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.term-description { color: var(--ap-muted); max-width: 80ch; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; justify-content: center; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: var(--ap-radius-sm); background: #fff; border: 1px solid var(--ap-line); font-weight: 700; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ap-primary); color: #fff; border-color: var(--ap-primary); }

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding: clamp(16px, 3vw, 32px); background: #fff; border-radius: var(--ap-radius); box-shadow: var(--ap-shadow-sm); }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none !important; width: auto !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .product_title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ap-ink) !important; font-size: 2rem !important; font-weight: 800; margin-bottom: 4px; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 16px 0 6px !important; }
.woocommerce div.product form.cart .quantity .qty { width: 84px; min-height: 54px; text-align: center; font-weight: 700; }
.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1 1 220px; min-height: 54px; font-size: 1.05rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 !important; margin: 0 0 16px !important; border-bottom: 2px solid var(--ap-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; border-radius: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 16px !important; color: var(--ap-muted) !important; font-weight: 700; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ap-ink) !important; box-shadow: inset 0 -3px 0 var(--ap-accent); }
.woocommerce div.product .woocommerce-tabs .panel { margin: 0 0 24px; }
.woocommerce div.product .product_meta { font-size: .88rem; color: var(--ap-muted); }
.woocommerce div.product .stock { font-weight: 700; }
.woocommerce div.product .stock.in-stock { color: #0e6e4b; }
.woocommerce div.product .stock.available-on-backorder { color: #1d5bb0; }
.woocommerce div.product .stock.out-of-stock { color: #9b1c15; }
.ap-secure-note, .ap-ship-note { display: flex; align-items: center; gap: 8px; width: 100%; margin: 4px 0 0; font-size: .85rem; color: var(--ap-muted); }
.ap-secure-note .ap-icon, .ap-ship-note .ap-icon { color: var(--ap-success); }
.woocommerce table.shop_attributes { border: 1px solid var(--ap-line); }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: 10px 14px; border-color: var(--ap-line-soft); font-style: normal; }

/* Cart / checkout / account */
.woocommerce-cart .ap-prose, .woocommerce-checkout .ap-prose, .woocommerce-account .ap-prose { background: transparent; box-shadow: none; padding: 0; }
.woocommerce table.shop_table { background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { background: var(--ap-bg); font-weight: 700; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout #order_review, .woocommerce-checkout .col2-set { background: #fff; padding: 20px; border-radius: var(--ap-radius); border: 1px solid var(--ap-line); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: var(--ap-radius-sm); border-top-width: 0 !important; border-left: 4px solid; background: #fff; box-shadow: var(--ap-shadow-sm); }
.woocommerce-message { border-left-color: var(--ap-success) !important; }
.woocommerce-info { border-left-color: var(--ap-focus) !important; }
.woocommerce-error { border-left-color: #d63638 !important; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius); }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ap-ink); text-decoration: none; font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--ap-primary); color: #fff; }
.woocommerce-account .woocommerce-MyAccount-content { background: #fff; padding: 24px; border-radius: var(--ap-radius); border: 1px solid var(--ap-line); }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce form.login, .woocommerce form.register { background: #fff; border-radius: var(--ap-radius) !important; }
.blockUI.blockOverlay { background: rgba(255, 255, 255, .7) !important; }
.blockUI.blockOverlay::before { content: ""; position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px; border: 3px solid var(--ap-line); border-top-color: var(--ap-accent); border-radius: 50%; animation: ap-spin .7s linear infinite; }
@keyframes ap-spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.ap-footer { background: var(--ap-primary); color: #b9c4d3; font-size: .93rem; }
.ap-footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
.ap-footer__title { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--ap-font); margin-bottom: 14px; }
.ap-footer ul { list-style: none; margin: 0; padding: 0; }
.ap-footer li { margin-bottom: 8px; }
.ap-footer a { color: #dbe3ee; text-decoration: none; }
.ap-footer a:hover { color: #fff; text-decoration: underline; }
.ap-footer__contact li { display: flex; gap: 10px; }
.ap-footer__contact .ap-icon { color: var(--ap-accent); margin-top: 2px; }
.ap-footer__logo { margin-bottom: 14px; }
.ap-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 16px; font-size: .82rem; }
.ap-footer__bottom p { margin: 0; }

/* ---------- Misc ---------- */
.ap-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ap-post-card { background: #fff; border-radius: var(--ap-radius); overflow: hidden; border: 1px solid var(--ap-line); padding-bottom: 16px; }
.ap-post-card__title, .ap-post-card__excerpt { padding-inline: 16px; }
.ap-post-card__title { margin-top: 14px; font-size: 1.15rem; }
.ap-post-card__title a { color: var(--ap-ink); text-decoration: none; }
.ap-404 { text-align: center; }
.ap-404 .apc-ref__form { max-width: 640px; margin: 0 auto 24px; }
.ap-searchform { display: flex; gap: 8px; }
.ap-searchform input[type="search"] { flex: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.woocommerce ul.products { --ap-cols: 3 !important; }
	.ap-help__grid { grid-template-columns: 1fr 1fr; }
	.ap-help__card--dark { grid-column: 1 / -1; }
	.ap-footer__grid { grid-template-columns: 1fr 1fr; }
	.ap-action__label { display: none; }
	.ap-action { min-width: 48px; }
	.ap-cart-count { right: 2px; }
}

@media (max-width: 900px) {
	html { scroll-padding-top: 130px; }
	.admin-bar .ap-header { top: 0; }
	.ap-topbar__msg { display: none; }
	.ap-topbar__menu, .ap-topbar .ap-lang { display: none; }
	.ap-burger { display: inline-grid; }
	.ap-mainbar__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "burger logo actions" "search search search"; gap: 8px 10px; min-height: 0; padding-block: 8px 10px; }
	.ap-burger { grid-area: burger; }
	.ap-logo { grid-area: logo; min-width: 0; }
	.ap-logo-text { font-size: 1.1rem; }
	.ap-logo-text .ap-icon { width: 28px; height: 28px; }
	.ap-logo img { max-height: 40px; }
	.ap-actions { grid-area: actions; }
	.ap-search { grid-area: search; max-width: none; }
	.ap-search input[type="search"] { min-height: 46px; font-size: 16px; }
	.ap-search__btn span { display: none; }
	.ap-catbar { display: none; }
	.ap-hero__inner { grid-template-columns: 1fr; }
	.ap-hero__ctas .ap-btn { flex: 1 1 auto; }
	.ap-shop__layout { grid-template-columns: 1fr; }
	.ap-filters { position: fixed; inset: 0 auto 0 0; top: 0; z-index: 1001; width: min(88vw, 360px); max-height: none; border-radius: 0; transform: translateX(-105%); transition: transform .25s var(--ap-ease); box-shadow: var(--ap-shadow); }
	.ap-filters.is-open { transform: none; }
	.ap-filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
	.ap-filters__head h2 { margin: 0; font-size: 1.1rem; }
	.ap-filters-toggle { display: inline-flex; margin: 0 0 12px; }
	.ap-filters-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 19, 32, .55); }
	.woocommerce div.product { grid-template-columns: 1fr; }
	.woocommerce-account .woocommerce { grid-template-columns: 1fr; }
	.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; gap: 4px; }
	.woocommerce-account .woocommerce-MyAccount-navigation a { white-space: nowrap; }
}

@media (max-width: 600px) {
	body { font-size: 15px; }
	.woocommerce ul.products, .woocommerce-page ul.products { --ap-cols: 2 !important; gap: 10px; }
	.woocommerce ul.products li.product { padding: 10px; }
	.woocommerce ul.products li.product .price { font-size: 1.05rem !important; }
	.ap-finder .apc-vs__form { grid-template-columns: 1fr; }
	.ap-help__grid { grid-template-columns: 1fr; }
	.ap-footer__grid { grid-template-columns: 1fr; gap: 24px; }
	.ap-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.ap-cat { padding: 14px 6px 12px; }
	.ap-cat__visual { width: 52px; height: 52px; }
	.ap-cat__icon { width: 30px; height: 30px; }
	.ap-cat__name { font-size: .82rem; }
	.ap-section__head { align-items: center; }
	/* Sticky add-to-cart on mobile product pages */
	.single-product div.product form.cart { position: sticky; bottom: 0; z-index: 50; margin-inline: -16px !important; padding: 10px 16px; background: rgba(255, 255, 255, .97); box-shadow: 0 -6px 20px rgba(15, 27, 45, .12); }
	.woocommerce table.shop_table_responsive tr td { padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
	.ap-header, .ap-footer, .ap-drawer, .ap-filters, .ap-whatsapp { display: none !important; }
	body { background: #fff; }
}

/* Vehicle catalogue entry points */
.ap-catbar__vehicles { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 6px; color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.ap-catbar__vehicles:hover { background: rgba(255,255,255,.08); color: #fff; }
.ap-drawer__vehicles { width: 100%; margin-bottom: 12px; }
.ap-makes__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
/* Home "Search by make": logo cards (logo in grey until hover on pointer devices) */
.ap-makes__grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ap-makes__grid > li { width: calc((100% - 5 * 16px) / 6); }
.ap-make { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 20px 12px 16px; border: 1px solid var(--ap-line); border-radius: 12px; background: var(--ap-surface); color: var(--ap-ink); text-decoration: none; text-align: center; transition: border-color .25s var(--ap-ease), box-shadow .25s var(--ap-ease), transform .25s var(--ap-ease); }
.ap-make:hover, .ap-make:focus-visible { border-color: var(--ap-primary); box-shadow: 0 10px 24px rgba(15, 23, 42, .1); transform: translateY(-2px); color: var(--ap-ink); }
.ap-make__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; margin-bottom: 12px; }
.ap-make__logo img { max-width: 100%; max-height: 100%; object-fit: contain; transition: filter .3s var(--ap-ease), opacity .3s var(--ap-ease); }
.ap-make__mono { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ap-primary); color: #fff; font-family: var(--ap-font-head); font-size: 1.4rem; font-weight: 800; }
.ap-make__name { font-size: .85rem; font-weight: 700; letter-spacing: .02em; line-height: 1.25; }
.ap-make__count { margin-top: 4px; font-size: .75rem; color: var(--ap-muted); }
@media (hover: hover) {
	.ap-make__logo img { filter: grayscale(1); opacity: .6; }
	.ap-make:hover .ap-make__logo img, .ap-make:focus-visible .ap-make__logo img { filter: none; opacity: 1; }
}
@media (max-width: 1024px) { .ap-makes__grid > li { width: calc((100% - 3 * 16px) / 4); } }
@media (max-width: 760px) { .ap-makes__grid > li { width: calc((100% - 2 * 12px) / 3); } .ap-makes__grid { gap: 12px; } }
@media (max-width: 460px) { .ap-makes__grid > li { width: calc((100% - 12px) / 2); } }
.ap-finder__tabs { grid-template-columns: repeat(3, 1fr) !important; }
.ap-finder__panel .apc-lookup { border: 0; border-radius: 0; }
.ap-finder__tabs button { font-size: .9rem; }

/* Category cards (WooCommerce [product_categories] and shop) */
.woocommerce ul.products li.product-category a { display: flex; flex-direction: column; height: 100%; color: var(--ap-ink); text-decoration: none; }
.woocommerce ul.products li.product-category a img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; padding: 8px; }
.woocommerce ul.products li.product-category .woocommerce-loop-category__title { padding: 0 !important; font-family: var(--ap-font); font-size: 1rem !important; font-weight: 700; line-height: 1.3; }
.woocommerce ul.products li.product-category mark.count { background: none; color: var(--ap-muted); font-weight: 600; font-size: .85rem; }
.woocommerce ul.products li.product-category:hover .woocommerce-loop-category__title { color: var(--ap-accent-strong); }
.ap-cat__visual img { border-radius: 10px; background: #fff; }

/* Home: "Our brands" logo cloud (wipe animation driven by main.js) */
.ap-brands { background: var(--ap-surface); border-block: 1px solid var(--ap-line-soft); }
.ap-brands__head { max-width: 640px; margin: 0 auto; text-align: center; }
.ap-brands__head .ap-section__title::after { margin-inline: auto; }
.ap-brands__head p { margin: 8px 0 0; color: var(--ap-muted); font-size: .95rem; }
.ap-brands__cloud { list-style: none; margin: 32px auto 0; padding: 0; max-width: 1040px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 32px; }
.ap-brand { width: 140px; }
.ap-brand__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: var(--ap-radius-sm); color: var(--ap-ink); text-decoration: none; transition: transform .25s var(--ap-ease); }
.ap-brand__inner:hover, a.ap-brand__inner:focus-visible { transform: scale(1.07); }
.ap-brand__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 60px; }
.ap-brand__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ap-brand__mono { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ap-primary); color: #fff; font-family: var(--ap-font-head); font-size: 1.6rem; font-weight: 800; box-shadow: inset 0 0 0 3px var(--ap-accent); }
.ap-brand__name { font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-align: center; line-height: 1.25; }
.ap-brand__count { font-size: .72rem; color: var(--ap-muted); }
@media (max-width: 640px) {
	.ap-brands__cloud { gap: 20px 8px; }
	.ap-brand { width: calc((100% - 16px) / 3); }
	.ap-brand__logo { height: 48px; }
	.ap-brand__mono { width: 46px; height: 46px; font-size: 1.3rem; }
}

/* Home "Main categories": same light cards as the product sections (square photo, name,
   product count, outline "See products"; soft shadow on hover) */
.ap-cats .ap-section__head { flex-direction: column; align-items: center; gap: 8px; margin-bottom: 28px; text-align: center; }
.ap-cats .ap-section__title::after { margin-inline: auto; }
.ap-cats .ap-cats__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ap-cats .ap-cats__grid > li { width: calc((100% - 5 * 16px) / 6); }
.ap-cats .ap-cat { align-items: stretch; gap: 0; padding: 16px; border-radius: 8px; text-align: left; box-shadow: none; transform: none; transition: box-shadow .3s ease; }
.ap-cats .ap-cat:hover, .ap-cats .ap-cat:focus-visible { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); transform: none; border-color: var(--ap-line); }
.ap-cats .ap-cat__visual { width: 100%; height: auto; aspect-ratio: 4 / 5; margin-bottom: 16px; border-radius: 6px; background: var(--ap-bg); overflow: hidden; }
.ap-cats .ap-cat:hover .ap-cat__visual { background: var(--ap-bg); }
/* Category photos fill the frame (cropped to 4:5) */
.ap-cats .ap-cat__visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; background: transparent; }
.ap-cats .ap-cat__icon { width: 56px; height: 56px; }
.ap-cats .ap-cat__name { margin-bottom: 4px; font-size: .95rem; font-weight: 500; text-wrap: balance; }
.ap-cats .ap-cat__count { font-size: .82rem; color: var(--ap-muted); }
.ap-cats .ap-cat__cta { display: flex; align-items: center; justify-content: center; min-height: 34px; margin-top: auto; padding: 6px 12px; border: 1px solid var(--ap-line); border-radius: 6px; background: var(--ap-surface); font-size: .85rem; font-weight: 600; transition: background-color .2s, border-color .2s; }
.ap-cats .ap-cat__count + .ap-cat__cta, .ap-cats .ap-cat__name + .ap-cat__cta { margin-top: 14px; }
.ap-cats .ap-cat:hover .ap-cat__cta { background: var(--ap-bg); border-color: var(--ap-primary); }
@media (max-width: 1280px) { .ap-cats .ap-cats__grid > li { width: calc((100% - 3 * 16px) / 4); } }
@media (max-width: 1024px) { .ap-cats .ap-cats__grid > li { width: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 640px) { .ap-cats .ap-cats__grid { gap: 10px; } .ap-cats .ap-cats__grid > li { width: calc((100% - 10px) / 2); } .ap-cats .ap-cat { padding: 10px; } }

/* Home product sections: light cards (centred title, 6 per row on wide screens, square image,
   price then struck-out price, outline button; the card lifts its shadow on hover) */
.ap-products-section .ap-section__head { flex-direction: column; align-items: center; gap: 8px; margin-bottom: 28px; text-align: center; }
.ap-products-section .ap-section__title::after { margin-inline: auto; }
.ap-products-section .woocommerce ul.products { gap: 16px; }
.ap-products-section .woocommerce ul.products.columns-6 { --ap-cols: 6; }
.ap-products-section .woocommerce ul.products li.product { gap: 0; padding: 16px; border-radius: 8px; box-shadow: none; transform: none; transition: box-shadow .3s ease; }
.ap-products-section .woocommerce ul.products li.product:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); transform: none; }
.ap-products-section .woocommerce ul.products li.product > a:first-child { display: flex; flex: 1; flex-direction: column; color: var(--ap-ink); text-decoration: none; }
.ap-products-section .woocommerce ul.products li.product a img { margin: 0 0 16px !important; border-radius: 6px; background: transparent; }
.ap-products-section .woocommerce ul.products li.product .woocommerce-loop-product__title { margin-bottom: 4px; font-size: .92rem !important; font-weight: 500; line-height: 1.35; text-wrap: balance; }
.ap-products-section .woocommerce ul.products li.product .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding-top: 4px; font-size: 1rem !important; font-weight: 600; }
.ap-products-section .woocommerce ul.products li.product .price ins { order: -1; color: var(--ap-ink); font-weight: 600; }
.ap-products-section .woocommerce ul.products li.product .price del { font-size: .85rem; opacity: 1; }
.ap-products-section .woocommerce ul.products li.product .apc-availability { margin: 8px 0 0; font-size: .78rem; }
.ap-products-section .woocommerce ul.products li.product .button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; margin-top: 14px; padding: 6px 12px; border: 1px solid var(--ap-line); border-radius: 6px; background: var(--ap-surface); color: var(--ap-ink); font-size: .85rem; font-weight: 600; transition: background-color .2s, border-color .2s; }
.ap-products-section .woocommerce ul.products li.product .button:hover { background: var(--ap-bg); border-color: var(--ap-primary); color: var(--ap-ink); }
@media (max-width: 1280px) { .ap-products-section .woocommerce ul.products { --ap-cols: 4 !important; } }
@media (max-width: 1024px) { .ap-products-section .woocommerce ul.products { --ap-cols: 3 !important; } }
@media (max-width: 640px) { .ap-products-section .woocommerce ul.products { --ap-cols: 2 !important; gap: 10px; } .ap-products-section .woocommerce ul.products li.product { padding: 10px; } }

/* Category bar "glow menu": soft glow over the whole bar, a coloured halo behind the hovered
   link and a 3D flip of its label (faces added by main.js; without JS the bar is unchanged). */
.ap-catbar { position: relative; }
.ap-catbar::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s cubic-bezier(.4, 0, .2, 1);
	background: radial-gradient(ellipse 45% 160% at 30% 50%, rgba(96, 165, 250, .16), transparent 70%), radial-gradient(ellipse 40% 160% at 60% 50%, rgba(192, 132, 252, .14), transparent 70%), radial-gradient(ellipse 40% 160% at 88% 50%, rgba(248, 113, 113, .14), transparent 70%); }
.ap-catbar:hover::before { opacity: 1; }
.ap-catbar__inner { position: relative; z-index: 1; }
.ap-catbar__list > li:nth-child(4n+1) { --ap-glow: 96, 165, 250; }
.ap-catbar__list > li:nth-child(4n+2) { --ap-glow: 251, 146, 60; }
.ap-catbar__list > li:nth-child(4n+3) { --ap-glow: 74, 222, 128; }
.ap-catbar__list > li:nth-child(4n+4) { --ap-glow: 248, 113, 113; }
.ap-catbar__vehicles { --ap-glow: 191, 219, 254; }
.ap-catbar__all { --ap-glow: 255, 255, 255; }
.ap-flip { position: relative; isolation: isolate; perspective: 600px; }
.ap-flip::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 10px; pointer-events: none; opacity: 0; transform: scale(.8);
	background: radial-gradient(ellipse at center, rgba(var(--ap-glow, 255, 255, 255), .5) 0%, rgba(var(--ap-glow, 255, 255, 255), .2) 45%, rgba(var(--ap-glow, 255, 255, 255), 0) 72%);
	transition: opacity .5s cubic-bezier(.4, 0, .2, 1), transform .5s cubic-bezier(.34, 1.4, .64, 1); }
.ap-flip__front, .ap-flip__back { display: inline-flex; align-items: center; gap: inherit; backface-visibility: hidden; transition: transform .5s cubic-bezier(.34, 1.3, .64, 1), opacity .5s cubic-bezier(.4, 0, .2, 1); }
.ap-flip__front { transform-origin: center bottom; }
.ap-flip__back { position: absolute; inset: 0; justify-content: center; transform-origin: center top; transform: rotateX(90deg); opacity: 0; }
.ap-catbar__list .current-menu-item > .ap-flip::before { opacity: 1; transform: scale(1.1); }
.ap-catbar__list a.ap-flip:hover, .ap-catbar__list .current-menu-item > a.ap-flip { box-shadow: none; }
.ap-flip:focus-visible::before { opacity: 1; transform: scale(1.1); }
@media (hover: hover) {
	.ap-flip:hover::before { opacity: 1; transform: scale(1.1); }
	.ap-flip:hover .ap-flip__front { transform: rotateX(-90deg); opacity: 0; }
	.ap-flip:hover .ap-flip__back { transform: rotateX(0deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.ap-flip:hover .ap-flip__front { transform: none; opacity: 1; }
	.ap-flip:hover .ap-flip__back { opacity: 0; }
}

/* WhatsApp chat button (store number from the AutoParts Core settings) */
.ap-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 800; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #25d366; color: #0b2e17; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(15, 23, 42, .22); transition: transform .2s var(--ap-ease), box-shadow .2s var(--ap-ease), background-color .2s var(--ap-ease); }
.ap-whatsapp .ap-icon { width: 26px; height: 26px; flex: none; }
.ap-whatsapp:hover, .ap-whatsapp:focus-visible { background: #1ebe5b; color: #0b2e17; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 23, 42, .28); }
.ap-whatsapp:focus-visible { outline: 3px solid var(--ap-primary); outline-offset: 3px; }
@media (max-width: 600px) {
	.ap-whatsapp { right: 14px; bottom: 14px; padding: 14px; }
	.ap-whatsapp__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	/* Stay above the sticky add-to-cart bar of product pages */
	.single-product .ap-whatsapp { bottom: calc(var(--ap-sticky-cart, 88px) + 12px); }
}
/* ---------- Home FAQ: card-index drawer (native <details>, one open at a time) ---------- */
.ap-faq {
	/* Site palette: light page, navy drawer (header colours), white cards, accent red for what is open or clickable. */
	--fq-desk: var(--ap-bg); --fq-face: var(--ap-primary-2); --fq-face-hi: var(--ap-primary-3); --fq-face-lo: var(--ap-primary); --fq-well: #0b1524;
	--fq-ink: var(--ap-ink); --fq-ink-2: var(--ap-muted); --fq-hl: rgb(255 255 255 / .1); --fq-sh: 10 19 32; --fq-sh-a: .35;
	--fq-paper: var(--ap-surface); --fq-type: var(--ap-ink); --fq-type-2: var(--ap-muted); --fq-rule: var(--ap-line-soft); --fq-rule-2: var(--ap-line); --fq-drop: rgb(10 19 32 / .4);
	--fq-fibre: linear-gradient(transparent, transparent);
	--fq-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--fq-well-fill: linear-gradient(to bottom, color-mix(in oklab, var(--fq-well) 86%, rgb(var(--fq-sh))), var(--fq-well) 55%);
	--fq-raised: inset 0 1px 0 var(--fq-hl), 0 0 0 1px rgb(var(--fq-sh) / calc(var(--fq-sh-a) * .35)), 0 1px 1.5px rgb(var(--fq-sh) / calc(var(--fq-sh-a) * 1.2)), 0 5px 12px -5px rgb(var(--fq-sh) / var(--fq-sh-a));
	--fq-inset: inset 0 3px 3px -2px rgb(var(--fq-sh) / calc(var(--fq-sh-a) * 2.6)), inset 0 9px 12px -9px rgb(var(--fq-sh) / calc(var(--fq-sh-a) * 1.8)), inset 0 0 0 1px rgb(var(--fq-sh) / calc(var(--fq-sh-a) * .45)), inset 0 -1px 0 color-mix(in oklab, var(--fq-hl) 60%, transparent), 0 1px 0 var(--fq-hl);
	container: apfaq / inline-size;
	interpolate-size: allow-keywords;
	background: var(--fq-desk);
	color: var(--fq-ink);
}
.ap-faq p { margin: 0; }
.ap-faq { scroll-margin-top: 120px; }
.ap-faq__wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); gap: 40px clamp(40px, 6cqi, 104px); align-items: start; padding-block: clamp(56px, 8cqi, 112px); }
.ap-faq__head { position: sticky; top: 170px; padding-top: 34px; }
.ap-faq__label { margin-bottom: 16px !important; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ap-accent); }
.ap-faq__title { margin: 0; font-family: var(--ap-font-head); font-size: clamp(32px, 4cqi, 52px); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; color: var(--fq-ink); text-wrap: balance; }
.ap-faq__title::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 14px; border-radius: 2px; background: var(--ap-accent); }
.ap-faq__lead { margin-top: 20px !important; max-width: 36ch; font-size: clamp(15px, 1.3cqi, 17px); color: var(--fq-ink-2); text-wrap: pretty; }

.ap-faq__drawer { position: relative; isolation: isolate; padding: 12px 12px 0; border-radius: 14px; background: var(--fq-face); box-shadow: var(--fq-raised); }
.ap-faq__drawer::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--fq-noise), linear-gradient(170deg, rgb(255 255 255 / .06), transparent 40%); opacity: .2; pointer-events: none; }
.ap-faq__tray { display: grid; padding: 40px 12px 16px; border-radius: 9px 9px 4px 4px; background: var(--fq-well-fill) var(--fq-well); box-shadow: var(--fq-inset); }

.ap-faq__card { --shade: calc(var(--depth, 0) * .07); position: relative; margin-inline: calc(var(--depth, 0) * 5px); border-radius: 4px 4px 1px 1px; background: linear-gradient(rgb(15 27 45 / var(--shade)), rgb(15 27 45 / var(--shade))), var(--fq-fibre), var(--fq-paper); color: var(--fq-type); box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 2px 0 rgb(0 0 0 / .05), 0 -1px 0 rgb(0 0 0 / .1), 0 -7px 10px -5px var(--fq-drop); transition: transform 220ms var(--ap-ease), box-shadow 220ms var(--ap-ease); }
.ap-faq__card:first-child { box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), 0 -1px 0 rgb(0 0 0 / .08); }
.ap-faq__card:not([open]):hover { transform: translateY(-3px); }
.ap-faq__card[open] { z-index: 2; margin-top: 9px; transform: translateY(-12px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), 0 -5px 9px -5px var(--fq-drop), 0 22px 30px -16px var(--fq-drop), 0 2px 3px rgb(0 0 0 / .12); }

.ap-faq__edge { display: grid; grid-template-columns: 5.2ch minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; padding: 16px 18px 22px; list-style: none; cursor: pointer; font: 400 15px/22px var(--ap-font-mono); border-radius: inherit; -webkit-tap-highlight-color: transparent; }
.ap-faq__edge::-webkit-details-marker { display: none; }
.ap-faq__edge::marker { content: ""; }
.ap-faq__edge:focus-visible { outline: 2px solid var(--fq-type); outline-offset: -5px; }
.ap-faq__no { font-size: 11.5px; letter-spacing: .04em; color: var(--fq-type-2); }
.ap-faq__q { text-wrap: pretty; }
.ap-faq__mark { position: relative; width: 12px; height: 12px; align-self: center; }
.ap-faq__mark::before, .ap-faq__mark::after { content: ""; position: absolute; left: 1px; right: 1px; top: 5.25px; height: 1.5px; background: var(--fq-type-2); }
.ap-faq__mark::after { transform: rotate(90deg); transition: transform 220ms var(--ap-ease); }
.ap-faq__card[open] .ap-faq__mark::after { transform: rotate(0deg); }
/* What is pulled out, or under the pointer, takes the site's accent. */
.ap-faq__card:hover .ap-faq__q, .ap-faq__card[open] .ap-faq__q { color: var(--ap-accent-strong); }
.ap-faq__card[open] .ap-faq__no { color: var(--ap-accent); }
.ap-faq__card[open] .ap-faq__mark::before, .ap-faq__card[open] .ap-faq__mark::after { background: var(--ap-accent); }
.ap-faq__card[open] .ap-faq__tab { background: var(--ap-accent); color: #fff; box-shadow: 0 -4px 7px -4px var(--fq-drop); }
.ap-faq__tab { position: absolute; bottom: 100%; left: calc(var(--tab-at, 0) * 100%); height: 19px; padding: 3px 11px 0; border-radius: 5px 5px 0 0; background: linear-gradient(rgb(15 27 45 / var(--shade)), rgb(15 27 45 / var(--shade))), var(--fq-fibre), var(--fq-paper); box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), 0 -4px 7px -4px var(--fq-drop); font: 400 10.5px/16px var(--ap-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fq-type-2); white-space: nowrap; pointer-events: none; }

.ap-faq__card::details-content { block-size: 0; overflow: clip; transition: block-size 320ms var(--ap-ease), content-visibility 320ms allow-discrete; }
.ap-faq__card[open]::details-content { block-size: auto; }
.ap-faq__face { margin: -8px 18px 0; padding: 16px 0 22px calc(5.2ch + 12px); border-top: 3px double var(--fq-rule-2); font: 400 14px/26px var(--ap-font-mono); background: repeating-linear-gradient(to bottom, transparent 0 25px, var(--fq-rule) 25px 26px) 0 20px / 100% calc(100% - 42px) no-repeat; }
.ap-faq__a { max-width: 60ch; }
.ap-faq__more a { color: var(--fq-type); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ap-faq__more a:hover { color: var(--ap-accent-strong); }
.ap-faq__filed { margin-top: 26px !important; font-size: 11px; letter-spacing: .06em; color: var(--fq-type-2); text-align: right; }

.ap-faq__front { position: relative; display: grid; justify-items: center; gap: 10px; margin: 0 -12px; padding: 16px 0 18px; border-radius: 0 0 14px 14px; background: linear-gradient(to bottom, color-mix(in oklab, var(--fq-face-hi) 70%, var(--fq-face)), var(--fq-face)); box-shadow: inset 0 1px 0 var(--fq-hl), inset 0 2px 0 rgb(var(--fq-sh) / calc(var(--fq-sh-a) * .6)), 0 -1px 0 rgb(var(--fq-sh) / calc(var(--fq-sh-a) * .9)); }
.ap-faq__holder { display: block; padding: 3px; border-radius: 3px; background: linear-gradient(var(--fq-face-lo), var(--fq-face-hi)); box-shadow: 0 0 0 1px rgb(var(--fq-sh) / calc(var(--fq-sh-a) * 1.2)), 0 1px 0 var(--fq-hl), inset 0 1px 1px rgb(0 0 0 / .25); }
.ap-faq__holder-card { display: block; min-width: 132px; padding: 3px 12px 2px; border-radius: 1px; background: var(--fq-fibre), var(--fq-paper); box-shadow: inset 0 1px 2px rgb(0 0 0 / .25); font: 400 11px/16px var(--ap-font-mono); letter-spacing: .08em; text-align: center; text-transform: uppercase; color: var(--fq-type); }
.ap-faq__pull { display: block; width: 108px; height: 22px; border-radius: 3px 3px 54px 54px / 3px 3px 22px 22px; background: var(--fq-well-fill) var(--fq-well); box-shadow: var(--fq-inset); }

.ap-faq__ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 28px; padding-inline: 4px; }
.ap-faq__note { max-width: 44ch; font-size: 14.5px; color: var(--fq-ink-2); }
.ap-faq__key { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 9px; font-weight: 700; font-size: 14px; color: #fff; text-decoration: none; background: radial-gradient(120% 90% at 50% 0%, rgb(255 255 255 / .14), transparent 60%), var(--ap-accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 3px 0 var(--ap-accent-strong), 0 4px 2px rgb(var(--fq-sh) / calc(var(--fq-sh-a) * 1.4)), 0 9px 14px -6px rgb(var(--fq-sh) / var(--fq-sh-a)); transition: transform 70ms var(--ap-ease), box-shadow 70ms var(--ap-ease); }
.ap-faq__key:hover { color: #fff; }
.ap-faq__key:active { transform: translateY(3px); box-shadow: inset 0 5px 5px -4px rgb(var(--fq-sh) / calc(var(--fq-sh-a) * 3)), 0 1px 0 var(--fq-hl); }
.ap-faq__key:focus-visible { outline: 2px solid var(--fq-ink); outline-offset: 3px; }

@container apfaq (max-width: 959px) {
	.ap-faq__wrap { grid-template-columns: minmax(0, 1fr); }
	.ap-faq__head { position: static; padding-top: 0; max-width: 640px; }
}
@container apfaq (max-width: 559px) {
	.ap-faq__drawer { padding: 8px 8px 0; }
	.ap-faq__tray { padding: 34px 6px 12px; }
	.ap-faq__card { margin-inline: calc(var(--depth, 0) * 3px); }
	.ap-faq__edge { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 14px 20px; font-size: 14px; line-height: 21px; }
	.ap-faq__no { display: none; }
	.ap-faq__tab { font-size: 9.5px; padding-inline: 8px; }
	.ap-faq__face { margin-inline: 14px; padding-left: 0; font-size: 13.5px; }
	.ap-faq__front { margin-inline: -8px; }
	.ap-faq__ask { flex-direction: column; align-items: stretch; }
	.ap-faq__key { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.ap-faq__card, .ap-faq__mark::after, .ap-faq__key, .ap-faq__card::details-content { transition: none; }
	.ap-faq__card:not([open]):hover { transform: none; }
}