/* ==========================================================================
   PSQ Auto Parts — shop components
   Catalogue, product detail, part-family grid, process strip.
   Loaded after main.css; consumes the same tokens.
   ========================================================================== */

/* ------------------------------------------------------- letterspaced head */
.kicker {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.3;
}
.kicker--sm { font-size: 17px; letter-spacing: .13em; }

/* ------------------------------------------------------------ breadcrumbs */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12.5px;
  color: var(--text-3);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.crumbs > * { white-space: nowrap; }
.crumbs a:hover { color: var(--text); }
.crumbs__sep { color: var(--line); }
.crumbs__here { color: var(--text-2); }

/* ------------------------------------------------------------- page head */
.pagehead { padding: 46px 0 40px; border-bottom: 1px solid var(--line); }
.pagehead__in {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.pagehead h1 { font-size: 42px; letter-spacing: -.015em; margin-bottom: 14px; }
.pagehead .lede { max-width: 560px; }
.pagehead__meta {
  display: flex;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  flex: none;
}
.pagehead__meta div { background: var(--paper); padding: 14px 22px; min-width: 118px; }
.pagehead__meta b {
  display: block;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.pagehead__meta span {
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 3px;
  display: block;
}

/* ------------------------------------------------------------ part family */
.fams {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.fam {
  padding: 26px 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .15s, box-shadow .15s;
  position: relative;
}
.fam:nth-child(4n) { border-right: 0; }
.fam:nth-last-child(-n+4) { border-bottom: 0; }
.fam::before {
  content: "";
  position: absolute;
  left: -1px; top: -1px; bottom: -1px;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transition: transform .18s;
  transform-origin: top;
}
.fam:hover { background: var(--paper-2); }
.fam:hover::before { transform: scaleY(1); }
.fam__idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: .1em;
}
.fam__t { font-size: 16.5px; font-weight: 500; margin-top: 12px; line-height: 1.3; }
.fam__n { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); margin-top: 8px; }

/* ------------------------------------------------------------ model strip */
.mstrip { border-top: 1px solid var(--line); }
.mstrip__in {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  padding: 64px 0;
}
.mstrip__l .eyebrow { margin-bottom: 12px; }
.mstrip__l h3 { font-size: 24px; margin-bottom: 10px; }
.mstrip__l p { font-size: 14.5px; color: var(--text-2); line-height: 1.7; }
.mstrip--dark { border-top-color: var(--line-d); }

/* family -> count list, sits on the dark band */
.tlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 44px; }
.tlist a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-d);
  font-size: 14.5px;
  color: var(--on-dark);
  transition: color .15s;
}
.tlist a:hover { color: #fff; }
.tlist a em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--red);
  flex: none;
}

/* ------------------------------------------------------------ facts table */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
}
.facts__r {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.6;
}
.facts__r dt {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 3px;
}
.facts__r dd .mono { font-size: 13.5px; }

/* ------------------------------------------------------------------ steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.step { background: var(--paper); padding: 38px 32px 42px; }
.step__n {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--red);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  display: block;
}
.step__t { font-size: 21px; font-weight: 500; margin: 24px 0 12px; }
.step__d { font-size: 14.5px; line-height: 1.75; color: var(--text-2); }
.step__d .mono { font-size: 13px; color: var(--text); }

/* -------------------------------------------------------------------- CTA */
.cta { background: var(--ink-2); color: var(--on-dark); border-top: 1px solid var(--line-d); }
.cta__in {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 60px 0;
}
.cta h2 { font-size: 32px; letter-spacing: -.015em; }
.cta p { color: var(--on-dark-2); margin-top: 12px; font-size: 15px; max-width: 620px; line-height: 1.7; }
.cta__acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================== catalogue === */
.shop { display: grid; grid-template-columns: 264px 1fr; align-items: start; }

.rail {
  position: sticky;
  top: 92px;
  border-right: 1px solid var(--line);
  padding: 30px 0 40px;
  align-self: start;
}
.rail__g { border-bottom: 1px solid var(--line); padding: 0 26px 22px; margin-bottom: 22px; }
.rail__g:last-of-type { border-bottom: 0; }
.rail__h {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  display: block;
}
.rail__o {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 6px 0;
  color: var(--text-2);
  cursor: pointer;
}
.rail__o:hover { color: var(--text); }
.rail__o input { accent-color: var(--red); width: 14px; height: 14px; flex: none; }
.rail__o.is-on { color: var(--text); font-weight: 500; }
.rail__o em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.rail__search {
  width: 100%;
  border: 1px solid var(--line);
  padding: 11px 13px;
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
}
.rail__search:focus { border-color: var(--text); }
.rail__search::placeholder { font-family: var(--font); color: var(--text-3); }
.rail__reset { font-size: 13px; color: var(--red); margin-top: 16px; display: inline-block; }

.shop__main { padding: 30px 0 0 44px; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.toolbar__c { font-size: 14px; color: var(--text-2); }
.toolbar__c b { font-family: var(--mono); color: var(--text); font-weight: 500; }
.toolbar__r { display: flex; align-items: center; gap: 18px; font-size: 13.5px; color: var(--text-2); }
.toolbar select {
  border: 1px solid var(--line);
  padding: 9px 12px;
  font-size: 13.5px;
  background: var(--paper);
  cursor: pointer;
  outline: none;
}
.toolbar select:focus { border-color: var(--text); }

/* product grid inside shop (3 up, narrower cards) */
.pgrid--3 { grid-template-columns: repeat(3, 1fr); }

.pcard__img { position: relative; overflow: hidden; }
.pcard__flag {
  position: absolute;
  left: 0; top: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 10px;
}
.pcard__flag--red { background: var(--red); }
.pcard:hover .pcard__img img { transform: scale(1.03); }
.pcard__img img { transition: transform .35s; }
.pcard__t { min-height: 0; }
.pcard__v { display: block; }
.pcard__qty { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.pcard__f { gap: 12px; }

/* -------------------------------------------------------------- pagination */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.pager__n { display: flex; gap: 4px; }
.pager__n a {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
}
.pager__n a:hover { border-color: var(--text); color: var(--text); }
.pager__n a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================== detail === */
.pd {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 0;
}
.gal { padding: 40px 52px 40px 0; border-right: 1px solid var(--line); }
.gal__main {
  background: var(--paper-2);
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  padding: 30px;
  position: relative;
}
.gal__main img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.gal__zoom {
  position: absolute;
  right: 14px; bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-3);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 5px 9px;
}
.gal__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gal__th {
  width: 92px;
  aspect-ratio: 4/3;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 8px;
  cursor: pointer;
}
.gal__th img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.gal__th.is-on { border-color: var(--red); }
.gal__th--more {
  border-style: dashed;
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
  letter-spacing: .04em;
}

.buy { padding: 40px 0 40px 52px; }
.buy__make {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.buy h1 { font-size: 34px; margin: 14px 0 8px; }
.buy__veh { font-size: 15px; color: var(--text-2); }
.buy__oe {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.buy__oe span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.buy__oe b { font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: .02em; }
.buy__oe i { font-style: normal; cursor: pointer; color: var(--text-3); font-size: 12px; }
.buy__oe i:hover { color: var(--red); }

.buy__row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; margin-top: 26px; }
.buy__lbl { font-size: 13px; color: var(--text-2); }
.qty { display: flex; border: 1px solid var(--line); width: max-content; }
.qty button { width: 42px; height: 46px; font-size: 17px; color: var(--text-2); }
.qty button:hover { background: var(--paper-2); color: var(--text); }
.qty input {
  width: 64px;
  height: 46px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-family: var(--mono);
  font-size: 15px;
  outline: none;
}
.qty ~ .buy__hint { font-size: 13px; color: var(--text-3); }

.buy__cta { display: flex; gap: 12px; margin-top: 26px; }
.buy__cta .btn { flex: 1; }
.buy__cta .btn--dark { flex: 0 0 auto; }

.buy__k { border: 1px solid var(--line); margin-top: 30px; }
.buy__k div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.buy__k div:last-child { border-bottom: 0; }
.buy__k dt, .buy__k span:first-child { color: var(--text-2); }
.buy__k b { font-weight: 500; font-family: var(--mono); font-size: 13.5px; }
.buy__k b.txt { font-family: var(--font); font-size: 14px; }

.buy__note {
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
  padding-left: 16px;
  border-left: 3px solid var(--red);
}

/* -------------------------------------------------------------- spec tabs */
.tabs { border-top: 1px solid var(--line); margin-top: 12px; }
.tabs__nav { display: flex; gap: 34px; border-bottom: 1px solid var(--line); }
.tabs__nav button {
  font-size: 15px;
  color: var(--text-3);
  padding: 20px 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs__nav button:hover { color: var(--text); }
.tabs__nav button.is-on { color: var(--text); border-bottom-color: var(--red); }
.tabs__p { padding: 40px 0 10px; }
.tabs__p[hidden] { display: none; }

.prose { max-width: 720px; font-size: 15.5px; line-height: 1.8; color: var(--text-2); }
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--text); font-weight: 500; }

.spec { border: 1px solid var(--line); max-width: 900px; }
.spec__r { display: grid; grid-template-columns: 260px 1fr; border-bottom: 1px solid var(--line); }
.spec__r:last-child { border-bottom: 0; }
.spec__r dt {
  padding: 14px 22px;
  background: var(--paper-2);
  font-size: 13.5px;
  color: var(--text-2);
  border-right: 1px solid var(--line);
}
.spec__r dd { padding: 14px 22px; font-size: 14.5px; }
.spec__r dd.mono { font-family: var(--mono); font-size: 13.5px; }

.gridcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 900px; }
.gridcard { background: var(--paper); padding: 26px 24px 28px; }
.gridcard h4 { font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.gridcard p { font-size: 13.5px; line-height: 1.7; color: var(--text-2); }
.gridcard__n { font-family: var(--mono); font-size: 12px; color: var(--red); margin-bottom: 14px; display: block; }

/* ========================================================== showroom ===== */
/* The "what we do" block: the visitor should understand the business from
   the pictures alone, before reading a word. */
.showroom__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}
.showroom__head .eyebrow { margin-bottom: 14px; }
.showroom__head h2 { max-width: 15ch; }
.showroom__lede { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.showroom__lede b { font-weight: 500; color: var(--text); }
.showroom__lede + .showroom__lede { margin-top: 14px; }

.showroom__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.scard {
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: border-color .18s, transform .18s;
}
.scard:hover { border-color: var(--text); transform: translateY(-2px); }
.scard__img { position: relative; background: #fff; border-bottom: 1px solid var(--line); }
.scard__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 28px; }
.scard__i {
  position: absolute; top: 0; left: 0;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em;
  color: var(--text-3); padding: 13px 15px;
}
.scard__b { padding: 22px 24px 26px; margin-top: auto; }
.scard__b h3 { font-size: 19px; font-weight: 500; margin-bottom: 7px; }
.scard__b p { font-size: 13.5px; line-height: 1.62; color: var(--text-2); }
/* the families that sit under this category — the only place the sub-groups are
   named, so they stay a label rather than a second filter level */
.scard__fam {
  display: block; margin-top: 13px; padding-top: 13px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.65;
  color: var(--text-3); letter-spacing: .01em;
}
.scard__n {
  display: block; margin-top: 11px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--red);
}
/* a category with no rows yet keeps its panel: the matrix is still being
   uploaded, so an empty panel reads Updating rather than vanishing */
.scard--void .scard__n { color: var(--text-3); }
.scard__void {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; background: var(--paper-2);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}

.showroom__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.showroom__foot p { font-size: 14.5px; line-height: 1.7; color: var(--text-2); max-width: 62ch; }
.showroom__foot b { font-weight: 500; color: var(--text); }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .showroom__grid { grid-template-columns: repeat(2, 1fr); }
  .shop { grid-template-columns: 1fr; }
  .rail {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }
  .rail__g { padding: 0 0 18px; }
  .rail__in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
  .shop__main { padding: 26px 0 0; }
  .pgrid--3 { grid-template-columns: repeat(2, 1fr); }
  .pd { grid-template-columns: 1fr; }
  .gal { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .buy { padding: 32px 0; }
}

@media (max-width: 1080px) {
  .showroom__head { grid-template-columns: 1fr; gap: 20px; align-items: start; margin-bottom: 34px; }
  .showroom__head h2 { max-width: none; }
  .showroom__grid { grid-template-columns: 1fr; gap: 14px; }
  .scard { flex-direction: row; }
  .scard__img { width: 44%; flex: none; border-bottom: 0; border-right: 1px solid var(--line); }
  .scard__b { padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; }
  .fams { grid-template-columns: repeat(3, 1fr); }
  .fam:nth-child(4n) { border-right: 1px solid var(--line); }
  .fam:nth-child(3n) { border-right: 0; }
  .fam:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .fam:nth-last-child(-n+3) { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .mstrip__in { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .tlist { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .cta__in { grid-template-columns: 1fr; gap: 26px; }
  .pagehead__in { flex-direction: column; align-items: flex-start; gap: 28px; }
  .spec__r { grid-template-columns: 1fr; }
  .spec__r dt { border-right: 0; border-bottom: 1px solid var(--line); }
  .gridcards { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .showroom__grid { grid-template-columns: 1fr; }
  .scard { flex-direction: column; }
  .scard__img { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .showroom__foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .fams { grid-template-columns: repeat(2, 1fr); }
  .fam:nth-child(3n) { border-right: 1px solid var(--line); }
  .fam:nth-child(2n) { border-right: 0; }
  .fam:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .fam:nth-last-child(-n+2) { border-bottom: 0; }
  .pgrid--3 { grid-template-columns: 1fr; }
  .pagehead h1 { font-size: 30px; }
  .kicker { font-size: 19px; }
  .pagehead__meta { width: 100%; }
  .pagehead__meta div { flex: 1; min-width: 0; padding: 12px 14px; }
  .rail__in { grid-template-columns: 1fr; }
  .buy__row { grid-template-columns: 1fr; gap: 8px; }
  .buy__cta { flex-wrap: wrap; }
  .gal__thumbs { flex-wrap: wrap; }
  .tabs__nav { gap: 20px; overflow-x: auto; }
  .tlist { grid-template-columns: 1fr; }
  .facts__r { grid-template-columns: 1fr; gap: 4px; }
}
