:root {
  --ink: #17212b;
  --muted: #667085;
  --line: #d9e0e8;
  --paper: #ffffff;
  --bg: #eef2f6;
  --navy: #0b2438;
  --navy-2: #132f46;
  --green: #0f766e;
  --red: #c2410c;
  --orange: #f97316;
  --amber: #b7791f;
  --blue: #2563eb;
  --shadow: 0 18px 50px rgba(16, 42, 67, 0.12);
  --soft-shadow: 0 10px 28px rgba(16, 42, 67, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef2f6 0%, #f7fafc 38%, #eef2f6 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.72);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.utility-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 32px;
  color: #c8d7e7;
  background: #071522;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-strip div {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
}

.utility-strip strong {
  color: #fff;
}

.utility-strip span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  background: var(--orange);
  border-radius: 999px;
  vertical-align: 1px;
}

.utility-strip a,
.utility-strip button {
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 10px 32px;
  background: rgba(12, 31, 48, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.mega-catalog,
.search-flyout {
  position: fixed;
  top: 116px;
  right: 32px;
  left: 32px;
  z-index: 30;
  display: none;
  gap: 12px;
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding: 14px 32px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.24);
}

.mega-catalog.open,
.search-flyout.open {
  display: grid;
}

.search-flyout {
  right: max(32px, calc((100vw - 1180px) / 2));
  left: auto;
  width: min(920px, calc(100vw - 64px));
  padding: 22px;
}

.search-flyout-head {
  display: grid;
  gap: 5px;
}

.search-flyout-head strong {
  color: var(--navy);
  font-size: 20px;
}

.search-flyout-head span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.search-flyout-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(170px, 1fr) minmax(130px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
}

.search-flyout-form label {
  display: grid;
  gap: 6px;
}

.search-flyout-form span {
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.search-flyout-form input,
.search-flyout-form select {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.search-flyout-form button {
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
}

.search-results-page {
  max-width: 1280px;
  margin: 0 auto;
}

.search-results-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.8fr) auto;
  gap: 10px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-results-form input {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.search-results-form button {
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
}

.search-feedback {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-feedback p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.mega-catalog-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.mega-catalog-head strong {
  color: var(--navy);
  font-size: 16px;
}

.mega-catalog-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mega-catalog-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.mega-catalog-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 160px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mega-category-title {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--navy);
}

.mega-category-title .brand-logo {
  width: 32px;
  height: 32px;
}

.mega-category-title strong,
.mega-catalog-column a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mega-category-title small,
.mega-catalog-column a small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.mega-catalog-column > div {
  display: grid;
  gap: 3px;
}

.mega-catalog-column > div a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 24px;
  color: #475467;
  font-size: 12px;
}

.mega-catalog-column > div a:hover {
  color: var(--green);
}

.brand {
  display: flex;
  flex: 0 0 214px;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--orange);
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: #9fb1c4;
  font-size: 12px;
}

.topbar .brand strong {
  color: #fff;
}

.main-nav {
  display: flex;
  flex: 0 1 auto;
  justify-content: center;
  gap: 9px;
  color: #d7e1ec;
  font-size: 13px;
}

.main-nav a,
.main-nav button {
  padding: 10px 8px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mega-trigger::after,
.search-trigger::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg) translateY(-2px);
}

.mega-trigger[aria-expanded="true"]::after,
.search-trigger[aria-expanded="true"]::after {
  transform: rotate(225deg) translateY(-1px);
}

.top-search {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(180px, 1fr) auto;
  max-width: 340px;
  min-width: 220px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: #fff;
}

.top-search input,
.hero-search input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  outline: 0;
}

.top-search button,
.hero-search button {
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: var(--orange);
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.nav-cta,
.primary-action,
.secondary-action,
.icon-button,
.cart-button,
.filter-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.nav-cta,
.cart-button {
  white-space: nowrap;
}

.nav-cta,
.primary-action {
  color: #fff;
  background: var(--green);
}

.nav-cta:hover,
.primary-action:hover,
.search-flyout-form button:hover {
  background: #0d9488;
}

.secondary-action,
.icon-button,
.cart-button,
.filter-panel button {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

.cart-button {
  gap: 8px;
  white-space: nowrap;
}

.cart-button span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  font-size: 12px;
}

.cart-button.has-items {
  border-color: var(--green);
}

.mobile-action-bar {
  display: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 32px 32px;
  color: #d7e1ec;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-company,
.footer-contact {
  display: grid;
  gap: 5px;
}

.footer-company {
  flex: 1 1 620px;
}

.footer-contact {
  flex: 0 1 300px;
  justify-items: start;
}

.footer-links {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.site-footer strong {
  color: #fff;
  font-size: 16px;
}

.site-footer span {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: var(--green);
  border-radius: 7px;
  font-weight: 900;
}

.footer-links a {
  min-height: auto;
  padding: 0;
  color: #d7e1ec;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  display: grid;
  gap: 18px;
  max-width: 1080px;
  margin: 24px auto;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.legal-page h1,
.legal-page h2,
.legal-page p {
  margin: 0;
}

.legal-page h1 {
  color: var(--navy);
  font-size: 34px;
  line-height: 1.15;
}

.legal-page h2 {
  color: var(--navy);
  font-size: 20px;
}

.legal-page p {
  color: #475467;
  line-height: 1.65;
}

.legal-page a:not(.primary-action) {
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 32px 56px;
}

.workbench {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 780px);
  gap: 20px;
  align-items: stretch;
  min-height: 520px;
  overflow: hidden;
  padding: 46px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 21, 34, 0.97) 0%, rgba(7, 21, 34, 0.91) 46%, rgba(7, 21, 34, 0.58) 76%, rgba(7, 21, 34, 0.3) 100%),
    url("./images/hero-parts-warehouse.jpg") center / cover no-repeat;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(7, 21, 34, 0.28);
}

.browse-hub {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 0.95fr;
  gap: 14px;
  margin: 18px 0;
}

.browse-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 260px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.browse-panel-primary {
  border-top: 4px solid var(--navy);
}

.vehicle-make-preview {
  display: grid;
  gap: 18px;
  margin: 26px 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.vehicle-make-preview .section-head {
  margin-bottom: 0;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: #344054;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}

.view-all-link::after {
  content: "→";
  color: #344054;
  font-size: 24px;
  line-height: 1;
}

.vehicle-make-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.vehicle-make-grid a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 92px;
  padding: 14px;
  color: #075985;
  text-align: left;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.vehicle-make-grid a:hover {
  border-color: #86b7aa;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
  transform: translateY(-1px);
}

.vehicle-make-grid .brand-logo {
  width: 42px;
  height: 42px;
}

.vehicle-make-grid strong {
  display: block;
  color: #075985;
  font-size: 22px;
  line-height: 1.1;
}

.vehicle-make-grid small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.browse-panel-head h2 {
  font-size: 20px;
}

.directory-link-grid,
.directory-link-list {
  display: grid;
  gap: 8px;
}

.directory-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.directory-link-grid button,
.directory-link-grid a,
.directory-link-list button,
.directory-link-list a {
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  color: inherit;
  text-align: left;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.directory-link-grid button,
.directory-link-grid a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  column-gap: 9px;
}

.directory-link-grid .brand-logo {
  width: 32px;
  height: 32px;
}

.directory-link-grid strong,
.directory-link-grid small,
.directory-link-list strong,
.directory-link-list small {
  display: block;
}

.directory-link-grid strong,
.directory-link-list strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-link-grid small,
.directory-link-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.directory-link-list.compact {
  max-height: 190px;
  overflow: auto;
  padding-right: 4px;
}

.support-panel {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.support-panel .eyebrow,
.support-panel p {
  color: #dbeafe;
}

.support-panel h2 {
  color: #fff;
}

.support-panel .primary-action {
  width: fit-content;
  background: var(--green);
}

.browse-more {
  align-self: end;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.workbench-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: 48px;
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.workbench p {
  max-width: 720px;
  color: #d8e3ed;
  font-size: 16px;
  line-height: 1.6;
}

.workbench h1 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.consult-panel {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-top: 24px;
  padding: 18px;
  color: var(--ink);
  background: rgba(248, 250, 252, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(7, 21, 34, 0.2);
}

.consult-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.consult-points span {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 12px;
  color: #18324a;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.consult-points span::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--green);
  border-radius: 999px;
}

.consult-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 50px;
  padding: 0 22px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 900;
}

.consult-panel p {
  max-width: none;
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

.buyer-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.buyer-choice {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 16px;
}

.buyer-choice + .buyer-choice {
  border-left: 1px solid var(--line);
}

.buyer-choice > span,
.buyer-path-grid article > span {
  width: fit-content;
  padding: 4px 9px;
  color: #0f766e;
  background: #ecfdf3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.buyer-choice strong {
  color: #102338;
  font-size: 19px;
  line-height: 1.2;
}

.buyer-choice p {
  color: #475467;
  font-size: 13px;
}

.buyer-choice .consult-whatsapp {
  margin-top: 2px;
}

.consult-whatsapp-secondary {
  background: #102338;
}

.lookup-panel {
  max-width: 880px;
  margin-top: 22px;
  padding: 16px;
  background: rgba(248, 250, 252, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(7, 21, 34, 0.2);
}

.lookup-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.lookup-tabs button {
  min-height: 34px;
  padding: 0 12px;
  color: #344054;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.lookup-tabs button.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.lookup-form {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(160px, 1.1fr) minmax(130px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
}

.lookup-form label {
  display: grid;
  gap: 6px;
}

.lookup-form span {
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.lookup-form input,
.lookup-form select {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.lookup-form button {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
}

.photo-field {
  display: none !important;
  grid-column: 1 / -2;
}

.photo-field.show {
  display: grid !important;
}

.lookup-note {
  margin: 10px 0 0 !important;
  color: var(--muted);
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.workbench .lookup-note {
  color: #475467 !important;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 720px;
  margin-top: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(7, 21, 34, 0.18);
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.search-suggestions button,
.search-suggestions a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: #dce8f4;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.search-flyout .search-suggestions a {
  color: #344054;
  background: #f8fafc;
  border-color: var(--line);
}

.search-results-page .search-suggestions button {
  color: #344054;
  background: #f8fafc;
  border-color: var(--line);
}

.sourcing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  color: #fff;
  background: rgba(11, 36, 56, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(7, 21, 34, 0.24);
  backdrop-filter: blur(12px);
}

.sourcing-card > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 999px;
}

.sourcing-card strong {
  font-size: 64px;
  line-height: 0.9;
}

.sourcing-card small {
  color: #cbd5e1;
}

.sourcing-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: #eef6f8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 18px 0;
}

.store-perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.store-perks article {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 16px;
  background: #fff;
}

.store-perks article::before {
  content: "";
  width: 34px;
  height: 4px;
  background: var(--orange);
  border-radius: 999px;
}

.store-perks strong {
  color: var(--navy);
  font-size: 14px;
}

.store-perks span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.trust-process {
  display: grid;
  gap: 16px;
  margin: 18px 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.trust-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust-process-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 138px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust-process-grid strong {
  color: var(--navy);
  line-height: 1.35;
}

.trust-process-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.stats-grid article {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.stats-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 28px;
  font-weight: 800;
}

.stats-grid p {
  margin: 0;
  color: var(--muted);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.filter-panel,
.catalog-main,
.quick-shop,
.vehicle-finder,
.buyer-paths,
.category-directory,
.model-directory,
.brand-directory,
.inquiry-band {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-shop {
  margin: 18px 0;
  padding: 22px;
  box-shadow: var(--soft-shadow);
}

.buyer-paths {
  display: grid;
  gap: 18px;
  margin: 18px 0;
  padding: 22px;
  box-shadow: var(--soft-shadow);
}

.buyer-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.buyer-path-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 270px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.buyer-path-grid strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.25;
}

.buyer-path-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #475467;
  line-height: 1.5;
}

.buyer-path-grid .secondary-action {
  width: fit-content;
  margin-top: auto;
}

.vehicle-finder {
  display: grid;
  gap: 18px;
  margin: 18px 0;
  padding: 22px;
}

.vehicle-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vehicle-part-results {
  display: grid;
  gap: 14px;
}

.vehicle-part-results p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.vehicle-part-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.vehicle-part-card {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.vehicle-part-card.active,
.vehicle-part-card:hover {
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.12);
}

.vehicle-part-card strong,
.vehicle-part-card span,
.vehicle-part-card small {
  display: block;
}

.vehicle-part-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.vehicle-part-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.quick-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.quick-shop-grid button,
.quick-shop-grid a {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 6px 12px;
  align-content: center;
  align-items: center;
  min-height: 92px;
  padding: 14px;
  text-align: left;
  color: var(--navy);
  text-decoration: none;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.quick-shop-grid a::before,
.quick-shop-grid button::before {
  content: "";
  width: 6px;
  height: 42px;
  margin-right: 10px;
  background: var(--orange);
  border-radius: 999px;
  grid-row: span 2;
}

.quick-shop-grid strong,
.quick-shop-grid span {
  display: block;
  min-width: 0;
}

.quick-shop-grid strong {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.2;
}

.quick-shop-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.quick-shop-grid a:hover,
.quick-shop-grid button:hover {
  color: var(--green);
  border-color: #b8d8d2;
  background: #f0fdfa;
}

.catalog-note {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
}

.catalog-note strong {
  font-size: 17px;
}

.catalog-note span {
  color: #d8e3ed;
  line-height: 1.45;
}

.filter-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-top: 4px solid var(--orange);
}

.panel-title,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-copy {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.filter-note {
  padding: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

.search-help {
  margin-top: -8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.filter-note p {
  margin: 6px 0 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

.filter-category-list {
  display: grid;
  gap: 7px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-category-list > strong {
  color: var(--navy);
  font-size: 14px;
}

.filter-category-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 32px;
  color: #475467;
  text-decoration: none;
  border-left: 3px solid #d7dee8;
  padding-left: 10px;
}

.filter-category-list a:hover {
  color: var(--green);
  border-left-color: var(--green);
}

.filter-category-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-category-list small {
  color: var(--muted);
  font-weight: 800;
}

.catalog-main {
  padding: 20px;
  box-shadow: var(--soft-shadow);
}

.result-count {
  color: var(--muted);
  font-weight: 800;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.category-tabs button {
  min-height: 36px;
  padding: 0 12px;
  color: #344054;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.category-tabs button.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pagination-bottom {
  margin-top: 18px;
}

.page-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.page-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.page-buttons button {
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.page-buttons button.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.page-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-buttons span {
  color: var(--muted);
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-card {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: stretch;
  min-height: 196px;
  padding: 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.product-card:last-child {
  border-bottom: 0;
}

.product-card:hover {
  background: #fbfdff;
  box-shadow: inset 4px 0 0 var(--green);
}

.product-photo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 184px;
  color: #fff;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-photo:has(.photo-fallback),
.dialog-photo:has(.photo-fallback),
.static-product-media:has(.photo-fallback) {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 58%, #eef7f3 100%);
}

.product-photo img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
}

.product-photo strong {
  z-index: 1;
  max-width: 220px;
  padding: 0 16px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
}

.product-photo .photo-fallback,
.dialog-photo .photo-fallback,
.static-product-media .photo-fallback {
  display: grid;
  gap: 6px;
  place-items: center;
  max-width: 260px;
  padding: 18px;
  color: var(--navy);
  font-weight: 900;
  text-align: center;
}

.product-photo .photo-fallback span,
.dialog-photo .photo-fallback span,
.static-product-media .photo-fallback span {
  font-size: 18px;
  line-height: 1.2;
}

.product-photo .photo-fallback small,
.dialog-photo .photo-fallback small,
.static-product-media .photo-fallback small {
  position: static;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-shadow: none;
}

.product-photo .photo-fallback em,
.dialog-photo .photo-fallback em,
.static-product-media .photo-fallback em {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  background: #e8f5ef;
  border: 1px solid #bfdfd2;
  border-radius: 999px;
  text-shadow: none;
}

.product-photo small {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  text-align: right;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.delivery-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.product-card-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 4px 0;
}

.sku-line {
  width: fit-content;
  padding: 4px 8px;
  color: #475467;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.product-card h3 a {
  color: #075985;
  text-decoration: none;
}

.product-card h3 a:hover {
  color: var(--green);
}

mark {
  padding: 0 2px;
  color: #111827;
  background: #fde68a;
  border-radius: 3px;
}

.badge-row,
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-badges {
  margin-top: 12px;
}

.part-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #344054;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.meta-grid strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.suitable-line {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.45;
}

.suitable-line strong {
  color: var(--ink);
}

.catalog-line {
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.55;
}

.catalog-line strong {
  color: #344054;
  font-weight: 900;
}

.status-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-chip.warn {
  color: #92400e;
  background: #fef3c7;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.card-actions button,
.card-actions a {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.card-actions button {
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
}

.card-actions a:first-of-type {
  color: var(--navy);
  background: #f8fafc;
  border-color: var(--line);
}

.product-quote-box {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
  background: #fff7ed;
  border-left: 1px solid var(--line);
}

.product-quote-box span {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.product-quote-box strong {
  color: #c2410c;
  font-size: 20px;
  line-height: 1.1;
}

.product-quote-box small {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.product-quote-box button,
.product-quote-box a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.product-quote-box button {
  color: #fff;
  background: var(--orange);
  border: 1px solid var(--orange);
}

.product-quote-box a:first-of-type,
.product-quote-box .text-action {
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
}

.cart-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cart-dialog::backdrop {
  background: rgba(16, 24, 40, 0.48);
}

.cart-body {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 130px);
  padding: 20px;
  overflow: auto;
}

.cart-empty {
  margin: 0;
  color: var(--muted);
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item img {
  width: 72px;
  height: 58px;
  object-fit: contain;
  background: #fff;
  border-radius: 7px;
}

.cart-photo-fallback {
  display: grid;
  width: 72px;
  height: 58px;
  place-items: center;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  background: #fff;
  border: 1px solid #cfe3da;
  border-radius: 7px;
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item strong {
  font-size: 14px;
}

.cart-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.cart-item button {
  min-height: 36px;
  padding: 0 10px;
  color: var(--red);
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.category-directory,
.brand-directory,
.buyer-paths,
.inquiry-band {
  margin-top: 20px;
  padding: 22px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.category-card {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 16px;
  color: inherit;
  text-align: left;
  text-decoration: none;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.category-card::before {
  content: "";
  width: 42px;
  height: 5px;
  background: var(--green);
  border-radius: 999px;
}

.category-card:hover {
  border-color: #b8d8d2;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.1);
  transform: translateY(-1px);
}

.category-card strong,
.category-card span,
.category-card small {
  display: block;
}

.category-card strong {
  color: var(--navy);
  font-size: 16px;
}

.category-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.category-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.model-grid,
.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.model-button,
.brand-button {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  color: inherit;
  text-align: left;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.brand-button {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
}

.brand-logo {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-text {
  max-width: 34px;
  padding: 0 3px;
  overflow: hidden;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.model-button strong,
.model-button span,
.brand-button strong,
.brand-button span {
  display: block;
}

.model-button span,
.brand-button span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.inquiry-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f8fafc;
}

.inquiry-band h2 {
  max-width: 780px;
}

.inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.product-dialog {
  width: min(1220px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-dialog::backdrop {
  background: rgba(16, 24, 40, 0.48);
}

.dialog-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 2;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.35fr);
  gap: 26px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 26px;
  background: #f8fafc;
}

.detail-media {
  display: grid;
  align-content: start;
  gap: 14px;
}

.dialog-photo {
  position: relative;
  display: grid;
  min-height: 440px;
  place-items: center;
  color: #fff;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dialog-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  padding: 26px;
  background: #fff;
  border-radius: 8px;
}

.dialog-photo strong {
  max-width: 260px;
  padding: 0 22px;
  text-align: center;
}

.dialog-photo small {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  color: #fff;
  font-size: 11px;
  text-align: right;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.detail-help {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-help p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-summary-grid article {
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-summary-grid strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.detail-stack dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-stack dt {
  padding: 13px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.detail-stack dd {
  min-width: 0;
  margin: 0;
  padding: 13px 14px;
  font-weight: 700;
  word-break: break-word;
  border-bottom: 1px solid var(--line);
}

.detail-stack dt:nth-last-of-type(1),
.detail-stack dd:nth-last-of-type(1) {
  border-bottom: 0;
}

.fitment-box {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fitment-warning {
  border-color: #facc15;
  background: #fffbeb;
}

.fitment-box p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.dialog-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.dialog-related-grid button {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 12px;
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.dialog-related-grid strong {
  color: var(--navy);
  font-size: 13px;
  line-height: 1.35;
}

.dialog-related-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.dialog-actions {
  position: sticky;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 -12px 24px rgba(16, 24, 40, 0.08);
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px 40px 24px;
  color: #344054;
}

.static-detail,
.static-listing {
  display: grid;
  gap: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--green);
}

.static-product-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.static-product-media,
.static-product-copy,
.static-section,
.static-listing {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.static-product-media {
  display: grid;
  min-height: 460px;
  place-items: center;
}

.static-product-media img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.static-product-copy {
  display: grid;
  gap: 16px;
}

.static-product-copy h1 {
  font-size: 34px;
}

.static-summary {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.static-sort-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.static-sort-bar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.static-sort-bar a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.static-catalog-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.static-filter-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.static-filter-panel h2 {
  font-size: 22px;
}

.static-filter-group {
  display: grid;
  gap: 6px;
}

.static-filter-group > strong {
  color: var(--navy);
  font-size: 14px;
}

.static-filter-group a,
.static-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 30px;
  padding-left: 10px;
  color: #475467;
  text-decoration: none;
  border-left: 3px solid #d7dee8;
}

.static-filter-group a.active,
.static-filter-group a:hover {
  color: var(--green);
  border-left-color: var(--green);
}

.static-filter-group span,
.static-filter-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.static-filter-group small,
.static-filter-row small {
  color: var(--muted);
  font-weight: 900;
}

.static-product-results {
  display: grid;
  gap: 14px;
}

.static-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.static-detail-list {
  display: grid;
  grid-template-columns: 180px 1fr;
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.static-detail-list dt,
.static-detail-list dd {
  margin: 0;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.static-detail-list dt {
  color: var(--muted);
  font-weight: 800;
  background: #f8fafc;
}

.static-detail-list dd {
  font-weight: 700;
  word-break: break-word;
}

.related-grid,
.listing-grid {
  display: grid;
  gap: 12px;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-link,
.listing-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.related-link span,
.listing-card span {
  color: var(--muted);
  font-size: 12px;
}

.listing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.listing-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #fff;
  border-radius: 7px;
}

@media (max-width: 1100px) {
  .mega-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vehicle-make-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .browse-hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    grid-template-columns: 170px minmax(0, 1fr) 190px;
    gap: 14px;
  }

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

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

  .vehicle-part-grid,
  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .model-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: 72px;
  }

  .utility-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 7px 14px;
    font-size: 11px;
  }

  .utility-strip div {
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .utility-strip div::-webkit-scrollbar {
    display: none;
  }

  .topbar {
    position: static;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }

  .brand {
    flex: 1 1 180px;
    width: auto;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small {
    font-size: 11px;
  }

  .main-nav {
    min-width: 0;
    width: 100%;
  }

  .main-nav a,
  .main-nav button {
    padding: 8px 5px;
    font-size: 12px;
  }

  .top-search {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .cart-button {
    order: 4;
    flex: 1 1 150px;
    min-height: 40px;
  }

  .nav-cta {
    order: 5;
    flex: 1 1 170px;
    min-height: 40px;
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  main {
    padding: 18px;
  }

  .site-footer {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 18px 18px 92px;
  }

  .footer-company,
  .footer-contact {
    width: 100%;
  }

  .footer-links {
    width: 100%;
  }

  .site-footer a {
    width: 100%;
  }

  .footer-links a {
    width: auto;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-page {
    margin: 16px 0;
    padding: 20px;
  }

  .legal-page h1 {
    font-size: 28px;
  }

  .mega-catalog {
    top: 12px;
    right: 12px;
    left: 12px;
    max-height: calc(100vh - 24px);
    padding: 12px 18px;
  }

  .search-flyout {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
    padding: 16px;
  }

  .search-flyout-form,
  .search-results-form {
    grid-template-columns: 1fr;
  }

  .mega-catalog-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-make-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-make-grid a {
    min-height: 76px;
  }

  .vehicle-make-grid strong {
    font-size: 17px;
  }

  .workbench,
  .browse-hub,
  .catalog-layout,
  .static-catalog-layout,
  .static-product-layout,
  .dialog-body {
    grid-template-columns: 1fr;
  }

  .workbench {
    min-height: auto;
    padding: 22px;
    background:
      linear-gradient(180deg, rgba(7, 21, 34, 0.94) 0%, rgba(7, 21, 34, 0.84) 100%),
      url("./images/hero-parts-warehouse.jpg") center / cover no-repeat;
  }

  .workbench h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .workbench p {
    font-size: 15px;
    line-height: 1.5;
  }

  .consult-panel {
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
  }

  .buyer-choice-grid {
    grid-template-columns: 1fr;
  }

  .buyer-choice {
    gap: 8px;
    padding: 12px;
  }

  .buyer-choice + .buyer-choice {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .buyer-choice strong {
    font-size: 16px;
  }

  .buyer-choice p {
    display: none;
  }

  .consult-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .consult-points span {
    min-height: 34px;
    padding: 8px;
    font-size: 11px;
  }

  .consult-whatsapp {
    min-height: 44px;
    width: 100%;
  }

  .consult-panel p {
    font-size: 12px;
  }

  .vehicle-make-preview {
    padding: 18px;
  }

  .directory-link-grid {
    grid-template-columns: 1fr;
  }

  .dialog-body {
    max-height: calc(100vh - 118px);
    padding: 16px;
  }

  .dialog-photo {
    min-height: 320px;
  }

  .dialog-actions {
    padding: 12px;
  }

  .detail-stack dl {
    grid-template-columns: 112px 1fr;
  }

  .detail-summary-grid,
  .dialog-related-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .static-filter-panel {
    position: static;
  }

  .product-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-photo {
    min-height: 220px;
  }

  .product-photo img {
    height: 216px;
  }

  .product-quote-box {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .stats-grid,
  .store-perks,
  .trust-process-grid,
  .vehicle-selects,
  .vehicle-part-grid,
  .buyer-path-grid,
  .quick-shop-grid,
  .product-grid,
  .category-grid,
  .related-grid,
  .listing-grid,
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .model-grid {
    grid-template-columns: 1fr;
  }

  .inquiry-band,
  .inquiry-actions,
  .pagination-bar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .inquiry-actions,
  .inquiry-actions a {
    width: 100%;
  }

  .page-buttons {
    width: 100%;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .lookup-form {
    grid-template-columns: 1fr;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .catalog-note {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .cart-item button {
    grid-column: 1 / -1;
  }

  .static-detail-list {
    grid-template-columns: 1fr;
  }

  .photo-field {
    grid-column: auto;
  }

  .mobile-action-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
    background: rgba(7, 21, 34, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -14px 32px rgba(7, 21, 34, 0.24);
  }

  .mobile-action-bar a,
  .mobile-action-bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-action-bar button {
    gap: 8px;
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--line);
  }

  .mobile-action-bar button span {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    color: #fff;
    background: var(--orange);
    border-radius: 999px;
    font-size: 11px;
  }

  .mobile-action-bar a {
    color: #fff;
    background: var(--green);
  }

  h1 {
    font-size: 32px;
  }
}
