/*
Theme Name: Sydney Car Parts
Template: twentytwentyfive
Description: Fast storefront for trade and retail car parts: instant part search, vehicle finder, quick order, trade accounts.
Version: 2.0.0
Text Domain: partsstore
*/

:root {
	--ink: #0b1424; --ink-2: #14223a; --ink-3: #1e2f4d;
	--accent: #1e3a8a; --accent-dark: #172554; --accent-soft: #eaf0ff; --accent-on-dark: #9db8ff; --sky: #3db5ff;
	--surface: #f4f6f9; --line: #e2e6ec; --muted: #5b6575; --ok: #138a43;
	--radius: 14px; --shadow: 0 1px 2px rgb(11 20 36 / .06), 0 8px 24px rgb(11 20 36 / .08);
	--wrap: 1280px; --gutter: clamp(16px, 3vw, 32px);
}

/* ---------- Base ---------- */
html { scroll-padding-top: 140px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
/* No focus outline after a mouse click or tap; keyboard users still get the ring above. */
:where(a, button, summary, [tabindex], .wp-element-button):focus:not(:focus-visible) { outline: none; }
html { -webkit-tap-highlight-color: transparent; }
.ps-catnav a:focus-visible { outline-offset: -3px; }
.ps-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ps-i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ps-eyebrow { margin: 0 0 .5rem; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.ps-eyebrow--light { color: var(--accent-on-dark); }
.ps-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--accent-dark); text-decoration: none; }
.ps-link:hover { text-decoration: underline; }
.ps-btn, .scp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: 0 1.4rem; border: 0; border-radius: 10px; background: var(--accent); color: #fff !important; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.ps-btn:hover, .scp-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.ps-btn--light { background: #fff; color: var(--ink) !important; }
.ps-btn--light:hover { background: var(--accent-soft); }
.scp-btn--ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--ink); }
.scp-btn--ghost:hover { background: var(--ink); color: #fff !important; }
kbd { padding: .05rem .4rem; border-radius: 5px; border: 1px solid currentColor; font: 700 .75em ui-monospace, monospace; opacity: .8; }

/* ---------- Logo ---------- */
.ps-logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; flex: none; }
.ps-logo__scp { display: inline-block; font-family: "Archivo Black", "Arial Black", sans-serif; font-size: 2rem; line-height: .9; letter-spacing: -.03em; color: var(--ink); transform: skewX(-8deg); }
.ps-logo__scp i { font-style: normal; color: var(--accent); margin-left: .02em; }
.ps-logo__type { display: flex; flex-direction: column; padding-left: .7rem; border-left: 2px solid var(--accent); font-family: Inter, sans-serif; font-size: .74rem; font-weight: 600; letter-spacing: .24em; line-height: 1.45; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.ps-logo--light .ps-logo__scp, .ps-logo--light .ps-logo__type { color: #fff; }
.ps-logo--light .ps-logo__scp i { color: var(--accent-on-dark); }
.ps-logo--light .ps-logo__type { border-left-color: var(--accent-on-dark); }

/* ---------- Header ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 60; margin: 0; }
.ps-topbar { background: var(--ink); color: #c9d2e0; font-size: .8rem; }
.ps-topbar .ps-wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.ps-topbar span, .ps-topbar a { display: inline-flex; align-items: center; gap: .4rem; }
.ps-topbar .ps-i { color: var(--accent-on-dark); }
.ps-topbar__trade { color: #fff; font-weight: 700; text-decoration: none; }
.ps-topbar__trade:hover { color: var(--accent-on-dark); }
.ps-head { background: rgb(255 255 255 / .96); backdrop-filter: saturate(1.5) blur(10px); border-bottom: 1px solid var(--line); }
.ps-head__row { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); padding-block: .7rem; }
.ps-head .scp-search { flex: 1; max-width: 680px; }
.ps-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.ps-action { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .75rem; border-radius: 10px; color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ps-action:hover { background: var(--surface); color: var(--ink); }
.ps-action .ps-i { width: 1.35em; height: 1.35em; }
.ps-action--cart { padding: 0; }
.ps-action--cart .wc-block-mini-cart__button { padding: .55rem .75rem; border-radius: 10px; color: var(--ink); }
.ps-action--cart .wc-block-mini-cart__badge { background: var(--accent); color: #fff; border: 0; }
.ps-catnav { background: var(--ink-2); }
.ps-catnav ul { display: flex; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.ps-catnav ul::-webkit-scrollbar { display: none; }
.ps-catnav a { display: block; padding: .7rem 1rem; color: #e5eaf2; font-size: .84rem; font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.ps-catnav a:hover { color: #fff; border-bottom-color: var(--accent); }
.ps-catnav__shop { margin-left: auto; }
.ps-catnav__shop a { color: var(--accent-on-dark); }

/* ---------- Instant search ---------- */
.scp-search { position: relative; display: flex; align-items: center; margin: 0; }
.scp-search__icon { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.scp-search input[type="search"] { width: 100%; min-height: 48px; padding: 0 3rem 0 2.75rem; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .15s, background .15s, box-shadow .15s; -webkit-appearance: none; }
.scp-search input[type="search"]:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgb(61 181 255 / .25); }
.scp-search__kbd { position: absolute; right: 14px; color: var(--muted); }
.scp-search input:focus ~ .scp-search__kbd { display: none; }
.scp-search.is-loading .scp-search__icon { animation: ps-pulse .8s ease-in-out infinite; color: var(--accent); }
.scp-search--xl input[type="search"] { min-height: 64px; font-size: 1.15rem; border-radius: 14px; border-color: transparent; background: #fff; padding-left: 3.25rem; }
.scp-search--xl .scp-search__icon { left: 18px; width: 24px; height: 24px; }
.scp-search__results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70; margin: 0; padding: .4rem; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgb(11 20 36 / .22); max-height: min(70vh, 560px); overflow: auto; text-align: left; }
.scp-search__results li[role="option"] { display: flex; align-items: center; border-radius: 10px; }
.scp-search__results li.is-active, .scp-search__results li[role="option"]:hover { background: var(--surface); }
.scp-hit { flex: 1; display: flex; align-items: center; gap: .75rem; padding: .5rem; color: var(--ink); text-decoration: none; min-width: 0; }
.scp-hit img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: var(--surface); flex: none; }
.scp-hit__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.scp-hit__name { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scp-hit__meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .75rem; color: var(--muted); }
.scp-hit__meta b { color: var(--ink); font-family: ui-monospace, monospace; }
.scp-hit__meta i { font-style: normal; }
.scp-hit__meta i.ok { color: var(--ok); }
.scp-hit__meta i.free { color: var(--accent-dark); font-weight: 700; }
.scp-hit__price { font-weight: 800; white-space: nowrap; }
.scp-hit__add { display: grid; place-items: center; width: 38px; height: 38px; margin-right: .35rem; border-radius: 10px; background: var(--accent); color: #fff; font-size: 1.4rem; font-weight: 700; text-decoration: none; flex: none; }
.scp-hit__add:hover { background: var(--accent-dark); color: #fff; }
.scp-hit__add.is-added { background: var(--ok); font-size: 1rem; }
.scp-search__all a, .scp-search__empty { display: block; padding: .7rem .75rem; font-size: .88rem; font-weight: 700; color: var(--accent-dark); text-decoration: none; }
.scp-search__empty { color: var(--muted); font-weight: 500; }

/* ---------- Hero ---------- */
.ps-home { margin-top: 0 !important; }
.ps-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgb(59 110 255 / .28), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgb(61 181 255 / .22), transparent 60%), linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.ps-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
/* Background video (assets/hero.mp4) or the exploded-car drawing. */
.ps-hero__media { position: absolute; inset: 0; pointer-events: none; }
.ps-hero__media video { width: 100%; height: 100%; object-fit: cover; }
.ps-hero__media:not(.ps-hero__media--art)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 20 36 / .78), rgb(11 20 36 / .62) 45%, rgb(11 20 36 / .9)); }
/* Race ute under the search, in Sydney Car Parts livery. */
.ps-ute { width: min(760px, 100%); margin: 2.25rem auto 0; }
.ps-ute svg { display: block; width: 100%; height: auto; overflow: visible; }
.ps-ute__car { animation: ps-bob .9s ease-in-out infinite; }
.ps-ute__spin { animation: ps-spin .6s linear infinite; }
.ps-ute__road { animation: ps-road .5s linear infinite; }
.ps-ute__speed { opacity: .8; animation: ps-speed .5s linear infinite; }
.ps-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ps-hero h1 { margin: 0; font-size: clamp(2.5rem, 6.4vw, 4.75rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; color: #fff; }
.ps-hero h1 span { background: linear-gradient(90deg, #fff 0%, #c7d6ff 45%, var(--accent-on-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ps-hero__lede { max-width: 640px; margin: 1.1rem auto 2rem; font-size: clamp(1rem, 1.6vw, 1.2rem); color: #c9d2e0; }
.ps-hero__panel { width: 100%; max-width: 860px; padding: .6rem; border-radius: 20px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); backdrop-filter: blur(12px); box-shadow: 0 30px 80px rgb(0 0 0 / .35); text-align: left; }
.ps-tabs { display: flex; gap: .35rem; margin-bottom: .6rem; overflow-x: auto; scrollbar-width: none; }
.ps-tabs button { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .95rem; border: 0; border-radius: 10px; background: transparent; color: #c9d2e0; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ps-tabs button:hover { color: #fff; background: rgb(255 255 255 / .06); }
.ps-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.ps-hint { margin: .6rem .4rem .2rem; font-size: .8rem; color: #9fb0c8; }
.ps-hero__panel .scp-qo { background: #fff; border-radius: 14px; padding: 1rem; color: var(--ink); }
.ps-hero__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.75rem; margin: 2rem 0 0; padding: 0; list-style: none; font-size: .9rem; color: #c9d2e0; }
.ps-hero__stats li { display: inline-flex; align-items: center; gap: .45rem; }
.ps-hero__stats b { color: #fff; }
.ps-hero__stats .ps-i { color: var(--accent-on-dark); }

/* ---------- Vehicle finder ---------- */
.ps-finder { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: .5rem; padding: .5rem; border-radius: 14px; background: #fff; }
.ps-finder select, .ps-finder input[type="search"] { width: 100%; min-height: 54px; padding: 0 .9rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); }
.ps-finder select:disabled { opacity: .55; }
.ps-finder .ps-btn { min-height: 54px; }

/* ---------- Sections ---------- */
.ps-section { padding-block: clamp(3rem, 6vw, 5rem); }
.ps-section--alt { background: var(--surface); }
.ps-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .25rem 1.5rem; margin-bottom: 2rem; }
.ps-section__head .ps-eyebrow { flex-basis: 100%; }
.ps-section__head h2 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.ps-section__head .ps-link { margin-left: auto; }

.ps-aud__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.ps-aud__grid a { display: flex; flex-direction: column; height: 100%; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.ps-aud__grid a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.ps-aud__grid a > .ps-i { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); }
.ps-aud__grid h3 { margin: 1rem 0 .4rem; font-size: 1.05rem; }
.ps-aud__grid p { margin: 0 0 1rem; font-size: .9rem; color: var(--muted); flex: 1; }

.ps-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.ps-cats a { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: 1.4rem 1.25rem; min-height: 150px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .2s, box-shadow .2s; }

.ps-cats a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.ps-cats .ps-i { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: auto; transition: background .2s, color .2s; }
.ps-cats a:hover .ps-i { background: var(--accent); color: #fff; }
.ps-cats b { font-size: 1.02rem; margin-top: 1rem; }
.ps-cats small { color: var(--muted); }

.ps-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.ps-steps li { position: relative; padding: 1.75rem; border-radius: var(--radius); background: var(--surface); counter-increment: s; }
.ps-steps li::before { content: "0" counter(s); position: absolute; top: 1.2rem; right: 1.4rem; font-size: 2.6rem; font-weight: 900; color: var(--line); }
.ps-steps .ps-i { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); }
.ps-steps h3 { margin: .9rem 0 .4rem; font-size: 1.15rem; }
.ps-steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.ps-band { background: linear-gradient(110deg, var(--ink) 0%, var(--accent) 100%); color: #fff; }
.ps-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.ps-band h2 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; }
.ps-band p { margin: 0; max-width: 640px; color: #dbe5ff; }
.ps-band .ps-eyebrow { color: var(--ink); }

/* ---------- Product cards & pages ---------- */
.wc-block-product, .wp-block-post.product { padding: .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, transform .2s; }
.wc-block-product:hover, .wp-block-post.product:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.wc-block-components-product-image img, .wc-block-product img { aspect-ratio: 1; object-fit: contain; background: var(--surface); border-radius: 10px; }
.wc-block-components-product-price, .wp-block-woocommerce-product-price { font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.wp-block-button__link.add_to_cart_button, .wc-block-components-product-button__button { width: 100%; border-radius: 10px !important; font-weight: 800 !important; }
.ps-partno { margin: .1rem 0 .3rem; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ps-partno span { color: var(--ink); font-weight: 800; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; }
.ps-partno--lg { font-size: .9rem; margin-top: .5rem; }
.ps-copy { margin-left: .4rem; padding: .15rem .5rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; font-size: .72rem; cursor: pointer; }
.ps-branches { margin: 1rem 0; font-size: .9rem; }
.ps-branches ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .45rem 0 0; padding: 0; }
.ps-branches li { padding: .25rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.ps-branches li::before { content: "●"; margin-right: .35rem; }
.ps-branches .is-in { background: #e7f6ec; color: var(--ok); }
.ps-branches .is-out { background: var(--surface); color: #8a9099; }
.alf-badge { display: inline-flex; align-items: center; margin: .3rem 0; padding: .2rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.alf-badge--free { background: var(--accent-soft); color: var(--accent-dark); }
.alf-badge--freight { background: var(--surface); color: var(--muted); }
.scp-trade-price small { display: inline-block; padding: .05rem .4rem; margin-right: .2rem; border-radius: 5px; background: var(--ink); color: #fff; font-size: .65em; vertical-align: .15em; }
.scp-rrp { font-size: .8em; font-weight: 500; color: var(--muted); text-decoration: line-through; }

/* ---------- Forms: trade apply, quick order, notices ---------- */

.scp-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
.scp-form label { display: flex; flex-direction: column; gap: .4rem; min-width: 0; font-size: .85rem; font-weight: 700; color: var(--ink); }
.scp-form input, .scp-form select, .scp-qo textarea { box-sizing: border-box; width: 100%; max-width: none; margin: 0; min-height: 48px; padding: .6rem .85rem; border: 1.5px solid #cfd6e1; border-radius: 10px; font: inherit; font-size: 1rem; font-weight: 400; line-height: 1.3; color: var(--ink); background: #fff; }
.scp-form input:not([type="checkbox"]), .scp-form select { height: 48px; }
.scp-form select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230b1424' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .85rem center; }
.scp-form input::placeholder { color: #8a94a6; }
.scp-form input:focus, .scp-form select:focus, .scp-qo textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(61 181 255 / .25); }
.scp-form .scp-check { flex-direction: row; align-items: center; gap: .5rem; margin-bottom: 1.25rem; font-weight: 600; }
.scp-form .scp-check input { width: 20px; height: 20px; min-height: 20px; padding: 0; flex: none; accent-color: var(--accent); }
.scp-qo__label { display: flex; justify-content: space-between; margin-bottom: .4rem; font-weight: 800; font-size: .9rem; }
.scp-qo__label span { font-weight: 500; color: var(--muted); }
.scp-qo textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; line-height: 1.6; resize: vertical; }
.scp-qo__preview table { width: 100%; margin-top: .75rem; border-collapse: collapse; font-size: .85rem; }
.scp-qo__preview td { padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
.scp-qo__preview td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.scp-qo__preview tr.bad td { color: #b42318; }
.scp-qo__preview tfoot td { border: 0; font-weight: 800; }
.scp-qo__actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .9rem; }
.scp-notice { margin-bottom: 1rem; padding: .9rem 1.1rem; border-radius: 10px; background: #eaf6ff; color: #0b4a6f; }
.scp-notice--ok { background: #e7f6ec; color: #0d5c2c; }
.scp-notice--err { background: #fdecea; color: #8a1c13; }
.scp-notice ul { margin: 0; padding-left: 1.1rem; }

/* ---------- Footer ---------- */
.ps-foot { background: var(--ink); color: #9fb0c8; padding-top: 3.5rem; font-size: .9rem; }
.ps-foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.ps-foot__brand p { max-width: 360px; margin-top: 1rem; }
.ps-foot h3 { margin: 0 0 .9rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.ps-foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.ps-foot a { color: #c9d2e0; text-decoration: none; }
.ps-foot a:hover { color: #fff; }
.ps-foot__base { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-block: 1.25rem; border-top: 1px solid var(--ink-3); font-size: .8rem; }
footer.wp-block-template-part { margin-top: 0; }

/* ---------- Mobile tab bar ---------- */
.ps-tabbar { display: none; }

/* ---------- Animations ---------- */
/* Parts drift off the car, hold, and snap back. */
@keyframes ps-road { to { stroke-dashoffset: -80; } }
@keyframes ps-bob { 50% { transform: translateY(-2px); } }
@keyframes ps-speed { 50% { opacity: .35; transform: translateX(-10px); } }
@keyframes ps-spin { to { transform: rotate(360deg); } }
@keyframes ps-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.ps-hero__media video { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ps-aud__grid { grid-template-columns: repeat(3, 1fr); }
	.ps-topbar__mid { display: none !important; }
}
@media (max-width: 781px) {
	html { scroll-padding-top: 120px; }
	body { padding-bottom: 68px; }
	.ps-topbar { display: none; }
	.ps-head__row { flex-wrap: wrap; gap: .6rem; padding-block: .6rem; }
	.ps-head .scp-search { order: 3; flex-basis: 100%; max-width: none; }
	.ps-logo__scp { font-size: 1.6rem; }
	.ps-logo__type { font-size: .62rem; padding-left: .55rem; }
	.ps-action span { display: none; }
	.ps-action:not(.ps-action--cart) { display: none; }
	.ps-catnav a { padding: .55rem .8rem; font-size: .8rem; }
	.ps-ute { margin-top: 1.5rem; }
	.ps-hero__inner { text-align: left; align-items: stretch; }
	.ps-hero__panel { padding: .45rem; border-radius: 16px; }
	.ps-tabs { gap: .15rem; }
	.ps-tabs button { flex: 1; justify-content: center; padding: .55rem .4rem; font-size: .76rem; gap: .3rem; }
	.ps-tabs .ps-i { display: none; }
	.ps-finder { grid-template-columns: 1fr; }
	.ps-hero__stats { justify-content: flex-start; gap: .5rem 1rem; font-size: .82rem; }
	/* Audience cards become a swipeable row. */
	.ps-aud__grid { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .5rem; scrollbar-width: none; }
	.ps-aud__grid::-webkit-scrollbar { display: none; }
	.ps-aud__grid li { flex: 0 0 78%; scroll-snap-align: start; }
	.ps-aud__grid a { padding: 1.1rem; }
	.ps-cats { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
	.ps-cats a { min-height: 120px; padding: 1rem; }
	.ps-steps { grid-template-columns: 1fr; }
	.ps-band__inner { flex-direction: column; align-items: flex-start; }
	.ps-foot__grid { grid-template-columns: 1fr 1fr; }
	.ps-foot__brand { grid-column: 1 / -1; }
	.scp-form__grid { grid-template-columns: 1fr; }
	.scp-qo__actions { flex-direction: column-reverse; }
	.scp-qo__actions .scp-btn { width: 100%; }
	.ps-tabbar { position: fixed; inset: auto 0 0 0; z-index: 80; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); background: rgb(255 255 255 / .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
	.ps-tabbar a, .ps-tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem 0 .5rem; border: 0; background: none; color: var(--ink); font: inherit; font-size: .68rem; font-weight: 700; text-decoration: none; cursor: pointer; }
	.ps-tabbar .ps-i { width: 22px; height: 22px; }
	.ps-tabbar b { position: absolute; top: .3rem; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .65rem; line-height: 18px; }
}

/* ---------- Infinite scroll ---------- */
.ps-more { min-height: 1px; padding: 1.5rem 0 2.5rem; text-align: center; font-size: .9rem; font-weight: 600; color: var(--muted); }

/* ---------- Mobile hamburger ---------- */
.ps-burger { display: none; }
@media (max-width: 781px) {
	.ps-burger { order: 2; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; margin-right: -.4rem; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
	.ps-burger span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
	.ps-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
	.ps-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.ps-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
	.ps-catnav { display: none; }
	.ps-catnav.is-open { display: block; box-shadow: 0 12px 24px rgb(11 20 36 / .25); }
	.ps-catnav.is-open ul { flex-direction: column; overflow: visible; padding-block: .35rem; }
	.ps-catnav.is-open a { padding: .85rem .25rem; font-size: 1rem; border-bottom: 1px solid rgb(255 255 255 / .08); }
	.ps-catnav.is-open .ps-catnav__shop { margin-left: 0; }
}
@media (max-width: 781px) {
	.ps-head .ps-actions { order: 1; margin-left: auto; }
}

/* ---------- No search results: part request ---------- */
.scp-request { margin: 2.5rem 0 4rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.scp-request h2 { margin: .2rem 0 .5rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.scp-request > p { max-width: 640px; margin: 0 0 1.25rem; color: var(--muted); }
.scp-request__eyebrow { margin: 0 !important; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent) !important; }
.scp-hp { position: absolute !important; left: -9999px; }
.woocommerce-no-products-found ~ form.wp-block-search, .wp-block-search { margin-bottom: 1rem; }
main:has(.scp-request) { padding-bottom: 2rem; }
