/* Brake Club storefront — deliberately minimal and theme-agnostic.
   Uses only :where() so every rule has zero specificity: your theme (or
   Elementor) overrides any of it without !important. */

/* Vehicle picker. Colours come from CSS variables so a theme (or the shortcode's
   accent="" attribute) can restyle it without touching this file. :where() keeps
   specificity at zero, so any theme rule still wins. */
:where(.bc-picker) {
	--bc-accent: #2563eb;
	--bc-accent-ink: #fff;
	--bc-border: #e4e4e7;
	--bc-field-border: #d4d4d8;
	--bc-radius: 14px;
	font-family: inherit; color: #18181b;
}
:where(.bc-picker--card) {
	border: 1px solid var(--bc-border); border-radius: var(--bc-radius);
	padding: 22px 22px 20px; background: #fff;
	box-shadow: 0 1px 2px rgba(16,17,21,.04), 0 8px 24px rgba(16,17,21,.05);
}
:where(.bc-picker__title) { margin: 0 0 4px; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
:where(.bc-picker__sub) { margin: 0 0 16px; font-size: .95rem; color: #52525b; }
:where(.bc-picker__title:last-of-type) { margin-bottom: 16px; }

:where(.bc-picker__row) {
	display: grid; gap: 10px;
	grid-template-columns: repeat(3, 1fr) auto;
	align-items: end;
}
:where(.bc-picker__field) { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
:where(.bc-picker__lbl) { font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #71717a; }

:where(.bc-picker__row select) {
	width: 100%; min-height: 48px; padding: 10px 38px 10px 13px;
	border: 1px solid var(--bc-field-border); border-radius: 10px; background: #fff;
	font: inherit; font-size: 1rem; color: inherit; cursor: pointer;
	-webkit-appearance: none; -moz-appearance: none; appearance: none;
	background-image: 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='%2371717a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center;
}
:where(.bc-picker__row select:focus) { outline: 2px solid var(--bc-accent); outline-offset: 1px; border-color: var(--bc-accent); }
:where(.bc-picker__row select:disabled) { opacity: .5; cursor: not-allowed; background-color: #fafafa; }

:where(.bc-picker__go) {
	min-height: 48px; padding: 10px 24px; border: 0; border-radius: 10px; cursor: pointer;
	background: var(--bc-accent); color: var(--bc-accent-ink); font: inherit; font-size: 1rem; font-weight: 600;
	white-space: nowrap; transition: filter .12s ease;
}
:where(.bc-picker__go:hover:not(:disabled)) { filter: brightness(1.08); }
:where(.bc-picker__go:disabled) { opacity: .45; cursor: not-allowed; }
:where(.bc-picker__hint) { margin: 10px 0 0; font-size: .875rem; color: #71717a; }

/* Stack on narrow screens — full-width fields and button. */
@media (max-width: 640px) {
	:where(.bc-picker__row) { grid-template-columns: 1fr; }
	:where(.bc-picker__go) { width: 100%; }
}

:where(.bc-garage) {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	padding: 10px 14px; border-radius: 10px; background: #f4f4f5; font-size: .925rem;
}
:where(.bc-garage__label) { color: #52525b; }
:where(.bc-garage__clear) { margin-left: auto; font-size: .85rem; }

/* min-height keeps the pending skeleton and the resolved badge the same height,
   so the fits result (fetched client-side) fills in without shifting the page. */
:where(.bc-fits) { padding: 10px 14px; border-radius: 10px; margin: 12px 0; font-size: .95rem; min-height: 44px; }
:where(.bc-fits.is-pending) { background: #f4f4f5; border: 1px solid #e4e4e7; }
:where(.bc-fits.is-fit) { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
:where(.bc-fits.is-nofit) { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
:where(.bc-fits span) { opacity: .85; }

:where(.bc-fitment__title, .bc-specs__title) { font-size: 1.1rem; margin: 24px 0 10px; }
:where(.bc-fitment__table, .bc-specs__table) { width: 100%; border-collapse: collapse; font-size: .92rem; }
:where(.bc-fitment__table th, .bc-fitment__table td,
       .bc-specs__table th, .bc-specs__table td) {
	text-align: left; padding: 8px 12px; border-bottom: 1px solid #ececef; vertical-align: top;
}
:where(.bc-fitment__table thead th) { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #71717a; }
:where(.bc-fitment__notes) { color: #52525b; font-size: .86rem; }
:where(.bc-specs__table th) { width: 45%; color: #52525b; font-weight: 500; }
:where(.bc-specs__warning td, .bc-specs__warning th) { background: #fffbeb; color: #78350f; }

:where(.bc-gallery) { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
:where(.bc-gallery__item) { margin: 0; border: 1px solid #ececef; border-radius: 10px; overflow: hidden; background: #fff; }
:where(.bc-gallery__item.is-primary) { grid-column: 1 / -1; }
/* aspect-ratio reserves the space before the image loads → no layout shift. */
:where(.bc-gallery__item img) { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }

:where(.bc-products) {
	--bc-accent: #2563eb;
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
:where(.bc-product) {
	display: flex; flex-direction: column;
	border: 1px solid #e4e4e7; border-radius: 14px; background: #fff; overflow: hidden;
	transition: box-shadow .15s ease, border-color .15s ease;
}
:where(.bc-product:hover) { border-color: #d4d4d8; box-shadow: 0 6px 20px rgba(16,17,21,.08); }
:where(.bc-product__link) { text-decoration: none; color: inherit; display: block; padding: 14px 14px 0; }
:where(.bc-product__media) { display: block; aspect-ratio: 1 / 1; border-radius: 10px; background: #fafafa; overflow: hidden; }
:where(.bc-product__media img) { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
:where(.bc-product__noimg) { display: block; width: 100%; height: 100%; background:
	repeating-linear-gradient(45deg, #f4f4f5, #f4f4f5 10px, #eeeef0 10px, #eeeef0 20px); }
:where(.bc-product__title) { font-size: .92rem; font-weight: 600; margin: 12px 0 0; line-height: 1.35; }
:where(.bc-product__fit) {
	margin: 8px 14px 0; font-size: .78rem; font-weight: 600; color: var(--bc-accent);
	text-transform: uppercase; letter-spacing: .02em;
}
:where(.bc-product__foot) {
	margin-top: auto; padding: 12px 14px 14px;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
:where(.bc-product__price) { font-weight: 700; font-size: 1.02rem; }
:where(.bc-product__price del) { color: #9ca3af; font-weight: 400; font-size: .85rem; margin-right: 4px; }
/* WooCommerce loop add-to-cart button, scoped to our grid. */
:where(.bc-product__foot .button) {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 38px; padding: 8px 14px; border: 0; border-radius: 9px; cursor: pointer;
	background: var(--bc-accent); color: #fff; font: inherit; font-size: .85rem; font-weight: 600;
	text-decoration: none; white-space: nowrap; line-height: 1;
}
:where(.bc-product__foot .button:hover) { filter: brightness(1.08); }
:where(.bc-product__foot .added_to_cart) { display: none; }

:where(.bc-typenav) { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
:where(.bc-typenav__item) {
	padding: 7px 14px; border: 1px solid #e4e4e7; border-radius: 999px;
	text-decoration: none; color: #3f3f46; font-size: .88rem;
}
:where(.bc-typenav__item.is-active) { background: #18181b; border-color: #18181b; color: #fff; }
:where(.bc-typenav__item span) { opacity: .6; }

:where(.bc-breadcrumb) { display: flex; gap: 8px; font-size: .85rem; color: #71717a; margin-bottom: 14px; flex-wrap: wrap; }
:where(.bc-vehicle-page__header h1) { margin: 0 0 6px; }
:where(.bc-vehicle-page__count) { color: #52525b; margin: 0 0 8px; }
:where(.bc-vehicle-page__aside) { margin-top: 32px; max-width: 520px; }
:where(.bc-empty) { padding: 20px; background: #fafafa; border-radius: 10px; color: #52525b; }

:where(.bc-hub-grid) {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
:where(.bc-hub-grid a) {
	display: flex; flex-direction: column; gap: 2px;
	padding: 14px 16px; border: 1px solid #e4e4e7; border-radius: 10px;
	text-decoration: none; color: inherit; background: #fff;
}
:where(.bc-hub-grid a:hover) { border-color: #a1a1aa; }
:where(.bc-hub-grid span) { font-size: .82rem; color: #71717a; }
:where(.bc-hub-years) { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
:where(.bc-hub-years a) {
	display: inline-block; padding: 10px 18px; border: 1px solid #e4e4e7; border-radius: 999px;
	text-decoration: none; color: inherit; font-weight: 600; background: #fff;
}
:where(.bc-hub-years a:hover) { background: #18181b; border-color: #18181b; color: #fff; }

:where(.bc-prodpager) { display: flex; align-items: center; gap: 16px; margin: 22px 0; font-size: .9rem; color: #52525b; }
:where(.bc-btnlink) {
	padding: 8px 16px; border: 1px solid #e4e4e7; border-radius: 8px;
	text-decoration: none; color: inherit; background: #fff;
}
:where(.bc-btnlink:hover) { border-color: #a1a1aa; }

:where(.bc-loop-img) { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 8px; }
:where(.bc-product-gallery) { margin-bottom: 20px; }

:where(.bc-fitment__pending) { color: #6b7280; font-size: .875rem; margin-top: 8px; }

:where(.bc-type-filter) { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
:where(.bc-type-filter__item) {
  padding: 6px 14px; border: 1px solid currentColor; border-radius: 999px;
  font-size: .875rem; text-decoration: none; opacity: .7;
}
:where(.bc-type-filter__item.is-active) { opacity: 1; font-weight: 600; }

:where(.bc-xref__list){list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
:where(.bc-xref__list li){border:1px solid;border-radius:6px;padding:6px 10px;font-size:.9rem}
:where(.bc-xref__num){font-weight:600;font-family:monospace}
:where(.bc-extinfo){width:100%;border-collapse:collapse;margin-top:12px}
:where(.bc-extinfo th){text-align:left;padding:6px 12px 6px 0;white-space:nowrap;font-weight:600}
:where(.bc-extinfo td){padding:6px 0}

/* Single product template (BC_Product_Display). Zero-specificity like the rest
   of this file: the theme skins it, these are only sane defaults. */
:where(.bc-pdp__eyebrow) {
	margin: 0 0 6px; font-size: .78rem; font-weight: 600;
	letter-spacing: .12em; text-transform: uppercase; color: #71717a;
}
:where(.bc-pdp__ids) {
	display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 4px;
}
:where(.bc-pdp__ids div) { display: flex; align-items: baseline; gap: 6px; }
:where(.bc-pdp__ids dt) { margin: 0; font-size: .82rem; color: #71717a; }
:where(.bc-pdp__ids dd) { margin: 0; font-size: .95rem; font-weight: 600; }
:where(.bc-pdp__quickspecs) {
	list-style: none; margin: 4px 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px;
}
:where(.bc-pdp__quickspecs li) {
	display: flex; flex-direction: column; gap: 2px; padding: 10px 12px;
	border: 1px solid #e4e4e7; border-radius: 8px;
}
:where(.bc-pdp__qs-label) {
	font-size: .7rem; font-weight: 600; letter-spacing: .08em;
	text-transform: uppercase; color: #71717a;
}
:where(.bc-pdp__qs-value) { font-size: .98rem; font-weight: 600; }
:where(.bc-pdp-sections) { display: flex; flex-direction: column; gap: 40px; margin: 48px 0 0; }
:where(.bc-pdp-section) { scroll-margin-top: 90px; }

@media (max-width: 640px) {
	:where(.bc-pdp__quickspecs) { grid-template-columns: 1fr; }
}
