/* ==========================================================================
   BEARBONES OFF ROAD — DESIGN SYSTEM
   Stark & technical: white surfaces, ink black, signature blue from the logo.
   Industrial condensed display + clean grotesk body.
   Ported from the Claude Design handoff (project/styles.css). All custom-CSS
   tokens are also exposed via theme.json so the editor sees them too.
   ========================================================================== */

:root {
  --ink:        #0E1116;
  --ink-2:      #1A1F26;
  --ink-3:      #2A3038;
  --line:       #E5E7EB;
  --line-2:     #EEF0F3;
  --paper:      #FFFFFF;
  --paper-2:    #F7F8FA;
  --muted:      #6B7280;
  --muted-2:    #9AA0A6;

  --bb-blue:      #1B9AE4;
  --bb-blue-deep: #0E7BC0;
  --bb-blue-tint: #EAF6FD;

  --success: #1F8A4C;
  --warn:    #C97A0F;
  --danger:  #C0392B;

  --display: 'Oswald', 'Archivo Narrow', sans-serif;
  --body:    'Archivo', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;

  --shadow-sm: 0 1px 2px rgba(14,17,22,0.04), 0 1px 1px rgba(14,17,22,0.03);
  --shadow-md: 0 6px 18px rgba(14,17,22,0.06), 0 2px 4px rgba(14,17,22,0.04);
  --shadow-lg: 0 24px 60px rgba(14,17,22,0.10);

  --bb-container: 1320px;
  --bb-container-pad: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── a11y: visible focus + sr-only utility + skip link ───────────────────── */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--bb-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
          clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  white-space: nowrap;
  word-wrap: normal !important;
}

.bb-skip-link {
  position: absolute;
  top: -1000px; left: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 9999;
}
.bb-skip-link:focus {
  top: 0;
  outline: 2px solid var(--bb-blue);
  outline-offset: 0;
}

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

/* ── type system ─────────────────────────────────────────────────────────── */
.bb-eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.bb-eyebrow--ink  { color: var(--ink); }
.bb-eyebrow--blue { color: var(--bb-blue-deep); }

.bb-display {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
  color: var(--ink);
}
.bb-h1 { font-size: clamp(56px, 7vw, 84px); }
.bb-h2 { font-size: clamp(40px, 5vw, 56px); }
.bb-h3 { font-size: clamp(28px, 3vw, 38px); }
.bb-h4 { font-size: clamp(22px, 2vw, 28px); }
.bb-h5 { font-size: clamp(18px, 1.4vw, 20px); }

.bb-body-lg { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.bb-body-sm { font-size: 13px; color: var(--muted); }
.bb-mono    { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }

/* ── layout ──────────────────────────────────────────────────────────────── */
.bb-container {
  max-width: var(--bb-container);
  margin: 0 auto;
  padding: 0 var(--bb-container-pad);
}

.bb-rule          { height: 1px; background: var(--line); width: 100%; }
.bb-rule--ink     { background: var(--ink); }
.bb-rule--thick   { height: 2px; background: var(--ink); }

.bb-section-head {
  display: flex; align-items: end; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 28px;
  gap: 24px;
}
.bb-section-head .bb-eyebrow { margin-bottom: 6px; display: block; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.bb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.bb-btn:active                     { transform: translateY(1px); }
.bb-btn--primary                   { background: var(--ink); color: var(--paper); }
.bb-btn--primary:hover             { background: var(--ink-2); }
.bb-btn--blue                      { background: var(--bb-blue); color: var(--paper); }
.bb-btn--blue:hover                { background: var(--bb-blue-deep); }
.bb-btn--ghost                     { background: transparent; color: var(--ink); border-color: var(--line); }
.bb-btn--ghost:hover               { border-color: var(--ink); }
.bb-btn--ghost-light               { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.35); }
.bb-btn--ghost-light:hover         { border-color: var(--paper); }
.bb-btn--sm                        { height: 36px; padding: 0 14px; font-size: 12px; }
.bb-btn--lg                        { height: 56px; padding: 0 28px; font-size: 16px; }

/* ── chips ───────────────────────────────────────────────────────────────── */
.bb-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px;
  font-family: var(--body); font-weight: 600;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 2px;
  background: var(--paper-2); color: var(--ink-3);
  border: 1px solid var(--line);
}
.bb-chip--ink  { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bb-chip--blue { background: var(--bb-blue-tint); color: var(--bb-blue-deep); border-color: transparent; }
.bb-chip--fit  { background: #E9F6EE; color: var(--success); border-color: transparent; }
.bb-chip--low  { background: #FBEEDB; color: var(--warn); border-color: transparent; }

/* ── inputs ──────────────────────────────────────────────────────────────── */
.bb-input,
.bb-select {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--body); font-size: 14px;
  border-radius: var(--r-md);
  color: var(--ink);
  width: 100%;
}
.bb-select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%230E1116' stroke-width='1.5' fill='none' stroke-linecap='square'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.bb-input:focus,
.bb-select:focus { outline: none; border-color: var(--ink); }

/* ── header ──────────────────────────────────────────────────────────────── */
.bb-announcement {
  background: var(--ink); color: var(--paper);
  height: 36px; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
  display: flex; align-items: center;
}
.bb-announcement .bb-container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.bb-announcement__shipping { display: flex; align-items: center; gap: 8px; opacity: 0.85; }
.bb-announcement__meta { display: flex; gap: 24px; opacity: 0.85; font-size: 11px; }

.bb-header__main {
  height: 88px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 32px;
}
.bb-header__logo img { width: 180px; height: auto; }

.bb-search {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--ink);
  border-radius: 4px; overflow: hidden;
  height: 48px;
}
.bb-search__picker {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  background: var(--paper-2);
  border: none;
  border-right: 1px solid var(--line);
  font-family: var(--display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.bb-search__input { flex: 1; border: none; padding: 0 16px; font-size: 14px; outline: none; }
.bb-search__submit {
  background: var(--ink); color: var(--paper);
  border: none; padding: 0 22px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.bb-header__tools { display: flex; align-items: center; gap: 22px; }
.bb-iconbtn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--ink);
  position: relative;
}
.bb-iconbtn__count {
  position: absolute; top: -4px; right: -6px;
  background: var(--bb-blue); color: white;
  font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

.bb-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bb-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.bb-nav__list { display: flex; gap: 0; list-style: none; padding: 0; margin: 0; }
.bb-nav__list a {
  padding: 0 18px; height: 52px; display: flex; align-items: center; gap: 6px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.bb-nav__list a:hover,
.bb-nav__list .current-menu-item > a {
  color: var(--ink);
  border-bottom-color: var(--bb-blue);
}
.bb-nav__meta {
  display: flex; gap: 18px;
  font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.bb-nav__meta .is-sale { color: var(--bb-blue-deep); }

/* ── vehicle picker ──────────────────────────────────────────────────────── */
.bb-picker {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}
.bb-picker--inverse {
  background: rgba(14,17,22,0.6);
  border-color: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  color: var(--paper);
}
.bb-picker__label { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.bb-picker__fields { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 8px; }
.bb-picker__field {
  height: 48px; padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 4px;
  text-align: left; font-size: 14px; font-weight: 500;
}
.bb-picker--inverse .bb-picker__field {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: var(--paper);
}

/* ── product cards ───────────────────────────────────────────────────────── */
.bb-product-card { display: flex; flex-direction: column; gap: 14px; position: relative; }
.bb-product-card__media {
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  position: relative; overflow: hidden;
}
.bb-product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.bb-product-card__sku   { color: var(--muted); margin-bottom: 4px; font-family: var(--mono); font-size: 12px; }
.bb-product-card__title { font-size: 15px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; }
.bb-product-card__price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bb-product-card__price {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--display); font-size: 22px; line-height: 1; color: var(--ink);
}
/* WooCommerce wraps prices in <del>/<ins>/<span class="amount"> — restyle inside our wrapper. */
.bb-product-card__price del,
.bb-product-card__was {
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
}
.bb-product-card__price ins { text-decoration: none; background: transparent; }
.bb-product-card__price .woocommerce-Price-amount { font-family: inherit; }

/* Add-to-cart plus button — overrides WC's default text button on listing tiles. */
.bb-product-card__plus.add_to_cart_button,
.bb-product-card__plus.added_to_cart {
  width: 32px; height: 32px;
  padding: 0;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0; line-height: 0;
  position: relative;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease;
}
.bb-product-card__plus.add_to_cart_button:hover {
  background: var(--ink);
  color: var(--paper);
}
.bb-product-card__plus.add_to_cart_button::before {
  content: "";
  width: 12px; height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center/12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center/1.5px 12px no-repeat;
}
.bb-product-card__plus.loading::before  { opacity: 0.4; }
.bb-product-card__plus.added::before    { content: "✓"; font: 600 14px/1 var(--display); width: auto; height: auto; background: none; }

/* ── trust bar ───────────────────────────────────────────────────────────── */
.bb-trust-bar { border-bottom: 1px solid var(--line); background: var(--paper-2); }
.bb-trust-bar__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 24px 0;
}
.bb-trust-bar__item {
  display: flex; align-items: center; gap: 16px;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.bb-trust-bar__item:first-child { padding-left: 0; border-left: none; }
.bb-trust-bar__icon {
  width: 40px; height: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--bb-blue-deep);
  flex-shrink: 0;
}

/* ── footer ──────────────────────────────────────────────────────────────── */
.bb-footer { background: var(--ink); color: var(--paper); }
.bb-footer__newsletter { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 56px 0; }
.bb-footer__newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.bb-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 48px; padding: 64px 0 32px; }
.bb-footer__col-title { color: var(--paper); margin-bottom: 18px; }
.bb-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.bb-footer__col li { color: rgba(255,255,255,0.6); font-size: 13px; }
.bb-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.4);
}
.bb-social { display: flex; gap: 12px; margin-top: 24px; }
.bb-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; color: var(--paper);
}

/* ── shop loop tweaks ────────────────────────────────────────────────────── */
.bb-shop { padding-bottom: 88px; }
.bb-shop__toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none; padding: 0; margin: 0;
}
.woocommerce ul.products li.product { margin: 0 !important; width: 100% !important; }

/* ── My Account ─────────────────────────────────────────────────────────── */
.woocommerce-account .bb-shop      { padding-top: 56px; }
.woocommerce-account .bb-shop > .bb-container {
  display: grid !important;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.woocommerce-MyAccount-navigation li {
  border-bottom: 1px solid var(--line-2);
}
.woocommerce-MyAccount-navigation li:last-child {
  border-bottom: 0;
}
.woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 14px 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.woocommerce-MyAccount-navigation li a:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.woocommerce-MyAccount-navigation li.is-active a {
  background: var(--ink);
  color: var(--paper);
}

.woocommerce-MyAccount-content > h1,
.woocommerce-MyAccount-content > h2 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0 0 24px;
}

.woocommerce-MyAccount-content table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-2);
}
.woocommerce-MyAccount-content table.shop_table thead th {
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-size: 12px;
  font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button[type="submit"] {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 20px;
  font-family: var(--display); font-weight: 600;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: var(--r-md);
}
.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover {
  background: var(--ink-2);
}
.woocommerce-MyAccount-content form .form-row {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.woocommerce-MyAccount-content form .form-row label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.woocommerce-MyAccount-content form input[type="text"],
.woocommerce-MyAccount-content form input[type="email"],
.woocommerce-MyAccount-content form input[type="password"],
.woocommerce-MyAccount-content form input[type="tel"],
.woocommerce-MyAccount-content form input[type="url"],
.woocommerce-MyAccount-content form select,
.woocommerce-MyAccount-content form textarea {
  height: 44px; padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  font-family: var(--body); font-size: 14px;
}
.woocommerce-MyAccount-content form textarea { height: auto; padding: 12px; min-height: 96px; }
.woocommerce-MyAccount-content form input:focus,
.woocommerce-MyAccount-content form select:focus,
.woocommerce-MyAccount-content form textarea:focus {
  outline: none; border-color: var(--ink);
}

/* Login / register split. */
.woocommerce-account .u-columns {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  list-style: none; padding: 0; margin: 0;
}
.woocommerce-account .u-columns .u-column1,
.woocommerce-account .u-columns .u-column2 {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
}

/* ── Checkout (block + classic) ────────────────────────────────────────── */
.woocommerce-checkout #order_review_heading,
.wc-block-components-checkout-step__heading {
  font-family: var(--display) !important;
  font-weight: 600 !important;
  font-size: 22px !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

/* Block-based checkout step circles → match the design. */
.wc-block-checkout__main .wc-block-components-checkout-step {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.wc-block-components-checkout-step__title-content {
  display: flex; align-items: center; gap: 14px;
}
.wc-block-components-checkout-step__title-content::before {
  content: "";
  width: 28px; height: 28px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  display: inline-block;
  flex-shrink: 0;
}
.wc-block-components-checkout-step--with-step-number > .wc-block-components-checkout-step__title-content::before {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.wc-block-components-totals-wrapper {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
}
.wc-block-components-totals-item__label {
  font-size: 14px;
  color: var(--muted);
}
.wc-block-components-totals-item__value {
  font-weight: 500;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
  font-family: var(--display);
  font-size: 32px;
}

/* Classic checkout (when block checkout isn't enabled). */
form.checkout #customer_details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
form.checkout #order_review {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  position: sticky;
  top: 24px;
}

/* ── Order received / "thank you" page ─────────────────────────────────── */
.woocommerce-order p.woocommerce-thankyou-order-received {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin-bottom: 16px;
}
.woocommerce-order ul.woocommerce-thankyou-order-details.order_details {
  list-style: none; padding: 0; margin: 32px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-2);
  padding: 24px;
}
.woocommerce-order ul.woocommerce-thankyou-order-details strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
}

/* ── shipping progress (cart) ────────────────────────────────────────────── */
.bb-shipping-progress {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-2);
}
.bb-shipping-progress__bar {
  height: 4px; background: var(--line);
  border-radius: 2px; overflow: hidden;
  margin-bottom: 8px;
}
.bb-shipping-progress__bar span {
  display: block; height: 100%;
  background: var(--bb-blue);
  transition: width .3s ease;
}
.bb-shipping-progress__copy { margin: 0; font-size: 13px; color: var(--ink-2); }

/* ── nav toggle (hidden by default; appears on mobile) ──────────────────── */
.bb-nav-toggle { display: none; }

/* ── mobile nav drawer (uses [data-open] toggled by theme.js) ───────────── */
@media (max-width: 1024px) {
  .bb-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(420px, 90vw);
    background: var(--paper);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 200;
    overflow-y: auto;
    padding-top: 24px;
  }
  .bb-nav[data-open]            { transform: translateX(0); }
  .bb-nav__inner                { flex-direction: column; align-items: stretch; height: auto; gap: 0; padding: 16px 0; }
  .bb-nav__list                 { flex-direction: column; }
  .bb-nav__list a               { height: auto; padding: 14px 24px; border-bottom: 1px solid var(--line-2); margin-bottom: 0; }
  .bb-nav__list a:hover,
  .bb-nav__list .current-menu-item > a { border-bottom-color: var(--line-2); background: var(--paper-2); }
  .bb-nav__meta                 { padding: 24px; gap: 24px; }

  /* Backdrop when open. */
  body:has(.bb-nav[data-open])::before {
    content: ""; position: fixed; inset: 0;
    background: rgba(14,17,22,0.45);
    z-index: 150;
  }
}

/* ── tablet: 600–1024 ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bb-header__main {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px 16px;
    height: auto;
    padding: 12px 0;
  }
  .bb-header__logo img        { width: 140px; }
  .bb-search                  { grid-column: 1 / -1; height: 44px; }
  .bb-search__picker          { padding: 0 12px; font-size: 11px; }
  .bb-search__picker span     { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bb-search__submit span     { display: none; }
  .bb-search__submit          { padding: 0 14px; }
  .bb-nav-toggle              { display: flex; }
  .bb-header__tools           { gap: 8px; }
  /* Hide the redundant cart total chip on smaller screens; the cart icon stays. */
  .bb-header__tools > .bb-btn { display: none; }

  .bb-footer__cols            { grid-template-columns: 1fr 1fr; gap: 32px; }
  .bb-footer__newsletter-grid { grid-template-columns: 1fr; gap: 24px; }
  .bb-footer__bottom          { flex-direction: column; gap: 12px; align-items: flex-start; }

  .bb-trust-bar__grid         { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; padding: 24px 0; }
  .bb-trust-bar__item         { padding-left: 0; border-left: none; }

  .bb-picker__fields          { grid-template-columns: 1fr 1fr; }
  .bb-picker__fields > :last-child { grid-column: 1 / -1; }
  .bb-picker__fields > :last-child .bb-btn { width: 100%; }

  .woocommerce ul.products    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── phone: ≤600 ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  :root { --bb-container-pad: 20px; }

  .bb-announcement                  { display: none; }
  .bb-section-head                  { flex-direction: column; align-items: flex-start; }
  .bb-header__main                  { grid-template-columns: auto 1fr auto; gap: 8px; }
  .bb-header__logo img              { width: 120px; }

  /* Promote search to a single line under the logo row (already fullwidth on tablet). */
  .bb-search                        { height: 44px; }
  .bb-search__picker                { display: none; } /* picker becomes a dedicated button in the drawer */

  .bb-footer__cols                  { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 24px; }

  .woocommerce ul.products          { grid-template-columns: 1fr; }

  /* PDP: stack gallery + summary. */
  .bb-pdp__main > .bb-container,
  .bb-shop > .bb-container          { display: block !important; }
  .bb-pdp__gallery                  { margin-bottom: 24px; }

  /* My-account: stack nav above content. */
  .woocommerce-account .bb-shop > .bb-container { grid-template-columns: 1fr !important; gap: 24px !important; }
  .woocommerce-MyAccount-navigation ul          { flex-direction: row; flex-wrap: wrap; }
  .woocommerce-MyAccount-navigation li          { flex: 1 1 50%; }
  .woocommerce-account .u-columns               { grid-template-columns: 1fr !important; }

  /* Classic checkout: stack columns. */
  form.checkout #customer_details   { grid-template-columns: 1fr !important; gap: 24px !important; }
  form.checkout #order_review       { position: static !important; }

  /* Order-received summary becomes a 2-up. */
  .woocommerce-order ul.woocommerce-thankyou-order-details.order_details { grid-template-columns: 1fr 1fr !important; }

  /* Cart: stack line items. */
  .bb-cart__grid                    { grid-template-columns: 1fr !important; gap: 32px !important; }
  .woocommerce-cart-form__contents  { display: block; }
  .woocommerce-cart-form__contents thead { display: none; }
  .woocommerce-cart-form__cart-item { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
  .woocommerce-cart-form__cart-item .product-thumbnail { grid-row: 1 / span 4; }
  .woocommerce-cart-form__cart-item td { padding: 0 !important; border: none !important; }
}

/* Instagram-grid placeholder — used until the Smash Balloon plugin is wired up. */
.bb-instagram-placeholder {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 24px;
}
.bb-instagram-placeholder__tile {
  aspect-ratio: 1 / 1;
  background: var(--ink-2);
  background-image: linear-gradient(135deg, var(--ink-2) 0%, var(--ink-3) 100%);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  color: rgba(255,255,255,0.85);
}
.bb-instagram-placeholder__tile:nth-child(2n) {
  background-image: linear-gradient(135deg, var(--ink-3) 0%, var(--ink-2) 100%);
}
.bb-instagram-placeholder__tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.bb-instagram-placeholder__icon {
  position: absolute; top: 12px; right: 12px;
  width: 16px; height: 16px;
  color: rgba(255,255,255,0.9);
  z-index: 2;
}
.bb-instagram-placeholder__caption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  font-size: 11px; line-height: 1.4; font-weight: 500;
  color: var(--paper);
  z-index: 2;
}
@media (max-width: 768px) { .bb-instagram-placeholder { grid-template-columns: repeat(3, 1fr); } }

/* ── hero pill eyebrow + corner ticker ───────────────────────────────────── */
.bb-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
}
.bb-pill--inverse {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}
.bb-pill__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bb-blue);
  flex-shrink: 0;
}

.bb-hero { position: relative; }
.bb-hero__ticker {
  position: absolute; top: 32px; right: 32px;
  z-index: 3;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}
.bb-hero__ticker > div + div { margin-top: 2px; }
@media (max-width: 768px) { .bb-hero__ticker { display: none; } }

/* ── section-head right-side link ────────────────────────────────────────── */
.bb-section-head__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.bb-section-head__link:hover { color: var(--bb-blue-deep); }

/* ── product card body (used by woocommerce/content-product.php) ─────────── */
.bb-product-card__body { display: flex; flex-direction: column; gap: 4px; }
.bb-product-card__title { margin: 0; }
.bb-product-card__title a { color: inherit; }

/* ── editorial workshop figure (BAY 02 overlay) ──────────────────────────── */
.bb-workshop-figure {
  position: relative;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.bb-workshop-figure img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.bb-workshop-figure__badge {
  position: absolute;
  bottom: 24px; left: 24px;
  padding: 12px 16px;
  background: rgba(14,17,22,0.85);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: var(--paper);
  display: flex; flex-direction: column; gap: 2px;
}
.bb-workshop-figure__bay {
  font-family: var(--mono);
  color: var(--bb-blue);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.bb-workshop-figure__caption {
  font-size: 13px;
  font-weight: 500;
  color: var(--paper);
}

/* ── shop-by-category 3x2 hairline grid ──────────────────────────────────── */
.bb-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.bb-cat-grid__cell {
  background: var(--paper);
  padding: 32px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  min-height: 200px;
  color: var(--ink);
  transition: background .15s ease;
}
.bb-cat-grid__cell:hover { background: var(--bb-blue-tint); }
.bb-cat-grid__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}
.bb-cat-grid__num {
  color: var(--muted);
}
.bb-cat-grid__name {
  margin: 0 0 4px;
}
.bb-cat-grid__icon {
  width: 120px; height: 120px;
  flex-shrink: 0;
  align-self: center;
  color: var(--ink-3);
}
.bb-cat-grid__icon svg { width: 100%; height: 100%; display: block; }
@media (max-width: 1024px) { .bb-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .bb-cat-grid { grid-template-columns: 1fr; } .bb-cat-grid__icon { width: 80px; height: 80px; } }

/* ── fitment guide card ──────────────────────────────────────────────────── */
.bb-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bb-guide-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.bb-guide-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.bb-guide-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  overflow: hidden;
}
.bb-guide-card__media img,
.bb-guide-card__media .wp-post-image {
  width: 100%; height: 100%;
  object-fit: cover;
}
.bb-guide-card__label {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--bb-blue);
  z-index: 2;
}
.bb-guide-card__chips {
  position: absolute;
  bottom: 16px; left: 16px;
  display: flex; gap: 6px;
  z-index: 2;
}
.bb-guide-card__body { padding: 24px; }
.bb-guide-card__vehicle { margin-bottom: 6px; }
.bb-guide-card__title {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
}
.bb-guide-card__cta {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
@media (max-width: 1024px) { .bb-guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .bb-guide-grid { grid-template-columns: 1fr; } }

/* ── ghost-light chip variant for use over dark cover images ─────────────── */
.bb-chip--ghost-light {
  background: rgba(255,255,255,0.1);
  color: var(--paper);
  border-color: rgba(255,255,255,0.2);
}
