/*
Theme Name: Classic JP Parts
Theme URI: https://classicjpparts.com
Author: Quo Build
Description: Custom WooCommerce theme for ClassicJpParts.com.
Version: 0.5.62
Text Domain: classicjp
*/

/* Neitrāls rezerves attēls ar skaidru norādi, nevis konkrētās preces foto. */
.cjp-parts-placeholder { position: relative; isolation: isolate; display: block; width: 100%; height: 153.9px; overflow: hidden; border-radius: 8px; background: #fafaf9; }
.cjp-parts-placeholder::before, .woocommerce-product-gallery__image--placeholder::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("/wp-content/uploads/2026/09/classic-jp-parts-pattern.svg") center / 850px auto repeat; opacity: .025; }
.cjp-parts-placeholder img, .jpg-filter-card .cjp-parts-placeholder img, .cjp-product-card__image .cjp-parts-placeholder img { width: 100% !important; height: 100% !important; padding: 0 0 16px !important; object-fit: contain !important; mix-blend-mode: multiply; opacity: .75; }
.cjp-parts-placeholder__caption { position: absolute; bottom: 6px; left: 4px; right: 4px; color: #737370; font-size: 10px; line-height: 1.3; text-align: center; }
.woocommerce-product-gallery__image--placeholder { position: relative; isolation: isolate; }
.woocommerce-product-gallery__image--placeholder > img { mix-blend-mode: multiply; opacity: .75; padding-bottom: 30px; }
.woocommerce-product-gallery__image--placeholder::after { content: "Product image unavailable"; position: absolute; bottom: 18px; left: 12px; right: 12px; color: #737370; font-size: 12px; text-align: center; }
.cjp-mini-cart-item__image .cjp-parts-placeholder { height: 64px; }
.cjp-mini-cart-item__image .cjp-parts-placeholder__caption { display: none; }

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cjp-white: #fff;
  --cjp-subtle: #f4f4f2;
  --cjp-red: #e5252a;
  --cjp-ink: #161616;
  --cjp-muted: #6b6b68;
  --cjp-line: #e4e4e1;
  --cjp-shadow: 0 14px 30px rgb(22 22 22 / 8%);
  --cjp-container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cjp-ink);
  background: var(--cjp-white);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.cjp-container { width: min(calc(100% - 48px), var(--cjp-container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.cjp-site-head { position: sticky; z-index: 100; top: 0; width: 100%; transition: transform .28s ease; will-change: transform; }
.cjp-site-head.is-hidden { transform: translateY(-100%); }
.admin-bar .cjp-site-head { top: 32px; }
.cjp-topbar { background: var(--cjp-ink); color: #fff; font-size: 12px; border-bottom: 2px solid var(--cjp-red); }
.cjp-topbar__inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cjp-topbar__links { display: flex; gap: 24px; color: #d4d4d2; }
.cjp-topbar a { color: #d4d4d2; transition: color .18s ease; }
.cjp-topbar a:hover, .cjp-topbar a:focus-visible { color: #fff; }

.cjp-header { position: relative; z-index: 20; background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--cjp-line); box-shadow: 0 6px 24px rgb(22 22 22 / 4%); }
.cjp-header__inner { min-height: 96px; display: grid; grid-template-columns: 86px minmax(280px, 1fr) auto; align-items: center; gap: clamp(22px, 2.6vw, 42px); }
.cjp-brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.cjp-brand__mark-wrap { width: 76px; height: 84px; display: grid; place-items: center; position: relative; flex: 0 0 auto; }
/* Header-scoped sizing takes precedence over WooCommerce's generic image height. */
.cjp-header .cjp-brand__mark { display: block; width: 68px; height: 84px; object-fit: contain; }
.cjp-header__search { min-width: 0; }
.cjp-header__search .dgwt-wcas-search-wrapp { max-width: none; margin: 0; }
.cjp-header__search .dgwt-wcas-search-input { min-height: 48px; border-radius: 4px !important; border-color: #d8d8d5 !important; }
.cjp-header__actions { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cjp-header__store { min-height: 42px; display: inline-flex; align-items: center; padding: 0 18px; background: var(--cjp-red); border: 1px solid var(--cjp-red); border-radius: 4px; color: #fff; letter-spacing: .04em; text-transform: uppercase; }
.cjp-header__store:hover { background: #c91e23; border-color: #c91e23; }
.cjp-header__action { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 0 7px; }
.cjp-header__action:hover { color: var(--cjp-red); }
.cjp-header__action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cjp-cart-count { min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 999px; background: var(--cjp-ink); color: #fff; font-size: 10px; }
.cjp-menu-toggle { width: 40px; height: 40px; display: none; place-content: center; gap: 4px; padding: 0; border: 1px solid var(--cjp-line); border-radius: 4px; background: #fff; cursor: pointer; }
.cjp-menu-toggle span { width: 18px; height: 1.5px; display: block; background: var(--cjp-ink); }

.cjp-hero { background: var(--cjp-subtle); padding: 84px 0 80px; text-align: center; }
/* Smalks zīmola raksts visu lapu pelēkajos ievados; formas paliek neskartas. */
.home .cjp-hero, .cjp-content-hero { position: relative; isolation: isolate; }
/* Keep vehicle dropdowns above the following product carousels. */
.home .cjp-hero { z-index: 2; }
.home .cjp-hero::before, .cjp-content-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/wp-content/uploads/2026/09/classic-jp-parts-pattern.svg") center / max(110%, 1400px) auto no-repeat;
  opacity: .035;
}

.cjp-kicker { margin: 0 0 12px; color: var(--cjp-red); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cjp-hero h1 { max-width: 900px; margin: 0 auto 18px; font-size: clamp(40px, 5vw, 64px); line-height: 1.06; letter-spacing: -3px; }
@media (min-width: 1024px) {
  .home .cjp-hero h1 { max-width: 1000px; }
}
.cjp-hero__intro { margin: 0; color: var(--cjp-muted); }
.cjp-vehicle-finder { max-width: 980px; margin: 34px auto 0; padding: 24px; text-align: left; background: #fff; border-radius: 10px; box-shadow: var(--cjp-shadow); }
.cjp-vehicle-finder__fields { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end; }
.cjp-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 500; }
.cjp-field select { width: 100%; height: 48px; padding: 0 42px 0 14px; color: var(--cjp-ink); background: #fff; border: 1px solid #d8d8d5; border-radius: 4px; }
.cjp-field select:disabled { color: #9b9b98; background: #fafafa; }
.cjp-field { min-width: 0; }
.cjp-select { position: relative; }
.cjp-select.is-open { z-index: 30; }
.cjp-select__button { position: relative; width: 100%; min-height: 48px; padding: 11px 38px 11px 14px; border: 1px solid #a4a9b5; border-radius: 4px; background: #fff; color: var(--cjp-ink); text-align: left; font-size: 14px; cursor: pointer; }
.cjp-select__button::after { content: ''; position: absolute; right: 16px; top: 18px; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.cjp-select.is-open .cjp-select__button { border-color: var(--cjp-ink); background: #f3f4f6; }
.cjp-select.is-open .cjp-select__button::after { top: 22px; transform: rotate(225deg); }
.cjp-select__button:disabled { color: #92928d; border-color: var(--cjp-line); background: #fafafa; cursor: default; }
.cjp-select__button:focus-visible, .cjp-select__option:focus-visible, .cjp-select__search:focus-visible { outline: 2px solid var(--cjp-red); outline-offset: 2px; }
.cjp-select__panel { position: absolute; z-index: 40; top: calc(100% + 5px); left: 0; right: 0; background: #fff; border: 1px solid #dce0e7; border-radius: 3px; box-shadow: 0 10px 24px rgb(22 22 22 / 10%); overflow: hidden; }
.cjp-select__panel[hidden], .cjp-select__option[hidden], .cjp-select__empty[hidden] { display: none; }
.cjp-select__search { display: block; width: calc(100% - 16px); min-height: 38px; margin: 8px; padding: 7px 9px; border: 1px solid #dce0e7; border-radius: 3px; background: #f8f9fa; color: var(--cjp-ink); font-size: 13px; }
.cjp-select__list { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #8c96ad #e7eaf0; }
.cjp-select__option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 9px 10px; border: 0; border-bottom: 1px solid #e1e5eb; border-radius: 0; background: #fff; color: var(--cjp-ink); text-align: left; font-size: 14px; line-height: 1.4; cursor: pointer; }
.cjp-select__option:last-child { border-bottom: 0; }
.cjp-select__option:hover, .cjp-select__option:focus-visible { background: #f0f2f5; }
.cjp-select__option[aria-selected="true"] { background: #fff5f5; }
.cjp-select__check { width: 15px; height: 15px; flex: 0 0 15px; border: 1px solid #909bb4; background: #fff; }
.cjp-select__option[aria-selected="true"] .cjp-select__check { display: grid; place-items: center; border-color: var(--cjp-red); background: var(--cjp-red); }
.cjp-select__option[aria-selected="true"] .cjp-select__check::after { content: '✓'; color: #fff; font-size: 11px; }
.cjp-select__text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cjp-select__count { flex-shrink: 0; color: #546078; font-size: 12px; }
.cjp-select__empty { padding: 12px; color: var(--cjp-muted); font-size: 13px; }
.cjp-vehicle-finder.is-loading .cjp-select__button { opacity: .65; }
.cjp-vehicle-finder [type="submit"]:disabled { opacity: .65; cursor: wait; }
.cjp-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 0 28px; border: 1px solid var(--cjp-red); border-radius: 4px; background: var(--cjp-red); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.cjp-button:hover { background: #c91e23; border-color: #c91e23; }
.cjp-button--outline { min-height: 42px; background: transparent; color: var(--cjp-red); }
.cjp-button--outline:hover { color: #fff; }
.cjp-vehicle-finder__hint { margin: 12px 0 0; color: var(--cjp-muted); font-size: 12px; }
.cjp-vehicle-finder__hint a { color: var(--cjp-ink); text-decoration: underline; text-underline-offset: 3px; }

.cjp-products { padding: 70px 0 20px; }
.cjp-products + .cjp-products { padding-top: 46px; }
.cjp-collections-divider { position: relative; height: 2px; margin-top: 12px; background: #dbdbd6; }
.cjp-collections-divider::before { content: ''; position: absolute; top: 0; left: max(24px, calc((100% - var(--cjp-container)) / 2)); width: 96px; height: 2px; background: #ed141a; }
.cjp-collections-divider + .cjp-products { padding-top: 40px; }
.cjp-products .cjp-button { border-radius: 7px; }
.cjp-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.cjp-section-heading h2 { margin: 0 0 5px; font-size: 28px; line-height: 1.2; letter-spacing: -1px; }
.cjp-section-heading p:not(.cjp-kicker) { margin: 0; color: var(--cjp-muted); font-size: 14px; }
.cjp-product-slider { position: relative; }
.cjp-product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(245px, 1fr); grid-template-rows: 1fr; gap: 16px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 2px 2px 12px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cjp-product-rail::-webkit-scrollbar { height: 3px; }
.cjp-product-rail::-webkit-scrollbar { display: none; }
.cjp-product-rail.is-jumping { scroll-behavior: auto; scroll-snap-type: none; }
.cjp-product-slider__controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.cjp-product-slider__controls button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--cjp-line); border-radius: 50%; background: #fff; color: var(--cjp-ink); font-size: 20px; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.cjp-product-slider__controls button:hover { border-color: var(--cjp-red); background: var(--cjp-red); color: #fff; }
.cjp-product-card { min-width: 0; min-height: 410px; display: flex !important; flex-direction: column; scroll-snap-align: start; padding: 16px !important; background: #fff; border-radius: 12px; overflow: hidden; }
.cjp-product-card, .jpg-filter-card, .woocommerce ul.products li.product { border: 1px solid #e4e4e2 !important; box-shadow: none !important; }
.cjp-product-card__image { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); height: 180px; place-items: center; padding: 6px; border-radius: 9px; background: #fff; overflow: hidden; }
.cjp-product-card__image img, .woocommerce ul.products li.product .cjp-product-card__image img { display: block; width: 100% !important; height: 168px !important; min-height: 0; max-height: 100%; margin: 0 !important; object-fit: contain !important; object-position: center; background: #fff; }
.cjp-product-card__body { flex: 1; display: flex; flex-direction: column; padding: 12px 0 0; }
.cjp-product-card__eyebrow { margin: 0 0 7px; color: var(--cjp-red); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.cjp-product-card h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.35; font-weight: 500; }
.cjp-product-card__sku { margin: 0 0 5px; color: var(--cjp-muted); font-size: 12px; }
.cjp-product-card__price { margin: 0 0 14px; color: var(--cjp-ink); font-size: 15px; font-weight: 650; }
.cjp-product-card__price del { color: var(--cjp-muted); font-weight: 400; }
.cjp-product-card__price ins { text-decoration: none; }
.cjp-product-card .cjp-button { width: 100%; min-height: 42px; margin-top: auto; background: transparent; color: var(--cjp-red); }
.cjp-product-card .cjp-button:hover { background: var(--cjp-red); color: #fff; }

.cjp-expertise { padding: 66px 0 80px; }
.cjp-expertise__grid { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 360px; background: var(--cjp-subtle); }
.cjp-expertise__copy { align-self: center; padding: 48px; }
.cjp-expertise h2 { margin: 0 0 18px; font-size: 36px; line-height: 1.08; letter-spacing: -1.6px; }
.cjp-expertise__copy > p:not(.cjp-kicker) { color: var(--cjp-muted); }
.cjp-checks { margin: 24px 0; padding: 0; list-style: none; }
.cjp-checks li { position: relative; margin: 10px 0; padding-left: 22px; font-size: 14px; }
.cjp-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--cjp-red); font-weight: 700; }
.cjp-expertise__visual { position: relative; min-height: 360px; background: var(--cjp-subtle); overflow: hidden; }
.cjp-expertise__visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.cjp-footer { padding: 52px 0 32px; background: var(--cjp-ink); color: #fff; }
.cjp-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; }
.cjp-footer__brand { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; font-size: 22px; font-weight: 700; letter-spacing: .04em; }
.cjp-footer__logo { display: block; width: 42px; height: 50px; flex: 0 0 42px; object-fit: contain; }
/* Finansējuma apliecinājums: kompakts, salasāms un ar nemainītām logo proporcijām. */
.cjp-footer__funding { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 26px; padding-top: 24px; border-top: 1px solid #303030; }
.cjp-footer .cjp-footer__funding p { max-width: 820px; margin: 0; color: #bdbdbb; font-size: 11px; line-height: 1.6; }
.cjp-footer__funding img { display: block; flex: 0 0 113px; width: 113px; max-width: 100%; height: auto; }
@media (max-width: 680px) {
  .cjp-footer__funding { align-items: flex-start; flex-direction: column; gap: 20px; }
  .cjp-footer__funding img { flex-basis: auto; }
}

.cjp-footer__label { margin: 0 0 16px; font-size: 13px; font-weight: 500; }
.cjp-footer p, .cjp-footer a { color: #aaa; font-size: 13px; }
.cjp-footer a { display: block; margin: 9px 0; }
.cjp-footer a:hover { color: #fff; }
.cjp-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 24px; border-top: 1px solid #303030; color: #777; font-size: 11px; }
.cjp-footer__legal { display: flex; gap: 18px; }

.cjp-page { min-height: 55vh; padding: 70px 0; }
.cjp-page h1 { font-size: clamp(36px, 5vw, 58px); letter-spacing: -2px; }
.woocommerce .woocommerce-breadcrumb, .woocommerce .woocommerce-result-count { color: var(--cjp-muted); }
.cjp-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; color: var(--cjp-muted); font-size: 12px; }
.cjp-breadcrumbs a:hover { color: var(--cjp-red); }
.cjp-breadcrumbs span[aria-current="page"] { max-width: 380px; overflow: hidden; color: var(--cjp-ink); text-overflow: ellipsis; white-space: nowrap; }

/* Drawers */
.cjp-drawer-backdrop { position: fixed; z-index: 190; inset: 0; background: rgb(22 22 22 / 45%); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.cjp-cart-drawer, .cjp-mobile-menu { position: fixed; z-index: 200; top: 0; right: 0; width: min(440px, 94vw); height: 100dvh; display: flex; flex-direction: column; background: #fff; box-shadow: -18px 0 50px rgb(0 0 0 / 15%); transform: translateX(105%); transition: transform .25s ease; }
.cjp-drawer__head { min-height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--cjp-line); font-size: 20px; }
.cjp-drawer__head button { width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--cjp-ink); font-size: 30px; line-height: 1; cursor: pointer; }
.cjp-cart-open, .cjp-menu-open { overflow: hidden; }
.cjp-cart-open .cjp-cart-drawer, .cjp-menu-open .cjp-mobile-menu { transform: translateX(0); }
.cjp-cart-open .cjp-drawer-backdrop, .cjp-menu-open .cjp-drawer-backdrop { opacity: 1; visibility: visible; }
.cjp-cart-drawer__contents { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cjp-mini-cart-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cjp-mini-cart-item { display: grid; grid-template-columns: 86px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--cjp-line); }
.cjp-mini-cart-item__image { width: 86px; height: 86px; display: grid; place-items: center; background: #fff; }
.cjp-mini-cart-item__image img { width: 100%; height: 100%; object-fit: contain; }
.cjp-mini-cart-item__copy { display: flex; flex-direction: column; gap: 4px; }
.cjp-mini-cart-item__name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.cjp-mini-cart-item__meta { color: var(--cjp-muted); font-size: 12px; }
.cjp-mini-cart-item__price { margin-top: auto; font-size: 14px; }
.cjp-mini-cart-summary { padding: 22px 24px 28px; border-top: 1px solid var(--cjp-line); background: var(--cjp-subtle); }
.cjp-mini-cart-summary > div { display: flex; justify-content: space-between; margin-bottom: 18px; font-size: 15px; }
.cjp-mini-cart-summary .cjp-button { width: 100%; }
.cjp-button--dark { border-color: var(--cjp-ink); background: var(--cjp-ink); }
.cjp-mini-cart__view { display: block; margin-top: 13px; text-align: center; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.cjp-cart-empty { margin: auto; padding: 40px 28px; text-align: center; }
.cjp-cart-empty .cjp-button { margin-top: 12px; }
.cjp-mobile-menu { display: none; }
.cjp-mobile-menu__nav { display: flex; flex-direction: column; padding: 8px 24px; }
.cjp-mobile-menu__nav a { min-height: 56px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--cjp-line); font-size: 16px; font-weight: 550; }
.cjp-mobile-menu__nav a span { color: var(--cjp-red); }
.cjp-mobile-menu__nav { padding-top: 24px; }
.cjp-mobile-menu__nav a.cjp-mobile-menu__store { background: var(--cjp-red); color: #fff; border: 0; border-radius: 6px; padding: 0 20px; min-height: 58px; font-weight: 700; }
.cjp-mobile-menu__nav a.cjp-mobile-menu__store span { color: #fff; font-size: 23px; }
.cjp-mobile-menu__label { margin: 32px 0 8px; color: #777; font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; }

/* WooCommerce catalog and shared product-card system */
.widget-area, .woocommerce-sidebar, #secondary { display: none !important; }
.cjp-commerce-shell { min-height: 60vh; padding: 42px 0 80px; }
.cjp-store-title { margin: 0 0 24px; font-size: clamp(26px, 3vw, 32px); line-height: 1.2; }
#jpg-shop-dock .cjp-option-search { padding: 6px; background: #fff; border-bottom: 1px solid var(--cjp-line); }
#jpg-shop-dock .cjp-option-search input { display: block; width: 100%; min-width: 0; height: 40px; padding: 8px 10px; border: 1px solid #9aa3b5; border-radius: 4px; background: #f8f9fa; color: var(--cjp-ink); font: inherit; font-size: 13px; box-sizing: border-box; }
#jpg-shop-dock .cjp-option-search input:focus { outline: 1px solid var(--cjp-red); outline-offset: 2px; }
#jpg-shop-dock .jpg-dd__item.cjp-option-hidden { display: none !important; }
#jpg-shop-dock .cjp-option-search-empty { margin: 0; padding: 12px; font-size: 13px; color: var(--cjp-muted); }
.cjp-footer a.cjp-footer__credit { display: inline-block; margin: 0 0 0 12px; font-size: 10px; color: inherit; }
.cjp-footer a.cjp-footer__credit:hover { color: #aaa; }
#jpg-shop-dock .jpg-filter-results__grid { margin-bottom: 0 !important; }
#jpg-shop-dock .jpg-filter-results__pagination { margin-top: 20px !important; padding-top: 0 !important; }
#jpg-shop-dock .jpg-filter-results__pagination ul { margin: 0 !important; }
.woocommerce .products ul, .woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 28px 0 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product.cjp-product-card { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce nav.woocommerce-pagination ul { display: inline-flex; gap: 6px; border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--cjp-line); border-radius: 4px; }
.woocommerce nav.woocommerce-pagination ul li span.current { border-color: var(--cjp-red); background: var(--cjp-red); color: #fff; }

#jpg-shop-dock { max-width: var(--cjp-container) !important; padding-inline: 0 !important; }
.jpg-shop-filters { gap: 28px !important; }
.jpg-dd__btn { min-height: 48px !important; padding: 12px 16px !important; border: 1px solid #a4a9b5 !important; border-radius: 4px !important; background: #fff !important; color: var(--cjp-ink) !important; font-size: 14px !important; }
.jpg-dd.is-open { z-index: 10 !important; }
.jpg-dd.is-open .jpg-dd__btn { border-color: var(--cjp-ink) !important; background: #f3f4f6 !important; }
.jpg-dd__panel { top: calc(100% + 5px) !important; max-height: none !important; overflow: hidden !important; padding: 0 !important; border: 1px solid #dce0e7 !important; border-radius: 3px !important; background: #fff !important; box-shadow: 0 10px 24px rgb(22 22 22 / 10%) !important; }
.jpg-dd__list { max-height: 300px !important; padding: 0 !important; margin: 0 !important; overflow-y: auto !important; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #8c96ad #e7eaf0; }
.jpg-dd__item { margin: 0 !important; padding: 0 !important; border-bottom: 1px solid #e1e5eb; }
.jpg-dd__item:last-child { border-bottom: 0; }
.jpg-dd__item label { display: flex !important; align-items: center !important; gap: 10px !important; min-height: 40px; margin: 0 !important; padding: 9px 10px !important; border-radius: 0 !important; font-size: 14px; cursor: pointer; }
.jpg-dd__item label:hover { background: #f0f2f5; }
.jpg-dd__item label:has(input:checked) { background: #fff5f5; }
.jpg-dd__item input[type="checkbox"] { appearance: none; width: 15px !important; height: 15px !important; flex: 0 0 15px; margin: 0 !important; border: 1px solid #909bb4 !important; border-radius: 0 !important; background: #fff; }
.jpg-dd__item input[type="checkbox"]:checked { display: grid; place-items: center; border-color: var(--cjp-red) !important; background: var(--cjp-red); }
.jpg-dd__item input[type="checkbox"]:checked::after { content: '✓'; color: #fff; font-size: 11px; }
/* The filter plugin's checked-state inset shadow must not overlap our tick. */
.jpg-dd__item input[type="checkbox"], .jpg-dd__item input[type="checkbox"]:checked { box-shadow: none !important; -webkit-appearance: none; }
.jpg-dd__item input[type="checkbox"]:focus-visible { outline: 2px solid var(--cjp-red); outline-offset: 3px; }
.jpg-dd__text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.jpg-dd__count { margin-left: auto !important; color: #546078 !important; font-size: 12px !important; }
.jpg-filter-chips__clear, .jpg-vehicle-filter__submit, .jpg-vehicle-filter__actions .button { background: var(--cjp-ink) !important; color: #fff !important; }
.jpg-vehicle-filter__actions { display: flex; align-items: center; gap: 12px; }
.jpg-vehicle-filter__actions .jpg-sort { width: 240px; max-width: 100%; margin-right: auto; text-align: left; }
.jpg-sort .jpg-dd__item input[type="radio"] { appearance: none; -webkit-appearance: none; width: 15px; height: 15px; flex: 0 0 15px; margin: 0; border: 1px solid #909bb4; border-radius: 0; box-shadow: none; background: #fff; }
.jpg-sort .jpg-dd__item input[type="radio"]:checked { display: grid; place-items: center; border-color: var(--cjp-red) !important; background: var(--cjp-red); box-shadow: none !important; }
.jpg-sort .jpg-dd__item input[type="radio"]:checked::after { content: '✓'; color: #fff; font-size: 11px; }
.jpg-sort .jpg-dd__item input[type="radio"]:focus-visible { outline: 2px solid var(--cjp-red); outline-offset: 3px; }
.cjp-store-filter-panel .jpg-vehicle-filter__actions { flex-wrap: wrap; }
.cjp-store-filter-panel .jpg-vehicle-filter__actions .jpg-sort { width: 100%; flex-basis: 100%; margin: 0 0 8px; }
.jpg-filter-results__grid { gap: 24px !important; }
.jpg-filter-card { min-width: 0; min-height: 410px; display: flex !important; flex-direction: column; gap: 0 !important; padding: 16px !important; border-radius: 12px; background: #fff; overflow: hidden; }
.jpg-filter-card__link { flex: 1; display: flex !important; flex-direction: column; }
.jpg-filter-card img { width: 100% !important; height: 180px !important; padding: 4px; object-fit: contain !important; background: #fff !important; border-radius: 9px; }
.jpg-filter-card .woocommerce-loop-product__title { margin: 14px 0 4px !important; font-size: 16px !important; font-weight: 500 !important; line-height: 1.4 !important; }
.jpg-filter-card__sku { color: var(--cjp-muted) !important; }
.jpg-filter-card .price { margin: 8px 0 14px !important; color: var(--cjp-ink) !important; font-weight: 650; }
.jpg-filter-card .button, .jpg-filter-card .add_to_cart_button, .jpg-filter-card .jpg-filter-card__more { min-height: 42px; margin-top: 10px !important; border: 1px solid var(--cjp-red) !important; border-radius: 7px !important; background: #fff !important; color: var(--cjp-red) !important; text-transform: uppercase; letter-spacing: .04em; }
.jpg-filter-card .button:hover, .jpg-filter-card .add_to_cart_button:hover, .jpg-filter-card .jpg-filter-card__more:hover { background: var(--cjp-red) !important; color: #fff !important; }

/* Single product */
.single-product .cjp-commerce-shell { padding-top: 34px; }
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 34px 64px; }
.single-product div.product .woocommerce-product-gallery, .single-product div.product .summary { width: auto !important; float: none !important; margin: 0 !important; }
.single-product div.product .woocommerce-product-gallery { min-width: 0; max-width: 100%; align-self: start; padding: 22px; border: 1px solid var(--cjp-line); border-radius: 12px; background: #fff; }
.single-product .woocommerce-product-gallery__image > a, .single-product .woocommerce-product-gallery__image--placeholder { display: block; height: clamp(260px, 34vw, 460px); padding: 14px; background: #fff; }
.single-product .woocommerce-product-gallery__image > a > img, .single-product .woocommerce-product-gallery__image--placeholder > img { display: block; width: 100% !important; height: 100% !important; max-height: 100%; margin: 0; object-fit: contain !important; object-position: center; background: #fff; }
.single-product .woocommerce-product-gallery .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px !important; }
.single-product .woocommerce-product-gallery .flex-control-thumbs li { width: 64px !important; height: 64px; margin: 0 !important; border: 1px solid var(--cjp-line); border-radius: 6px; overflow: hidden; }
.single-product .woocommerce-product-gallery .flex-control-thumbs li img { display: block; width: 100%; height: 100%; padding: 4px; object-fit: contain; background: #fff; }
.single-product div.product .summary { align-self: center; }
.single-product div.product .product_title { margin: 8px 0 16px; font-size: clamp(34px, 4vw, 52px); line-height: 1.06; letter-spacing: -1.8px; }
.single-product div.product .price { color: var(--cjp-ink) !important; font-size: 24px !important; font-weight: 650; }
.single-product .product_meta { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--cjp-line); color: var(--cjp-muted); font-size: 13px; }
/* Galveno kategoriju skaitītājus paslēpjam; apakškategoriju skaitītāji paliek. */
.jpg-cat-nav__parent-cb ~ .jpg-cat-nav__count { display: none !important; }
.cjp-product-assurance { margin-top: 24px; padding: 18px 0 0; border-top: 1px solid var(--cjp-line); }
.cjp-product-assurance__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cjp-product-assurance__items article { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cjp-product-assurance__items article > img { flex: 0 0 22px; width: 22px; height: 22px; object-fit: contain; opacity: .75; }
.cjp-product-assurance__items strong { font-size: 11px; font-weight: 500; line-height: 1.4; }
.cjp-payment-brands { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; margin-top: 18px; }
.cjp-payment-brands img { display: block; width: 38px; height: 24px; flex: 0 1 38px; min-width: 0; object-fit: contain; }
.cjp-footer .cjp-payment-brands { margin-top: 30px; }
.cjp-footer .cjp-footer__bottom { margin-top: 24px; }
.privacy-policy .cjp-page article { max-width: 820px; }
.privacy-policy .cjp-page h2 { margin-top: 32px; font-size: 24px; }
.privacy-policy .cjp-page h3 { margin-top: 24px; font-size: 18px; }
.single-product .woocommerce-product-gallery .flex-direction-nav { position: absolute; z-index: 5; inset: 50% 12px auto; display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; transform: translateY(-50%); pointer-events: none; }
.single-product .woocommerce-product-gallery .flex-direction-nav li { margin: 0; }
.single-product .woocommerce-product-gallery .flex-direction-nav a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 92%); box-shadow: 0 4px 16px rgb(0 0 0 / 12%); color: var(--cjp-ink); font-size: 0; pointer-events: auto; }
.single-product .woocommerce-product-gallery .flex-direction-nav a::before { font-size: 20px; }
.single-product .woocommerce-product-gallery .flex-prev::before { content: "←"; }
.single-product .woocommerce-product-gallery .flex-next::before { content: "→"; }

/* Compact cards: title space absorbs row-height differences, not the price/action gap. */
.cjp-product-card, .jpg-filter-card { min-height: 0; }
.cjp-product-card__image { height: 153.9px; }
.cjp-product-card__image img, .woocommerce ul.products li.product .cjp-product-card__image img { width: 85.5% !important; height: 143.45px !important; }
.jpg-filter-card img { width: 85.5% !important; height: 153.9px !important; align-self: center; }
.cjp-product-card h3, .jpg-filter-card .woocommerce-loop-product__title { flex: 1; }
.cjp-product-card__brand { display: block; margin: 2px 0 5px; color: var(--cjp-muted); font-size: 12px; line-height: 1.4; }
.cjp-product-card__sku { margin-bottom: 0; }
.cjp-product-card__price, .jpg-filter-card .price { margin: 8px 0 14px !important; }
.cjp-product-card .cjp-button, .jpg-filter-card .button { min-height: 40px; margin-top: 0 !important; padding: 9px 12px !important; font-size: 14px !important; font-weight: 500 !important; line-height: 20px; letter-spacing: 0; text-transform: none; }

.jpg-filter-card .button.cjp-catalog-view { display: flex !important; align-items: center; justify-content: center; text-align: center; }

/* Customer account: native WooCommerce forms and endpoints, shared storefront styling. */
.cjp-content-hero.cjp-purchase-hero { padding: 36px 0; }
.cjp-content-hero.cjp-purchase-hero h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 0; }
.cjp-purchase-page { padding-block: 40px 64px; min-height: 45vh; }
.cjp-purchase-page .wc-block-components-sidebar-layout.is-large { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cjp-purchase-page .wc-block-components-sidebar-layout.is-large > .wc-block-components-main, .cjp-purchase-page .wc-block-components-sidebar-layout.is-large > .wc-block-components-sidebar { width: 100%; margin: 0; }
.cjp-purchase-page .wc-block-components-main { padding: 24px; border: 1px solid var(--cjp-line); border-radius: 12px; background: #fff; }
.cjp-purchase-page .wc-block-components-sidebar { padding: 24px; border: 1px solid var(--cjp-line); border-radius: 12px; background: #fff; }
.cjp-purchase-page .wc-block-components-title { font-size: 22px; font-weight: 650; }
.cjp-purchase-page .wc-block-components-product-name { color: var(--cjp-ink); text-decoration: none; font-weight: 500; }
.cjp-purchase-page .wc-block-components-product-metadata__description { display: none; }
.cjp-purchase-page .wc-block-components-button.wp-element-button, .cjp-purchase-page .woocommerce a.checkout-button, .cjp-purchase-page .woocommerce #place_order { background: var(--cjp-red) !important; color: #fff !important; border: 1px solid var(--cjp-red); border-radius: 5px; min-height: 48px; font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: none; }
.cjp-purchase-page .wc-block-components-button.wp-element-button:hover { background: #c91e23 !important; }
.cjp-purchase-page .wc-block-components-text-input input, .cjp-purchase-page .wc-blocks-components-select__select { border-color: #cfd0ce; border-radius: 5px; background: #fff; }
.cjp-purchase-page :is(input,select,button,a):focus-visible { outline: 2px solid var(--cjp-red); outline-offset: 3px; }
.cjp-purchase-page .wc-block-components-checkout-step { margin-bottom: 28px; }
@media (max-width: 700px) {
  .cjp-content-hero.cjp-purchase-hero { padding: 26px 0; }
  .cjp-purchase-page { padding-block: 24px 40px; }
  .cjp-purchase-page .wc-block-components-main, .cjp-purchase-page .wc-block-components-sidebar { padding: 16px; margin-bottom: 20px; }
}
.woocommerce-account .cjp-page { padding-block: 42px 64px; min-height: 60vh; }
.woocommerce-account .cjp-page h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 42px); }
.cjp-account-intro { margin: 0 0 32px; color: var(--cjp-muted); font-size: 15px; }
.woocommerce-account .woocommerce-MyAccount-navigation { float: none; width: 100%; margin-bottom: 24px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 0 20px; list-style: none; border-bottom: 1px solid var(--cjp-line); }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 12px 18px; border: 1px solid var(--cjp-line); border-radius: 6px; color: var(--cjp-ink); background: #fff; font-size: 14px; text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--cjp-red); border-color: var(--cjp-red); color: #fff; }
.woocommerce-account .woocommerce-MyAccount-navigation a:hover { border-color: var(--cjp-red); }
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: 100%; padding: 28px; border: 1px solid var(--cjp-line); border-radius: 10px; background: #fff; }
.woocommerce-account h2 { font-size: 25px; line-height: 1.3; }
.woocommerce-account h3 { font-size: 20px; }
.cjp-account-welcome p:not(.cjp-kicker) { color: var(--cjp-muted); }
.cjp-account-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.cjp-account-links a { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--cjp-line); border-radius: 8px; text-decoration: none; color: var(--cjp-ink); }
.cjp-account-links a:first-child { background: #f4f4f2; }
.cjp-account-links a:hover { border-color: var(--cjp-red); }
.cjp-account-links strong { font-size: 19px; }
.cjp-account-links span { font-size: 14px; color: var(--cjp-muted); }
.cjp-account-links .cjp-account-link-label { margin-top: auto; padding-top: 14px; color: var(--cjp-red); }
.woocommerce-account #customer_login { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.woocommerce-account #customer_login::before, .woocommerce-account #customer_login::after { display: none; }
.woocommerce-account #customer_login > div { float: none; width: auto; padding: 28px; border: 1px solid var(--cjp-line); border-radius: 10px; }
.woocommerce-account #customer_login h2 { margin: 0 0 22px; }
.woocommerce-account form.login, .woocommerce-account form.register { margin: 0; padding: 0; border: 0; border-radius: 0; }
.woocommerce-account form .form-row { margin: 0 0 18px; padding: 0; }
.woocommerce-account form .form-row label { display: block; margin-bottom: 6px; line-height: 1.5; font-size: 14px; }
.woocommerce-account form input.input-text, .woocommerce-account form select, .woocommerce-account .select2-selection { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #cfd0ce; border-radius: 5px; background: #fff; color: var(--cjp-ink); font: inherit; font-size: 16px; }
.woocommerce-account form input:focus-visible, .woocommerce-account a:focus-visible { outline: 2px solid var(--cjp-red); outline-offset: 3px; }
.woocommerce-account form .password-input input { padding-right: 44px; }
.woocommerce-account form .show-password-input { top: 50%; transform: translateY(-50%); }
.woocommerce-account form label.woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; }
.woocommerce-account .woocommerce-privacy-policy-text, .woocommerce-account .woocommerce-LostPassword { color: var(--cjp-muted); font-size: 13px; }
.woocommerce-account .woocommerce-privacy-policy-text a, .woocommerce-account .woocommerce-LostPassword a { color: var(--cjp-ink); text-decoration: underline; }
.woocommerce-account .woocommerce button.button, .woocommerce-account .woocommerce a.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px; border: 1px solid var(--cjp-red); border-radius: 5px; background: var(--cjp-red); color: #fff; font-size: 14px; line-height: 20px; font-weight: 500; }
.woocommerce-account .woocommerce button.button:hover, .woocommerce-account .woocommerce a.button:hover { background: #c91e23; border-color: #c91e23; }
.woocommerce-account .woocommerce-form-login__submit, .woocommerce-account .woocommerce-form-register__submit { width: 100%; float: none !important; margin: 8px 0 0 !important; }
.woocommerce-account .woocommerce table.shop_table { border: 1px solid var(--cjp-line); border-radius: 7px; border-collapse: collapse; font-size: 14px; }
.woocommerce-account .woocommerce table.shop_table th, .woocommerce-account .woocommerce table.shop_table td { padding: 16px; }
.woocommerce-account .woocommerce table.shop_table thead { background: #f4f4f2; }
.woocommerce-account .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.woocommerce-account .woocommerce-Addresses::before, .woocommerce-account .woocommerce-Addresses::after { display: none; }
.woocommerce-account .woocommerce-Addresses .woocommerce-Address { float: none; width: auto; padding: 20px; border: 1px solid var(--cjp-line); border-radius: 8px; }
.woocommerce-account address { font-style: normal; color: var(--cjp-muted); }
.woocommerce-account .woocommerce .woocommerce-info { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin: 0 0 20px; padding: 24px; border: 1px solid var(--cjp-line); border-radius: 8px; background: #f4f4f2; color: var(--cjp-ink); line-height: 1.6; }
.woocommerce-account .woocommerce .woocommerce-info::before, .woocommerce-account .woocommerce .woocommerce-info::after { display: none; content: none; }
.woocommerce-account .woocommerce .woocommerce-info .button { order: 1; float: none; margin: 0; max-width: 100%; white-space: normal; text-align: center; }
.woocommerce-account .woocommerce-info:last-child { margin-bottom: 0; }
.woocommerce-account .woocommerce-Addresses .woocommerce-Address { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.woocommerce-account .woocommerce-Address .woocommerce-Address-title { display: contents; }
.woocommerce-account .woocommerce-Address .woocommerce-Address-title::before, .woocommerce-account .woocommerce-Address .woocommerce-Address-title::after { display: none; }
.woocommerce-account .woocommerce-Address .woocommerce-Address-title h2 { float: none; margin: 0; }
.woocommerce-account .woocommerce-Address address { margin: 0; }
.woocommerce-account .woocommerce .woocommerce-Address .edit { order: 1; float: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: auto; padding: 11px 22px; border: 1px solid var(--cjp-red); border-radius: 5px; background: var(--cjp-red); color: #fff; font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; }
.woocommerce-account .woocommerce .woocommerce-Address .edit:hover { background: #c91e23; border-color: #c91e23; }
.woocommerce-account fieldset { margin: 24px 0; padding: 20px; border: 1px solid var(--cjp-line); border-radius: 6px; }
.woocommerce-account fieldset legend { padding: 0 8px; font-weight: 600; }
.woocommerce-account .woocommerce-ResetPassword { max-width: 560px; padding: 28px; border: 1px solid var(--cjp-line); border-radius: 10px; }
.woocommerce-account .woocommerce-ResetPassword .form-row-first { float: none; width: 100%; }
@media (max-width: 700px) {
  .woocommerce-account .cjp-page { padding-block: 28px 44px; }
  .woocommerce-account #customer_login, .cjp-account-links, .woocommerce-account .woocommerce-Addresses { grid-template-columns: minmax(0,1fr); }
  .woocommerce-account #customer_login > div, .woocommerce-account .woocommerce-MyAccount-content { padding: 20px; }
  .woocommerce-account .woocommerce-MyAccount-navigation ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; }
  .woocommerce-account .woocommerce-MyAccount-navigation li { flex: 0 0 auto; }
  .woocommerce-account .woocommerce-MyAccount-navigation a { padding: 10px 14px; }
  .woocommerce-account .woocommerce form .form-row-first, .woocommerce-account .woocommerce form .form-row-last { float: none; width: 100%; }
}

/* Store filter drawer */
.cjp-store-filter-trigger { min-height: 46px; display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 0 20px; border: 1px solid var(--cjp-ink); border-radius: 5px; background: var(--cjp-ink); color: #fff; font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.cjp-store-filter-trigger svg { width: 25px; height: 25px; flex: 0 0 25px; }
@media (max-width: 900px) {
  .cjp-store-filter-trigger { position: fixed; z-index: 180; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 32px); min-height: 50px; justify-content: center; margin: 0; border-color: #506779; background: #506779; font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; -webkit-text-fill-color: #fff; }
  body.cjp-store-filters-ready { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .cjp-filters-open .cjp-store-filter-trigger, .cjp-cart-open .cjp-store-filter-trigger, .cjp-menu-open .cjp-store-filter-trigger { visibility: hidden; }
}
.cjp-store-filters-ready .jpg-shop-filters { display: block !important; }
.cjp-store-filters-ready #jpg-shop-dock { z-index: auto !important; }
.cjp-store-filter-panel { position: fixed !important; z-index: 230 !important; inset: 0 auto 0 0 !important; width: min(520px, 94vw) !important; max-width: none !important; height: 100dvh !important; margin: 0 !important; padding: 0 28px 36px !important; overflow-y: auto !important; background: #fff !important; box-shadow: 18px 0 50px rgb(0 0 0 / 16%); transform: translateX(-105%); transition: transform .25s ease; }
.cjp-filters-open .cjp-store-filter-panel { transform: translateX(0); }
.cjp-store-filter-head { position: sticky; z-index: 3; top: 0; min-height: 78px; display: flex; align-items: center; justify-content: space-between; margin: 0 -28px 24px; padding: 0 28px; border-bottom: 1px solid var(--cjp-line); background: #fff; font-size: 20px; }
.cjp-store-filter-head button { width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--cjp-ink); -webkit-text-fill-color: var(--cjp-ink); font-size: 30px; line-height: 1; cursor: pointer; }
.cjp-filter-backdrop { position: fixed; z-index: 220; inset: 0; padding: 0; border: 0; background: rgb(22 22 22 / 45%); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.cjp-filters-open .cjp-filter-backdrop { opacity: 1; visibility: visible; }
.cjp-filters-open { overflow: hidden; }
.cjp-store-filters-ready .jpg-filter-results { width: 100% !important; min-width: 0 !important; }
.cjp-store-filter-panel .jpg-cat-nav { width: 100% !important; max-height: 300px !important; margin-bottom: 24px !important; }
.cjp-store-filter-panel .jpg-vehicle-filter { width: 100% !important; }
.cjp-store-filter-panel .jpg-vehicle-filter__row { grid-template-columns: 1fr 1fr !important; }
.woocommerce div.product form.cart { display: flex; gap: 10px; margin: 28px 0 0; }
.woocommerce .quantity .qty { min-height: 48px; border: 1px solid var(--cjp-line); border-radius: 5px; }
.woocommerce div.product form.cart .button, .woocommerce button.button.alt, .woocommerce a.button.alt { min-height: 48px; padding: 0 28px; border-radius: 5px; background: var(--cjp-red); color: #fff; }
.woocommerce div.product form.cart .button:hover, .woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: #c91e23; color: #fff; }
.single-product .woocommerce-tabs, .single-product .related, .single-product .up-sells { grid-column: 1 / -1; width: 100%; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 8px; margin: 30px 0 0; padding: 0; overflow-x: auto; }
.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; padding: 0; border: 1px solid var(--cjp-line); border-radius: 5px 5px 0 0; background: var(--cjp-subtle); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-color: var(--cjp-ink); background: var(--cjp-ink); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 13px 18px; color: var(--cjp-ink); white-space: nowrap; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce div.product .woocommerce-tabs .panel { margin: 0; padding: 34px; border: 1px solid var(--cjp-line); border-radius: 0 8px 8px 8px; }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--cjp-line); font-style: normal; }
.woocommerce table.shop_attributes tr:nth-child(even) th, .woocommerce table.shop_attributes tr:nth-child(even) td { background: var(--cjp-subtle); }
.single-product .related > h2, .single-product .up-sells > h2 { margin-top: 34px; font-size: 28px; }

/* Content pages and forms */
.cjp-about-editorial h2 { margin: 0 0 24px; font-size: clamp(30px, 3.5vw, 42px); line-height: 1.15; letter-spacing: -1px; }
.cjp-about-story { display: grid; grid-template-columns: 1fr; gap: 48px; padding-block: 72px; }
.cjp-about-copy { max-width: 760px; }
.cjp-about-copy > p:not(.cjp-kicker) { margin: 0 0 18px; color: var(--cjp-muted); line-height: 1.75; }
.cjp-about-photo { margin: 0; overflow: hidden; border-radius: 12px; background: var(--cjp-subtle); }
.cjp-about-photo img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; display: block; }
.cjp-about-range { padding: 64px 0; background: var(--cjp-subtle); }
.cjp-about-section-intro { max-width: 760px; margin-bottom: 36px; }
.cjp-about-section-intro > p:last-child { color: var(--cjp-muted); line-height: 1.7; }
.cjp-about-parts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 32px; list-style: none; padding: 0; margin: 0; }
.cjp-about-parts li { padding: 16px 0 16px 18px; border-top: 1px solid #deded9; position: relative; line-height: 1.5; font-size: 14px; }
.cjp-about-parts li::before { content: ''; position: absolute; left: 0; top: 23px; width: 5px; height: 5px; border-radius: 50%; background: var(--cjp-red); }
.cjp-about-mission { padding-block: 72px; }
.cjp-about-mission > div { max-width: 760px; }
.cjp-about-mission > div:last-child > p { margin: 0 0 28px; font-size: 16px; line-height: 1.75; color: var(--cjp-muted); }
@media (max-width: 800px) {
  .cjp-about-story, .cjp-about-mission { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
  .cjp-about-photo img { aspect-ratio: 4 / 3; }
  .cjp-about-range { padding-block: 40px; }
  .cjp-about-parts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
}
@media (max-width: 480px) { .cjp-about-parts { grid-template-columns: 1fr; } }
.cjp-content-hero { padding: 84px 0 76px; background: var(--cjp-subtle); }
.cjp-content-hero h1 { max-width: 900px; margin: 0 0 18px; font-size: clamp(42px, 6vw, 68px); line-height: 1.03; letter-spacing: -2.5px; }
.cjp-content-hero > .cjp-container > p:last-child { max-width: 760px; margin: 0; color: var(--cjp-muted); font-size: 18px; }
.cjp-content-section { padding: 72px 0 88px; }
.cjp-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cjp-content-grid .cjp-info-card > p + .cjp-button { margin-top: 20px; }
.cjp-content-image { grid-column: 1 / -1; margin: 0 0 14px; overflow: hidden; border-radius: 12px; background: var(--cjp-subtle); }
.cjp-content-image img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.cjp-info-card { padding: 34px; border: 1px solid var(--cjp-line); border-radius: 12px; background: #fff; }
.cjp-info-card h2, .cjp-info-card h3 { margin: 0 0 14px; font-size: 24px; line-height: 1.2; }
.cjp-info-card p { margin: 0; color: var(--cjp-muted); }
.cjp-info-card--accent { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--cjp-subtle); }
.cjp-info-card--accent .cjp-button { margin-top: 20px; }
.cjp-contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); gap: 48px; align-items: start; }
.cjp-contact-layout h2 { margin-top: 0; font-size: 34px; }
.cjp-contact-layout .cjp-info-card { position: sticky; top: 174px; }
.cjp-contact-layout .cjp-info-card > a { display: inline-block; margin: 4px 0 18px; color: var(--cjp-red); font-weight: 650; }
.cjp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 26px 0 20px; }
.cjp-form-grid label span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.cjp-form-grid input, .cjp-form-grid textarea { width: 100%; padding: 13px 14px; border: 1px solid #d8d8d5; border-radius: 5px; background: #fff; }
.cjp-form-grid__wide { grid-column: 1 / -1; }
.cjp-form-notice { padding: 14px 16px; border-radius: 5px; }
.cjp-form-notice--success { background: #edf8ef; color: #1e642a; }
.cjp-form-notice--error { background: #fff0f0; color: #8f171b; }
.cjp-narrow-card { max-width: 760px; padding: 34px; border: 1px solid var(--cjp-line); border-radius: 12px; box-shadow: var(--cjp-shadow); }
.cjp-support-note { margin-top: 26px; color: var(--cjp-muted); font-size: 13px; }
.cjp-tracking-card .woocommerce .track_order button.button { background: var(--cjp-red); color: #fff; border: 1px solid var(--cjp-red); border-radius: 5px; padding: 11px 22px; min-height: 44px; font-size: 14px; line-height: 20px; }
.cjp-tracking-card .woocommerce .track_order button.button:hover { background: #c91e23; border-color: #c91e23; }
@media (max-width: 700px) {
  .cjp-tracking-card { padding: 24px; }
  .cjp-tracking-card .woocommerce .track_order .form-row-first, .cjp-tracking-card .woocommerce .track_order .form-row-last { float: none; width: 100%; margin: 0 0 18px; padding: 0; }
  .cjp-tracking-card .track_order input.input-text { width: 100%; min-height: 44px; font-size: 16px; }
}
.cjp-prose { max-width: 780px; }

@media (min-width: 1024px) {
  .cjp-product-rail { grid-auto-columns: calc((100% - 48px) / 4); }
}

@media (min-width: 901px) {
  .cjp-store-filters-ready .jpg-shop-filters { display: grid !important; grid-template-columns: 240px minmax(0, 1fr) !important; grid-template-areas: "nav filters" "nav results" !important; gap: 28px !important; }
  .cjp-store-filter-trigger, .cjp-store-filter-panel, .cjp-filter-backdrop { display: none !important; }
  .cjp-store-filters-ready .jpg-cat-nav { max-height: 75vh !important; padding-right: 14px; }
  .cjp-store-filters-ready .jpg-vehicle-filter__row { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .cjp-store-filters-ready .jpg-filter-results__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 900px) {
  .cjp-header__inner { grid-template-columns: 1fr auto; gap: 14px 18px; padding-block: 15px; }
  .cjp-header__search { grid-column: 1 / -1; grid-row: 2; }
  .cjp-header__action span:not(.cjp-cart-count) { display: none; }
  .cjp-header__store { display: none; }
  .cjp-menu-toggle { display: grid; }
  .cjp-mobile-menu { display: flex; }
  .cjp-vehicle-finder__fields { grid-template-columns: 1fr 1fr; }
  .cjp-vehicle-finder__fields .cjp-button { grid-column: 1 / -1; }
  .cjp-expertise__grid { grid-template-columns: 1fr; }
  .cjp-expertise__visual { min-height: 300px; }
  .cjp-footer__grid { grid-template-columns: 1fr 1fr; }
  .woocommerce .products ul, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single-product div.product { grid-template-columns: 1fr; gap: 34px; }
  .cjp-contact-layout { grid-template-columns: 1fr; }
  .cjp-contact-layout .cjp-info-card { position: static; }
}

@media (max-width: 620px) {
  .cjp-container { width: min(calc(100% - 32px), var(--cjp-container)); }
  .cjp-topbar__links a:first-child { display: none; }
  .cjp-header__inner { min-height: auto; grid-template-columns: minmax(0, 1fr) auto; }
  .cjp-brand { gap: 8px; min-width: 0; overflow: hidden; }
  .cjp-brand__mark-wrap { width: 46px; height: 54px; }
  .cjp-brand__mark { width: 42px; height: 52px; }
  .cjp-brand__name { min-width: 0; display: block; overflow: hidden; font-size: 17px; letter-spacing: -.5px; text-overflow: ellipsis; }
  .cjp-header__actions { gap: 5px; }
  .cjp-header__action { min-height: 38px; padding-inline: 4px; }
  .cjp-header__account { display: none; }
  .cjp-header__search .dgwt-wcas-search-input { min-height: 46px; }
  .cjp-hero { padding: 58px 0; }
  .cjp-hero h1 { font-size: 40px; letter-spacing: -2px; }
  .cjp-vehicle-finder { padding: 18px; }
  .cjp-select__search { font-size: 16px; }
  .cjp-select__option { min-height: 44px; }
  .cjp-select__list { max-height: 264px; }
  .cjp-collections-divider::before { left: 16px; }
  .cjp-content-image img { aspect-ratio: 4 / 3; }
  .cjp-vehicle-finder__fields { grid-template-columns: 1fr; }
  .cjp-vehicle-finder__fields .cjp-button { grid-column: auto; }
  .cjp-section-heading { align-items: flex-start; flex-direction: column; }
  .cjp-product-rail { grid-auto-columns: 82%; }
  .cjp-expertise__copy { padding: 32px 24px; }
  .cjp-expertise h2 { font-size: 30px; }
  .cjp-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .cjp-footer__bottom { align-items: flex-start; flex-direction: column; }
  .admin-bar .cjp-site-head { top: 0; }
  .cjp-topbar__inner { justify-content: center; }
  .cjp-topbar__links { display: none; }
  .cjp-content-hero { padding: 58px 0 52px; }
  .cjp-content-hero h1 { letter-spacing: -1.8px; }
  .cjp-content-grid, .cjp-form-grid { grid-template-columns: 1fr; }
  .cjp-form-grid__wide { grid-column: auto; }
  .cjp-info-card { padding: 25px; }
  .cjp-product-assurance__items { gap: 10px; }
  .cjp-product-assurance__items article { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cjp-product-assurance__items strong { max-width: 105px; }
  .woocommerce .products ul, .woocommerce ul.products { gap: 14px; }
  .woocommerce div.product .woocommerce-tabs .panel { padding: 22px 18px; }

  /* The sync plugin owns the store markup; these keep its filter UI usable on phones. */
  #jpg-shop-dock { width: 100% !important; margin-block: 18px 32px !important; padding-inline: 16px !important; }
  .jpg-shop-filters { width: 100% !important; grid-template-columns: minmax(0, 1fr) !important; gap: 18px !important; }
  .jpg-vehicle-filter__row { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  .cjp-store-filter-panel .jpg-vehicle-filter__row { grid-template-columns: minmax(0, 1fr) !important; }
  .jpg-vehicle-filter__actions { justify-content: flex-start !important; flex-wrap: wrap !important; }
  .jpg-cat-nav { width: 100% !important; max-height: 230px !important; }
  .jpg-filter-results { width: 100% !important; min-width: 0 !important; }
  .jpg-filter-results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .jpg-filter-card .woocommerce-loop-product__title { font-size: 13px !important; }
}

@media (max-width: 390px) {
  .woocommerce .products ul, .woocommerce ul.products { grid-template-columns: 1fr; }
  .jpg-filter-results__grid { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 782px) {
  .admin-bar .cjp-site-head { top: 0; }
}

/* Mobile/tablet search retracts beneath the persistent navigation row. */
@media (max-width: 1024px) {
  .cjp-site-head, .admin-bar .cjp-site-head { top: -28px; margin-bottom: 42px; }
  .cjp-site-head.is-hidden { transform: none; }
  .cjp-topbar { display: block; height: 30px; border-bottom: 0; overflow: hidden; }
  .cjp-topbar__inner { min-height: 28px; height: 28px; justify-content: center; font-size: 11px; }
  .cjp-topbar__links { display: none; }
  .cjp-header__inner { grid-template-columns: 48px 1fr auto; gap: 10px; min-height: 66px; padding-block: 4px; }
  .cjp-header .cjp-brand__mark-wrap { width: 46px; height: 58px; }
  .cjp-header .cjp-brand__mark { width: 44px !important; height: 56px !important; object-fit: contain; }
  .cjp-header { background: #fff; }
  .cjp-header__search { position: absolute; top: 100%; left: 0; width: 100%; height: 42px; min-width: 0; background: #f4f4f4; transition: transform .5s ease, opacity .5s ease, clip-path .5s ease, visibility .5s; clip-path: inset(0); }
  .cjp-search-collapsed .cjp-header__search { transform: translateY(-100%); opacity: 0; visibility: hidden; pointer-events: none; clip-path: inset(100% 0 0); }
  .cjp-header__search .dgwt-wcas-search-wrapp { min-width: 0; width: 100%; }
  .cjp-header__search .dgwt-wcas-sf-wrapp { padding: 0 !important; background: transparent !important; }
  .cjp-header__search input.dgwt-wcas-search-input { height: 42px !important; min-height: 42px; font-size: 13px !important; font-style: normal; padding: 0 54px 0 14px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #f4f4f4 !important; }
  .cjp-header__search button.dgwt-wcas-search-submit { position: absolute !important; top: 0 !important; left: auto !important; right: 0 !important; width: 44px !important; min-width: 44px !important; height: 42px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: var(--cjp-red) !important; display: grid !important; place-items: center; }
  .cjp-header__search button.dgwt-wcas-search-submit::before { display: none; }
  .cjp-header__search .dgwt-wcas-ico-magnifier { position: static !important; width: 18px !important; height: 18px !important; margin: 0 !important; transform: none !important; fill: #fff !important; }
  .cjp-header__search .dgwt-wcas-ico-magnifier path { fill: #fff !important; }
  .cjp-header__actions { gap: 2px; }
  .cjp-header__account { display: none; }
  .cjp-header__cart { position: relative; width: 40px; min-height: 44px; justify-content: center; padding: 0; }
  .cjp-header__cart .cjp-cart-count { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding-inline: 3px; font-size: 9px; border: 2px solid #fff; box-sizing: content-box; }
  .cjp-header__actions { grid-column: 3; }
  .cjp-header__store { display: none; }
  .cjp-menu-toggle { display: grid; width: 36px; height: 44px; border: 0; background: transparent; }
  .cjp-mobile-menu { display: flex; overflow-y: auto; }
  .admin-bar .cjp-mobile-menu, .admin-bar .cjp-cart-drawer { top: 46px; height: calc(100dvh - 46px); }
}
@media (min-width: 601px) and (max-width: 782px) {
  .admin-bar .cjp-site-head { top: 18px; }
}
@media (min-width: 783px) and (max-width: 1024px) {
  .admin-bar .cjp-site-head { top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .cjp-header__search, .cjp-site-head { transition: none; }
}

/* Shared purchase grid and table palette. */
.single-product div.product .product_title { margin-bottom: 10px; }
.single-product div.product .summary > .price { margin-top: 0; margin-bottom: 16px; }
.woocommerce div.product form.cart { align-items: stretch; width: 100%; padding: 0; margin-top: 20px; }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after, .woocommerce-variation-add-to-cart::before, .woocommerce-variation-add-to-cart::after { display: none !important; }
.woocommerce div.product form.cart div.quantity { display: flex; align-items: center; flex: 0 0 114px; margin: 0 !important; float: none; border: 1px solid var(--cjp-line); border-radius: 5px; overflow: hidden; }
.woocommerce div.product form.cart .quantity .qty { width: 36px; min-width: 0; min-height: 48px; padding: 0; margin: 0; border: 0; border-radius: 0; appearance: textfield; -moz-appearance: textfield; }
.woocommerce .quantity .qty::-webkit-inner-spin-button, .woocommerce .quantity .qty::-webkit-outer-spin-button { appearance: none; margin: 0; }
.cjp-qty-step { width: 38px; min-height: 48px; padding: 0; border: 0; background: #fff; font-size: 20px; color: var(--cjp-ink); cursor: pointer; }
.cjp-qty-step:hover { background: var(--cjp-subtle); }
.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1; float: none; margin: 0; padding-inline: 12px; }
.woocommerce div.product form.variations_form.cart, .woocommerce div.product form.grouped_form.cart { display: block; }
.woocommerce-variation-add-to-cart { display: flex; gap: 10px; }
.woocommerce .jpg-spec-table tbody tr:nth-child(even) td, .woocommerce .jpg-spec-table thead th { background: #f4f4f2 !important; }
.woocommerce .jpg-spec-table tbody tr:nth-child(odd) td { background: #fff !important; }
@media (max-width: 1024px) {
  #jpg-shop-dock { padding-top: 24px !important; }
  .woocommerce .jpg-spec-scroll:has(.jpg-spec-table) { max-height: 60vh !important; overflow: auto !important; position: relative; }
  .woocommerce .jpg-spec-table thead th { position: sticky !important; top: 0 !important; z-index: 2; }
}
@media (min-width: 1025px) {
  .cjp-site-head.is-hidden { transform: none; }
  .cjp-header__search .dgwt-wcas-sf-wrapp { padding: 0 !important; }
  .cjp-header__search input.dgwt-wcas-search-input { height: 46px !important; min-height: 46px; padding: 0 60px 0 14px !important; border: 0 !important; border-radius: 0 !important; background: #f4f4f4 !important; box-shadow: none !important; font-size: 14px !important; }
  .cjp-header__search button.dgwt-wcas-search-submit { position: absolute !important; top: 0 !important; left: auto !important; right: 0 !important; width: 46px !important; min-width: 46px !important; height: 46px !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; background: var(--cjp-red) !important; display: grid !important; place-items: center; }
  .cjp-header__search button.dgwt-wcas-search-submit::before { display: none; }
  .cjp-header__search .dgwt-wcas-ico-magnifier { position: static !important; width: 18px !important; height: 18px !important; margin: 0 !important; transform: none !important; }
  .cjp-header__search .dgwt-wcas-ico-magnifier path { fill: #fff !important; }
}

/* Product availability: clear status colours without extra red accents. */
.woocommerce div.product p.stock.in-stock { color: #23643e; }
.woocommerce div.product p.stock.out-of-stock { color: #62625f; }

/* Keep mobile search controls large enough to avoid iOS focus zoom. */
@media (max-width: 1024px) {
  #jpg-shop-dock .cjp-option-search input,
  #cjp-vehicle-finder input,
  #cjp-vehicle-finder select,
  .cjp-header__search input.dgwt-wcas-search-input {
    font-size: 16px !important;
  }
}

/* Mobile drawer: sorting first, with a clear primary action after the filters. */
@media (max-width: 900px) {
  .cjp-store-filter-panel { display: flex; flex-direction: column; }
  .cjp-store-filter-panel > * { flex-shrink: 0; }
  .cjp-store-filter-panel .cjp-store-filter-head { order: -3; }
  .cjp-store-filter-panel .jpg-vehicle-filter,
  .cjp-store-filter-panel .jpg-vehicle-filter__actions { display: contents !important; }
  .cjp-store-filter-panel .jpg-vehicle-filter__actions .jpg-sort { order: -2; width: 100%; flex: 0 0 auto; margin: 0 0 24px; }
  .cjp-store-filter-panel .jpg-vehicle-filter__submit { order: 2; display: block; width: 100%; min-height: 48px; margin: 16px 0 10px; padding: 12px 20px; border: 0; border-radius: 5px; background: var(--cjp-red) !important; color: #fff !important; text-align: center; font-weight: 700; }
  .cjp-store-filter-panel .jpg-vehicle-filter__submit:hover { background: #c91e23 !important; }
  .cjp-store-filter-panel .jpg-filter-chips__clear,
  .cjp-store-filter-panel .jpg-vehicle-filter__reset { min-height: 44px; padding: 12px 16px; border: 1px solid #ddd; border-radius: 5px; background: #f2f2f2 !important; color: var(--cjp-ink) !important; text-align: center; text-decoration: none; }
  .cjp-store-filter-panel .jpg-vehicle-filter__reset { order: 3; display: block; width: 100%; }
  .cjp-store-filter-panel .jpg-filter-chips__clear { width: 100%; }
}

@media (max-width: 900px) {
  #jpg-shop-dock .cjp-store-filter-panel .jpg-vehicle-filter__row { gap: 12px !important; margin: 0 0 12px !important; }
  #jpg-shop-dock .cjp-store-filter-panel .jpg-filter-chips { gap: 8px !important; margin: 0 0 12px !important; }
  #jpg-shop-dock .cjp-store-filter-panel .jpg-vehicle-filter__submit { margin: 0 0 12px !important; }
  #jpg-shop-dock .cjp-store-filter-panel .jpg-vehicle-filter__reset { margin: 0 !important; }
}

@media (max-width: 900px) {
  .cjp-store-filter-panel .jpg-vehicle-filter > *,
  .cjp-store-filter-panel .jpg-vehicle-filter__actions > * { flex-shrink: 0 !important; }
}

/* Clear all filters is the single reset action in the mobile drawer. */
@media (max-width: 900px) {
  #jpg-shop-dock .cjp-store-filter-panel .jpg-vehicle-filter__reset { display: none !important; }
}

/* Image flags render consistently on Windows and checkout. */
#cjp-language .cjp-language__flag { display:inline-block; width:18px; height:12px; flex:0 0 18px; font-size:0 !important; line-height:0; background-size:100% 100%; background-repeat:no-repeat; border-radius:1px; overflow:hidden; }
html[lang^="en"] #cjp-language summary .cjp-language__flag, #cjp-language a[lang="en"] .cjp-language__flag { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2019%2010%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M0%200h19v10H0z%22%2F%3E%3Cpath%20stroke%3D%22%23b22234%22%20stroke-width%3D%22.77%22%20d%3D%22M0%20.38h19M0%201.92h19M0%203.46h19M0%205h19M0%206.54h19M0%208.08h19M0%209.62h19%22%2F%3E%3Cpath%20fill%3D%22%233c3b6e%22%20d%3D%22M0%200h7.6v5.38H0z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M1%201h.4v.4H1zm1.2%200h.4v.4h-.4zm1.2%200h.4v.4h-.4zm1.2%200h.4v.4h-.4zm1.2%200h.4v.4h-.4zm1.2%200h.4v.4h-.4zM1.6%202h.4v.4h-.4zm1.2%200h.4v.4h-.4zm1.2%200h.4v.4h-.4zm1.2%200h.4v.4h-.4zm1.2%200h.4v.4h-.4zM1%203h.4v.4H1zm1.2%200h.4v.4h-.4zm1.2%200h.4v.4h-.4zm1.2%200h.4v.4h-.4zm1.2%200h.4v.4h-.4zm1.2%200h.4v.4h-.4zM1.6%204h.4v.4h-.4zm1.2%200h.4v.4h-.4zm1.2%200h.4v.4h-.4zm1.2%200h.4v.4h-.4zm1.2%200h.4v.4h-.4z%22%2F%3E%3C%2Fsvg%3E"); }
html[lang^="es"] #cjp-language summary .cjp-language__flag, #cjp-language a[lang="es"] .cjp-language__flag { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2018%2012%22%3E%3Cpath%20fill%3D%22%23aa151b%22%20d%3D%22M0%200h18v12H0z%22%2F%3E%3Cpath%20fill%3D%22%23f1bf00%22%20d%3D%22M0%203h18v6H0z%22%2F%3E%3C%2Fsvg%3E"); }
html[lang^="de"] #cjp-language summary .cjp-language__flag, #cjp-language a[lang="de"] .cjp-language__flag { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2018%2012%22%3E%3Cpath%20d%3D%22M0%200h18v4H0z%22%2F%3E%3Cpath%20fill%3D%22%23d00%22%20d%3D%22M0%204h18v4H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffce00%22%20d%3D%22M0%208h18v4H0z%22%2F%3E%3C%2Fsvg%3E"); }
html[lang^="fr"] #cjp-language summary .cjp-language__flag, #cjp-language a[lang="fr"] .cjp-language__flag { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2018%2012%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M0%200h18v12H0z%22%2F%3E%3Cpath%20fill%3D%22%23002395%22%20d%3D%22M0%200h6v12H0z%22%2F%3E%3Cpath%20fill%3D%22%23ed2939%22%20d%3D%22M12%200h6v12h-6z%22%2F%3E%3C%2Fsvg%3E"); }
html[lang^="it"] #cjp-language summary .cjp-language__flag, #cjp-language a[lang="it"] .cjp-language__flag { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2018%2012%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M0%200h18v12H0z%22%2F%3E%3Cpath%20fill%3D%22%23009246%22%20d%3D%22M0%200h6v12H0z%22%2F%3E%3Cpath%20fill%3D%22%23ce2b37%22%20d%3D%22M12%200h6v12h-6z%22%2F%3E%3C%2Fsvg%3E"); }
/* AJAX refreshes must not expose search fields in closed dropdowns. */
#jpg-shop-dock .jpg-dd__btn[aria-expanded="false"] + .jpg-dd__panel { display: none !important; }

/* Single-selection vehicle filters. */
#jpg-shop-dock .jpg-vehicle-filter[data-cjp-single-ready] .jpg-vehicle-filter__submit,
#jpg-shop-dock .jpg-vehicle-filter[data-cjp-single-ready] .jpg-vehicle-filter__reset { display:none!important; }
#jpg-shop-dock .cjp-has-value > .jpg-dd__btn { position:relative;padding-top:19px!important;padding-bottom:5px!important;padding-right:58px!important; }
#jpg-shop-dock .cjp-has-value > .jpg-dd__btn::before { content:attr(data-cjp-caption);position:absolute;top:5px;left:15px;font-size:10px;line-height:12px;color:#777;font-weight:400; }
#jpg-shop-dock .jpg-dd__title { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
#jpg-shop-dock .cjp-filter-clear { position:absolute;right:25px;top:2px;width:30px;height:44px;padding:0;border:0;background:transparent;color:#737373;font-size:21px;line-height:1;z-index:2;cursor:pointer; }
#jpg-shop-dock .cjp-filter-clear:hover { color:#e5252a; }
#jpg-shop-dock .cjp-filter-clear[hidden],#jpg-shop-dock .cjp-filter-clear-all[hidden] { display:none!important; }
#jpg-shop-dock .cjp-filter-clear-all { margin-left:auto;min-height:44px;padding:10px 18px;background:#f2f2f2;color:#222;border:1px solid #ddd;border-radius:4px;font-size:14px;font-weight:600;cursor:pointer; }
#jpg-shop-dock .cjp-filter-clear-all:hover { background:#e9e9e9; }
#jpg-shop-dock .jpg-vehicle-filter[data-cjp-single-ready] .jpg-vehicle-filter__actions { margin-top:16px!important; }
@media(max-width:900px){
 #jpg-shop-dock .cjp-store-filter-panel .cjp-filter-clear-all { order:2;width:100%;margin:0 0 12px; }
}

/* Selected fields use one clear action in place of the dropdown arrow. */
#jpg-shop-dock .cjp-has-value > .jpg-dd__btn { cursor:default; }
#jpg-shop-dock .cjp-has-value > .jpg-dd__btn .jpg-dd__chevron { display:none!important; }
#jpg-shop-dock .cjp-filter-clear { right:2px;top:2px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:transparent;color:#666;font-size:0; }
#jpg-shop-dock .cjp-filter-clear::before { content:'×';display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#ededed;color:#666;font-size:22px;line-height:1;transition:background .15s,color .15s; }
@media(hover:hover){#jpg-shop-dock .cjp-filter-clear:hover::before { background:#e5252a;color:#fff; }}
#jpg-shop-dock .cjp-filter-clear:focus-visible { outline:2px solid #e5252a;outline-offset:-3px; }
#jpg-shop-dock .cjp-filter-clear:active::before { background:#c91e23;color:#fff; }

/* Distinguish empty filter prompts from selected values. */
#jpg-shop-dock .jpg-vehicle-filter[data-cjp-single-ready] .jpg-dd:not(.jpg-sort):not(.cjp-has-value) > .jpg-dd__btn .jpg-dd__title { color:#737373; }
#jpg-shop-dock .jpg-vehicle-filter[data-cjp-single-ready] .jpg-dd.cjp-has-value > .jpg-dd__btn .jpg-dd__title { color:#161616; }

/* Homepage single-selection clear controls, matching store filters. */
#cjp-vehicle-finder .cjp-select:not(.has-value) > .cjp-select__button { color:#737373; }
#cjp-vehicle-finder .cjp-select.has-value > .cjp-select__button { color:#161616; padding-right:52px; cursor:default; }
#cjp-vehicle-finder .cjp-select.has-value > .cjp-select__button::after { display:none; }
#cjp-vehicle-finder .cjp-select__clear { position:absolute;right:2px;top:2px;width:44px;height:44px;padding:0;border:0;display:flex;align-items:center;justify-content:center;background:transparent;border-radius:50%;font-size:0;cursor:pointer; }
#cjp-vehicle-finder .cjp-select__clear::before { content:'×';display:flex;align-items:center;justify-content:center;width:30px;height:30px;background:#ededed;color:#666;border-radius:50%;font-size:22px;line-height:1;transition:background .15s,color .15s; }
#cjp-vehicle-finder .cjp-select__clear[hidden] { display:none!important; }
#cjp-vehicle-finder .cjp-select__clear:disabled { opacity:.5;cursor:wait; }
@media(hover:hover){#cjp-vehicle-finder .cjp-select__clear:not(:disabled):hover::before { background:#e5252a;color:#fff; }}
#cjp-vehicle-finder .cjp-select__clear:focus-visible { outline:2px solid #e5252a;outline-offset:-3px; }
#cjp-vehicle-finder .cjp-select__clear:not(:disabled):active::before { background:#c91e23;color:#fff; }

/* Desktop selections are cleared in their fields; retain chips in the mobile drawer. */
#jpg-shop-dock .jpg-filter-chips[hidden] { display:none!important; }
@media (min-width:1025px) {
 #jpg-shop-dock .jpg-filter-chips .jpg-filter-chip { display:none!important; }
 #jpg-shop-dock .jpg-filter-chips { min-height:0;justify-content:flex-end; }
}
