/*
Theme Name: Parts Sherpa Child
Template: hello-elementor
Version: 1.0.0
Text Domain: parts-sherpa-child
*/

:root {
  --ps-text:#15202b;
  --ps-muted:#5d6b78;
  --ps-border:#e5e7eb;
  --ps-soft:#f6f8fa;
  --ps-dark:#111827;
}

* { box-sizing:border-box; }

body {
  margin:0;
  color:var(--ps-text);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

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

.ps-container {
  max-width:1180px;
  margin:0 auto;
  padding:0 18px;
}

.ps-topbar {
  background:var(--ps-dark);
  color:#fff;
  font-size:14px;
  padding:8px 0;
}

.ps-topbar-inner {
  display:flex;
  justify-content:space-between;
  gap:16px;
}

.ps-header {
  background:#fff;
  border-bottom:1px solid var(--ps-border);
}

.ps-header-main {
  display:grid;
  grid-template-columns:220px 1fr auto;
  gap:20px;
  align-items:center;
  padding:18px 0;
}

.ps-logo {
  font-size:25px;
  font-weight:800;
  letter-spacing:-.03em;
}

.ps-logo-sub {
  display:block;
  color:var(--ps-muted);
  font-size:12px;
  font-weight:500;
  margin-top:2px;
  letter-spacing:0;
}

.ps-search-form {
  display:flex;
  width:100%;
}

.ps-search-form input {
  width:100%;
  height:46px;
  border:1px solid var(--ps-border);
  border-right:0;
  border-radius:8px 0 0 8px;
  padding:0 14px;
  font-size:16px;
}

.ps-search-form button {
  height:46px;
  border:1px solid var(--ps-dark);
  background:var(--ps-dark);
  color:#fff;
  border-radius:0 8px 8px 0;
  padding:0 18px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
}

.ps-cart-link {
  font-weight:700;
  border:1px solid var(--ps-border);
  border-radius:8px;
  padding:11px 14px;
  white-space:nowrap;
}

.ps-nav {
  border-top:1px solid var(--ps-border);
}

.ps-nav-inner {
  display:flex;
  gap:24px;
  padding:11px 0;
  font-size:15px;
  font-weight:600;
}

.ps-hero {
  background:linear-gradient(180deg,#f8fafc 0%,#fff 100%);
  border-bottom:1px solid var(--ps-border);
  padding:58px 0;
}

.ps-hero-grid {
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:36px;
  align-items:center;
}

.ps-hero h1 {
  font-size:clamp(34px,5vw,58px);
  line-height:1.02;
  letter-spacing:-.05em;
  margin:0 0 18px;
}

.ps-hero p {
  font-size:19px;
  color:var(--ps-muted);
  line-height:1.55;
  margin:0 0 24px;
}

.ps-hero-card,
.ps-feature {
  border:1px solid var(--ps-border);
  background:#fff;
  border-radius:16px;
  padding:24px;
}

.ps-hero-card {
  box-shadow:0 12px 28px rgba(15,23,42,.08);
}

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

.ps-feature h3 {
  margin:0 0 8px;
  font-size:18px;
}

.ps-feature p {
  margin:0;
  color:var(--ps-muted);
  line-height:1.45;
}

.ps-footer {
  border-top:1px solid var(--ps-border);
  background:var(--ps-soft);
  margin-top:48px;
  padding:38px 0;
}

.ps-footer-grid {
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:28px;
}

.ps-footer h4 {
  margin:0 0 12px;
}

.ps-footer p,
.ps-footer a {
  color:var(--ps-muted);
  line-height:1.65;
  display:block;
}

.ps-footer-bottom {
  border-top:1px solid var(--ps-border);
  margin-top:28px;
  padding-top:18px;
  color:var(--ps-muted);
  font-size:14px;
}

@media (max-width:800px) {
  .ps-topbar-inner { display:block; text-align:center; }
  .ps-header-main { grid-template-columns:1fr auto; gap:12px; }
  .ps-header-search { grid-column:1 / -1; }
  .ps-nav-inner { overflow-x:auto; white-space:nowrap; gap:18px; }
  .ps-hero { padding:34px 0; }
  .ps-hero-grid,
  .ps-feature-row,
  .ps-footer-grid { grid-template-columns:1fr; }
}

/* Price Check Page */
.ps-price-page {
  padding: 52px 0;
  background: #fff;
}

.ps-price-head {
  max-width: 820px;
}

.ps-eyebrow {
  color: #be123c;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  margin: 0 0 10px;
}

.ps-price-head h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -.045em;
  margin: 0 0 14px;
}

.ps-price-head p {
  color: var(--ps-muted);
  font-size: 18px;
  line-height: 1.55;
}

.ps-price-search {
  margin-top: 22px;
  max-width: 760px;
}

.ps-result-title {
  margin-top: 42px;
  border-top: 1px solid var(--ps-border);
  padding-top: 28px;
}

.ps-result-title h2,
.ps-section-heading {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -.025em;
}

.ps-result-title p {
  color: var(--ps-muted);
  margin: 0;
}

.ps-market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0 34px;
}

.ps-market-card,
.ps-no-results,
.ps-example-box {
  border: 1px solid var(--ps-border);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
}

.ps-market-card h3 {
  margin: 0 0 8px;
}

.ps-market-card p {
  color: var(--ps-muted);
  line-height: 1.5;
}

.ps-market-status {
  color: #111827 !important;
  font-weight: 800;
}

.ps-product-results {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.ps-product-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  border: 1px solid var(--ps-border);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.ps-product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 12px;
  min-height: 130px;
  overflow: hidden;
}

.ps-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ps-image-placeholder {
  color: var(--ps-muted);
  font-weight: 700;
}

.ps-product-kicker {
  color: #be123c;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 6px;
}

.ps-product-info h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ps-product-meta,
.ps-product-stock {
  color: var(--ps-muted);
  margin: 4px 0;
}

.ps-product-price {
  font-size: 22px;
  font-weight: 800;
  margin: 12px 0;
}

.ps-buy-button,
.ps-secondary-button {
  display: inline-block;
  background: var(--ps-dark);
  color: #fff;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 800;
}

.ps-secondary-button {
  background: #475569;
}

.ps-no-results,
.ps-example-box {
  margin-top: 28px;
  max-width: 820px;
}

.ps-example-list {
  font-weight: 800;
  color: #111827 !important;
}

@media (max-width: 800px) {
  .ps-market-grid,
  .ps-product-card {
    grid-template-columns: 1fr;
  }

  .ps-product-image {
    min-height: 180px;
  }
}

/* Parts Sherpa homepage v2 */
.ps-home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 45%, rgba(15, 23, 42, .055), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--ps-border);
  padding: 64px 0 42px;
}

.ps-logo-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-content: start;
  gap: 28px 42px;
  padding: 32px 38px;
  opacity: .11;
  filter: grayscale(1);
  font-weight: 900;
  color: #111827;
  font-size: clamp(16px, 2vw, 28px);
  transform: rotate(-1deg);
}

.ps-logo-cloud span:nth-child(3n) {
  opacity: .7;
}

.ps-logo-cloud span:nth-child(4n) {
  transform: translateY(22px);
}

.ps-home-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: center;
}

.ps-home-copy {
  max-width: 760px;
}

.ps-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(190, 18, 60, .22);
  background: rgba(190, 18, 60, .045);
  color: #be123c;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 850;
  margin-bottom: 22px;
}

.ps-home-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: .96;
  letter-spacing: -.065em;
  max-width: 800px;
}

.ps-hero-sub {
  color: var(--ps-muted);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.45;
  max-width: 720px;
  margin: 0 0 28px;
}

.ps-hero-search {
  max-width: 760px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.ps-proof-row {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 18px 26px;
  align-items: center;
  margin-top: 24px;
  color: #334155;
  font-size: 15px;
  font-weight: 650;
}

.ps-proof-row span {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 2px solid #111827;
  border-radius: 999px;
  margin-right: 7px;
  font-size: 13px;
  line-height: 1;
}

.ps-sherpa-wrap {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-speech {
  position: absolute;
  top: 34px;
  right: 18px;
  z-index: 4;
  background: #fff;
  border: 2px solid #111827;
  border-radius: 18px;
  padding: 15px 18px;
  max-width: 215px;
  font-weight: 850;
  line-height: 1.25;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.ps-speech:after {
  content: "";
  position: absolute;
  left: -14px;
  bottom: 20px;
  width: 22px;
  height: 18px;
  background: #fff;
  border-left: 2px solid #111827;
  border-bottom: 2px solid #111827;
  transform: rotate(35deg);
}

.ps-sherpa-card {
  position: relative;
  width: min(420px, 90vw);
  height: 470px;
  filter: drop-shadow(0 18px 24px rgba(15, 23, 42, .12));
}

.ps-sherpa-head,
.ps-face,
.ps-sherpa-body,
.ps-jacket,
.ps-backpack,
.ps-arm,
.ps-part-icon {
  position: absolute;
}

.ps-sherpa-head {
  top: 34px;
  left: 112px;
  width: 190px;
  height: 190px;
}

.ps-hat {
  position: absolute;
  left: 48px;
  top: -12px;
  width: 96px;
  height: 58px;
  border: 5px solid #111827;
  border-bottom: 0;
  border-radius: 38px 38px 8px 8px;
  background: #fff;
  transform: rotate(-4deg);
}

.ps-hat:before {
  content: "";
  position: absolute;
  top: -25px;
  right: -13px;
  width: 34px;
  height: 34px;
  border: 5px solid #111827;
  border-radius: 999px;
  background: #fff;
}

.ps-hat:after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 18px;
  height: 5px;
  background: #111827;
  box-shadow: 0 14px 0 #111827;
}

.ps-hair {
  position: absolute;
  left: 36px;
  top: 32px;
  width: 118px;
  height: 46px;
  background: #111827;
  border-radius: 50% 45% 35% 40%;
}

.ps-goggles {
  position: absolute;
  left: 34px;
  top: 44px;
  width: 130px;
  height: 42px;
  z-index: 5;
}

.ps-goggles:before {
  content: "";
  position: absolute;
  left: 57px;
  top: 18px;
  width: 18px;
  height: 5px;
  background: #111827;
}

.ps-goggles span {
  position: absolute;
  width: 54px;
  height: 38px;
  border: 6px solid #111827;
  border-radius: 999px;
  background: #fff;
}

.ps-goggles span:first-child {
  left: 0;
}

.ps-goggles span:last-child {
  right: 0;
}

.ps-face {
  left: 38px;
  top: 62px;
  width: 118px;
  height: 124px;
  background: #fff;
  border: 5px solid #111827;
  border-radius: 46% 46% 48% 48%;
}

.eye {
  position: absolute;
  top: 42px;
  width: 15px;
  height: 15px;
  background: #111827;
  border-radius: 999px;
}

.eye.left { left: 30px; }
.eye.right { right: 30px; }

.nose {
  position: absolute;
  top: 60px;
  left: 54px;
  width: 12px;
  height: 18px;
  border-left: 3px solid #111827;
  border-bottom: 3px solid #111827;
  border-radius: 0 0 0 12px;
}

.smile {
  position: absolute;
  left: 36px;
  top: 84px;
  width: 48px;
  height: 20px;
  border-bottom: 5px solid #111827;
  border-radius: 0 0 999px 999px;
}

.ps-sherpa-body {
  left: 78px;
  top: 210px;
  width: 265px;
  height: 230px;
}

.ps-backpack {
  right: -18px;
  top: 26px;
  width: 98px;
  height: 164px;
  border: 6px solid #111827;
  border-radius: 22px;
  background: #fff;
}

.ps-backpack:before {
  content: "";
  position: absolute;
  top: 18px;
  right: -26px;
  width: 28px;
  height: 100px;
  border: 5px solid #111827;
  border-left: 0;
  border-radius: 0 18px 18px 0;
}

.ps-jacket {
  left: 48px;
  top: 16px;
  width: 154px;
  height: 194px;
  background: #fff;
  border: 6px solid #111827;
  border-radius: 36px 36px 20px 20px;
}

.ps-jacket:before {
  content: "";
  position: absolute;
  left: 70px;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #111827;
}

.ps-patch {
  position: absolute;
  left: 19px;
  top: 52px;
  width: 43px;
  height: 43px;
  border: 5px solid #111827;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  background: #fff;
}

.ps-strap {
  position: absolute;
  top: 18px;
  width: 14px;
  height: 150px;
  border: 5px solid #111827;
  border-radius: 999px;
}

.ps-strap.left { left: -25px; }
.ps-strap.right { right: -25px; }

.ps-arm-left {
  left: -52px;
  top: -5px;
  width: 128px;
  height: 82px;
  border: 6px solid #111827;
  border-radius: 999px;
  background: #fff;
  transform: rotate(-20deg);
}

.ps-arm-right {
  right: -6px;
  top: 54px;
  width: 100px;
  height: 72px;
  border: 6px solid #111827;
  border-radius: 999px;
  background: #fff;
  transform: rotate(12deg);
}

.ps-part-icon {
  left: -46px;
  top: -70px;
  width: 95px;
  height: 100px;
  border: 6px solid #111827;
  background: #fff;
  border-radius: 12px;
  transform: rotate(15deg);
}

.ps-part-icon span {
  position: absolute;
  background: #111827;
}

.ps-part-icon span:nth-child(1) {
  left: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
}

.ps-part-icon span:nth-child(2) {
  right: 14px;
  top: 18px;
  width: 28px;
  height: 28px;
}

.ps-part-icon span:nth-child(3) {
  left: 18px;
  bottom: 18px;
  width: 48px;
  height: 8px;
}

.ps-part-icon span:nth-child(4) {
  right: 14px;
  bottom: 16px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.ps-how-row {
  margin-top: -8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ps-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, .07);
  overflow: hidden;
}

.ps-how-card {
  padding: 28px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  border-right: 1px solid var(--ps-border);
}

.ps-how-card:last-child {
  border-right: 0;
}

.ps-how-icon {
  width: 64px;
  height: 64px;
  border: 2px solid #111827;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
}

.ps-how-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ps-how-card p {
  margin: 0;
  color: var(--ps-muted);
  line-height: 1.45;
}

.ps-trust-strip {
  display: flex;
  justify-content: center;
  gap: 44px;
  color: #334155;
  font-weight: 750;
  padding: 26px 18px 4px;
}

.ps-trust-strip span:before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  width: 22px;
  height: 22px;
  border: 2px solid #111827;
  border-radius: 999px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .ps-home-hero-grid {
    grid-template-columns: 1fr;
  }

  .ps-sherpa-wrap {
    min-height: 420px;
  }

  .ps-proof-row {
    grid-template-columns: repeat(2, auto);
  }

  .ps-how-row {
    grid-template-columns: 1fr;
  }

  .ps-how-card {
    border-right: 0;
    border-bottom: 1px solid var(--ps-border);
  }

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

  .ps-trust-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 620px) {
  .ps-home-copy h1 {
    font-size: 42px;
  }

  .ps-proof-row {
    grid-template-columns: 1fr;
  }

  .ps-sherpa-card {
    transform: scale(.82);
  }

  .ps-sherpa-wrap {
    min-height: 360px;
  }

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

/* Real Sherpa image */
.ps-sherpa-wrap {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.ps-sherpa-img {
  position: relative;
  z-index: 3;
  width: min(560px, 100%);
  max-height: 560px;
  object-fit: contain;
  transform: translateY(78px);
  filter: drop-shadow(0 18px 24px rgba(15, 23, 42, .16));
}

.ps-home-hero {
  overflow: visible;
  padding-bottom: 118px;
}

.ps-how-row {
  margin-top: -46px;
  position: relative;
  z-index: 4;
}

.ps-speech {
  position: absolute;
  top: 54px;
  right: 4px;
  z-index: 5;
}

@media (max-width: 980px) {
  .ps-sherpa-img {
    width: min(460px, 92vw);
    transform: translateY(42px);
  }

  .ps-home-hero {
    padding-bottom: 82px;
  }

  .ps-speech {
    top: 20px;
    right: 16px;
  }
}

@media (max-width: 620px) {
  .ps-sherpa-img {
    width: min(360px, 94vw);
    transform: translateY(28px);
  }

  .ps-speech {
    position: relative;
    top: auto;
    right: auto;
    margin: 12px auto -10px;
  }
}

/* Homepage layout cleanup */
.ps-home-hero {
  padding: 46px 0 78px !important;
  min-height: 560px;
}

.ps-home-hero-grid {
  grid-template-columns: minmax(520px, 0.95fr) minmax(520px, 1.05fr) !important;
  gap: 22px !important;
  align-items: center !important;
}

.ps-home-copy {
  max-width: 720px !important;
  padding-top: 14px;
}

.ps-home-copy h1 {
  font-size: clamp(48px, 5.2vw, 74px) !important;
  line-height: .98 !important;
  margin-bottom: 18px !important;
}

.ps-hero-sub {
  max-width: 660px !important;
  font-size: 20px !important;
  margin-bottom: 24px !important;
}

.ps-hero-search {
  max-width: 620px !important;
  box-shadow: none !important;
}

.ps-hero-search input {
  height: 48px !important;
}

.ps-hero-search button {
  height: 48px !important;
}

.ps-proof-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px 24px !important;
  max-width: 720px !important;
  margin-top: 20px !important;
}

.ps-proof-row div {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  font-size: 14px !important;
}

.ps-sherpa-wrap {
  min-height: 520px !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  padding-right: 30px;
}

.ps-sherpa-img {
  width: min(720px, 115%) !important;
  max-height: 680px !important;
  transform: translateY(88px) translateX(24px) !important;
  filter: drop-shadow(0 20px 24px rgba(15, 23, 42, .16)) !important;
}

.ps-speech {
  top: 62px !important;
  right: 42px !important;
  font-size: 14px !important;
  max-width: 210px !important;
}

/* Make the how cards readable and horizontal */
.ps-how-row {
  margin-top: -28px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 1100px !important;
}

.ps-how-card {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 18px !important;
  padding: 24px 26px !important;
  align-items: flex-start !important;
}

.ps-how-icon {
  width: 56px !important;
  height: 56px !important;
  font-size: 29px !important;
  flex: 0 0 auto !important;
}

.ps-how-card h3 {
  font-size: 19px !important;
  line-height: 1.2 !important;
  margin: 0 0 8px !important;
}

.ps-how-card p {
  font-size: 15px !important;
  line-height: 1.42 !important;
  max-width: none !important;
}

.ps-trust-strip {
  padding-top: 20px !important;
  font-size: 14px !important;
}

/* Keep background logos subtle, not messy */
.ps-logo-cloud {
  opacity: .075 !important;
  gap: 26px 48px !important;
}

/* Tablet */
@media (max-width: 1100px) {
  .ps-home-hero-grid {
    grid-template-columns: 1fr !important;
  }

  .ps-home-copy {
    max-width: 780px !important;
  }

  .ps-sherpa-wrap {
    justify-content: center !important;
    min-height: 420px !important;
    padding-right: 0;
  }

  .ps-sherpa-img {
    width: min(620px, 96vw) !important;
    transform: translateY(44px) !important;
  }

  .ps-speech {
    top: 24px !important;
    right: 12% !important;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .ps-home-hero {
    padding: 34px 0 54px !important;
  }

  .ps-home-copy h1 {
    font-size: 42px !important;
  }

  .ps-hero-sub {
    font-size: 17px !important;
  }

  .ps-proof-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .ps-proof-row div {
    white-space: normal !important;
  }

  .ps-sherpa-wrap {
    min-height: 300px !important;
  }

  .ps-sherpa-img {
    width: min(430px, 100vw) !important;
    transform: translateY(28px) !important;
  }

  .ps-speech {
    display: none !important;
  }

  .ps-how-row {
    grid-template-columns: 1fr !important;
    margin-top: 0 !important;
  }

  .ps-how-card {
    grid-template-columns: 54px 1fr !important;
  }
}

/* --- Sherpa cleanup / overhang --- */
.ps-speech {
  display: none !important;
}

.ps-home-hero {
  overflow: visible !important;
  padding-bottom: 135px !important;
  min-height: 620px !important;
}

.ps-home-hero-grid {
  align-items: end !important;
  grid-template-columns: minmax(520px, .92fr) minmax(540px, 1.08fr) !important;
  gap: 10px !important;
}

.ps-sherpa-wrap {
  position: relative !important;
  min-height: 560px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  overflow: visible !important;
  padding-right: 0 !important;
}

.ps-sherpa-img {
  position: relative !important;
  z-index: 5 !important;
  width: min(860px, 145%) !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  transform: translateX(55px) translateY(120px) !important;
  filter: drop-shadow(0 24px 28px rgba(15, 23, 42, .16)) !important;
}

.ps-how-row {
  margin-top: -18px !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Tablet */
@media (max-width: 1100px) {
  .ps-home-hero {
    padding-bottom: 95px !important;
    min-height: auto !important;
  }

  .ps-home-hero-grid {
    grid-template-columns: 1fr !important;
  }

  .ps-sherpa-wrap {
    justify-content: center !important;
    min-height: 420px !important;
  }

  .ps-sherpa-img {
    width: min(620px, 100vw) !important;
    transform: translateY(55px) !important;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .ps-home-hero {
    padding-bottom: 55px !important;
  }

  .ps-sherpa-wrap {
    min-height: 280px !important;
  }

  .ps-sherpa-img {
    width: min(420px, 100vw) !important;
    transform: translateY(24px) !important;
  }
}

/* Real brand logo cloud */
.ps-logo-cloud-images {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid !important;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  align-content: start;
  gap: 30px 44px;
  padding: 34px 28px 0;
  opacity: .11 !important;
  filter: grayscale(1);
  transform: rotate(-1deg);
  z-index: 1;
}

.ps-logo-cloud-images img {
  width: 128px;
  height: 42px;
  object-fit: contain;
  opacity: .9;
  justify-self: center;
}

.ps-logo-cloud-images img:nth-child(3n) {
  transform: translateY(22px);
  opacity: .65;
}

.ps-logo-cloud-images img:nth-child(4n) {
  transform: translateY(44px);
}

.ps-logo-cloud-images img:nth-child(5n) {
  width: 150px;
}

/* Move mascot farther right and lower */
@media (min-width: 1101px) {
  .ps-home-hero-grid {
    grid-template-columns: minmax(560px, .86fr) minmax(660px, 1.14fr) !important;
    gap: 56px !important;
  }

  .ps-sherpa-wrap {
    margin-right: -190px !important;
    min-height: 590px !important;
  }

  .ps-sherpa-img {
    width: min(980px, 165%) !important;
    transform: translateX(155px) translateY(175px) !important;
  }

  .ps-home-hero {
    padding-bottom: 175px !important;
  }
}

/* Keep logos subtle on smaller screens */
@media (max-width: 980px) {
  .ps-logo-cloud-images {
    grid-template-columns: repeat(4, 1fr);
    opacity: .07 !important;
  }

  .ps-logo-cloud-images img {
    width: 110px;
  }
}

@media (max-width: 620px) {
  .ps-logo-cloud-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    opacity: .055 !important;
  }

  .ps-logo-cloud-images img {
    width: 88px;
    height: 32px;
  }
}

/* --- Fix mascot placement + how-card layout --- */
@media (min-width: 1101px) {
  .ps-home-hero {
    padding-bottom: 150px !important;
    min-height: 600px !important;
  }

  .ps-home-hero-grid {
    grid-template-columns: minmax(560px, .95fr) minmax(560px, 1.05fr) !important;
    gap: 46px !important;
  }

  .ps-sherpa-wrap {
    margin-right: -60px !important;
    min-height: 560px !important;
    justify-content: flex-end !important;
  }

  .ps-sherpa-img {
    width: min(760px, 135%) !important;
    transform: translateX(45px) translateY(145px) !important;
  }
}

/* Fix the three cards */
.ps-how-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 1100px !important;
  margin-top: -34px !important;
  overflow: hidden !important;
}

.ps-how-card {
  display: flex !important;
  align-items: flex-start !important;
  gap: 18px !important;
  padding: 26px 28px !important;
  min-width: 0 !important;
}

.ps-how-card > div:not(.ps-how-icon) {
  min-width: 0 !important;
  width: auto !important;
}

.ps-how-icon {
  flex: 0 0 58px !important;
  width: 58px !important;
  height: 58px !important;
  font-size: 28px !important;
}

.ps-how-card h3 {
  margin: 0 0 8px !important;
  font-size: 19px !important;
  line-height: 1.22 !important;
  white-space: normal !important;
}

.ps-how-card p {
  margin: 0 !important;
  color: var(--ps-muted) !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  max-width: 230px !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* If old grid rules are still affecting child text, force clean flow */
.ps-how-card * {
  word-break: normal !important;
}

/* Make hero proof chips cleaner */
.ps-proof-row {
  max-width: 620px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px 20px !important;
}

.ps-proof-row div {
  white-space: nowrap !important;
}

/* Tablet/mobile sanity */
@media (max-width: 1100px) {
  .ps-sherpa-wrap {
    margin-right: 0 !important;
  }

  .ps-sherpa-img {
    width: min(560px, 95vw) !important;
    transform: translateY(50px) !important;
  }

  .ps-how-row {
    grid-template-columns: 1fr !important;
    margin-top: 0 !important;
  }

  .ps-how-card {
    border-right: 0 !important;
    border-bottom: 1px solid var(--ps-border) !important;
  }

  .ps-how-card:last-child {
    border-bottom: 0 !important;
  }

  .ps-how-card p {
    max-width: none !important;
  }
}

/* Local real logo background cloud */
.ps-logo-cloud,
.ps-logo-cloud-clean,
.ps-logo-cloud-images {
  display: none !important;
}

.ps-logo-cloud-real {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  display: grid !important;
  grid-template-columns: repeat(8, minmax(80px, 1fr)) !important;
  grid-auto-rows: 74px !important;
  align-content: start !important;
  gap: 8px 34px !important;
  padding: 34px 28px 0 !important;
  opacity: .08 !important;
  filter: grayscale(1) contrast(.85) !important;
  z-index: 1 !important;
  overflow: hidden !important;
}

.ps-logo-cloud-real img {
  display: block !important;
  width: 118px !important;
  height: 44px !important;
  object-fit: contain !important;
  justify-self: center !important;
  align-self: center !important;
  opacity: .9 !important;
}

.ps-logo-cloud-real img:nth-child(3n) {
  transform: translateY(18px) !important;
  opacity: .7 !important;
}

.ps-logo-cloud-real img:nth-child(4n) {
  transform: translateY(36px) !important;
}

.ps-logo-cloud-real img:nth-child(5n) {
  width: 138px !important;
}

/* Keep mascot visible but less shoved offscreen */
@media (min-width: 1101px) {
  .ps-sherpa-wrap {
    margin-right: -45px !important;
    min-height: 570px !important;
  }

  .ps-sherpa-img {
    width: min(780px, 138%) !important;
    transform: translateX(35px) translateY(150px) !important;
  }

  .ps-home-hero {
    padding-bottom: 155px !important;
  }
}

/* Fix lower three cards */
.ps-how-row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 1120px !important;
  margin-top: -28px !important;
}

.ps-how-card {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
  min-width: 0 !important;
}

.ps-how-card h3,
.ps-how-card p {
  max-width: none !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

@media (max-width: 980px) {
  .ps-logo-cloud-real {
    grid-template-columns: repeat(4, 1fr) !important;
    opacity: .05 !important;
  }

  .ps-logo-cloud-real img {
    width: 106px !important;
    height: 38px !important;
  }
}

@media (max-width: 620px) {
  .ps-logo-cloud-real {
    grid-template-columns: repeat(3, 1fr) !important;
    opacity: .035 !important;
  }

  .ps-logo-cloud-real img {
    width: 82px !important;
    height: 30px !important;
  }
}

/* Strip homepage clutter */
.ps-how-row,
.ps-trust-row,
.ps-proof-strip,
.ps-home-trust,
.ps-home-below,
.ps-feature-row {
  display: none !important;
}

/* Tighten hero now that lower boxes are gone */
.ps-home-hero {
  min-height: 620px !important;
  padding-bottom: 60px !important;
}

/* Keep hero clean and direct */
.ps-home-copy h1 {
  max-width: 760px !important;
  font-size: clamp(46px, 5vw, 68px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.055em !important;
}

.ps-home-copy p {
  max-width: 620px !important;
  font-size: 19px !important;
  line-height: 1.45 !important;
}

/* Make proof chips smaller, less noisy */
.ps-proof-row {
  max-width: 640px !important;
  gap: 10px 18px !important;
  margin-top: 16px !important;
}

.ps-proof-row div,
.ps-proof-row span {
  font-size: 13px !important;
}

/* Move mascot into the hero, not into its own circus */
@media (min-width: 1101px) {
  .ps-home-hero-grid {
    grid-template-columns: minmax(560px, .95fr) minmax(520px, 1.05fr) !important;
    gap: 40px !important;
  }

  .ps-sherpa-wrap {
    min-height: 500px !important;
    margin-right: 0 !important;
  }

  .ps-sherpa-img {
    width: min(680px, 120%) !important;
    transform: translateX(20px) translateY(95px) !important;
  }
}

/* Simplify footer spacing */
.ps-footer {
  padding-top: 34px !important;
  margin-top: 0 !important;
}

.ps-footer-grid {
  padding-top: 0 !important;
}

/* Price check Woo product table */
.ps-result-section {
  max-width: 1120px;
  margin: 34px auto;
  padding: 0 20px;
}

.ps-section-head {
  margin-bottom: 16px;
}

.ps-section-head .ps-eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  padding: 5px 10px;
  border: 1px solid var(--ps-border);
  border-radius: 999px;
  color: var(--ps-pink);
  font-size: 12px;
  font-weight: 800;
  background: #fff;
}

.ps-section-head h2 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.ps-section-head p {
  margin: 0;
  color: var(--ps-muted);
}

.ps-product-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ps-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.ps-product-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.ps-product-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ps-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--ps-border);
}

.ps-product-table td {
  padding: 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--ps-border);
  font-size: 14px;
}

.ps-product-table tr:last-child td {
  border-bottom: 0;
}

.ps-product-name a {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ps-ink);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.25;
}

.ps-product-thumb {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain;
  border: 1px solid var(--ps-border);
  border-radius: 12px;
  background: #fff;
  flex: 0 0 58px;
}

.ps-product-table code {
  font-size: 13px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 4px 7px;
}

.ps-stock {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.ps-stock.is-in {
  background: #ecfdf5;
  color: #047857;
}

.ps-stock.is-out {
  background: #fef2f2;
  color: #b91c1c;
}

.ps-price {
  font-weight: 900;
  font-size: 16px !important;
  white-space: nowrap;
}

.ps-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ps-ink);
  color: #fff !important;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.ps-buy-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .ps-section-head h2 {
    font-size: 24px;
  }

  .ps-result-section {
    margin: 24px auto;
  }
}

/* Simple Woo product grid page */
.ps-parts-grid-page {
  background: #f8fafc;
}

.ps-grid-hero {
  padding: 64px 0 38px;
  background:
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, .10), transparent 34%),
    linear-gradient(180deg, #fff, #f8fafc);
  border-bottom: 1px solid var(--ps-border);
}

.ps-grid-hero h1 {
  margin: 0 0 10px;
  max-width: 820px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.ps-grid-hero p {
  margin: 0;
  max-width: 620px;
  color: var(--ps-muted);
  font-size: 18px;
  line-height: 1.45;
}

.ps-grid-search {
  margin-top: 26px;
  display: flex;
  max-width: 760px;
  padding: 8px;
  border: 1px solid var(--ps-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.ps-grid-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 15px 16px;
  font-size: 16px;
  background: transparent;
}

.ps-grid-search button {
  border: 0;
  border-radius: 13px;
  padding: 0 22px;
  background: var(--ps-ink);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.ps-grid-results {
  padding-top: 34px;
  padding-bottom: 54px;
}

.ps-grid-results-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.ps-grid-results-head h2 {
  margin: 0 0 4px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.ps-grid-results-head p {
  margin: 0;
  color: var(--ps-muted);
}

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

.ps-grid-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--ps-border);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}

.ps-grid-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid var(--ps-border);
}

.ps-grid-img {
  max-width: 100% !important;
  max-height: 155px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.ps-grid-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

.ps-grid-kicker {
  margin-bottom: 7px;
  color: var(--ps-pink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ps-grid-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.ps-grid-card h2 a {
  color: var(--ps-ink);
  text-decoration: none;
}

.ps-grid-card h2 a:hover {
  text-decoration: underline;
}

.ps-grid-sku {
  margin-bottom: 12px;
  color: var(--ps-muted);
  font-size: 13px;
}

.ps-grid-sku code {
  padding: 3px 6px;
  border-radius: 7px;
  background: #f1f5f9;
  color: var(--ps-ink);
  font-size: 12px;
}

.ps-grid-meta {
  margin-bottom: 14px;
}

.ps-grid-stock {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.ps-grid-stock.is-in {
  background: #ecfdf5;
  color: #047857;
}

.ps-grid-stock.is-out {
  background: #fef2f2;
  color: #b91c1c;
}

.ps-grid-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ps-grid-price {
  font-size: 18px;
  font-weight: 950;
  color: var(--ps-ink);
  white-space: nowrap;
}

.ps-grid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 11px;
  background: var(--ps-ink);
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.ps-grid-pagination {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.ps-grid-pagination a,
.ps-grid-pagination span {
  padding: 10px 14px;
  border: 1px solid var(--ps-border);
  border-radius: 12px;
  background: #fff;
  color: var(--ps-ink);
  text-decoration: none;
  font-weight: 800;
}

.ps-grid-empty {
  padding: 38px;
  border: 1px solid var(--ps-border);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.ps-grid-empty h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

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

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

@media (max-width: 820px) {
  .ps-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps-grid-search {
    flex-direction: column;
  }

  .ps-grid-search button {
    min-height: 48px;
  }
}

@media (max-width: 520px) {
  .ps-product-grid {
    grid-template-columns: 1fr;
  }

  .ps-grid-img-wrap {
    height: 170px;
  }
}

/* APG-style Woo product display grid */
.ps-used-parts-page {
  background: #f8fafc;
}

.ps-used-hero {
  padding: 54px 0 34px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-bottom: 1px solid var(--ps-border);
}

.ps-used-hero h1 {
  margin: 0 0 10px;
  max-width: 820px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.ps-used-hero p {
  margin: 0;
  max-width: 640px;
  color: var(--ps-muted);
  font-size: 18px;
  line-height: 1.45;
}

.ps-used-search {
  margin-top: 24px;
  display: flex;
  max-width: 760px;
  padding: 8px;
  border: 1px solid var(--ps-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.ps-used-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 15px 16px;
  font-size: 16px;
  background: transparent;
}

.ps-used-search button {
  border: 0;
  border-radius: 13px;
  padding: 0 22px;
  background: var(--ps-ink);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.ps-used-results {
  padding-top: 30px;
  padding-bottom: 56px;
}

.ps-used-head {
  margin-bottom: 16px;
}

.ps-used-head h2 {
  margin: 0 0 4px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.ps-used-head p {
  margin: 0;
  color: var(--ps-muted);
}

.ps-apg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.ps-apg-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: start;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  padding: 16px;
  overflow: hidden;
}

.ps-apg-image-col {
  width: 110px;
  text-align: center;
}

.ps-apg-img-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.ps-apg-img {
  max-width: 96px !important;
  max-height: 96px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.ps-apg-condition {
  display: inline-flex;
  margin-top: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ps-apg-main {
  min-width: 0;
  color: #0f172a;
}

.ps-apg-main h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.28;
  font-weight: 800;
}

.ps-apg-main h2 a {
  color: #06254a;
  text-decoration: none;
}

.ps-apg-main h2 a:hover {
  color: #c2410c;
  text-decoration: underline;
}

.ps-apg-main h2 span {
  color: #06254a;
  font-weight: 700;
}

.ps-apg-line {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.35;
  color: #334155;
}

.ps-apg-line strong {
  color: #0f172a;
}

.ps-apg-line code {
  padding: 3px 7px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 12px;
}

.ps-apg-muted {
  color: #64748b;
}

.ps-apg-inventory {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #fed7aa;
  border-radius: 11px;
  background: rgba(255, 255, 255, .78);
  font-size: 12px;
  line-height: 1.35;
}

.ps-apg-inventory-main {
  color: #047857;
  font-weight: 850;
}

.ps-apg-inventory-sub {
  margin-top: 4px;
  color: #0f172a;
  font-weight: 700;
}

.ps-apg-buy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  min-width: 0;
  text-align: center;
}

.ps-apg-price {
  color: #15803d;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.ps-apg-cart,
.ps-apg-buy-now,
.ps-apg-disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  padding: 9px 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.ps-apg-cart {
  background: #06254a;
  color: #fff !important;
}

.ps-apg-cart:hover {
  background: #031a35;
}

.ps-apg-buy-now {
  border: 1px solid #06254a;
  background: #fff;
  color: #06254a !important;
}

.ps-apg-buy-now:hover {
  background: #f8fafc;
}

.ps-apg-disabled {
  background: #9ca3af;
  color: #fff;
}

.ps-used-pagination {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.ps-used-pagination a,
.ps-used-pagination span {
  padding: 10px 14px;
  border: 1px solid var(--ps-border);
  border-radius: 12px;
  background: #fff;
  color: var(--ps-ink);
  text-decoration: none;
  font-weight: 800;
}

.ps-used-empty {
  padding: 38px;
  border: 1px solid var(--ps-border);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.ps-used-empty h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.ps-used-empty p {
  margin: 0;
  color: var(--ps-muted);
}

@media (max-width: 860px) {
  .ps-apg-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .ps-apg-buy {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
  }

  .ps-apg-price {
    margin-right: auto;
    font-size: 22px;
  }

  .ps-apg-cart,
  .ps-apg-buy-now {
    min-width: 110px;
  }
}

@media (max-width: 620px) {
  .ps-used-search {
    flex-direction: column;
  }

  .ps-used-search button {
    min-height: 48px;
  }

  .ps-apg-card {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
  }

  .ps-apg-image-col {
    width: 92px;
  }

  .ps-apg-img-box {
    width: 92px;
    height: 92px;
  }

  .ps-apg-img {
    max-width: 82px !important;
    max-height: 82px !important;
  }

  .ps-apg-main h2 {
    font-size: 14px;
  }

  .ps-apg-inventory {
    display: none;
  }

  .ps-apg-buy {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .ps-apg-price {
    font-size: 22px;
  }

  .ps-apg-buy-now {
    display: none;
  }
}

/* Used parts left filter rail */
.ps-used-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ps-used-sidebar {
  position: sticky;
  top: 92px;
}

.ps-used-content {
  min-width: 0;
}

.ps-filter-panel {
  border: 1px solid var(--ps-border);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.ps-filter-title {
  margin-bottom: 14px;
  color: var(--ps-ink);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.015em;
}

.ps-filter-panel label {
  display: block;
  margin-bottom: 13px;
}

.ps-filter-panel label span {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.ps-filter-panel input,
.ps-filter-panel select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--ps-border);
  border-radius: 11px;
  background: #fff;
  padding: 9px 10px;
  color: var(--ps-ink);
  font-size: 14px;
  outline: 0;
}

.ps-filter-panel input:focus,
.ps-filter-panel select:focus {
  border-color: var(--ps-pink);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, .12);
}

.ps-filter-panel button {
  width: 100%;
  min-height: 43px;
  border: 0;
  border-radius: 11px;
  background: var(--ps-ink);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.ps-filter-panel button:hover {
  background: #031a35;
}

.ps-clear-filters {
  display: block;
  margin-top: 11px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.ps-clear-filters:hover {
  color: var(--ps-pink);
  text-decoration: underline;
}

@media (max-width: 920px) {
  .ps-used-shell {
    grid-template-columns: 1fr;
  }

  .ps-used-sidebar {
    position: static;
  }

  .ps-filter-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ps-filter-title {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .ps-filter-panel label {
    margin-bottom: 0;
  }

  .ps-filter-panel button,
  .ps-clear-filters {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .ps-filter-panel {
    grid-template-columns: 1fr;
  }
}

/* Part Finder / Price Check block */
.ps-part-finder-page {
  background: #f8fafc;
}

.ps-pf-hero {
  padding: 58px 0 38px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-bottom: 1px solid var(--ps-border);
}

.ps-pf-hero h1 {
  max-width: 860px;
  margin: 0 0 12px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.ps-pf-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--ps-muted);
  font-size: 18px;
  line-height: 1.45;
}

.ps-pf-search {
  margin-top: 26px;
  display: flex;
  max-width: 820px;
  padding: 8px;
  border: 1px solid var(--ps-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.ps-pf-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 15px 16px;
  background: transparent;
  color: var(--ps-ink);
  font-size: 16px;
}

.ps-pf-search button {
  border: 0;
  border-radius: 13px;
  padding: 0 24px;
  background: var(--ps-ink);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.ps-pf-results {
  padding-top: 34px;
  padding-bottom: 60px;
}

.ps-pf-empty-state,
.ps-pf-block {
  border: 1px solid var(--ps-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.ps-pf-empty-state {
  padding: 34px;
}

.ps-pf-empty-state h2 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.ps-pf-empty-state p {
  margin: 0;
  color: var(--ps-muted);
}

.ps-pf-block {
  padding: 24px;
}

.ps-pf-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.ps-pf-block-head h2 {
  margin: 0 0 6px;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.ps-pf-block-head p {
  margin: 0;
  color: var(--ps-muted);
}

.ps-pf-grid-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 12px;
  background: var(--ps-ink);
  color: #fff !important;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.ps-pf-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ps-pf-card {
  border: 1px solid var(--ps-border);
  border-radius: 17px;
  background: #f8fafc;
  padding: 16px;
}

.ps-pf-card span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ps-pf-card strong {
  display: block;
  color: var(--ps-ink);
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.ps-pf-card p {
  margin: 8px 0 0;
  color: var(--ps-muted);
  font-size: 13px;
  line-height: 1.35;
}

.ps-pf-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.ps-pf-detail-box {
  border: 1px solid var(--ps-border);
  border-radius: 17px;
  background: #fff;
  padding: 16px;
}

.ps-pf-detail-box h3 {
  margin: 0 0 10px;
  color: var(--ps-ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.ps-pf-detail-box p {
  margin: 0;
  color: var(--ps-muted);
  font-size: 14px;
}

.ps-pf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ps-pf-pills span {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid var(--ps-border);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ps-ink);
  font-size: 12px;
  font-weight: 800;
}

.ps-pf-preview {
  border-top: 1px solid var(--ps-border);
  padding-top: 20px;
}

.ps-pf-preview-head {
  margin-bottom: 12px;
}

.ps-pf-preview-head h3 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.ps-pf-preview-head p {
  margin: 0;
  color: var(--ps-muted);
}

.ps-pf-mini-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 140px;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--ps-border);
}

.ps-pf-mini-card:first-of-type {
  border-top: 0;
}

.ps-pf-mini-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border: 1px solid var(--ps-border);
  border-radius: 12px;
  background: #fff;
}

.ps-pf-thumb {
  max-width: 58px !important;
  max-height: 58px !important;
  object-fit: contain !important;
}

.ps-pf-mini-main h4 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.25;
}

.ps-pf-mini-main h4 a {
  color: var(--ps-ink);
  text-decoration: none;
}

.ps-pf-mini-main h4 a:hover {
  text-decoration: underline;
}

.ps-pf-mini-sku {
  color: var(--ps-muted);
  font-size: 12px;
}

.ps-pf-mini-sku code {
  padding: 3px 6px;
  border-radius: 7px;
  background: #f1f5f9;
  color: var(--ps-ink);
}

.ps-pf-mini-buy {
  text-align: right;
}

.ps-pf-mini-price {
  margin-bottom: 8px;
  color: #15803d;
  font-size: 18px;
  font-weight: 950;
}

.ps-pf-mini-buy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--ps-ink);
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 920px) {
  .ps-pf-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps-pf-detail-grid {
    grid-template-columns: 1fr;
  }

  .ps-pf-block-head {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .ps-pf-search {
    flex-direction: column;
  }

  .ps-pf-search button {
    min-height: 48px;
  }

  .ps-pf-cards {
    grid-template-columns: 1fr;
  }

  .ps-pf-mini-card {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .ps-pf-mini-buy {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* FastAPI market check block */
.ps-pf-market {
  margin: 20px 0;
  border: 1px solid var(--ps-border);
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
}

.ps-pf-market-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.ps-pf-market-head h3 {
  margin: 0 0 4px;
  color: var(--ps-ink);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.ps-pf-market-head p {
  margin: 0;
  color: var(--ps-muted);
  font-size: 14px;
}

.ps-pf-market-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ps-pf-market-card {
  border: 1px solid var(--ps-border);
  border-radius: 15px;
  background: #f8fafc;
  padding: 15px;
}

.ps-pf-market-card span {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .065em;
}

.ps-pf-market-card strong {
  display: block;
  color: var(--ps-ink);
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.ps-pf-market-card p {
  margin: 7px 0 0;
  color: var(--ps-muted);
  font-size: 13px;
  line-height: 1.35;
}

.ps-pf-api-warning {
  border: 1px solid #fed7aa;
  border-radius: 13px;
  background: #fff7ed;
  color: #9a3412;
  padding: 12px;
  font-size: 14px;
}

.ps-pf-offers {
  margin-top: 16px;
  border-top: 1px solid var(--ps-border);
  padding-top: 14px;
}

.ps-pf-offers h4 {
  margin: 0 0 10px;
  color: var(--ps-ink);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.ps-pf-offer-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--ps-border);
}

.ps-pf-offer-row:first-of-type {
  border-top: 0;
}

.ps-pf-offer-img {
  width: 52px;
  height: 52px;
  border: 1px solid var(--ps-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-pf-offer-img img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.ps-pf-offer-img-empty {
  background: #f1f5f9;
}

.ps-pf-offer-title {
  color: var(--ps-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.ps-pf-offer-price {
  margin-top: 4px;
  color: #15803d;
  font-size: 15px;
  font-weight: 950;
}

.ps-pf-offer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--ps-ink);
  color: #fff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .ps-pf-market-cards {
    grid-template-columns: 1fr;
  }

  .ps-pf-offer-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .ps-pf-offer-link {
    grid-column: 1 / -1;
  }
}

/* Cleaner part finder result layout */
.ps-pf-block {
  max-width: 980px !important;
  margin: 0 auto !important;
}

.ps-pf-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.ps-pf-market {
  background: #fff !important;
}

.ps-pf-market-head h3 {
  font-size: 22px !important;
}

.ps-pf-market-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.ps-pf-offers h4 {
  font-size: 17px !important;
}

.ps-pf-offer-row {
  grid-template-columns: 58px minmax(0, 1fr) 120px !important;
}

.ps-pf-offer-link {
  background: #06254a !important;
}

.ps-pf-detail-grid {
  margin-top: 16px !important;
}

@media (max-width: 900px) {
  .ps-pf-cards,
  .ps-pf-market-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .ps-pf-cards,
  .ps-pf-market-cards {
    grid-template-columns: 1fr !important;
  }
}

/* Simplify Part Finder result: make market decision the main thing */
.ps-pf-block {
  max-width: 920px !important;
  padding: 28px !important;
}

.ps-pf-block-head {
  margin-bottom: 18px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid var(--ps-border) !important;
}

.ps-pf-block-head h2 {
  font-size: 48px !important;
}

/* Hide noisy local summary cards for now */
.ps-pf-cards {
  display: none !important;
}

/* Make market block feel like the primary result */
.ps-pf-market {
  margin: 0 0 18px !important;
  padding: 22px !important;
  border: 2px solid #dbeafe !important;
  background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
}

.ps-pf-market-head {
  margin-bottom: 18px !important;
}

.ps-pf-market-head h3 {
  font-size: 30px !important;
  letter-spacing: -0.045em !important;
}

.ps-pf-market-head p {
  font-size: 15px !important;
}

.ps-pf-market-cards {
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 14px !important;
}

.ps-pf-market-card {
  padding: 18px !important;
  border-radius: 17px !important;
  background: #fff !important;
}

.ps-pf-market-card strong {
  font-size: 32px !important;
}

/* Make the actual used option more like the answer */
.ps-pf-offers {
  margin-top: 20px !important;
  padding-top: 18px !important;
}

.ps-pf-offers h4 {
  margin-bottom: 12px !important;
  font-size: 22px !important;
  letter-spacing: -0.035em !important;
}

.ps-pf-offer-row {
  grid-template-columns: 72px minmax(0, 1fr) 140px !important;
  padding: 16px !important;
  border: 1px solid var(--ps-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
}

.ps-pf-offer-img {
  width: 64px !important;
  height: 64px !important;
}

.ps-pf-offer-img img {
  max-width: 60px !important;
  max-height: 60px !important;
}

.ps-pf-offer-title {
  font-size: 16px !important;
}

.ps-pf-offer-price {
  font-size: 20px !important;
}

/* Hide empty/noisy signal boxes for this MVP */
.ps-pf-detail-grid {
  display: none !important;
}

/* Bigger CTA */
.ps-pf-offer-link {
  min-height: 42px !important;
  font-size: 13px !important;
}

/* Mobile */
@media (max-width: 720px) {
  .ps-pf-market-cards {
    grid-template-columns: 1fr !important;
  }

  .ps-pf-offer-row {
    grid-template-columns: 64px minmax(0, 1fr) !important;
  }

  .ps-pf-offer-link {
    grid-column: 1 / -1 !important;
  }
}

/* Make price-check read more like a decision result */
.ps-pf-market {
  border-color: #c7d2fe !important;
}

.ps-pf-market-head h3 {
  font-size: 34px !important;
}

.ps-pf-market-card span {
  color: #475569 !important;
}

.ps-pf-market-card:nth-child(2) {
  border-color: #86efac !important;
  background: #f0fdf4 !important;
}

.ps-pf-market-card:nth-child(2) strong {
  color: #15803d !important;
}

.ps-pf-offer-row {
  border-color: #bbf7d0 !important;
  background: #ffffff !important;
}

.ps-pf-offer-link {
  background: #15803d !important;
}

.ps-pf-offer-link:hover {
  background: #166534 !important;
}

/* Make price-check read more like a decision result */
.ps-pf-market {
  border-color: #c7d2fe !important;
}

.ps-pf-market-head h3 {
  font-size: 34px !important;
}

.ps-pf-market-card span {
  color: #475569 !important;
}

.ps-pf-market-card:nth-child(2) {
  border-color: #86efac !important;
  background: #f0fdf4 !important;
}

.ps-pf-market-card:nth-child(2) strong {
  color: #15803d !important;
}

.ps-pf-offer-row {
  border-color: #bbf7d0 !important;
  background: #ffffff !important;
}

.ps-pf-offer-link {
  background: #15803d !important;
}

.ps-pf-offer-link:hover {
  background: #166534 !important;
}

/* Live market source block */
.ps-pf-live {
  margin: 18px 0;
  border: 1px solid var(--ps-border);
  border-radius: 18px;
  background: #fff;
  padding: 20px;
}

.ps-pf-live-head {
  margin-bottom: 16px;
}

.ps-pf-live-head h3 {
  margin: 0 0 5px;
  color: var(--ps-ink);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.ps-pf-live-head p {
  margin: 0;
  color: var(--ps-muted);
  font-size: 14px;
}

.ps-pf-live-empty {
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
  padding: 14px;
  color: #9a3412;
}

.ps-pf-live-empty p {
  margin: 5px 0 0;
}

.ps-pf-live-results h4,
.ps-pf-source-health h4 {
  margin: 0 0 10px;
  color: var(--ps-ink);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.ps-pf-live-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 132px;
  gap: 13px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--ps-border);
}

.ps-pf-live-row:first-of-type {
  border-top: 0;
}

.ps-pf-live-img {
  width: 56px;
  height: 56px;
  border: 1px solid var(--ps-border);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ps-pf-live-img img {
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
}

.ps-pf-live-seller {
  margin-bottom: 3px;
  color: var(--ps-pink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ps-pf-live-title {
  color: var(--ps-ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}

.ps-pf-live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.ps-pf-live-meta span {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.ps-pf-live-buy {
  text-align: right;
}

.ps-pf-live-price {
  margin-bottom: 8px;
  color: #15803d;
  font-size: 20px;
  font-weight: 950;
}

.ps-pf-live-buy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--ps-ink);
  color: #fff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.ps-pf-source-health {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ps-border);
}

.ps-pf-source-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ps-pf-source-card {
  border: 1px solid var(--ps-border);
  border-radius: 13px;
  background: #f8fafc;
  padding: 11px;
}

.ps-pf-source-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ps-ink);
  font-size: 13px;
  line-height: 1.2;
}

.ps-pf-source-card span {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
}

.ps-pf-source-card span.is-ok {
  background: #dcfce7;
  color: #166534;
}

.ps-pf-source-card span.is-warn {
  background: #ffedd5;
  color: #9a3412;
}

.ps-pf-source-card p {
  margin: 7px 0 0;
  color: var(--ps-muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .ps-pf-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps-pf-live-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .ps-pf-live-buy {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .ps-pf-source-grid {
    grid-template-columns: 1fr;
  }
}

/* Cleanup secondary market-source block */
.ps-pf-live {
  margin-top: 20px !important;
  padding: 18px !important;
}

.ps-pf-live-head h3 {
  font-size: 26px !important;
}

.ps-pf-live-results h4,
.ps-pf-source-health h4 {
  font-size: 17px !important;
}

.ps-pf-source-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 9px !important;
}

.ps-pf-source-card {
  padding: 10px !important;
  min-height: 94px !important;
}

.ps-pf-source-card strong {
  font-size: 12px !important;
}

.ps-pf-source-card p {
  font-size: 11px !important;
}

.ps-pf-live-row {
  padding: 14px 0 !important;
}

.ps-pf-live-seller {
  color: #475569 !important;
}

@media (max-width: 900px) {
  .ps-pf-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .ps-pf-source-grid {
    grid-template-columns: 1fr !important;
  }
}
