/*
Theme Name: Mini 4x4
Theme URI: https://mini4x4.ca
Author: TDV / Nerd Marketing
Description: Custom WooCommerce theme for Mini 4x4s — Suzuki Carry / Kei Truck parts. Dark industrial aesthetic with Chakra Petch display type and hazard-stripe accents.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: mini4x4
Tags: woocommerce, dark, ecommerce
*/

/* Font stack loaded via wp_enqueue_style (Google Fonts) in functions.php */

:root {
  --m4-bg: #0E0F11;
  --m4-bg-2: #0B0C0E;
  --m4-bg-3: #08090A;
  --m4-card: #16181C;
  --m4-card-hover: #1B1E23;
  --m4-line: rgba(255,255,255,.09);
  --m4-line-strong: rgba(255,255,255,.18);
  --m4-red: #E01E2B;
  --m4-red-hover: #ff2f3d;
  --m4-yellow: #F4B60A;
  --m4-green: #4ADE80;
  --m4-text: #EDEDED;
  --m4-text-2: #B4BAC2;
  --m4-muted: #8A9099;
  --m4-muted-2: #9AA0A8;

  --m4-font-display: 'Chakra Petch', system-ui, sans-serif;
  --m4-font-body: 'Space Grotesk', system-ui, sans-serif;
  --m4-font-mono: 'Space Mono', ui-monospace, monospace;

  --m4-container: 1320px;
  --m4-clip-btn: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  --m4-clip-btn-tight: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
  --m4-clip-tag: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--m4-bg);
  color: var(--m4-text);
  font-family: var(--m4-font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--m4-red); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--m4-font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0;
}

.m4-container {
  max-width: var(--m4-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* GRID overlay pattern */
.m4-grid-overlay {
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Hazard stripe divider */
.m4-hazard {
  height: 9px;
  background-image: repeating-linear-gradient(-45deg, var(--m4-yellow) 0 16px, var(--m4-bg-2) 16px 32px);
}
.m4-hazard--red {
  background-image: repeating-linear-gradient(-45deg, var(--m4-red) 0 16px, var(--m4-bg-3) 16px 32px);
}

/* Buttons */
.m4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--m4-red);
  color: #fff;
  font-family: var(--m4-font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .03em;
  padding: 16px 28px;
  border: 0;
  cursor: pointer;
  clip-path: var(--m4-clip-btn);
  transition: background .15s ease, color .15s ease;
  text-transform: uppercase;
}
.m4-btn:hover { background: #fff; color: var(--m4-red); }
.m4-btn--ghost {
  background: transparent;
  color: var(--m4-text);
  border: 1px solid var(--m4-line-strong);
  clip-path: none;
  padding: 15px 27px;
}
.m4-btn--ghost:hover { background: transparent; color: var(--m4-red); border-color: var(--m4-red); }
.m4-btn--tight { clip-path: var(--m4-clip-btn-tight); }
.m4-btn--block { display: flex; width: 100%; }

/* Section header (00 / LABEL + big title) */
.m4-section-label {
  font-family: var(--m4-font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--m4-red);
  margin-bottom: 10px;
}
.m4-section-title {
  font-size: 40px;
  color: #fff;
  margin: 0;
}
.m4-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.m4-section-head p { color: var(--m4-muted); font-size: 14px; margin: 0; max-width: 320px; }

/* ==== HEADER ==== */
.m4-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--m4-bg);
  border-bottom: 1px solid var(--m4-line);
}
.m4-utilbar {
  background: var(--m4-bg-3);
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: var(--m4-font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--m4-muted);
}
.m4-utilbar__inner {
  max-width: var(--m4-container);
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.m4-utilbar__left { display: flex; align-items: center; gap: 8px; }
.m4-utilbar__left .m4-dot { color: var(--m4-yellow); }
.m4-utilbar__short { display: none; }
.m4-utilbar__right { display: flex; align-items: center; gap: 20px; }
.m4-utilbar__right .phone { color: var(--m4-text); }
.m4-utilbar__lang { display: flex; gap: 6px; }
.m4-utilbar__lang .active { color: var(--m4-red); font-weight: 700; }
.m4-utilbar__lang .inactive { opacity: .4; }

.m4-nav {
  max-width: var(--m4-container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.m4-logo { display: flex; align-items: center; gap: 0; user-select: none; }
.m4-logo__mini {
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 26px;
  letter-spacing: -.01em;
  color: var(--m4-text);
}
.m4-logo__4x4 {
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 26px;
  background: var(--m4-red);
  color: #fff;
  padding: 1px 8px;
  margin-left: 2px;
  clip-path: var(--m4-clip-tag);
}
.m4-logo__tld {
  font-family: var(--m4-font-mono);
  font-size: 11px;
  color: var(--m4-muted);
  margin-left: 8px;
  align-self: flex-end;
  padding-bottom: 4px;
}
.m4-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.m4-search__input {
  width: 100%;
  background: var(--m4-card);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--m4-text);
  font-family: var(--m4-font-body);
  font-size: 14px;
  padding: 12px 14px 12px 40px;
  outline: none;
}
.m4-search__input::placeholder { color: var(--m4-muted); }
.m4-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--m4-muted);
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}
.m4-search__icon svg { display: block; }
.m4-nav__spacer { flex: 1; }
.m4-cart {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--m4-red);
  color: #fff;
  padding: 11px 16px;
  font-family: var(--m4-font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  text-transform: uppercase;
}
.m4-cart__count {
  background: var(--m4-bg);
  color: #fff;
  font-family: var(--m4-font-mono);
  font-size: 12px;
  padding: 2px 8px;
  min-width: 24px;
  text-align: center;
}

.m4-catrail {
  border-top: 1px solid rgba(255,255,255,.06);
  background: var(--m4-bg-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.m4-catrail::-webkit-scrollbar { display: none; }
.m4-catrail__inner {
  max-width: var(--m4-container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  white-space: nowrap;
}
.m4-catrail__item {
  font-family: var(--m4-font-display);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--m4-muted-2);
  padding: 13px 16px;
  border-left: 1px solid rgba(255,255,255,.06);
  text-transform: uppercase;
  cursor: pointer;
  transition: color .15s ease;
}
.m4-catrail__item:hover, .m4-catrail__item.is-active { color: var(--m4-red); }
.m4-catrail__item--first {
  border-left: 0;
  padding-left: 0;
  font-weight: 600;
  color: var(--m4-text);
}

/* ==== HERO ==== */
.m4-hero {
  position: relative;
  background: var(--m4-bg-2);
  overflow: hidden;
}
.m4-hero__grid {
  position: absolute;
  inset: 0;
  opacity: .6;
}
.m4-hero__img {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 52%;
  overflow: hidden;
}
.m4-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
}
.m4-hero__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--m4-bg-2) 0%, rgba(11,12,14,.4) 30%, rgba(11,12,14,.1) 100%);
}
.m4-hero__inner {
  position: relative;
  max-width: var(--m4-container);
  margin: 0 auto;
  padding: 96px 24px 104px;
}
.m4-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--m4-font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--m4-yellow);
  border: 1px solid rgba(244,182,10,.4);
  padding: 6px 12px;
  margin-bottom: 28px;
}
.m4-hero__title {
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 76px;
  line-height: .94;
  letter-spacing: -.02em;
  margin: 0 0 22px;
  max-width: 720px;
  color: #fff;
  text-wrap: balance;
}
.m4-hero__title .accent { color: var(--m4-red); }
.m4-hero__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--m4-text-2);
  max-width: 480px;
  margin: 0 0 36px;
}
.m4-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.m4-hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  font-family: var(--m4-font-mono);
}
.m4-hero__stats .num { font-size: 30px; font-weight: 700; color: #fff; }
.m4-hero__stats .num em { color: var(--m4-red); font-style: normal; }
.m4-hero__stats .lbl { font-size: 11px; letter-spacing: .1em; color: var(--m4-muted); }

/* ==== VEHICLE SELECTOR ==== */
.m4-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.m4-vehicle {
  position: relative;
  background: var(--m4-card);
  border: 1px solid var(--m4-line);
  padding: 26px 22px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  color: inherit;
}
.m4-vehicle:hover { border-color: var(--m4-red); background: var(--m4-card-hover); }
.m4-vehicle__grid { position: absolute; inset: 0; opacity: .4; }
.m4-vehicle__inner { position: relative; }
.m4-vehicle__code {
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 32px;
  color: #fff;
  letter-spacing: .01em;
}
.m4-vehicle__label {
  font-family: var(--m4-font-body);
  font-size: 13px;
  color: var(--m4-muted-2);
  margin-top: 4px;
}
.m4-vehicle__years {
  font-family: var(--m4-font-mono);
  font-size: 12px;
  color: var(--m4-yellow);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--m4-line);
}

/* ==== CATEGORY GRID (18 cats) ==== */
.m4-catgrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}
.m4-catgrid__item {
  position: relative;
  overflow: hidden;
  background: var(--m4-bg);
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  color: inherit;
  transition: outline .15s ease;
}
.m4-catgrid__item:hover { outline: 2px solid var(--m4-red); outline-offset: -2px; }
.m4-catgrid__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .62;
}
.m4-catgrid__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,12,14,.15) 0%, rgba(11,12,14,.5) 55%, rgba(11,12,14,.94) 100%);
}
.m4-catgrid__num {
  position: relative;
  padding: 14px 16px 0;
}
.m4-catgrid__num span {
  font-family: var(--m4-font-mono);
  font-size: 12px;
  color: #fff;
  background: var(--m4-red);
  padding: 3px 8px;
}
.m4-catgrid__name {
  position: relative;
  padding: 14px 16px 16px;
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.12;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.m4-catgrid__name .short { display: none; }
.m4-catgrid__name .full { display: inline; }

/* ==== PRODUCT CARD ==== */
.m4-pgrid {
  display: grid;
  gap: 16px;
}
.m4-pgrid--5 { grid-template-columns: repeat(5, 1fr); }
.m4-pgrid--6 { grid-template-columns: repeat(6, 1fr); }
.m4-pgrid--3 { grid-template-columns: repeat(3, 1fr); }
.m4-pgrid--4 { grid-template-columns: repeat(4, 1fr); }

.m4-pcard {
  background: var(--m4-card);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  width: 100%;
}
.m4-pcard:hover {
  border-color: var(--m4-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(224,30,43,.15);
}
.m4-pcard__img-link { display: block; color: inherit; }
.m4-pcard__title-link { display: block; color: inherit; text-decoration: none; }
.m4-pcard__title-link:hover .m4-pcard__name { color: #fff; }
.m4-pcard__img {
  position: relative;
  aspect-ratio: 1;
  background: #fff;
  overflow: hidden;
}
.m4-pcard__img::before {
  content: attr(data-sku);
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--m4-font-mono);
  font-size: 13px;
  color: #b8b3a8;
}
.m4-pcard__img img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10%;
  background: #fff;
}
.m4-pcard__badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--m4-red);
  color: #fff;
  font-family: var(--m4-font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  z-index: 3;
  letter-spacing: .04em;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.m4-pcard__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.m4-pcard__code {
  font-family: var(--m4-font-mono);
  font-size: 11px;
  color: var(--m4-red);
  margin-bottom: 8px;
}
.m4-pcard__name {
  font-family: var(--m4-font-display);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  color: var(--m4-text);
  margin-bottom: 14px;
  flex: 1;
}
.m4-pcard__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.m4-pcard__price .now {
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 26px;
  color: #fff;
  letter-spacing: -.01em;
}
.m4-pcard__price .old {
  font-family: var(--m4-font-mono);
  font-size: 13px;
  color: var(--m4-muted);
  text-decoration: line-through;
}
.m4-pcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.m4-pcard__models { color: var(--m4-muted); font-weight: 400; }
.m4-pcard__add {
  position: relative;
  z-index: 2;
  background: var(--m4-red);
  color: #fff;
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--m4-font-display);
  font-size: 22px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.m4-pcard__add:hover { background: #fff; color: var(--m4-red); transform: scale(1.05); }
.m4-pcard__add.loading { opacity: .5; pointer-events: none; }
.m4-pcard__add.added { background: var(--m4-green); color: #0b0c0e; }
.m4-pcard__add--view {
  background: transparent;
  color: var(--m4-red);
  border: 1px solid var(--m4-red);
}

/* ==== RED SPECIAL-ORDER BAND ==== */
.m4-band-red {
  background: var(--m4-red);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.m4-band-red__grid {
  position: absolute;
  inset: 0;
  opacity: .12;
}
.m4-band-red__inner {
  position: relative;
  max-width: var(--m4-container);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.m4-band-red__lbl {
  font-family: var(--m4-font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  opacity: .8;
  margin-bottom: 14px;
}
.m4-band-red__title {
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 18px;
}
.m4-band-red__lede { font-size: 16px; line-height: 1.6; max-width: 520px; margin: 0; opacity: .92; }
.m4-band-red__contact { border: 1px solid rgba(255,255,255,.35); padding: 28px; }
.m4-band-red__contact .k {
  font-family: var(--m4-font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  opacity: .85;
  margin-bottom: 6px;
}
.m4-band-red__contact .v {
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 16px;
}
.m4-band-red__contact .v:last-child { margin-bottom: 0; }

/* ==== FOOTER ==== */
.m4-footer {
  background: var(--m4-bg-3);
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 0;
}
.m4-footer__cols {
  max-width: var(--m4-container);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.m4-footer__col h4 {
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  color: #fff;
  margin: 0 0 16px;
}
.m4-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-family: var(--m4-font-body);
  font-size: 13.5px;
  color: var(--m4-muted-2);
}
.m4-footer__col a { color: inherit; }
.m4-footer__col a:hover { color: var(--m4-red); }
.m4-footer__brand p {
  color: var(--m4-muted);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 0 16px;
}
.m4-footer__pay {
  display: flex;
  gap: 8px;
  font-family: var(--m4-font-mono);
  font-size: 10px;
  color: #5c6169;
}
.m4-footer__pay span { border: 1px solid rgba(255,255,255,.14); padding: 5px 9px; }
.m4-footer__contact {
  font-family: var(--m4-font-mono);
  font-size: 13px;
  color: var(--m4-muted-2);
}
.m4-footer__contact li:first-child { color: var(--m4-text); }
.m4-footer__contact .flag { color: var(--m4-yellow); }
.m4-footer__legal {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px 24px;
  text-align: center;
  font-family: var(--m4-font-mono);
  font-size: 11px;
  color: var(--m4-muted);
}

/* ==== BREADCRUMBS ==== */
.m4-breadcrumbs {
  font-family: var(--m4-font-mono);
  font-size: 12px;
  color: var(--m4-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.m4-breadcrumbs a { color: var(--m4-red); text-decoration: none; }
.m4-breadcrumbs a:hover { color: #fff; }
.m4-breadcrumbs__current { color: var(--m4-text); text-transform: none; font-family: var(--m4-font-body); font-size: 13px; }

/* ==== SINGLE PRODUCT — TRUST SIGNALS ==== */
.m4-single__trust {
  list-style: none;
  padding: 16px 18px;
  margin: 0 0 22px;
  border: 1px solid var(--m4-line);
  background: #12141a;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m4-single__trust li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--m4-text-2);
}
.m4-single__trust .ico {
  flex: 0 0 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--m4-yellow);
}
.m4-single__trust strong { color: var(--m4-text); font-weight: 600; }
.m4-single__trust a { color: var(--m4-red); text-decoration: none; }
.m4-single__trust a:hover { color: #fff; }

/* ==== ARCHIVE (category listing) ==== */
.m4-archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.m4-archive-title {
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 46px;
  letter-spacing: -.01em;
  margin: 0;
  color: #fff;
}
.m4-archive-meta { display: flex; align-items: center; gap: 14px; }
.m4-archive-count { font-family: var(--m4-font-mono); font-size: 12px; color: var(--m4-muted); text-transform: uppercase; }
.m4-archive-sort {
  background: var(--m4-card);
  color: var(--m4-text);
  border: 1px solid rgba(255,255,255,.12);
  font-family: var(--m4-font-display);
  font-size: 13px;
  padding: 9px 12px;
  outline: none;
}
.m4-archive-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  margin-top: 28px;
}
.m4-filter {
  border: 1px solid var(--m4-line);
  background: var(--m4-card);
}
.m4-filter + .m4-filter { margin-top: 16px; }
.m4-filter__title {
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  color: #fff;
  padding: 14px 16px;
  border-bottom: 1px solid var(--m4-line);
  text-transform: uppercase;
}
.m4-filter__list { padding: 8px; }
.m4-filter__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 10px;
  font-family: var(--m4-font-body);
  font-size: 13.5px;
  color: #C4CAD2;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.m4-filter__item:hover, .m4-filter__item.is-active { color: #fff; background: #1E2126; }
.m4-filter__item--cat {
  padding: 9px 10px;
  font-size: 13px;
  color: var(--m4-muted-2);
}
.m4-filter__item--cat:hover, .m4-filter__item--cat.is-active { color: var(--m4-red); background: transparent; }
.m4-filter__item .code { font-family: var(--m4-font-display); font-weight: 600; }
.m4-filter__item .years { font-family: var(--m4-font-mono); font-size: 11px; color: var(--m4-muted); }
.m4-filter__list--scroll { max-height: 320px; overflow-y: auto; }
.m4-filter-clear {
  text-align: center;
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,.2);
  padding: 12px;
  font-family: var(--m4-font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--m4-text);
  cursor: pointer;
  text-transform: uppercase;
}
.m4-filter-clear:hover { border-color: var(--m4-red); color: var(--m4-red); }

/* ==== SINGLE PRODUCT ==== */
.m4-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.m4-single__gallery { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.m4-single__gallery > .m4-grid-overlay { position: absolute; inset: 0; opacity: .25; }
.m4-single__gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.m4-single__fig-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--m4-font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: #5a564d;
  border: 1px solid rgba(0,0,0,.2);
  padding: 5px 10px;
}
.m4-single__sku {
  font-family: var(--m4-font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--m4-red);
  margin-bottom: 14px;
}
.m4-single__title {
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 20px;
  color: #fff;
}
.m4-single__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.m4-single__price .now { font-family: var(--m4-font-display); font-weight: 700; font-size: 38px; color: #fff; }
.m4-single__price .old { font-family: var(--m4-font-mono); font-size: 16px; color: var(--m4-muted); text-decoration: line-through; }
.m4-single__price .cur { font-family: var(--m4-font-mono); font-size: 12px; color: var(--m4-muted); }
.m4-single__desc { font-size: 15.5px; line-height: 1.65; color: var(--m4-text-2); margin: 0 0 26px; }
.m4-single__compat {
  border-top: 1px solid var(--m4-line);
  padding-top: 22px;
  margin-bottom: 26px;
}
.m4-single__compat h3 {
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  color: #fff;
  margin: 0 0 14px;
}
.m4-single__compat-list { display: flex; flex-wrap: wrap; gap: 10px; }
.m4-single__compat-item {
  border: 1px solid rgba(244,182,10,.4);
  padding: 8px 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.m4-single__compat-item .code { font-family: var(--m4-font-display); font-weight: 600; font-size: 14px; color: var(--m4-yellow); }
.m4-single__compat-item .years { font-family: var(--m4-font-mono); font-size: 11px; color: var(--m4-muted); }
.m4-single__cta { display: flex; gap: 14px; align-items: stretch; margin-bottom: 16px; }
.m4-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--m4-line-strong);
}
.m4-qty__btn {
  width: 46px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--m4-text);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.m4-qty__btn:hover { background: #1E2126; }
.m4-qty__input {
  width: 52px;
  text-align: center;
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: none;
  -moz-appearance: textfield;
}
.m4-qty__input::-webkit-outer-spin-button,
.m4-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.m4-single__add {
  flex: 1;
  background: var(--m4-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .03em;
  clip-path: polygon(2% 0, 100% 0, 98% 100%, 0 100%);
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
  transition: background .15s ease, color .15s ease;
}
.m4-single__add:hover { background: #fff; color: var(--m4-red); }
.m4-single__spec {
  margin-top: 26px;
  border: 1px solid var(--m4-line);
}
.m4-single__spec-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: var(--m4-font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
}
.m4-single__spec-row:last-child { border-bottom: 0; }
.m4-single__spec-row .k { color: var(--m4-muted); }
.m4-single__spec-row .v { color: var(--m4-text); }
.m4-single__spec-row .v--stock { color: var(--m4-green); }
.m4-single__spec-row .v--out { color: var(--m4-red); }

/* ==== WOOCOMMERCE CART / CHECKOUT ==== */
.m4-cart-page-title, .m4-checkout-title {
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 46px;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  color: #fff;
}
.m4-cart-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.m4-cart-lines { border: 1px solid var(--m4-line); }
.m4-cart-line {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  align-items: center;
}
.m4-cart-line:last-child { border-bottom: 0; }
.m4-cart-line__img { position: relative; width: 88px; height: 88px; background: #fff; overflow: hidden; }
.m4-cart-line__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.m4-cart-line__code { font-family: var(--m4-font-mono); font-size: 11px; color: var(--m4-red); margin-bottom: 5px; }
.m4-cart-line__name { font-family: var(--m4-font-display); font-weight: 600; font-size: 15px; color: var(--m4-text); margin-bottom: 8px; }
.m4-cart-line__controls { display: flex; align-items: center; gap: 16px; }
.m4-cart-line__remove { font-family: var(--m4-font-mono); font-size: 11px; color: var(--m4-muted); cursor: pointer; background: transparent; border: 0; text-transform: uppercase; }
.m4-cart-line__remove:hover { color: var(--m4-red); }
.m4-cart-line__total { text-align: right; }
.m4-cart-line__total .line { font-family: var(--m4-font-display); font-weight: 700; font-size: 18px; color: #fff; }
.m4-cart-line__total .unit { font-family: var(--m4-font-mono); font-size: 11px; color: var(--m4-muted); }
.m4-cart-continue {
  padding: 16px 18px;
  font-family: var(--m4-font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--m4-red);
  cursor: pointer;
  text-transform: uppercase;
}
.m4-summary {
  border: 1px solid var(--m4-line);
  background: var(--m4-card);
}
.m4-summary__title {
  padding: 20px;
  border-bottom: 1px solid var(--m4-line);
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .05em;
  color: #fff;
  text-transform: uppercase;
}
.m4-summary__body { padding: 20px; }
.m4-summary__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--m4-font-body);
  font-size: 14px;
}
.m4-summary__row .k { color: var(--m4-muted-2); }
.m4-summary__row .v { color: var(--m4-text); font-family: var(--m4-font-display); font-weight: 600; }
.m4-summary__total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--m4-line);
  margin-bottom: 20px;
}
.m4-summary__total .k { font-family: var(--m4-font-display); font-weight: 700; font-size: 16px; color: #fff; }
.m4-summary__total .v { font-family: var(--m4-font-display); font-weight: 700; font-size: 22px; color: var(--m4-red); }

/* Form inputs (checkout, contact, etc.) */
.m4-input, .m4-select, .m4-textarea {
  background: var(--m4-bg);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--m4-text);
  font-family: var(--m4-font-body);
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  width: 100%;
}
.m4-input::placeholder, .m4-textarea::placeholder { color: var(--m4-muted); }
.m4-input:focus, .m4-select:focus, .m4-textarea:focus { border-color: var(--m4-red); }

/* Confirm page */
.m4-confirm {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}
.m4-confirm__order {
  font-family: var(--m4-font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--m4-yellow);
  margin-bottom: 20px;
}
.m4-confirm__title {
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  color: #fff;
}
.m4-confirm p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--m4-text-2);
  max-width: 440px;
  margin: 0 auto 32px;
}

/* Related products */
.m4-related { margin-top: 72px; }
.m4-related h2 { font-size: 26px; margin: 0 0 24px; color: #fff; }

/* ==== CHECKOUT — skin the default WC form ==== */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-notice {
  background: var(--m4-card);
  border: 1px solid var(--m4-line);
  color: var(--m4-text);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-family: var(--m4-font-body);
  font-size: 14px;
}
.woocommerce-checkout .woocommerce-info a,
.woocommerce-checkout .woocommerce-notice a { color: var(--m4-red); }
.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review { grid-column: auto; }
.woocommerce-checkout #customer_details { display: flex; flex-direction: column; gap: 22px; }
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
  border: 1px solid var(--m4-line);
  background: var(--m4-card);
  padding: 0;
  width: 100%;
  float: none;
  max-width: none;
}
.woocommerce-checkout .col-1 h3,
.woocommerce-checkout .col-2 h3 {
  padding: 16px 20px;
  border-bottom: 1px solid var(--m4-line);
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .05em;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
}
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields { padding: 20px; }
.woocommerce-checkout label {
  display: block;
  font-family: var(--m4-font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--m4-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout textarea,
.woocommerce-checkout .select2-container .select2-selection--single,
.woocommerce-checkout select {
  background: var(--m4-bg);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--m4-text);
  font-family: var(--m4-font-body);
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  width: 100%;
  border-radius: 0;
  height: auto;
  line-height: 1.4;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--m4-text);
  line-height: 1.4;
  padding: 0;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  top: 0;
}
.woocommerce-checkout .form-row {
  padding: 0 0 14px;
  margin: 0;
}
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
  width: 48%;
  display: inline-block;
}
.woocommerce-checkout .form-row-first { margin-right: 4%; }
.woocommerce-checkout #order_review {
  border: 1px solid var(--m4-line);
  background: var(--m4-card);
  padding: 0;
}
.woocommerce-checkout .shop_table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--m4-font-body);
}
.woocommerce-checkout .shop_table thead th {
  padding: 20px;
  border-bottom: 1px solid var(--m4-line);
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .05em;
  color: #fff;
  text-transform: uppercase;
  text-align: left;
}
.woocommerce-checkout .shop_table tbody td {
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
  color: var(--m4-text);
}
.woocommerce-checkout .shop_table tfoot th,
.woocommerce-checkout .shop_table tfoot td {
  padding: 10px 20px;
  color: var(--m4-text);
  font-family: var(--m4-font-body);
  font-size: 13px;
  border-top: 1px solid var(--m4-line);
}
.woocommerce-checkout .shop_table tfoot .order-total th,
.woocommerce-checkout .shop_table tfoot .order-total td {
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.woocommerce-checkout .shop_table tfoot .order-total .amount { color: var(--m4-red); font-size: 22px; }
.woocommerce-checkout #payment {
  background: transparent;
  padding: 0 20px 20px;
}
.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  border: 0;
}
.woocommerce-checkout #payment ul.payment_methods li {
  padding: 12px 0;
  border-top: 1px solid var(--m4-line);
}
.woocommerce-checkout #payment ul.payment_methods li:first-child { border-top: 0; }
.woocommerce-checkout #payment .payment_box {
  background: var(--m4-bg);
  border: 1px solid var(--m4-line);
  padding: 14px 16px;
  margin-top: 10px;
  color: var(--m4-text-2);
  font-size: 13px;
  line-height: 1.5;
}
.woocommerce-checkout #payment .place-order {
  padding: 0;
  margin: 0;
}
.woocommerce-checkout #place_order,
.woocommerce-checkout button[type="submit"] {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--m4-red);
  color: #fff;
  font-family: var(--m4-font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 16px;
  border: 0;
  cursor: pointer;
  letter-spacing: .05em;
  text-transform: uppercase;
  clip-path: var(--m4-clip-btn-tight);
  transition: background .15s ease, color .15s ease;
}
.woocommerce-checkout #place_order:hover,
.woocommerce-checkout button[type="submit"]:hover { background: #fff; color: var(--m4-red); }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { padding: 14px 20px 0; font-size: 13px; color: var(--m4-text-2); }

/* WooCommerce error/notice on any page */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  background: var(--m4-card);
  border: 1px solid var(--m4-line);
  color: var(--m4-text);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-family: var(--m4-font-body);
  font-size: 14px;
  list-style: none;
}
.woocommerce-message { border-color: var(--m4-yellow); }
.woocommerce-error { border-color: var(--m4-red); }
.woocommerce a.button, .woocommerce button.button {
  background: var(--m4-red);
  color: #fff;
  font-family: var(--m4-font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 0;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: #fff; color: var(--m4-red); }

/* Pagination */
.woocommerce-pagination ul.page-numbers {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  border: 0;
}
.woocommerce-pagination ul.page-numbers li { border: 0; }
.woocommerce-pagination ul.page-numbers a,
.woocommerce-pagination ul.page-numbers span {
  padding: 10px 14px;
  border: 1px solid var(--m4-line);
  background: var(--m4-card);
  font-family: var(--m4-font-display);
  font-weight: 600;
  color: var(--m4-text);
  text-decoration: none;
}
.woocommerce-pagination ul.page-numbers .current {
  background: var(--m4-red);
  border-color: var(--m4-red);
  color: #fff;
}

/* My account page */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  border: 1px solid var(--m4-line);
  background: var(--m4-card);
}
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 12px 16px;
  color: var(--m4-text);
  font-family: var(--m4-font-display);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .04em;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: #1E2126; color: var(--m4-red); }

/* ==== RESPONSIVE ==== */
@media (max-width: 1200px) {
  .m4-hero__title { font-size: 60px; }
  .m4-catgrid { grid-template-columns: repeat(4, 1fr); }
  .m4-pgrid--6 { grid-template-columns: repeat(4, 1fr); }
  .m4-pgrid--5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .m4-hero__img { display: none; }
  .m4-hero__title { font-size: 48px; }
  .m4-vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .m4-catgrid { grid-template-columns: repeat(3, 1fr); }
  .m4-pgrid--6, .m4-pgrid--5, .m4-pgrid--4 { grid-template-columns: repeat(3, 1fr); }
  .m4-pgrid--3 { grid-template-columns: repeat(2, 1fr); }
  .m4-band-red__inner { grid-template-columns: 1fr; gap: 28px; }
  .m4-single { grid-template-columns: 1fr; gap: 24px; }
  .m4-archive-body { grid-template-columns: 1fr; }
  .m4-cart-wrap { grid-template-columns: 1fr; }
  .woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
  .m4-footer__cols { grid-template-columns: 1fr 1fr; }
  .m4-nav { flex-wrap: wrap; }
  .m4-search { order: 3; flex: 1 1 100%; max-width: none; }
}
@media (max-width: 600px) {
  .m4-hero__inner { padding: 56px 20px 64px; }
  .m4-hero__title { font-size: 36px; }
  .m4-hero__stats { gap: 24px; flex-wrap: wrap; }
  .m4-catgrid { grid-template-columns: repeat(2, 1fr); }
  .m4-catgrid__item { min-height: 130px; }
  .m4-catgrid__name { font-size: 13px; }
  .m4-catgrid__name .full { display: none; }
  .m4-catgrid__name .short { display: inline; }
  .m4-pgrid--6, .m4-pgrid--5, .m4-pgrid--4, .m4-pgrid--3 { grid-template-columns: repeat(2, 1fr); }
  .m4-pcard__price .now { font-size: 22px; }
  .m4-pcard__add { width: 38px; height: 38px; min-width: 38px; font-size: 20px; }
  .m4-vehicle-grid { grid-template-columns: 1fr 1fr; }
  .m4-footer__cols { grid-template-columns: 1fr; }
  .m4-band-red__title { font-size: 32px; }
  .m4-section-title { font-size: 30px; }
  .m4-archive-title, .m4-cart-page-title, .m4-checkout-title { font-size: 32px; }
  .m4-single__title { font-size: 26px; }
  .m4-single__price .now { font-size: 30px; }
  .m4-utilbar__full { display: none; }
  .m4-utilbar__short { display: inline; }
  .m4-breadcrumbs { font-size: 11px; }
  .m4-breadcrumbs__current { font-size: 12px; }
}
