/* WCT Parts — Wayne Car and Truck Parts
   Preview storefront. Industrial yard catalog, not SaaS. */

:root {
  --ink: #1c1c1c;
  --ink-2: #232323;
  --ink-3: #2c2c2c;
  --ink-4: #3a3a3a;
  --steel: #c9c9c9;
  --dust: #d8d5d0;
  --page: #f4f2ee;
  --page-2: #ebe6de;
  --white: #ffffff;
  --rust: #c2662a;
  --rust-hot: #d2762e;
  --rust-deep: #9a4d1e;
  --muted: #6a6660;
  --line: #ddd8d0;
  --ok: #3f6d50;
  --shadow: 0 10px 28px rgba(28, 28, 28, 0.12);
  --header-h: 78px;
  --max: 1180px;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--rust-hot); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 0.45em;
  text-transform: uppercase;
}
p { margin: 0 0 1em; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px; top: 12px; z-index: 80;
  background: var(--white);
  padding: 8px 12px;
}

/* ----- preview strip ----- */
.preview-strip {
  background: var(--rust);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 16px;
  font-family: var(--display);
}

/* ----- header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  border-bottom: 3px solid var(--rust);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px 22px;
  align-items: center;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  min-width: 0;
}
.brand:hover { color: var(--white); }
.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  box-shadow: 0 0 0 2px var(--rust);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-mark {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.brand-sub {
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
}
.header-search {
  display: flex;
  max-width: 420px;
  width: 100%;
  background: var(--ink-3);
  border: 1px solid #444;
  border-radius: 2px;
  overflow: hidden;
}
.header-search:focus-within { border-color: var(--rust); }
.header-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--white);
  padding: 10px 12px;
  min-width: 0;
}
.header-search input::placeholder { color: #9a9a9a; }
.header-search button {
  border: 0;
  background: var(--rust);
  color: var(--white);
  padding: 0 16px;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.header-search button:hover { background: var(--rust-hot); }

/* Always-visible Parts | Tires shop strip */
.shop-strip {
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: var(--ink-2);
  border-top: 1px solid #333;
}
.shop-strip a {
  flex: 1 1 0;
  max-width: 280px;
  text-align: center;
  color: var(--dust);
  font-family: var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 18px;
  padding: 10px 16px 8px;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}
.shop-strip a + a {
  border-left: 1px solid #444;
}
.shop-strip a:hover,
.shop-strip a.is-active {
  color: var(--white);
  border-bottom-color: var(--rust);
}
.site-nav {
  display: flex;
  gap: 4px 18px;
  align-items: center;
}
.site-nav a {
  color: var(--dust);
  font-family: var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
  border-bottom-color: var(--rust);
}
.cart-link {
  position: relative;
  color: var(--white);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
}
.cart-link:hover { color: var(--rust-hot); }
.cart-count {
  position: absolute;
  top: 2px; right: 0;
  background: var(--rust);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #555;
  color: var(--white);
  width: 42px;
  height: 42px;
  cursor: pointer;
}

/* ----- layout ----- */
.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
main { flex: 1; }
.page {
  padding: 40px 0 72px;
}
.page-head {
  margin-bottom: 28px;
}
.page-head p { color: var(--muted); max-width: 62ch; }
.lede { font-size: 19px; color: #3d3b38; max-width: 60ch; }

/* ----- buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--rust);
  color: var(--white);
  border: 0;
  padding: 13px 22px;
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 15px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--rust-hot); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid #666;
}
.btn-ghost:hover { border-color: var(--rust); color: var(--white); background: rgba(194,102,42,0.12); }
.btn[disabled], .btn.is-disabled {
  background: #8a8076;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-block { width: 100%; }

/* ----- hero ----- */
.hero {
  position: relative;
  background: var(--ink) center/cover no-repeat;
  color: var(--white);
  min-height: 520px;
  display: grid;
  align-items: end;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28,28,28,0.35) 0%, rgba(28,28,28,0.78) 55%, rgba(28,28,28,0.94) 100%),
    url("assets/wct_banner.webp") center/cover no-repeat;
  z-index: -1;
}
.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 56px;
}
.hero-kicker {
  color: var(--rust-hot);
  font-family: var(--display);
  letter-spacing: 0.22em;
  font-size: 13px;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  max-width: 14ch;
  margin-bottom: 8px;
}
.hero-loc {
  color: var(--steel);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 28px;
}
.hero-search {
  display: flex;
  max-width: 640px;
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-search input {
  flex: 1;
  border: 0;
  padding: 16px 18px;
  color: var(--ink);
  min-width: 0;
}
.hero-search button { border-radius: 0; }

/* ----- trust ----- */
.trust {
  background: var(--ink-2);
  color: var(--dust);
  border-bottom: 1px solid #333;
}
.trust-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
}
.trust-ico {
  width: 36px; height: 36px;
  border: 1px solid var(--rust);
  color: var(--rust-hot);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 13px;
}
.trust-item strong {
  display: block;
  color: var(--white);
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 14px;
  text-transform: uppercase;
}
.trust-item span { font-size: 13px; color: #b7b3ad; }

/* ----- sections ----- */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}
.section-head h2 { font-size: 30px; }
.section-head a { font-family: var(--display); letter-spacing: 0.1em; text-transform: uppercase; font-size: 14px; }
.yard {
  background: var(--ink);
  color: var(--dust);
}
.yard h2 { color: var(--white); }
.yard p { max-width: 62ch; font-size: 18px; }
.yard-addr {
  color: var(--steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}

/* ----- product grid ----- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #c9c2b6;
  color: inherit;
}
.card-media {
  background: #ece9e3;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(#d8d5d0, #d8d5d0),
    repeating-linear-gradient(45deg, #cfcbc4 0 8px, #d8d5d0 8px 16px);
  color: #6f6b65;
  font-family: var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}
.badge {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 7px;
  font-family: var(--display);
}
.badge-ship {
  position: absolute;
  left: 8px; top: 8px;
  background: var(--ok);
}
.badge-used {
  position: absolute;
  right: 8px; top: 8px;
  background: var(--ink);
}
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title {
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
}
.meta { font-size: 13px; color: var(--muted); }
.meta code {
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  font-size: 12px;
  background: var(--page-2);
  padding: 1px 5px;
}
.price {
  margin-top: auto;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.price .tag {
  display: block;
  font-size: 11px;
  color: var(--rust);
  letter-spacing: 0.12em;
  margin-bottom: 2px;
}
.price.pending {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ----- filters ----- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.toolbar input[type="search"],
.toolbar select,
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 11px 12px;
  border-radius: 2px;
  color: var(--ink);
}
.toolbar input[type="search"] { max-width: 360px; }
.toolbar select { max-width: 280px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 6px 12px;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  border-radius: 99px;
}
.chip:hover, .chip.is-on {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.hint { font-size: 13px; color: var(--muted); }
.empty {
  background: var(--white);
  border: 1px dashed var(--line);
  padding: 36px 24px;
  text-align: center;
}

/* ----- product ----- */
.product {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.gallery-main {
  background: #ece9e3;
  border: 1px solid var(--line);
  min-height: 420px;
  display: grid;
  place-items: center;
}
.gallery-main img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.thumbs button {
  border: 2px solid transparent;
  background: #ece9e3;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 1;
}
.thumbs button.is-on,
.thumbs button:hover { border-color: var(--rust); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.sku-row { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.sku-row code { background: var(--page-2); padding: 1px 6px; }
.buy-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
}
.spec {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
}
.spec th, .spec td { border-bottom: 1px solid var(--line); padding: 9px 0; text-align: left; vertical-align: top; }
.spec th { width: 38%; color: var(--muted); font-weight: 600; }
.policy-list { list-style: none; padding: 0; margin: 16px 0 0; }
.policy-list li {
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.policy-list li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--rust);
  position: absolute;
  left: 0; top: 14px;
}

/* ----- cart ----- */
.cart-table { width: 100%; border-collapse: collapse; background: var(--white); }
.cart-table th {
  text-align: left;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}
.cart-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item { display: flex; gap: 14px; align-items: center; }
.cart-item img { width: 84px; height: 84px; object-fit: contain; background: #ece9e3; }
.totals {
  margin-top: 22px;
  margin-left: auto;
  width: min(360px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px;
}
.totals-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.totals-row.grand { font-family: var(--display); font-size: 22px; letter-spacing: 0.04em; border: 0; padding-top: 12px; }

/* ----- forms ----- */
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.field label {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 6px;
}
.map-wrap {
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 280px;
}
.map-wrap iframe { width: 100%; height: 320px; border: 0; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ----- fitment ----- */
.fit-bar {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
}

/* ----- footer ----- */
.site-footer {
  background: var(--ink);
  color: var(--steel);
  margin-top: auto;
  padding: 48px 0 20px;
}
.footer-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.site-footer h3 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 12px;
}
.site-footer a { color: var(--dust); }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; color: var(--white); }
.footer-brand img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--rust);
}
.disclaimer {
  width: min(var(--max), calc(100% - 40px));
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid #333;
  font-size: 12px;
  color: #8d8882;
}

/* ----- policies / about ----- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; margin-top: 1.4em; }
.block {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.block h2 { font-size: 20px; color: var(--rust-deep); }

/* ----- responsive ----- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .product, .split, .footer-grid, .fit-bar, .form-grid.two {
    grid-template-columns: 1fr;
  }
  .header-inner {
    grid-template-columns: auto 1fr auto auto;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--ink-2);
    flex-direction: column;
    padding: 12px 20px 18px;
    border-bottom: 3px solid var(--rust);
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: grid; place-items: center; }
  .header-search { max-width: none; grid-column: 1 / -1; order: 5; }
  .shop-strip a { max-width: none; font-size: 16px; padding: 12px 10px 10px; }
  .site-nav a[data-nav="shop"],
  .site-nav a[data-nav="tires"] { display: none; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; }
  .hero { min-height: 440px; }
  .brand-sub { display: none; }
  .header-inner { padding: 10px 14px; gap: 10px; }
}

.hdr-phone{color:#fff;font-family:Oswald,sans-serif;letter-spacing:.04em;white-space:nowrap;text-decoration:none}
.hdr-phone:hover{color:#d2762e}
.phone-lg{font-family:Oswald,sans-serif;font-size:28px;margin:.2em 0}
.phone-lg a{color:#c2662a}
.cart-count:empty { display: none; }

/* ----- used tires ----- */
.tires-hero {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  margin: 0 0 28px;
  background: #ece9e3;
}
.mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.fit-bar.tires-bar {
  grid-template-columns: 1fr 1fr 1fr auto;
}

.tire-group { margin: 8px 0 28px; }
.tire-group h2 {
  font-size: 20px;
  letter-spacing: 0.08em;
  margin: 20px 0 12px;
  color: var(--ink);
}
.tire-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tire-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tire-card .sz {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.tire-card .qty { font-size: 14px; color: var(--muted); }
.tire-card .tagline {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--display);
  color: var(--rust);
  margin-top: auto;
}
.fit-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--display);
  padding: 3px 7px;
  margin-right: 6px;
  background: var(--ink);
  color: var(--white);
}
.fit-label.alt { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.oem-list { margin: 0 0 16px; padding: 0; list-style: none; }
.oem-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 980px) {
  .tire-grid { grid-template-columns: repeat(2, 1fr); }
  .fit-bar.tires-bar { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tire-grid { grid-template-columns: 1fr; }
}

.tire-card.is-oos .sz {
  text-decoration: line-through;
  color: var(--muted);
}
.tire-card.is-oos .oos {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--display);
  color: var(--muted);
}
