/* Part page layout (visual refresh Plan B; mockup docs/design/2026-10-05-visual-refresh/v3/part.html, layout 2).
 * Loaded only on single product pages while site-shell is on. Lays out components from stp-ui.css; every color,
 * radius and shadow is a token. Scoped under body.stp-pd so Blocksy's own product styles lose. */

.stp-pd .stp-card { background: var(--stp-surface); border: 1px solid var(--stp-line); border-radius: var(--stp-r-lg);
  box-shadow: var(--stp-shadow); }

/* page frame: breadcrumb, then photos 7 / buying 5 */
.stp-pd .stp-pd-crumbs { margin: 20px 0 20px; }
.stp-pd .stp-pd-crumbs .ct-breadcrumbs { font-size: 13px; color: var(--stp-muted); }
.stp-pd .stp-pd-crumbs .ct-breadcrumbs a { color: var(--stp-muted); }
.stp-pd .stp-pd-crumbs .ct-breadcrumbs .last-item { color: var(--stp-ink-2); }
.stp-pd .product-entry-wrapper { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 32px;
  align-items: start; }
.stp-pd .product-entry-wrapper > * { min-width: 0; width: auto; max-width: none; margin: 0; }
.stp-pd .woocommerce-product-gallery { position: sticky; top: 20px; }

/* gallery (Blocksy's slider, styled): rounded photo, counter, 5 thumbnails with "+N" on the last */
.stp-pd .ct-product-gallery-container, .stp-pd .woocommerce-product-gallery .flexy { position: relative; }
.stp-pd .woocommerce-product-gallery .flexy-view { border-radius: var(--stp-r-lg); overflow: hidden;
  background: var(--stp-surface-2); box-shadow: var(--stp-shadow); }
.stp-pd .woocommerce-product-gallery .flexy-item img { aspect-ratio: 4/3 !important; object-fit: cover; width: 100%; }
.stp-pd .woocommerce-product-gallery__trigger { top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 10px;
  background: var(--stp-surface); opacity: .94; }
.stp-pd .stp-g-count { position: absolute; left: 14px; z-index: 3; padding: 4px 10px; border-radius: var(--stp-r-pill);
  background: var(--stp-backdrop); color: var(--stp-on-dark); font-size: 12px; font-weight: 600; pointer-events: none; bottom: 14px; }
.stp-pd .flexy-pills[data-type="thumbs"] { margin-top: 12px; }
.stp-pd .flexy-pills[data-type="thumbs"] ol { margin: 0 !important; padding: 0 !important; display: grid !important; grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 10px; transform: none !important; width: auto !important; }
.stp-pd .flexy-pills[data-type="thumbs"] li { width: auto !important; margin: 0 !important; position: relative;
  border-radius: var(--stp-r); overflow: hidden; cursor: pointer; opacity: 1 !important; border: 0 !important; }
.stp-pd .flexy-pills[data-type="thumbs"] li.active::before { content: ""; position: absolute; inset: 0; z-index: 2;
  border: 2px solid var(--stp-ink); border-radius: var(--stp-r); pointer-events: none; }
.stp-pd .flexy-pills[data-type="thumbs"] li:nth-child(n+6) { display: none; }
.stp-pd .flexy-pills[data-type="thumbs"] li img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.stp-pd .flexy-pills[data-type="thumbs"] li[data-stp-more]::after { content: attr(data-stp-more); position: absolute; inset: 0;
  display: grid; place-items: center; background: var(--stp-backdrop); color: var(--stp-on-dark); font-size: 17px; font-weight: 700; }
.stp-pd .flexy-pills[data-type="thumbs"] .flexy-arrow-prev, .stp-pd .flexy-pills[data-type="thumbs"] .flexy-arrow-next { display: none; }
.stp-pd .stp-g-dots { display: none; position: absolute; left: 50%; transform: translateX(-50%); z-index: 3; gap: 5px; pointer-events: none; bottom: 16px; }
.stp-pd .stp-g-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--stp-on-dark-2); }
.stp-pd .stp-g-dots i.is-on { background: var(--stp-on-dark); width: 16px; border-radius: 3px; }

/* summary column = two cards */
.stp-pd .entry-summary { display: flex; flex-direction: column; gap: 16px; padding: 0; background: none; }
.stp-pd .stp-pd-buy { padding: 28px; container: buy / inline-size; }
.stp-pd .stp-pd-buy .product_title { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 750; letter-spacing: -.022em; color: var(--stp-ink); }
.stp-pd .stp-pd-sub { margin: 8px 0 0; color: var(--stp-muted); font-size: 15px; }
.stp-pd .stp-pd-buy .stp-sold { margin: 16px 0 0; }
.stp-pd .stp-pd-price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 22px 0 16px; }
.stp-pd .stp-pd-price .price { margin: 0; font-size: 32px; font-weight: 750; color: var(--stp-ink); letter-spacing: -.02em; line-height: 1;
  font-variant-numeric: tabular-nums; }
.stp-pd .stp-pd-price .stp-pd-cfp { font-size: 24px; }
.stp-pd .stp-pd-stock { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--stp-ok-text); }
.stp-pd .stp-pd-stock .stp-dot { background: var(--stp-ok); }
.stp-pd .stp-pd-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px;
  border-radius: var(--stp-r-pill); background: var(--stp-surface-2); border: 1px solid var(--stp-line); font-size: 13px;
  font-weight: 550; color: var(--stp-ink-2); }
.stp-pd .stp-pd-pill .stp-ico { width: 15px; height: 15px; }
.stp-pd .stp-pd-ready { margin: -6px 0 14px; font-size: 13.5px; color: var(--stp-muted); }

/* fit row (C11) */
.stp-pd .stp-fit { margin: 0 0 14px; }
.stp-pd .stp-fit-s { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: var(--stp-r);
  border: 1px solid var(--stp-line); background: var(--stp-surface-2); }
.stp-pd .stp-fit-s[hidden] { display: none; }
.stp-pd .stp-fit-s > .stp-ico { width: 22px; height: 22px; color: var(--stp-ink); }
.stp-pd .stp-fit-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13px; line-height: 1.45; color: var(--stp-muted); }
.stp-pd .stp-fit-txt b { font-size: 14.5px; color: var(--stp-ink); }
.stp-pd .stp-fit-btn { flex: none; height: 34px; padding: 0 14px; border-radius: var(--stp-r-pill); border: 0; background: var(--stp-ink);
  color: var(--stp-on-dark); font: 650 13.5px/1 var(--stp-font); cursor: pointer; }
.stp-pd .stp-fit-link { flex: none; align-self: flex-start; padding: 0; border: 0; border-bottom: 1.5px solid var(--stp-yellow);
  background: none; font: 650 13.5px/1.4 var(--stp-font); color: var(--stp-ink); cursor: pointer; }
.stp-pd .stp-fit-yes { background: var(--stp-ok-soft); border-color: var(--stp-ok-line); }
.stp-pd .stp-fit-yes > .stp-ico { color: var(--stp-ok); }
.stp-pd .stp-fit-no { background: var(--stp-brand-soft); border-color: var(--stp-brand-line); }
.stp-pd .stp-fit-no > .stp-ico { color: var(--stp-brand-text); }

/* Add to cart (Blocksy's form, full width) */
.stp-pd .stp-pd-buy .ct-product-add-to-cart { margin: 0; }
.stp-pd .stp-pd-buy .ct-product-add-to-cart > p.stock.in-stock { display: none; }
.stp-pd .stp-pd-buy form.cart { margin: 0; }
.stp-pd .stp-pd-buy .ct-cart-actions { display: block; width: 100%; }
.stp-pd .stp-pd-buy .single_add_to_cart_button { width: 100% !important; height: 52px; margin: 0 !important; border-radius: var(--stp-r);
  background: var(--stp-yellow); color: var(--stp-ink); font: 700 16px/1 var(--stp-font); box-shadow: var(--stp-shadow-press); }
.stp-pd .stp-pd-buy .single_add_to_cart_button:hover { background: var(--stp-yellow-dark); color: var(--stp-ink); }

/* contact pair (C9) */
.stp-pd .stp-reach { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--stp-line); }
.stp-pd .stp-reach-h { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--stp-muted); }
.stp-pd .stp-reach-h b { color: var(--stp-ink); font-weight: 650; }
.stp-pd .stp-reach-h .stp-dot { margin-right: 7px; vertical-align: 1px; }
.stp-pd .stp-reach-btns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.stp-pd .stp-rb { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 14px;
  border-radius: var(--stp-r); border: 1px solid var(--stp-line-strong); background: var(--stp-surface); color: var(--stp-ink-2);
  font: 600 15px/1 var(--stp-font); white-space: nowrap; text-decoration: none; transition: border-color .15s, color .15s; }
.stp-pd .stp-rb:hover { border-color: var(--stp-ink); color: var(--stp-ink); }
.stp-pd .stp-rb--main { border: 1.5px solid var(--stp-ink); color: var(--stp-ink); font-weight: 700; }
.stp-pd .stp-rb--off, .stp-pd .stp-rb--off:hover { background: var(--stp-surface-2); border: 1px dashed var(--stp-line-strong);
  color: var(--stp-disabled-ink); cursor: not-allowed; }
.stp-pd .stp-rb .stp-post { font-variant-numeric: tabular-nums; }

/* details card: Part details → Part notes → Fits */
.stp-pd .stp-pd-glance { padding: 24px 28px; }
.stp-pd .stp-pd-label { margin-bottom: 2px; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--stp-muted); }
.stp-pd .stp-pd-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 20px; margin: 0; }
.stp-pd .stp-pd-facts div { padding: 12px 0; border-bottom: 1px solid var(--stp-line); }
.stp-pd .stp-pd-facts div.is-wide { grid-column: 1 / -1; }
.stp-pd .stp-pd-facts div.is-wide dd { overflow-wrap: normal; word-break: normal; }
.stp-pd .stp-pd-facts dt { font-size: 12.5px; color: var(--stp-muted); }
.stp-pd .stp-pd-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--stp-ink); font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere; }
.stp-pd .stp-link { display: inline-flex; align-items: center; gap: 3px; margin-top: 12px; font-size: 14px; font-weight: 650;
  color: var(--stp-ink); text-decoration: none; border-bottom: 1.5px solid var(--stp-yellow); }
.stp-pd .stp-ico--sm { width: 14px; height: 14px; }
.stp-pd .stp-notes { margin: 18px 0 22px; border-radius: var(--stp-r); background: var(--stp-brand-soft); border: 1px solid var(--stp-brand-line); overflow: hidden; }
.stp-pd .stp-notes-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--stp-brand-mid);
  border-bottom: 1px solid var(--stp-brand-line); }
.stp-pd .stp-notes-head .stp-ico { width: 17px; height: 17px; color: var(--stp-brand-text); }
.stp-pd .stp-notes-head b { font-size: 14px; color: var(--stp-ink); }
.stp-pd .stp-notes-head span { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--stp-brand-text); }
.stp-pd .stp-notes dl { margin: 0; padding: 4px 14px; }
.stp-pd .stp-notes dl > div { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 12px; padding: 9px 0; border-top: 1px dashed var(--stp-brand-line); }
.stp-pd .stp-notes dl > div:first-child { border-top: 0; }
.stp-pd .stp-notes dt { font-size: 12.5px; font-weight: 650; color: var(--stp-brand-text); padding-top: 1px; }
.stp-pd .stp-notes dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--stp-ink); line-height: 1.45; }
.stp-pd .stp-pd-glance .stp-link--details { margin-top: 0; }
.stp-pd .stp-pd-glance .stp-pd-facts + .stp-link--details { margin-top: 14px; }
.stp-pd .stp-pd-glance .stp-link + .stp-pd-fits { margin-top: 22px; }
.stp-pd .stp-pd-fits .stp-pd-label { margin-bottom: 10px; }
.stp-pd .stp-pd-fits ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.stp-pd .stp-pd-fits li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--stp-muted); }
.stp-pd .stp-pd-fits li .stp-ico { width: 18px; height: 18px; margin-top: 1px; color: var(--stp-ok); }
.stp-pd .stp-pd-fits li b { color: var(--stp-ink); font-weight: 650; }

/* tab card (C18): all panels stacked without JS; .is-tabbed (site-shell.js) shows one */
.stp-pd .stp-pd-tabs { margin-top: var(--stp-sec); padding: 28px 36px 36px; }
.stp-pd .stp-tabbar { display: none; gap: 6px; margin: 0 0 26px; padding: 6px; width: max-content; max-width: 100%;
  background: var(--stp-surface-2); border: 1px solid var(--stp-line); border-radius: var(--stp-r); }
.stp-pd .stp-pd-tabs.is-tabbed .stp-tabbar { display: flex; }
.stp-pd .stp-tabbar a { display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border-radius: var(--stp-r-sm);
  font-size: 14px; font-weight: 600; color: var(--stp-muted); text-decoration: none; white-space: nowrap; }
.stp-pd .stp-tabbar a[aria-selected="true"] { background: var(--stp-ink); color: var(--stp-on-dark); }
.stp-pd .stp-tabbar .stp-sm { display: none; }
.stp-pd .stp-pd-tabs .stp-pp-sec { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.stp-pd .stp-pd-tabs .stp-pp-sec + .stp-pp-sec { margin-top: 40px; }
.stp-pd .stp-pd-tabs.is-tabbed .stp-pp-sec { display: none; margin-top: 0; }
.stp-pd .stp-pd-tabs.is-tabbed .stp-pp-sec.is-on { display: block; }
.stp-pd .stp-pd-tabs.is-tabbed .stp-pd-details.is-on { display: grid; }
.stp-pd .stp-pd-tabs.is-tabbed .stp-pp-sec > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stp-pd .stp-pp-sec > h2 { margin: 0 0 14px; font-size: 22px; font-weight: 720; letter-spacing: -.015em; color: var(--stp-ink); }
.stp-pd .stp-pp-lead { margin: 0 0 18px; color: var(--stp-muted); font-size: 15px; }

/* fitment panel */
.stp-pd .stp-fitcall { display: flex; gap: 12px; margin: 0 0 18px; padding: 14px 16px; border-radius: var(--stp-r); background: var(--stp-brand-soft);
  border: 1px solid var(--stp-brand-line); font-size: 14px; line-height: 1.5; color: var(--stp-ink-2); }
.stp-pd .stp-fitcall .stp-i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--stp-brand-text); }
.stp-pd .stp-fitcall b { color: var(--stp-ink); }
.stp-pd .stp-ft table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--stp-line);
  border-radius: var(--stp-r); overflow: hidden; font-size: 14.5px; }
.stp-pd .stp-ft th { text-align: left; padding: 11px 18px; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--stp-muted); background: var(--stp-surface-2); border: 0; border-bottom: 1px solid var(--stp-line); }
.stp-pd .stp-ft th.stp-ft-veh { width: 28%; } .stp-pd .stp-ft th.stp-ft-yrs { width: 14%; }
.stp-pd .stp-ft td { padding: 14px 18px; border: 0; border-bottom: 1px solid var(--stp-line); vertical-align: top; color: var(--stp-ink-2); background: none; }
.stp-pd .stp-ft tr:last-child td { border-bottom: 0; }
.stp-pd .stp-ft td.stp-ft-veh { color: var(--stp-ink); font-weight: 650; }
.stp-pd .stp-ft td.stp-ft-yrs { color: var(--stp-ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stp-pd .stp-ft .stp-ft-grp td { padding: 9px 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--stp-muted); background: var(--stp-surface-2); }
.stp-pd .stp-ft tr.is-mine td { background: var(--stp-ok-soft); }
.stp-pd .stp-ft-mine { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: var(--stp-r-pill); background: var(--stp-ok-soft);
  border: 1px solid var(--stp-ok-line); color: var(--stp-ok-text); font-size: 11.5px; font-weight: 650; vertical-align: 1px; }
.stp-pd .stp-ft-more { margin-top: 12px; }
.stp-pd .stp-fits { margin-top: 16px; }
.stp-pd .stp-fits-list { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0; font-size: 13.5px; color: var(--stp-muted); }
.stp-pd .stp-fits-list strong { color: var(--stp-ink-2); margin-right: 2px; }
.stp-pd .stp-fits-item a { display: inline-block; padding: 3px 10px; border-radius: var(--stp-r-pill); background: var(--stp-surface-2);
  border: 1px solid var(--stp-line); color: var(--stp-ink-2); font-weight: 550; text-decoration: none; }
.stp-pd .stp-fitment-notes { margin-top: 18px; }

/* details panel */
.stp-pd .stp-pd-details { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 48px; }
.stp-pd .stp-pd-tabs.is-tabbed .stp-pd-details > div > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stp-pd .stp-pd-details > div > h2 { margin: 0 0 14px; font-size: 22px; font-weight: 720; color: var(--stp-ink); }
.stp-pd .stp-pd-lede { margin: 0 0 10px; color: var(--stp-ink); font-size: 16px; }
.stp-pd .stp-pd-details p { font-size: 15px; line-height: 1.65; }
.stp-pd .stp-pd-minor { margin: 20px 0 6px; font-size: 14px; font-weight: 650; color: var(--stp-ink); }
.stp-pd .stp-pd-spec { margin: 0; border-top: 1px solid var(--stp-line); }
.stp-pd .stp-pd-spec div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--stp-line); font-size: 14.5px; }
.stp-pd .stp-pd-spec dt { color: var(--stp-muted); flex: none; }
.stp-pd .stp-pd-spec dd { margin: 0; color: var(--stp-ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.stp-pd .stp-pd-spec a { color: var(--stp-ink); text-decoration: none; border-bottom: 1.5px solid var(--stp-yellow); }

/* shipping panel: today's cards, restyled */
.stp-pd .stp-ship { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.stp-pd .stp-ship--one { grid-template-columns: minmax(0,1fr); }
.stp-pd .stp-ship-card { padding: 18px 20px; border: 1px solid var(--stp-line); border-radius: var(--stp-r); background: var(--stp-surface-2); }
.stp-pd .stp-ship-card h3 { margin: 6px 0 4px; font-size: 15.5px; color: var(--stp-ink); }
.stp-pd .stp-ship-card p { margin: 0; font-size: 14px; color: var(--stp-muted); }
.stp-pd .stp-ship-card .stp-i { width: 22px; height: 22px; color: var(--stp-ink); }
.stp-pd .stp-ship-link { display: inline-flex; margin-top: 10px; font-size: 14px; font-weight: 650; color: var(--stp-ink); text-decoration: none;
  border-bottom: 1.5px solid var(--stp-yellow); }

/* related parts (C12) */
.stp-pd .related.products { margin-top: var(--stp-sec); }
.stp-pd .related.products > h2 { margin-bottom: 18px; font-size: 22px; font-weight: 720; letter-spacing: -.015em; color: var(--stp-ink); }

/* phone sticky buy bar (C21) — site-shell.js un-hides it when the main Add to cart is off-screen */
.stp-mbar { display: none; }
@media (max-width: 900px) {
  .stp-mbar:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; align-items: center; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--stp-surface); border-top: 1px solid var(--stp-line);
    box-shadow: var(--stp-shadow); }
  .stp-mbar-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  .stp-mbar-txt b { font-size: 18px; color: var(--stp-ink); font-variant-numeric: tabular-nums; }
  .stp-mbar-txt span { font-size: 12px; color: var(--stp-muted); white-space: nowrap; }
  .stp-mbar-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; margin-left: auto; border-radius: var(--stp-r);
    border: 1px solid var(--stp-line-strong); background: var(--stp-surface); color: var(--stp-ink); }
  .stp-mbar .stp-btn--primary { flex: 1; max-width: 220px; height: 48px; }
  .stp-pd.stp-mbar-on { padding-bottom: 76px; }
}

/* ---------- widths ---------- */
@media (max-width: 1100px) { .stp-pd .product-entry-wrapper { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; } }
@media (max-width: 900px) and (min-width: 601px) { .stp-pd .woocommerce-product-gallery { top: calc(var(--stp-hdr-pin, 0px) + 12px); } }
@container buy (max-width: 440px) {
  .stp-pd .stp-pd-pill { margin-left: 0; }
  .stp-pd .stp-fit-yes, .stp-pd .stp-fit-no { flex-wrap: wrap; }
}
@container buy (max-width: 350px) {
  .stp-pd .stp-fit-none > .stp-ico { display: none; }
  .stp-pd .stp-fit-btn { height: 32px; padding: 0 12px; font-size: 13px; }
  .stp-pd .stp-rb { font-size: 14.5px; padding: 0 10px; }
}
@media (max-width: 760px) {
  .stp-pd .stp-pd-crumbs { margin: 12px 0 12px; }
  .stp-pd .stp-pd-crumbs .ct-breadcrumbs { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stp-pd .stp-pd-buy { padding: 20px; }
  .stp-pd .stp-pd-buy .product_title { font-size: 25px; }
  .stp-pd .stp-pd-price .price { font-size: 28px; }
  .stp-pd .stp-pd-glance { padding: 20px; }
  .stp-pd .stp-pd-tabs { margin-top: 24px; padding: 16px 16px 20px; }
  .stp-pd .stp-tabbar { display: none; width: 100%; margin-bottom: 20px; }
  .stp-pd .stp-pd-tabs.is-tabbed .stp-tabbar { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .stp-pd .stp-tabbar .stp-lg { display: none; } .stp-pd .stp-tabbar .stp-sm { display: inline; }
  .stp-pd .stp-tabbar a { padding: 0 8px; font-size: 13.5px; }
  .stp-pd .stp-ft thead { display: none; }
  .stp-pd .stp-ft table, .stp-pd .stp-ft tbody, .stp-pd .stp-ft tr, .stp-pd .stp-ft td { display: block; width: 100%; }
  .stp-pd .stp-ft tr { padding: 12px 14px; border-bottom: 1px solid var(--stp-line); }
  .stp-pd .stp-ft tr:last-child { border-bottom: 0; }
  .stp-pd .stp-ft td { padding: 0; border: 0; }
  .stp-pd .stp-ft td.stp-ft-yrs { font-size: 13.5px; margin: 2px 0 4px; }
  .stp-pd .stp-ft .stp-ft-grp { padding: 0; }
  .stp-pd .stp-ft .stp-ft-grp td { padding: 9px 14px; }
  .stp-pd .stp-ft tr.stp-ft-extra { display: none; }
  .stp-pd .stp-ft.stp-show-all tr.stp-ft-extra { display: block; }
  .stp-pd .stp-pd-details { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .stp-pd .stp-ship { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 900px) {
  .stp-pd .product-entry-wrapper { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .stp-pd .woocommerce-product-gallery { position: static; }
}
@media (max-width: 900px) and (min-width: 601px) {
  .stp-pd .product-entry-wrapper { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .stp-pd .woocommerce-product-gallery { position: sticky; }
}
/* phones: no thumbnail row — swipe the photo; dots + counter show there are more */
@media (max-width: 600px) {
  .stp-pd .flexy-pills[data-type="thumbs"] { display: none; }
  .stp-pd .stp-g-dots { display: flex; }
}

/* the old two-state fit badge + gallery pill (stp-garage.js) are replaced by the fit row */
.stp-pd .stp-fits-badge, .stp-pd .stp-fits-pill { display: none !important; }

/* page container: Blocksy's white boxed article → the warm page background, cards carry the white */
body.stp-pd .ct-container-full > article[class*="post-"] { background: none !important; box-shadow: none; border: 0;
  width: auto; max-width: var(--stp-wrap); margin-left: auto; margin-right: auto; box-sizing: border-box;
  padding-top: 0; padding-left: var(--stp-gutter); padding-right: var(--stp-gutter); }
body.stp-pd .ct-container-full > article .is-width-constrained { max-width: none; width: auto; margin-left: 0; margin-right: 0; }

/* click-to-reveal on the buy card's Call button (same rule as the header) */
.stp-pd .stp-rb[data-stp-reveal] .stp-post { display: none; }
.stp-pd .stp-rb[data-stp-reveal].is-revealed .stp-pre { display: none; }
.stp-pd .stp-rb[data-stp-reveal].is-revealed .stp-post { display: inline; }
.stp-pd .stp-pd-crumbs .ct-breadcrumbs { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* "This part fits:" year links as chips; the notes are in the table above */
.stp-pd .stp-fits-list { line-height: 1.4; }
.stp-pd .stp-fits-item::before, .stp-pd .stp-fits-item::after { content: none !important; display: none !important; }
.stp-pd .stp-fits-note { display: none; }
.stp-pd .stp-fits-more, .stp-pd .stp-fits-less { padding: 3px 10px; border-radius: var(--stp-r-pill); border: 1px dashed var(--stp-line-strong);
  background: none; font: 600 13px/1.4 var(--stp-font); color: var(--stp-ink-2); cursor: pointer; }

/* related parts: Blocksy's card, as the design-system card (C12) */
.stp-pd .related .ct-module-title { text-align: left; }
.stp-pd .related .product { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 16px; text-align: left;
  background: var(--stp-surface); border: 1px solid var(--stp-line); border-radius: var(--stp-r-lg); box-shadow: var(--stp-shadow); }
.stp-pd .related .product figure { margin: 0 0 6px; border-radius: var(--stp-r); overflow: hidden; }
.stp-pd .related .product .woocommerce-loop-product__title, .stp-pd .related .product .price,
.stp-pd .related .product .stp-fulfil { padding: 0 6px; text-align: left; justify-content: flex-start; }
.stp-pd .related .product .woocommerce-loop-product__title { font-size: 15px; font-weight: 620; line-height: 1.35; }
.stp-pd .related .product .woocommerce-loop-product__title a { color: var(--stp-ink); }
.stp-pd .related .product .price { margin-top: auto; font-size: 17px; font-weight: 750; color: var(--stp-ink); }
@media (max-width: 999.98px) { .stp-pd .related.products.ct-hidden-sm, .stp-pd .related.products.ct-hidden-md { display: block !important; } }
.stp-pd .flexy-pills[data-type="thumbs"] li { aspect-ratio: 1; }
.stp-pd .flexy-pills[data-type="thumbs"] li .ct-media-container, .stp-pd .flexy-pills[data-type="thumbs"] li img {
  display: block; width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; margin: 0; }
.stp-pd .related .product > *, .stp-pd .related .product .stp-fulfil { text-align: left; justify-content: flex-start;
  margin-left: 0; margin-right: 0; align-self: stretch; }
.stp-pd .flexy-pills[data-type="thumbs"] li, .stp-pd .flexy-pills[data-type="thumbs"] li .ct-media-container { padding: 0 !important; border: 0 !important; }
.stp-pd .flexy-pills[data-type="thumbs"] li .ct-media-container { position: absolute; inset: 0; border-radius: var(--stp-r); overflow: hidden; }
