/* ==========================================================================
   PrintPoss B2B Listing Page (Scoped inside .pp-listing-page)
   ========================================================================== */

.pp-listing-page {
  --pp-green: #16a34a;
  --pp-green-d: #15803d;
  --pp-green-50: #f0fdf4;
  --pp-green-100: #dcfce7;
  --pp-ink: #0f172a;
  --pp-ink-2: #334155;
  --pp-muted: #64748b;
  --pp-line: #e2e8f0;
  --pp-bg: #f8fafc;
  --pp-card: #ffffff;
  --pp-r: 12px;
  --pp-hdr: 64px;

  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--pp-ink);
  background: var(--pp-bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

.pp-listing-page *,
.pp-listing-page *::before,
.pp-listing-page *::after {
  box-sizing: border-box;
}

.pp-listing-page a {
  color: inherit;
  text-decoration: none;
}

.pp-listing-page button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
  min-height: 0;
  line-height: inherit;
}

.pp-listing-page input[type="number"],
.pp-listing-page input[type="checkbox"] {
  margin: 0;
  box-shadow: none;
}

.pp-listing-page img {
  max-width: 100%;
  height: auto;
}

.pp-listing-page :focus-visible {
  outline: 2px solid var(--pp-green);
  outline-offset: 2px;
}

.pp-listing-page .pp-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.pp-listing-page .pp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pp-listing-page .pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 40px;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.pp-listing-page .pp-btn-p {
  background: var(--pp-green);
  color: #fff;
}

.pp-listing-page .pp-btn-p:hover {
  background: var(--pp-green-d);
  color: #fff;
}

.pp-listing-page .pp-btn-sm {
  padding: 7px 10px;
  font-size: 13px;
  min-height: 36px;
}

/* ---------- Hero ---------- */
.pp-listing-page .pp-hero {
  background: #fff;
  border-bottom: 1px solid var(--pp-line);
}

.pp-listing-page .pp-hero-in {
  padding: 16px 20px 18px;
}

.pp-listing-page .pp-crumb {
  color: var(--pp-muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.pp-listing-page .pp-crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pp-listing-page .pp-crumb li {
  margin: 0;
}

.pp-listing-page .pp-crumb li + li::before {
  content: '/';
  margin-right: 6px;
}

.pp-listing-page .pp-crumb a:hover {
  color: var(--pp-ink);
}

.pp-listing-page .pp-crumb .woocommerce-breadcrumb {
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--pp-muted);
  text-transform: none;
  font-weight: 400;
}

.pp-listing-page .pp-crumb .woocommerce-breadcrumb a {
  color: var(--pp-muted);
  font-weight: 400;
}

.pp-listing-page .pp-crumb .woocommerce-breadcrumb a:hover {
  color: var(--pp-ink);
}

.pp-listing-page h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--pp-ink);
  margin: 0;
}

.pp-listing-page .pp-sub {
  color: var(--pp-ink-2);
  margin: 4px 0 0;
  font-size: 15px;
}

.pp-listing-page .pp-sub p {
  margin: 0;
}

.pp-listing-page .pp-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  color: var(--pp-muted);
  font-size: 13px;
}

.pp-listing-page .pp-kpis li {
  margin: 0;
}

.pp-listing-page .pp-kpis li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pp-green);
  margin-right: 7px;
  vertical-align: middle;
}

.pp-listing-page .pp-kpis b {
  color: var(--pp-ink);
  font-weight: 600;
}

/* ---------- Main wrapper ---------- */
.pp-listing-page .pp-main {
  padding: 0 20px 40px;
}

/* ---------- Filter bar (one row) ---------- */
.pp-listing-page .pp-fbar {
  position: sticky;
  top: var(--pp-hdr);
  z-index: 30;
  background: var(--pp-bg);
  padding: 10px 0;
  border-bottom: 1px solid var(--pp-line);
  display: flex;
  gap: 8px;
  align-items: center;
}

.pp-listing-page .pp-dd {
  position: relative;
  flex: none;
}

.pp-listing-page .pp-ddb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--pp-line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 500;
  color: var(--pp-ink-2);
  white-space: nowrap;
  min-height: 40px;
}

.pp-listing-page .pp-ddb:hover {
  border-color: #cbd5e1;
}

.pp-listing-page .pp-ddb .lbl {
  color: var(--pp-muted);
  font-weight: 500;
}

.pp-listing-page .pp-ddb.act {
  border-color: var(--pp-green);
  color: var(--pp-green-d);
  background: var(--pp-green-50);
}

.pp-listing-page .pp-ddb.act .lbl {
  color: var(--pp-green-d);
}

.pp-listing-page .pp-ddb.dev {
  border-color: var(--pp-ink);
  font-weight: 600;
  color: var(--pp-ink);
}

.pp-listing-page .pp-ddb.dev.act {
  border-color: var(--pp-green);
}

.pp-listing-page .pp-ddb .cnt {
  background: var(--pp-green);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  padding: 0 6px;
  line-height: 18px;
}

.pp-listing-page .pp-ddb svg {
  opacity: 0.6;
  flex: none;
}

.pp-listing-page .pp-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: 10px;
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.28);
  padding: 8px;
  display: none;
  z-index: 35;
}

.pp-listing-page .pp-dd.open .pp-pop {
  display: block;
}

.pp-listing-page .pp-sh,
.pp-listing-page .pp-sh-f {
  display: none;
}

.pp-listing-page .pp-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 6px;
  color: var(--pp-ink-2);
  cursor: pointer;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  font-weight: 400;
  margin: 0;
}

.pp-listing-page .pp-opt:hover {
  background: var(--pp-bg);
}

.pp-listing-page .pp-opt.on {
  background: var(--pp-green-50);
  color: var(--pp-green-d);
  font-weight: 600;
}

.pp-listing-page .pp-opt input {
  accent-color: var(--pp-green);
  width: 16px;
  height: 16px;
  flex: none;
}

.pp-listing-page .pp-opt .n {
  margin-left: auto;
  color: var(--pp-muted);
  font-size: 12px;
  font-weight: 500;
}

.pp-listing-page .pp-range {
  display: flex;
  gap: 8px;
  padding: 6px;
}

.pp-listing-page .pp-range input {
  width: 100%;
  border: 1px solid var(--pp-line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  height: auto;
  background: #fff;
  color: var(--pp-ink);
}

.pp-listing-page .pp-pop-f {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--pp-line);
  margin-top: 6px;
  padding: 8px 6px 2px;
}

.pp-listing-page .pp-pop-f button {
  border: 0;
  background: none;
  font-weight: 600;
  font-size: 13px;
  padding: 0;
}

.pp-listing-page .pp-pop-f .clr {
  color: var(--pp-muted);
}

.pp-listing-page .pp-pop-f .ok {
  color: var(--pp-green-d);
}

.pp-listing-page .pp-fbar .pp-right {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex: none;
}

.pp-listing-page .pp-count {
  color: var(--pp-muted);
  font-size: 13px;
  white-space: nowrap;
}

.pp-listing-page .pp-count b,
.pp-listing-page .pp-mcount b {
  color: var(--pp-ink);
}

.pp-listing-page .pp-mcount {
  display: none;
  margin: 0;
}

.pp-listing-page .pp-clrall {
  color: var(--pp-green-d);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  border: 0;
  background: none;
  padding: 8px 4px;
}

/* ---------- Device picker ---------- */
.pp-listing-page .pp-pop.devpop {
  width: 600px;
  padding: 0;
  display: none;
  grid-template-columns: 170px 1fr;
  overflow: hidden;
}

.pp-listing-page .pp-dd.open .pp-pop.devpop {
  display: grid;
}

.pp-listing-page .pp-fams {
  background: var(--pp-bg);
  border-right: 1px solid var(--pp-line);
  padding: 8px;
}

.pp-listing-page .pp-fam {
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  background: none;
  padding: 9px 10px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--pp-ink-2);
  text-align: left;
}

.pp-listing-page .pp-fam:hover {
  background: #eef2f7;
}

.pp-listing-page .pp-fam.on {
  background: #fff;
  color: var(--pp-ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.pp-listing-page .pp-fam .n {
  margin-left: auto;
  font-size: 12px;
  color: var(--pp-muted);
  font-weight: 500;
}

.pp-listing-page .pp-models {
  padding: 12px 14px;
  max-height: 420px;
  overflow: auto;
}

.pp-listing-page .pp-allfam {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px dashed var(--pp-line);
  border-radius: 8px;
  padding: 9px 10px;
  margin-bottom: 10px;
  width: 100%;
  background: #fff;
  font-weight: 600;
  color: var(--pp-ink-2);
}

.pp-listing-page .pp-allfam:hover {
  border-color: var(--pp-green);
  color: var(--pp-green-d);
}

.pp-listing-page .pp-allfam.on {
  border-style: solid;
  border-color: var(--pp-green);
  background: var(--pp-green-50);
  color: var(--pp-green-d);
}

.pp-listing-page .pp-allfam span {
  font-weight: 500;
  font-size: 12px;
  color: var(--pp-muted);
}

.pp-listing-page .pp-ser {
  padding: 8px 0;
  border-top: 1px solid var(--pp-line);
}

.pp-listing-page .pp-ser:first-of-type {
  border-top: 0;
}

.pp-listing-page .pp-ser-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pp-listing-page .pp-ser-h b {
  font-size: 13px;
}

.pp-listing-page .pp-ser-h button {
  border: 0;
  background: none;
  color: var(--pp-green-d);
  font-size: 12px;
  font-weight: 600;
  padding: 0;
}

.pp-listing-page .pp-ser-h button.on {
  text-decoration: underline;
}

.pp-listing-page .pp-mchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pp-listing-page .pp-mchip {
  border: 1px solid var(--pp-line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pp-ink-2);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.pp-listing-page .pp-mchip:hover {
  border-color: var(--pp-green);
}

.pp-listing-page .pp-mchip.on {
  background: var(--pp-green);
  border-color: var(--pp-green);
  color: #fff;
}

.pp-listing-page .pp-mchip .n {
  font-size: 11px;
  opacity: 0.6;
}

.pp-listing-page .pp-mchip.on .n {
  opacity: 0.85;
}

.pp-scrim,
.pp-sheet-portal {
  display: none;
}

/* ---------- Cards ---------- */
.pp-listing-page .pp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.pp-listing-page .pp-card {
  background: var(--pp-card);
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.pp-listing-page .pp-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.18);
}

.pp-listing-page .pp-card[hidden] {
  display: none;
}

.pp-listing-page .pp-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pp-listing-page .pp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform 0.2s;
  color: transparent;
}

.pp-listing-page .pp-card:hover .pp-thumb img {
  transform: scale(1.03);
}

.pp-listing-page .pp-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.pp-listing-page .pp-cat-l {
  font-size: 11px;
  color: var(--pp-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 2px;
}

.pp-listing-page .pp-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
  color: var(--pp-ink);
}

.pp-listing-page .pp-name a:hover {
  color: var(--pp-green-d);
}

.pp-listing-page .pp-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
}

.pp-listing-page .pp-spec {
  background: var(--pp-bg);
  border-radius: 8px;
  padding: 6px 8px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pp-listing-page .pp-spec dt {
  font-size: 11px;
  color: var(--pp-muted);
  font-weight: 400;
  margin: 0;
  text-transform: unset;
  letter-spacing: normal;
}

.pp-listing-page .pp-spec dd {
  font-size: 12px;
  font-weight: 600;
  color: var(--pp-ink);
  margin: 0;
  text-transform: unset;
  letter-spacing: normal;
}

.pp-listing-page .pp-fits {
  border: 1px solid var(--pp-line);
  border-radius: 8px;
  font-size: 12px;
}

.pp-listing-page .pp-fits summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  cursor: pointer;
  color: var(--pp-ink-2);
  min-width: 0;
}

.pp-listing-page .pp-fits summary::-webkit-details-marker {
  display: none;
}

.pp-listing-page .pp-fits .sm {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-listing-page .pp-fits summary b {
  color: var(--pp-ink);
}

.pp-listing-page .pp-fits .tg {
  flex: none;
  color: var(--pp-green-d);
  font-weight: 600;
  white-space: nowrap;
}

.pp-listing-page .pp-fits[open] .tg::after {
  content: ' ▴';
}

.pp-listing-page .pp-fits:not([open]) .tg::after {
  content: ' ▾';
}

.pp-listing-page .pp-fits.hit {
  border-color: var(--pp-green-100);
  background: var(--pp-green-50);
}

.pp-listing-page .pp-fits.hit summary {
  color: var(--pp-green-d);
}

.pp-listing-page .pp-fit-list {
  padding: 2px 9px 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
}

.pp-listing-page .pp-fit-row {
  display: flex;
  gap: 8px;
  margin: 0;
}

.pp-listing-page .pp-fit-row i {
  font-style: normal;
  color: var(--pp-muted);
  width: 74px;
  flex: none;
}

.pp-listing-page .pp-fit-row span {
  color: var(--pp-ink-2);
}

.pp-listing-page .pp-fit-flat {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}

.pp-listing-page .pp-fit-flat [data-m] {
  background: var(--pp-bg);
  border: 1px solid var(--pp-line);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--pp-ink-2);
  font-size: 11.5px;
}

.pp-listing-page .pp-fit-list [data-m].sel {
  background: var(--pp-green);
  border-color: var(--pp-green);
  color: #fff;
  border-radius: 4px;
  padding: 0 5px;
}

.pp-listing-page .pp-fit-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pp-ink);
  margin: 4px 0 0;
}

.pp-listing-page .pp-fit-brand:first-child {
  margin-top: 0;
}

.pp-listing-page .pp-price {
  border-top: 1px dashed var(--pp-line);
  padding-top: 10px;
  margin: auto 0 0;
}

.pp-listing-page .pp-price span {
  font-size: 11px;
  color: var(--pp-muted);
  display: block;
}

.pp-listing-page .pp-price b {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--pp-ink);
}

.pp-listing-page .pp-price s {
  color: var(--pp-muted);
  font-size: 13px;
  margin-left: 4px;
}

.pp-listing-page .pp-card .pp-btn {
  width: 100%;
}

.pp-listing-page .pp-empty {
  background: #fff;
  border: 1px dashed var(--pp-line);
  border-radius: var(--pp-r);
  padding: 40px;
  text-align: center;
  color: var(--pp-muted);
  margin-top: 16px;
}

/* ---------- Info sections (SEO/GEO) ---------- */
.pp-listing-page .pp-block {
  margin-top: 28px;
}

.pp-listing-page .pp-block > h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pp-ink);
  margin: 0;
}

.pp-listing-page .pp-block > .pp-lead {
  color: var(--pp-muted);
  margin: 2px 0 10px;
  font-size: 13px;
}

.pp-listing-page .pp-block > h2 + .pp-cfam,
.pp-listing-page .pp-block > h2 + .pp-qa {
  margin-top: 10px;
}

.pp-listing-page .pp-cfam,
.pp-listing-page .pp-qa {
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-r);
  margin-bottom: 8px;
}

.pp-listing-page .pp-cfam > summary,
.pp-listing-page .pp-qa > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
}

.pp-listing-page .pp-cfam > summary::-webkit-details-marker,
.pp-listing-page .pp-qa > summary::-webkit-details-marker {
  display: none;
}

.pp-listing-page .pp-cfam > summary h3,
.pp-listing-page .pp-qa > summary h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--pp-ink);
}

.pp-listing-page .pp-cfam > summary span {
  color: var(--pp-muted);
  font-size: 13px;
}

.pp-listing-page .pp-cfam > summary::after,
.pp-listing-page .pp-qa > summary::after {
  content: '+';
  margin-left: auto;
  font-size: 18px;
  color: var(--pp-muted);
  line-height: 1;
}

.pp-listing-page .pp-cfam[open] > summary::after,
.pp-listing-page .pp-qa[open] > summary::after {
  content: '–';
}

.pp-listing-page .pp-ctbl-w {
  overflow-x: auto;
  border-top: 1px solid var(--pp-line);
}

.pp-listing-page .pp-ctbl {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.pp-listing-page .pp-ctbl th,
.pp-listing-page .pp-ctbl td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--pp-line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
}

.pp-listing-page .pp-ctbl thead th {
  font-size: 12px;
  color: var(--pp-muted);
  font-weight: 600;
  background: var(--pp-bg);
}

.pp-listing-page .pp-ctbl tbody th {
  width: 240px;
  font-weight: 600;
  color: var(--pp-ink);
}

.pp-listing-page .pp-ctbl tbody th small {
  display: block;
  font-weight: 400;
  color: var(--pp-muted);
  font-size: 12px;
  margin-top: 2px;
}

.pp-listing-page .pp-ctbl td a {
  color: var(--pp-ink-2);
  text-decoration: underline;
  text-decoration-color: var(--pp-line);
  text-underline-offset: 3px;
}

.pp-listing-page .pp-ctbl td a:hover {
  color: var(--pp-green-d);
}

.pp-listing-page .pp-ctbl tr:last-child > * {
  border-bottom: 0;
}

.pp-listing-page .pp-c-go {
  width: 96px;
  text-align: right !important;
}

.pp-listing-page .pp-lnk {
  border: 0;
  background: none;
  color: var(--pp-green-d);
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 0;
}

.pp-listing-page .pp-qa p {
  padding: 0 16px 16px;
  margin: 0;
  color: var(--pp-ink-2);
  max-width: 760px;
}

.pp-listing-page .pp-integ {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-r);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.pp-listing-page .pp-integ h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--pp-ink);
}

.pp-listing-page .pp-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  flex: 1;
  margin: 0;
  padding: 0;
}

.pp-listing-page .pp-methods li {
  background: var(--pp-bg);
  border: 1px solid var(--pp-line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pp-ink-2);
  margin: 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .pp-listing-page {
    font-size: 15px;
  }

  .pp-listing-page .pp-wrap,
  .pp-listing-page .pp-hero-in,
  .pp-listing-page .pp-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pp-listing-page .pp-fbar .pp-count {
    display: none;
  }

  .pp-listing-page .pp-mcount {
    display: block;
    color: var(--pp-muted);
    font-size: 13px;
    margin-top: 10px;
  }

  .pp-listing-page .pp-hero-in {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .pp-listing-page h1 {
    font-size: 22px;
  }

  .pp-listing-page .pp-sub {
    font-size: 14px;
  }

  .pp-listing-page .pp-kpis {
    gap: 4px 12px;
    font-size: 12px;
    margin-top: 8px;
  }

  /* Filter row scrolls sideways — still one line */
  .pp-listing-page .pp-fbar {
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 10px 16px;
  }

  .pp-listing-page .pp-fbar::-webkit-scrollbar {
    display: none;
  }

  .pp-listing-page .pp-fbar .pp-right {
    margin-left: 0;
  }

  .pp-listing-page .pp-dd {
    position: static;
  }

  /* Filters open as a bottom sheet inside #ppSheetPortal (direct child of body) */
  .pp-sheet-portal {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: transparent;
    padding: 0;
    margin: 0;
  }

  body.pp-sheet-open .pp-sheet-portal {
    display: block;
  }

  .pp-listing-page .pp-fbar .pp-pop {
    display: none !important;
  }

  .pp-sheet-portal .pp-pop,
  .pp-sheet-portal .pp-pop.devpop {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    max-height: 82vh;
    border-radius: 16px 16px 0 0;
    border: 0;
    padding: 0 0 calc(12px + env(safe-area-inset-bottom));
    overflow: auto;
    background: #fff;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.25);
    display: block;
  }

  .pp-sheet-portal .pp-pop.devpop {
    display: flex;
    flex-direction: column;
  }

  .pp-sheet-portal .pp-sh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pp-line);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
  }

  .pp-sheet-portal .pp-sh b {
    font-size: 16px;
    color: var(--pp-ink);
  }

  .pp-sheet-portal .pp-sh button {
    border: 0;
    background: var(--pp-bg);
    color: var(--pp-ink);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .pp-sheet-portal .pp-sh-f {
    display: block;
    padding: 12px 16px 0;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 2;
  }

  .pp-sheet-portal .pp-sh-f .pp-btn {
    width: 100%;
    min-height: 46px;
    font-size: 15px;
  }

  .pp-sheet-portal .pp-pop .pp-opt,
  .pp-sheet-portal .pp-pop .pp-range {
    margin: 0 8px;
    width: calc(100% - 16px);
  }

  .pp-sheet-portal .pp-pop .pp-opt {
    padding: 12px 10px;
    font-size: 15px;
  }

  .pp-sheet-portal .pp-pop .pp-opt:first-of-type {
    margin-top: 8px;
  }

  .pp-sheet-portal .pp-pop-f {
    display: none;
  }

  .pp-sheet-portal .pp-range input {
    font-size: 16px;
    padding: 12px;
  }

  .pp-sheet-portal .pp-pop .pp-range {
    padding: 12px 0;
  }

  .pp-sheet-portal .pp-fams {
    display: flex;
    gap: 6px;
    border-right: 0;
    border-bottom: 1px solid var(--pp-line);
    overflow-x: auto;
    padding: 10px 16px;
    flex: none;
  }

  .pp-sheet-portal .pp-fam {
    width: auto;
    white-space: nowrap;
    padding: 8px 12px;
  }

  .pp-sheet-portal .pp-fam .n {
    margin-left: 6px;
  }

  .pp-sheet-portal .pp-models {
    max-height: none;
    overflow: visible;
    padding: 12px 16px;
  }

  .pp-sheet-portal .pp-mchip {
    padding: 8px 12px;
    font-size: 13px;
  }

  .pp-sheet-portal .pp-ser-h button {
    padding: 6px 0;
  }

  body.pp-sheet-open {
    overflow: hidden;
  }

  body.pp-sheet-open .pp-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 99998;
  }

  /* 2-column grid */
  .pp-listing-page .pp-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .pp-listing-page .pp-thumb img {
    padding: 8px;
  }

  .pp-listing-page .pp-card:hover .pp-thumb img {
    transform: none;
  }

  .pp-listing-page .pp-body {
    padding: 10px;
    gap: 7px;
  }

  .pp-listing-page .pp-cat-l {
    font-size: 10px;
  }

  .pp-listing-page .pp-name {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pp-listing-page .pp-fits {
    font-size: 11.5px;
  }

  .pp-listing-page .pp-fits summary {
    padding: 6px 7px;
    gap: 4px;
  }

  .pp-listing-page .pp-fits[open] .tg::after {
    content: '▴';
    margin-left: 2px;
  }

  .pp-listing-page .pp-fits:not([open]) .tg::after {
    content: '▾';
    margin-left: 2px;
  }

  .pp-listing-page .pp-fits .tg .w {
    display: none;
  }

  .pp-listing-page .pp-fit-list {
    padding: 2px 8px 8px;
    max-height: 200px;
  }

  .pp-listing-page .pp-fit-row {
    flex-direction: column;
    gap: 0;
  }

  .pp-listing-page .pp-fit-row i {
    width: auto;
    font-size: 11px;
  }

  .pp-listing-page .pp-specs {
    display: block;
    font-size: 12px;
    color: var(--pp-ink-2);
  }

  .pp-listing-page .pp-spec {
    display: inline;
    background: none;
    padding: 0;
  }

  .pp-listing-page .pp-spec dt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .pp-listing-page .pp-spec dd {
    display: inline;
    font-size: 12px;
    font-weight: 500;
  }

  .pp-listing-page .pp-spec + .pp-spec dd::before {
    content: ' · ';
    color: var(--pp-muted);
  }

  .pp-listing-page .pp-price {
    padding-top: 8px;
  }

  .pp-listing-page .pp-price span {
    font-size: 10px;
  }

  .pp-listing-page .pp-price b {
    font-size: 19px;
  }

  .pp-listing-page .pp-price s {
    font-size: 12px;
  }

  .pp-listing-page .pp-card .pp-btn {
    min-height: 38px;
    font-size: 14px;
    padding: 8px;
  }

  .pp-listing-page .pp-ctbl thead {
    display: none;
  }

  .pp-listing-page .pp-ctbl,
  .pp-listing-page .pp-ctbl tbody,
  .pp-listing-page .pp-ctbl tr,
  .pp-listing-page .pp-ctbl th,
  .pp-listing-page .pp-ctbl td {
    display: block;
    width: auto;
  }

  .pp-listing-page .pp-ctbl tr {
    padding: 12px 16px;
    border-bottom: 1px solid var(--pp-line);
  }

  .pp-listing-page .pp-ctbl tbody th,
  .pp-listing-page .pp-ctbl td {
    padding: 0;
    border: 0;
  }

  .pp-listing-page .pp-ctbl tbody th {
    width: auto;
  }

  .pp-listing-page .pp-ctbl td {
    margin-top: 6px;
  }

  .pp-listing-page .pp-c-go {
    text-align: left !important;
  }
}

@media (max-width: 375px) {
  .pp-listing-page .pp-wrap,
  .pp-listing-page .pp-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .pp-listing-page .pp-fbar {
    margin: 0 -12px;
    padding: 10px 12px;
  }

  .pp-listing-page .pp-grid {
    gap: 8px;
  }

  .pp-listing-page .pp-body {
    padding: 9px 8px;
  }

  .pp-listing-page .pp-fits {
    font-size: 11px;
  }

  .pp-listing-page .pp-fits summary {
    padding: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-listing-page * {
    transition: none !important;
  }
}
