/* Product page (UI polish §4.3): facts box, tab-free sections, fitment table, help box.
 * Tokens come from the core stylesheet (assets/css/stp-core.css). */

/* ---- Facts box (beside the gallery) ---- */
.stp-facts { border: 1px solid var(--stp-line); border-radius: var(--stp-r); overflow: hidden; background: #fff; margin: 0 0 6px; }
.stp-facts-dl { margin: 0; }
.stp-facts .stp-row { display: grid; grid-template-columns: 170px 1fr; border-bottom: 1px solid var(--stp-line); }
.stp-facts .stp-label, .stp-facts .stp-value { margin: 0; padding: 10px 16px; font-size: 14.5px; line-height: 1.45; }
.stp-facts .stp-label { color: var(--stp-ink-3); }
.stp-facts .stp-value { color: var(--stp-ink); font-weight: 600; }
.stp-facts .stp-row--notes .stp-label, .stp-facts .stp-row--notes .stp-value { background: #fffbe6; }
.stp-facts .stp-row--notes .stp-label { color: #6b5500; }
.stp-facts .stp-oem .stp-value { word-break: break-word; }
.stp-compat { padding: 14px 16px; }
.stp-facts-dl:last-child .stp-row:last-child { border-bottom: 0; }
.stp-compat-h { font-size: 13px; font-weight: 600; color: var(--stp-ink-3); margin: 0 0 8px; }
/* Two newspaper-style columns (not a grid): a grid row is as tall as its tallest item, so a two-line
 * entry left a gap under its one-line neighbour (Matt, 2026-10-01). Reads down, then across. */
.stp-compat-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; }
.stp-compat-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 600; margin: 0 0 6px; break-inside: avoid; }
.stp-check { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.stp-compat-all { display: inline-block; margin-top: 10px; color: var(--stp-ink); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.stp-compat-all:hover { color: var(--stp-ink); text-decoration-thickness: 2px; }

/* Breadcrumb + quiet SKU/category line */
.single-product .summary .ct-breadcrumbs { font-size: 13px; color: var(--stp-ink-3); text-transform: none; letter-spacing: 0; }
.single-product .summary .ct-breadcrumbs a { color: var(--stp-ink-3); }
.single-product .summary .ct-breadcrumbs a:hover { color: var(--stp-ink); }
.single-product .summary .product_meta { font-size: 13px; color: var(--stp-ink-3); text-transform: none; letter-spacing: 0; }
.single-product .summary .product_meta > span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.single-product .summary .product_meta a { color: var(--stp-ink-3); text-transform: none; }

/* ---- Help box (§4.3): under the gallery ≥1000px, after the buy area below that ---- */
.stp-help { background: #fff; border: 1px solid var(--stp-line); border-radius: var(--stp-r); box-shadow: var(--stp-shadow); padding: 18px 20px; margin-top: 18px; }
.stp-help .stp-status { margin-bottom: 6px; }
.stp-help-h { font-size: 16px; font-weight: 700; margin: 0; text-transform: none; letter-spacing: 0; color: var(--stp-ink); }
.stp-help p { margin: 4px 0 14px; color: var(--stp-ink-2); font-size: 14px; line-height: 1.5; }
.stp-help-acts { display: flex; gap: 8px; }
.stp-help-acts .stp-btn { flex: 1; height: 42px; font-size: 14px; padding: 0 12px; }
.stp-help-acts .stp-btn--full { flex: 1 1 100%; }
.stp-help--summary { display: none; }
@media (max-width: 999.98px) {
  .stp-help--gallery { display: none; }
  .stp-help--summary { display: block; margin: 18px 0 8px; }
}

/* ---- Sections (one scroll, no tabs) ---- */
.stp-pp-sections { clear: both; }
.stp-pp-sec { border-top: 1px solid var(--stp-line); padding: 40px 0 0; margin: 48px 0 0; }
.stp-pp-sec h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin: 0; text-transform: none; color: var(--stp-ink); }
.stp-pp-lead { color: var(--stp-ink-2); font-size: 15px; line-height: 1.55; margin: 6px 0 18px; max-width: 760px; }
.stp-pp-k { font-weight: 700; color: var(--stp-ink); margin: 0 0 6px; }
.stp-about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.stp-notebox { border: 1px solid #f1dc7a; background: #fffbe6; border-radius: var(--stp-r); padding: 14px 16px; margin-bottom: 18px; }
.stp-notebox-k { font-size: 13px; font-weight: 700; color: #6b5500; margin-bottom: 4px; }
.stp-notebox p { margin: 0; font-size: 16px; font-weight: 600; color: var(--stp-ink); }
.stp-spec { display: grid; grid-template-columns: 170px 1fr; border-top: 1px solid var(--stp-line); font-size: 15px; margin: 0; }
.stp-spec dt, .stp-spec dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--stp-line); }
.stp-spec dt { color: var(--stp-ink-3); }
.stp-spec dd { font-weight: 600; color: var(--stp-ink); word-break: break-word; }
.stp-pp-prose { font-size: 15.5px; line-height: 1.65; color: var(--stp-ink-2); }
.stp-pp-prose p { margin: 0 0 12px; }
.stp-pp-prose h3 { font-size: 16px; font-weight: 700; margin: 16px 0 6px; text-transform: none; letter-spacing: 0; }

/* Fitment */
.stp-fitcall { display: flex; gap: 12px; align-items: flex-start; background: var(--stp-wash); border-radius: var(--stp-r); padding: 14px 16px; margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; color: var(--stp-ink-2); }
.stp-fitcall b { color: var(--stp-ink); }
.stp-fitcall .stp-i { width: 18px; height: 18px; margin-top: 2px; color: var(--stp-ink-2); }
.stp-ft { border: 1px solid var(--stp-line); border-radius: var(--stp-r); overflow: hidden; }
.stp-ft table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; border: 0; }
.stp-ft th { text-align: left; font-size: 13px; font-weight: 600; color: var(--stp-ink-3); background: #fafaf8; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--stp-line); text-transform: none; letter-spacing: 0; }
.stp-ft td { padding: 12px 14px; vertical-align: top; border: 0; border-bottom: 1px solid var(--stp-line); }
.stp-ft tbody tr:last-child td { border-bottom: 0; }
.stp-ft th.stp-ft-veh { width: 36%; }
.stp-ft th.stp-ft-yrs { width: 16%; }
.stp-ft td.stp-ft-veh { font-weight: 700; color: var(--stp-ink); }
.stp-ft td.stp-ft-yrs { font-weight: 700; white-space: nowrap; color: var(--stp-ink); }
.stp-ft td.stp-ft-nts { color: var(--stp-ink-2); }
.stp-ft tr.stp-ft-grp td { background: #fafaf8; font-size: 12.5px; font-weight: 700; color: var(--stp-ink-2); padding: 8px 14px; }
.stp-ft-more { display: none; }
.stp-fitment-notes { margin-top: 18px; font-size: 15px; color: var(--stp-ink-2); }
.stp-fitment-notes p { margin: 0 0 6px; }

/* Crawlable per-year list (kept for SEO + vehicle-page links) */
.stp-fits { margin-top: 18px; }
.stp-fits-list { font-size: 14px; line-height: 1.7; color: var(--stp-ink-2); margin: 0; }
.stp-fits-list strong { color: var(--stp-ink); }
.stp-fits-item + .stp-fits-item::before { content: "· "; color: var(--stp-ink-3); }
.stp-fits-note { font-style: normal; color: var(--stp-ink-3); }
.stp-fits-extra { display: none; }
.stp-fits.stp-show-all .stp-fits-extra { display: inline; }
.stp-fits-more, .stp-fits-less { background: none; border: 0; padding: 0 0 0 6px; cursor: pointer; font: inherit; font-weight: 600; color: var(--stp-ink); text-decoration: underline; min-height: 0; }
.stp-fits-less { display: none; }
.stp-fits.stp-show-all .stp-fits-more { display: none; }
.stp-fits.stp-show-all .stp-fits-less { display: inline; }

/* Shipping and pickup */
.stp-ship { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.stp-ship--one { grid-template-columns: minmax(0, 560px); }
.stp-ship-card { border: 1px solid var(--stp-line); border-radius: var(--stp-r); padding: 18px 20px; background: #fff; }
.stp-ship-card .stp-i { width: 22px; height: 22px; stroke-width: 1.8; color: var(--stp-ink); }
.stp-ship-card h3 { margin: 8px 0 4px; font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.stp-ship-card p { margin: 0; color: var(--stp-ink-2); font-size: 14.5px; line-height: 1.55; }
.stp-ship-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--stp-ink); text-decoration: underline; }

@media (max-width: 767.98px) {
  .stp-facts .stp-row { grid-template-columns: 120px 1fr; }
  .stp-compat-list { columns: 1; }
  .stp-pp-sec { padding-top: 28px; margin-top: 32px; }
  .stp-pp-sec h2 { font-size: 20px; }
  .stp-about-grid { grid-template-columns: 1fr; gap: 20px; }
  .stp-spec { grid-template-columns: 130px 1fr; font-size: 14.5px; }
  .stp-ship { grid-template-columns: 1fr; }
  /* Fitment table → stacked rows: vehicle + years on one line, notes below; first 3 shown. */
  .stp-ft table, .stp-ft tbody { display: block; }
  .stp-ft thead { display: none; }
  .stp-ft tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; border-bottom: 1px solid var(--stp-line); padding: 12px; }
  .stp-ft tr.stp-ft-grp { display: block; padding: 8px 12px; background: #fafaf8; }
  .stp-ft tr.stp-ft-grp td { padding: 0; }
  .stp-ft td { display: block; padding: 0; border: 0; }
  .stp-ft td.stp-ft-veh, .stp-ft td.stp-ft-yrs { font-size: 14.5px; }
  .stp-ft td.stp-ft-nts { grid-column: 1 / -1; margin-top: 6px; font-size: 13.5px; }
  .stp-ft td.stp-ft-nts:empty { display: none; }
  .stp-ft tr.stp-ft-extra { display: none; }
  .stp-ft.stp-show-all tr.stp-ft-extra { display: grid; }
  .stp-ft.stp-show-all tr.stp-ft-grp.stp-ft-extra { display: block; }
  .stp-ft-more { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-top: 1px solid var(--stp-line); padding: 10px 12px; font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: underline; color: var(--stp-ink); cursor: pointer; min-height: 0; }
}

/* Fits-phrase links (plan 4) */
.stp-fits-item a { color: inherit; text-decoration: underline; text-decoration-color: rgba(0,0,0,.35); text-underline-offset: 2px; }
.stp-fits-item a:hover, .stp-fits-item a:focus-visible { text-decoration-color: currentColor; }

/* ---- Fulfillment badge (product cards + single product page) ---- */
/* Icon + gray text, not a colored pill (UI polish §3). The icon is a mask so it
 * takes the text color. */
.stp-fulfil {
  display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 2px;
  font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--stp-ink-3);
}
.stp-fulfil::before {
  content: ""; flex: none; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: var(--stp-ico) center / contain no-repeat; mask: var(--stp-ico) center / contain no-repeat;
}
.stp-fulfil-ship {
  --stp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M2 6.5h11.5V16H2zM13.5 9.5h4.2l2.8 3v3.5h-7'/%3E%3Ccircle cx='6.2' cy='17.6' r='1.9'/%3E%3Ccircle cx='16.8' cy='17.6' r='1.9'/%3E%3C/svg%3E");
}
.stp-fulfil-pickup {
  --stp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11A6.5 6.5 0 0118.5 10c0 5.4-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E");
}
/* Single product page: badge sits to the RIGHT of the price with padding. */
.entry-summary .price { display: inline-block; vertical-align: middle; margin-right: 0; }
.stp-fulfil-single { font-size: 13px; margin: 0 0 0 16px; vertical-align: middle; }

/* Sold-part recovery notice (out-of-stock product pages) */
.stp-sold-notice { border: 1px solid #f0c2c2; border-radius: var(--stp-r); padding: 14px 16px; margin: 0 0 16px; background: #fdf5f5; }
.stp-sold-notice__title { font-size: 1.15em; font-weight: 700; color: #b32d2e; margin: 0 0 6px; }
.stp-sold-notice__body { margin: 0 0 10px; }
.stp-sold-notice__actions { margin: 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.stp-sold-notice__browse { text-decoration: underline; }
body.single-product .entry-summary .product_meta > span,
body.single-product .entry-summary .product_meta > span * { text-transform: none; letter-spacing: 0; }
/* Phones: Blocksy's summary divider already sits right above the first section. */
@media (max-width: 999.98px) { .stp-pp-sections > .stp-pp-sec:first-child { border-top: 0; margin-top: 8px; padding-top: 16px; } }
