:root {
  --orange: #f89820;
  --orange-dark: #c77700;
  --ink: #000000;
  --panel: #242424;
  --muted: #6f7378;
  --line: #dedede;
  --paper: #f6f3ee;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: #000000;
  color: var(--white);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo {
  width: 400px;
  height: 82px;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(248, 152, 32, 0.22);
}

.nav-links .shop-link {
  margin-left: 4px;
  color: var(--ink);
  background: var(--orange);
}

.nav-links .shop-link:hover,
.nav-links .shop-link.active {
  color: var(--ink);
  background: #ffad45;
}

.hero {
  min-height: calc(100vh - 72px);
  position: relative;
  display: grid;
  align-items: center;
  color: var(--white);
  background: #151515;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(12, 12, 12, 0.96) 0%, rgba(12, 12, 12, 0.82) 36%, rgba(12, 12, 12, 0.28) 72%),
    url("assets/autoparts-hero-realistic.png");
  background-position: center;
  background-size: cover;
}

.hero-inner,
.section-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-content {
  max-width: 660px;
  padding: 76px 0 96px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
h4 {
  text-transform: uppercase;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.16;
}

h4 {
  margin-bottom: 14px;
  color: var(--orange-dark);
  font-size: 17px;
  line-height: 1.2;
}

.lead {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 22px);
}

.page-lead {
  color: #3f4448;
  font-size: 19px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
}

.button.primary {
  background: var(--orange);
  color: var(--ink);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.button.dark {
  background: var(--ink);
  color: var(--white);
}

.section {
  padding: 82px 0;
}

.section.dark {
  color: var(--white);
  background: var(--ink);
}

.section.dark .page-lead,
.section.dark .card p {
  color: rgba(255, 255, 255, 0.74);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
}

.stat-panel {
  padding: 28px;
  border-left: 7px solid var(--orange);
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat-panel.nz-panel {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: center;
}

.stat-panel strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.nz-map-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--orange);
}

.nz-map-mark svg {
  width: 50px;
  height: 50px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.brands-section {
  overflow: hidden;
}

.brands-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.brand-controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-control {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.brand-control svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-control:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.brand-carousel {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 24px;
  align-items: stretch;
}

.brand-logo-stage {
  min-height: 390px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
}

.brand-logo-stage img {
  width: 100%;
  max-width: 94%;
  max-height: 320px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: var(--panel);
}

.brand-copy p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 20px;
  line-height: 1.42;
}

.brand-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.brand-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.brand-dot.active {
  background: var(--orange);
}

.card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.section.dark .card {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--panel);
}

.card p {
  color: #555b60;
}

.card-top {
  display: grid;
  gap: 12px;
}

.brand-badge {
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(248, 152, 32, 0.12);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section.dark .brand-badge {
  background: rgba(248, 152, 32, 0.18);
  color: #ffad45;
}

.text-link {
  color: var(--orange-dark);
  font-weight: 800;
  text-decoration: none;
}

.section.dark .text-link {
  color: #ffad45;
}

.split-hero {
  padding: 90px 0 72px;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(0, 0, 0, 0.97), rgba(0, 0, 0, 0.84)),
    url("assets/autoparts-hero-realistic.png") center / cover;
}

.split-hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 40px;
  align-items: center;
}

.brand-hero .section-inner {
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

.apex-hero .section-inner,
.pace-hero .section-inner {
  width: min(1760px, calc(100% - 128px));
}

.brand-hero-copy {
  max-width: 860px;
}

.brand-hero-logo {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.apex-logo-strip {
  min-height: 210px;
  width: 100%;
  justify-self: center;
  margin: 0 auto;
  padding: 38px 58px;
}

.pace-logo-strip {
  min-height: 260px;
  width: 100%;
  justify-self: center;
  margin: 0 auto;
  padding: 42px 58px;
}

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

.apex-logo-strip img {
  width: auto;
  max-width: 82%;
  max-height: 150px;
  margin: 0 auto;
}

.pace-logo-strip img {
  width: auto;
  max-width: 72%;
  max-height: 170px;
  margin: 0 auto;
}

.product-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.product-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.product-panel p {
  color: #3f4448;
  font-size: 18px;
}

.product-panel ul {
  margin: 22px 0 0;
  padding-left: 22px;
}

.product-panel li {
  margin-bottom: 10px;
}

.component-panel {
  margin-top: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.component-panel p {
  max-width: 780px;
  color: #3f4448;
  font-size: 19px;
}

.component-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 24px 0 0;
  padding-left: 22px;
  font-size: 19px;
}

.component-list li {
  padding-left: 4px;
}

.brand-panel {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-panel.logo-panel {
  display: grid;
  gap: 18px;
  align-content: center;
}

.page-logo {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--white);
}

.brand-panel ul,
.setup-guide ul,
.setup-guide ol {
  padding-left: 22px;
}

.brand-panel li,
.setup-guide li {
  margin-bottom: 8px;
}

.catalogue-strip {
  padding: 24px;
  border-radius: 8px;
  background: var(--orange);
  color: var(--ink);
}

.catalogue-strip .button {
  margin-top: 8px;
  background: var(--ink);
  color: var(--white);
}

.catalogue-page {
  background: #e9e7e1;
}

.catalogue-app {
  width: min(1540px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.catalogue-hero {
  margin-bottom: 18px;
}

.catalogue-hero > div {
  padding: 24px 28px;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  background: #ffffff;
}

.catalogue-hero-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.catalogue-hero-row > div {
  flex: 0 1 900px;
}

.catalogue-login-button {
  flex: 0 0 auto;
  margin-top: 62px;
  margin-right: clamp(24px, 8vw, 150px);
  min-width: 124px;
}

.catalogue-hero h1 {
  max-width: 860px;
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 0.94;
}

.catalogue-hero p {
  max-width: 820px;
  color: #3f4549;
  font-size: 18px;
}

.finder-card button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.catalogue-workspace {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.finder-panel,
.results-panel {
  border: 1px solid #d4cec4;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(24, 24, 24, 0.08);
}

.finder-panel {
  position: sticky;
  top: 118px;
  overflow: hidden;
}

.finder-heading {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.finder-card {
  display: grid;
  gap: 11px;
  padding: 18px;
  border-top: 1px solid #ece7de;
}

.finder-card:first-of-type {
  border-top: 0;
}

.finder-card label {
  color: #1f2428;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.finder-note {
  margin: 0;
  color: #62696f;
  font-size: 13px;
}

.finder-card input,
.finder-card select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bdb7ad;
  border-radius: 6px;
  background: #fbfaf8;
  color: var(--ink);
  font: inherit;
}

.finder-card input:focus,
.finder-card select:focus {
  outline: 3px solid rgba(248, 152, 32, 0.22);
  border-color: var(--orange);
}

.plate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 8px;
}

.plate-row input {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.plate-row button,
.full-button,
.product-buy button,
.vehicle-bar button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--orange);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vehicle-category-select {
  border-color: #1f2428;
  background: #ffffff;
  font-weight: 900;
}

.full-button {
  width: 100%;
  background: #111111;
  color: var(--white);
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.results-panel {
  min-width: 0;
  padding: 18px;
}

.vehicle-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #e2ded7;
  border-left: 6px solid var(--orange);
  border-radius: 8px;
  background: #f8f6f1;
}

.vehicle-bar span,
.results-header p {
  color: #5f666b;
}

.vehicle-bar span {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.vehicle-bar strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
}

.vehicle-bar button {
  min-height: 36px;
  padding: 0 12px;
  background: var(--ink);
  color: var(--white);
}

.results-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 18px 0 12px;
  border-top: 1px solid #ece7de;
}

.results-header h2 {
  margin-bottom: 4px;
  font-size: clamp(26px, 2.4vw, 38px);
}

.results-header p:empty {
  display: none;
}

.results-header > span {
  padding: 7px 10px;
  border-radius: 6px;
  background: #f2eee7;
  color: #4b5054;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.results-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #e5dfd5;
  border-radius: 8px;
  background: #fbfaf7;
}

.results-tools label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3d4347;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.results-tools select {
  min-height: 36px;
  padding: 6px 34px 6px 9px;
  border: 1px solid #c9c1b5;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

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

.catalogue-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 14px 0 4px;
}

.catalogue-pagination button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
}

.catalogue-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.catalogue-pagination span {
  color: #4f565b;
  font-size: 14px;
  font-weight: 900;
}

.product-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 180px;
  gap: 18px;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ded8ce;
  border-radius: 8px;
  background: var(--white);
}

.product-thumb {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 10px;
  border: 0;
  border-left: 1px solid #ece7de;
  background: #fbfaf7;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.product-thumb img {
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
  -webkit-user-drag: none;
  pointer-events: none;
}

.product-thumb span {
  display: none;
  color: #6c7378;
  font-size: 12px;
  font-weight: 900;
}

.product-thumb.missing-image span {
  display: inline-flex;
}

.product-main {
  min-width: 0;
  padding: 18px;
}

.brand-badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 5px;
  background: #fff0e5;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-main h3 {
  margin: 10px 0 8px;
  font-size: clamp(22px, 2vw, 30px);
}

.product-main p {
  max-width: 760px;
  color: #3f4549;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.product-meta span {
  padding: 4px 7px;
  border-radius: 5px;
  background: #f6f2eb;
  color: #575e63;
  font-size: 12px;
  font-weight: 800;
}

.fitment-line {
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 7px 9px;
  border-radius: 6px;
  background: #f0ede8;
  color: #4f555a;
  font-size: 13px;
  font-weight: 800;
}

.promo-price-line,
.cart-promo-line {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff0df;
  color: #8b3e00;
  font-size: 13px;
  font-weight: 900;
}

.product-buy {
  display: grid;
  align-content: center;
  gap: 5px;
  justify-items: end;
  padding: 18px;
  border-left: 1px solid #ece7de;
  background: #faf8f4;
  text-align: right;
}

.product-buy span,
.product-buy small {
  color: #62696f;
}

.product-buy .stock-good {
  color: #1c7a3a;
}

.product-buy .stock-check {
  color: #7a5a1c;
}

.product-buy strong {
  font-size: 31px;
}

.product-buy button {
  min-width: 96px;
  margin-top: 8px;
}

.cart-card {
  display: grid;
  gap: 12px;
}

.cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-heading strong {
  padding: 5px 8px;
  border-radius: 5px;
  background: #f0ede8;
  color: #333a40;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 34px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e2ded7;
  border-radius: 6px;
  background: #fbfaf7;
}

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

.cart-line span {
  color: #5f666b;
  font-size: 12px;
  line-height: 1.35;
}

.cart-line input {
  width: 100%;
  min-height: 36px;
  padding: 6px;
  border: 1px solid #c9c1b5;
  border-radius: 5px;
  font-weight: 900;
  text-align: center;
}

.cart-line button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #e2ded7;
  border-bottom: 1px solid #e2ded7;
  font-weight: 900;
}

.cart-total-row strong {
  font-size: 22px;
}

.catalogue-status {
  padding: 22px;
  border: 1px dashed #cfc8bc;
  border-radius: 8px;
  background: #fbfaf7;
  color: #444a4f;
  font-size: 17px;
  font-weight: 800;
}

.account-hero .account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.account-actions span,
.admin-heading-row button,
.account-actions button {
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: #f2eee7;
  color: #1f2428;
  font-weight: 900;
  text-transform: uppercase;
}

.account-actions button,
.admin-heading-row button {
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.account-actions button.active {
  background: var(--orange);
  color: var(--ink);
}

.account-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 24px;
  align-items: center;
}

.account-hero-tools {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.settings-launcher {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  border: 1px solid #d8d1c7;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.settings-launcher-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
}

.settings-launcher-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-launcher {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: var(--ink);
  cursor: grab;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(248, 152, 32, 0.28);
}

.chat-launcher:active {
  cursor: grabbing;
}

.chat-launcher.is-floating {
  position: fixed;
  z-index: 69;
}

.chat-launcher-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
}

.chat-launcher-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-layout {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.auth-layout.admin-layout {
  width: min(1120px, calc(100% - 32px));
}

.admin-portal {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.auth-panel {
  padding: 32px;
  border: 1px solid #d4cec4;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(24, 24, 24, 0.08);
}

.staff-login-page {
  background: #151515;
}

.staff-login-page .site-header,
.staff-login-page .footer {
  border-color: #272727;
}

.staff-login-page .auth-panel {
  border-color: #333333;
  background: #0f0f0f;
  color: var(--white);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.38);
}

.staff-login-page .auth-panel .page-lead,
.staff-login-page .auth-panel .finder-note {
  color: #d5d5d5;
}

.staff-login-page .auth-form label {
  color: var(--white);
}

.staff-login-page .auth-form input {
  border-color: #444444;
  background: #1e1e1e;
  color: var(--white);
}

.staff-login-page .auth-form input:focus {
  outline: 3px solid rgba(248, 152, 32, 0.26);
  border-color: var(--orange);
}

.staff-login-page .full-button {
  background: var(--orange);
  color: var(--ink);
}

.admin-layout .auth-panel + .auth-panel {
  margin-top: 22px;
}

.admin-portal .auth-panel + .auth-panel {
  margin-top: 18px;
}

.auth-panel h1 {
  max-width: 760px;
  font-size: clamp(38px, 5vw, 64px);
}

.admin-panel h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.admin-tabs button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #d4cec4;
  border-radius: 6px;
  background: #fbfaf8;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.admin-tabs button.active {
  border-color: var(--orange);
  background: var(--orange);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.section-subhead {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2ded7;
}

.auth-form,
.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

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

.admin-wide-field {
  grid-column: 1 / -1;
}

.auth-form label,
.admin-form label {
  display: grid;
  gap: 7px;
  color: #1f2428;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-form input,
.auth-form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bdb7ad;
  border-radius: 6px;
  background: #fbfaf8;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.auth-form textarea,
.admin-form textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-form textarea[data-promotion-links] {
  min-height: 240px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
}

.product-image-upload-form {
  grid-template-columns: minmax(0, 1fr);
}

.auth-form .full-button,
.auth-form .secondary-action,
.admin-form .full-button,
.admin-form .finder-note {
  grid-column: 1 / -1;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.choice-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #1f2428;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.choice-group legend {
  padding: 0;
}

.choice-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.choice-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d4cec4;
  border-radius: 6px;
  background: #fbfaf8;
  font-size: 14px;
}

.choice-options input {
  width: auto;
  min-height: 18px;
}

.request-message {
  min-height: 20px;
  color: #3f4549;
}

.account-request-list,
.customer-account-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.account-request-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #e2ded7;
  border-radius: 8px;
  background: #fbfaf8;
}

.account-request-card span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #f2eee7;
  color: #4b5054;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-request-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.account-request-card p {
  margin: 5px 0;
  color: #3f4549;
}

.account-request-card button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--orange);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.account-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.danger-button {
  background: #111111 !important;
  color: var(--white) !important;
}

.customer-account-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e2ded7;
  border-radius: 8px;
  background: #fbfaf8;
}

.customer-account-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.customer-account-heading span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #f2eee7;
  color: #4b5054;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-account-heading h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.customer-account-heading p {
  margin: 5px 0;
  color: #3f4549;
}

.customer-account-heading button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--orange);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

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

.staff-chat-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.chat-thread-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.chat-thread-button {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d4cec4;
  border-radius: 8px;
  background: #fbfaf8;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.chat-thread-button span,
.chat-window-heading span {
  color: #666d72;
  font-size: 13px;
  font-weight: 800;
}

.chat-window {
  border: 1px solid #d4cec4;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.chat-window-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2ded7;
  background: #fbfaf8;
}

.account-profile-panel {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto 24px;
}

.promotion-panel {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto 24px;
  padding: 24px;
  border: 1px solid #d7d0c5;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.promotion-heading {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.promotion-heading h2 {
  margin: 0;
}

.promotion-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.promotion-page {
  position: relative;
}

.promotion-pages img {
  display: block;
  width: 100%;
  border: 1px solid #d7d0c5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.promotion-hotspot {
  position: absolute;
  left: var(--x, 3.2%);
  top: var(--y);
  z-index: 1;
  width: var(--w, 93.6%);
  height: var(--h, 3.6%);
  border-radius: 4px;
}

.promotion-hotspot:hover,
.promotion-hotspot:focus-visible {
  outline: 3px solid rgba(248, 152, 32, 0.78);
  background: rgba(248, 152, 32, 0.12);
}

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

.profile-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid #d7d0c5;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.profile-card-wide {
  grid-column: 1 / -1;
}

.profile-card h2,
.profile-card h3 {
  margin-top: 0;
}

.profile-form {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.profile-form label {
  display: grid;
  gap: 7px;
  color: #1f2428;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bfb8ac;
  border-radius: 5px;
  font: inherit;
  background: #fbfaf8;
  color: var(--ink);
  text-transform: none;
}

.profile-form textarea {
  min-height: 110px;
  resize: vertical;
}

.profile-form textarea[readonly] {
  background: #f3f0eb;
  color: #4d5357;
}

.profile-details {
  display: grid;
  gap: 13px;
  margin: 18px 0;
}

.profile-details div {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4ddd3;
}

.profile-details dt {
  color: #5e6469;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-details dd {
  margin: 0;
  color: #111111;
  font-weight: 900;
}

.profile-list {
  margin: 16px 0 0;
  padding-left: 20px;
}

.profile-list li {
  margin-bottom: 10px;
}

.profile-empty-state {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed #cfc8bc;
  border-radius: 8px;
  color: #5e6469;
  background: #f8f5ef;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.customer-chat-widget {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 70;
  width: min(390px, calc(100vw - 32px));
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.26);
}

.customer-chat-widget[hidden] {
  display: none;
}

.customer-chat-widget.is-dragging,
.chat-launcher.is-floating {
  touch-action: none;
}

.customer-chat-widget .chat-window {
  border-color: #cfc8bc;
  box-shadow: var(--shadow);
}

.draggable-chat-heading {
  align-items: center;
  cursor: move;
  user-select: none;
}

.draggable-chat-heading > div {
  display: grid;
  gap: 2px;
}

.draggable-chat-heading button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.chat-messages {
  display: grid;
  gap: 8px;
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
}

.chat-message {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f0ede8;
}

.chat-message.staff {
  justify-self: end;
  background: #fff0e5;
}

.chat-message p {
  margin: 4px 0 0;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e2ded7;
}

.chat-form input {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #bdb7ad;
  border-radius: 6px;
}

.chat-form button {
  border: 0;
  border-radius: 6px;
  background: var(--orange);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.modal-open {
  overflow: hidden;
}

.product-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.product-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1fr);
  gap: 24px;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 24px;
}

.product-modal-images {
  display: grid;
  gap: 10px;
  align-content: start;
}

.product-modal-images img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid #e2ded7;
  border-radius: 8px;
  background: #fbfaf8;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.product-image-fallback {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed #cfc8bc;
  border-radius: 8px;
  color: #666d72;
  font-weight: 900;
}

.product-modal-images img + .product-image-fallback {
  display: none;
}

.product-modal-content h2 {
  margin: 10px 0;
  font-size: clamp(34px, 4vw, 58px);
}

.product-detail-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.product-detail-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2ded7;
}

.product-detail-list dt {
  color: #596166;
  font-weight: 900;
  text-transform: uppercase;
}

.product-detail-list dd {
  margin: 0;
}

.customer-account-grid label {
  display: grid;
  gap: 7px;
  color: #1f2428;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-account-grid input,
.customer-account-grid select,
.customer-account-grid textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #bdb7ad;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.customer-account-grid textarea {
  min-height: 88px;
  resize: vertical;
}

.checkbox-row {
  grid-template-columns: 22px 1fr;
  align-items: center;
  text-transform: none;
}

.checkbox-row input {
  min-height: 20px;
}

.login-remember-row {
  display: grid;
  width: fit-content;
  color: #3f4549;
  font-size: 14px;
  font-weight: 800;
}

.auth-form .login-remember-row input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.text-action {
  width: fit-content;
  border: 0;
  padding: 0;
  color: var(--orange);
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.text-action:hover,
.text-action:focus-visible {
  color: #000000;
}

.admin-heading-row {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer {
  padding: 36px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #000000;
}

.footer .section-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
}

.footer-contact,
.footer-sitemap {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-contact strong,
.footer-sitemap strong {
  color: var(--white);
  font-size: 15px;
  text-transform: uppercase;
}

.footer-sitemap {
  justify-self: end;
  text-align: right;
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer a:hover {
  color: var(--orange);
}

.setup-guide {
  max-width: 920px;
}

.setup-guide code {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
}

.setup-guide pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 8px;
  background: #161616;
  color: var(--white);
}

@media (max-width: 860px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: min(320px, 100%);
    height: 70px;
  }

  .nav-links {
    justify-content: flex-start;
  }

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

  .account-hero-tools,
  .settings-launcher,
  .chat-launcher {
    justify-self: start;
  }

  .customer-chat-widget {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
  }

  .account-profile-panel {
    width: min(100% - 32px, 760px);
  }

  .footer .section-inner {
    grid-template-columns: 1fr;
  }

  .footer-sitemap {
    justify-self: start;
    text-align: left;
  }

  .promotion-panel {
    width: min(100% - 32px, 760px);
    padding: 18px;
  }

  .promotion-heading {
    align-items: start;
    flex-direction: column;
  }

  .promotion-pages {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }

  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(12, 12, 12, 0.95) 0%, rgba(12, 12, 12, 0.80) 58%, rgba(12, 12, 12, 0.62) 100%),
      url("assets/autoparts-hero-realistic.png");
  }

  .hero-content {
    padding: 58px 0 70px;
  }

  .intro-grid,
  .brand-hero .section-inner,
  .split-hero .section-inner {
    grid-template-columns: 1fr;
  }

  .brand-hero-logo {
    min-height: 240px;
  }

  .product-split {
    grid-template-columns: 1fr;
  }

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

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

  .brands-heading {
    align-items: start;
    flex-direction: column;
  }

  .brand-carousel {
    grid-template-columns: 1fr;
  }

  .brand-logo-stage,
  .brand-carousel {
    min-height: 0;
  }

  .brand-logo-stage {
    aspect-ratio: 16 / 9;
    padding: 22px;
  }

  .stat-panel {
    max-width: 480px;
  }

  .stat-panel.nz-panel {
    grid-template-columns: 58px 1fr;
  }

  .nz-map-mark {
    width: 58px;
    height: 58px;
  }

  .nz-map-mark svg {
    width: 40px;
    height: 40px;
  }

  .catalogue-hero,
  .catalogue-workspace,
  .product-result {
    grid-template-columns: 1fr;
  }

  .finder-panel {
    position: static;
  }

  .product-buy {
    justify-items: start;
    border-top: 1px solid #ece7de;
    border-left: 0;
    text-align: left;
  }

  .product-result {
    grid-template-columns: 1fr;
  }

  .product-thumb {
    border-top: 1px solid #ece7de;
    border-left: 0;
  }

  .staff-chat-layout,
  .product-modal {
    grid-template-columns: 1fr;
  }

  .vehicle-bar,
  .results-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalogue-hero-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalogue-login-button {
    margin-top: 0;
    margin-right: 0;
  }

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

  .account-request-card,
  .customer-account-heading {
    flex-direction: column;
  }

  .account-card-actions {
    justify-content: flex-start;
  }

  .customer-account-grid {
    grid-template-columns: 1fr;
  }

  .admin-heading-row {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav-links a {
    padding: 9px 9px;
    font-size: 13px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }
}
