/*
 * Partshpere component layer.
 *
 * Enqueued after GeneratePress' dynamic CSS and after GP Premium's
 * generate-woocommerce stylesheet, so component rules here win without
 * !important. Covers: buttons, the shop archive (filter groups, cards,
 * pagination), the single product page, cart/checkout surfaces, the home page
 * and the two page templates.
 */

/* =============================================================== 1. buttons */

.ps-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: var(--ps-radius-btn);
  background: var(--ps-action);
  color: #fff;
  font-family: var(--ps-font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.ps-btn:hover,
.ps-btn:focus,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.added_to_cart:hover {
  background: var(--ps-action-hover);
  color: #fff;
  text-decoration: none;
}

.woocommerce a.button.loading {
  opacity: 0.75;
}

.woocommerce a.button.loading::after {
  color: #fff;
  top: 50%;
  margin-top: -8px;
}

.ps-btn--whatsapp,
.woocommerce a.button.ps-btn--whatsapp,
.woocommerce a.button.ps-btn--whatsapp:hover {
  background: var(--ps-whatsapp);
  color: #fff;
}

.ps-btn--whatsapp:hover,
.ps-btn--whatsapp:focus {
  background: var(--ps-whatsapp-hover);
  color: #fff;
}

.ps-btn--secondary,
.woocommerce a.button.ps-btn--secondary {
  background: #fff;
  color: var(--ps-secondary);
  border: 1.5px solid var(--ps-secondary);
}

.ps-btn--secondary:hover,
.woocommerce a.button.ps-btn--secondary:hover {
  background: var(--ps-secondary);
  color: #fff;
  border-color: var(--ps-secondary);
}

.ps-link-wa {
  color: var(--ps-whatsapp);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ps-link-wa:hover {
  color: var(--ps-whatsapp-hover);
}

/* ======================================================== 2. archive chrome */

/* Breadcrumb */
.woocommerce-breadcrumb {
  margin: 0 0 6px;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ps-muted);
  background: none;
}

.woocommerce-breadcrumb a {
  color: var(--ps-secondary);
}
.woocommerce-breadcrumb a:hover {
  color: var(--ps-primary);
}

/* Archive title block */
.woocommerce-products-header {
  margin: 0 0 4px;
  padding: 0;
  background: none;
  border: 0;
}

.woocommerce-products-header__title,
.woocommerce .woocommerce-products-header h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: var(--ps-primary);
}

.ps-archive-meta {
  margin: 8px 0 0;
}

.ps-count-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ps-sky-50);
  color: var(--ps-secondary);
  font-size: 13px;
  font-weight: 600;
}

/* --------------------------------------------------------------- filter bar
 * Measured from the rendered archive, two things govern how this is styled:
 * the region is a WooCommerce interactive view (data-wp-router-region), so it
 * re-renders client-side on every chip click - anything the theme wraps around
 * it is destroyed on the first tap, which is why the group headings below are
 * the block's own <legend class="screen-reader-text"> made visible in CSS.
 * And the chips are <button role="checkbox" aria-checked>, not inputs, so
 * :checked never applies.
 *
 * Woo writes its own rules inside :where(), which has zero specificity, so
 * plain class selectors here win without !important.
 */
.wc-block-product-filters {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  background: none;
}

/* One row per attribute group. */
.wc-block-product-filters .wp-block-woocommerce-product-filter-attribute {
  padding: 9px 0;
  border-bottom: 1px solid var(--ps-border-soft);
}

.wc-block-product-filters
  .wp-block-woocommerce-product-filter-attribute:first-of-type {
  padding-top: 0;
}

.wc-block-product-filters
  .wp-block-woocommerce-product-filter-attribute:last-of-type,
.wc-block-product-filters .wp-block-woocommerce-product-filter-active {
  border-bottom: 0;
}

.wc-block-product-filter-chips,
.wc-block-product-filter-chips__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

/* The label the block already ships but hides from everyone.
 *
 * Two measured facts drive this. The fieldset is `display: contents` (its own
 * rect is 0x0), so it generates no box: it cannot be positioned against and it
 * does not become a containing block for absolutely positioned children. And
 * WP core gives .screen-reader-text `position: absolute !important`, which is
 * why all three legends resolved to the same coordinates and landed on top of
 * the first chip. Unwound, the legend and the chip list are simply the first
 * two flex items of the chips block, so that is the element to lay out. */
.wc-block-product-filters .wp-block-woocommerce-product-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 14px;
  margin: 0;
}

.wc-block-product-filters .wc-block-product-filter-chips__fieldset > legend {
  position: static !important;
  flex: 0 0 92px;
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  margin: 0;
  padding: 11px 0 0;
  overflow: visible;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ps-muted);
  word-wrap: normal !important;
}

.wc-block-product-filter-chips__items {
  flex: 1 1 260px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wc-block-product-filter-chips__item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid var(--ps-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ps-ink);
  font-family: var(--ps-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.wc-block-product-filter-chips__item:hover {
  border-color: var(--ps-secondary);
  color: var(--ps-secondary);
}

.wc-block-product-filter-chips__item[aria-checked="true"] {
  border-color: var(--ps-primary);
  background: var(--ps-primary);
  color: #fff;
}

.wc-block-product-filter-chips__item[aria-checked="true"]:hover {
  background: var(--ps-primary-deep);
  color: #fff;
}

.wc-block-product-filter-chips__label {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.wc-block-product-filter-chips__count {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
}

/* Active selections, shown as removable chips. */
.wc-block-product-filters .wp-block-woocommerce-product-filter-active {
  padding-top: 12px;
}

.wc-block-product-filter-removable-chips__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.wc-block-product-filter-removable-chips__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ps-sky-50);
  color: var(--ps-secondary);
  font-size: 13px;
}

.wc-block-product-filter-removable-chips__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}

.wc-block-product-filter-removable-chips__remove:hover {
  background: var(--ps-secondary);
  color: #fff;
}

.wc-block-product-filter-removable-chips__remove svg {
  width: 11px;
  height: 11px;
}

/* Phone: the same filters collapse into Woo's overlay, opened by this button. */
.wc-block-product-filters__open-overlay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-btn);
  background: #fff;
  color: var(--ps-ink);
  font-family: var(--ps-font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.wc-block-product-filters__open-overlay:hover {
  border-color: var(--ps-secondary);
  color: var(--ps-secondary);
}

.wc-block-product-filters__overlay-dialog {
  background: #fff;
}

.wc-block-product-filters__apply {
  min-height: 46px;
  border-radius: var(--ps-radius-btn);
  background: var(--ps-action);
  color: #fff;
  font-weight: 600;
}

/* Inside the phone drawer the label drops above its own chips. */
@media (max-width: 600px) {
  .wc-block-product-filters .wc-block-product-filter-chips__fieldset > legend {
    flex: 1 1 100%;
    padding: 0;
    margin: 0 0 2px;
  }
}

/* Shop toolbar: result count + sorting */
.woocommerce .woocommerce-before-shop-loop,
.woocommerce-before-shop-loop {
  margin-top: 6px;
}

.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count,
p.woocommerce-result-count {
  float: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--ps-muted);
}

.woocommerce .woocommerce-result-count strong {
  color: var(--ps-ink);
  font-weight: 600;
}

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
  float: none;
  margin: 0;
}

.woocommerce .woocommerce-ordering select,
.woocommerce-ordering select.orderby {
  min-height: 44px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-btn);
  background: #fff;
  color: var(--ps-ink);
  font-family: var(--ps-font-body);
  font-size: 14px;
  cursor: pointer;
}

/* The row the count and the sorting dropdown share. ps_loop_bar() in
   inc/catalog.php prints both inside it, so this is a real parent rather than
   two loose siblings on a hook. */
.woocommerce .ps-loop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 16px 0 18px;
  padding: 12px 0;
  border-top: 1px solid var(--ps-border-soft);
  border-bottom: 1px solid var(--ps-border-soft);
}

.woocommerce .ps-loop-bar .woocommerce-ordering {
  display: flex;
  align-items: center;
  gap: 8px;
}

.woocommerce .ps-loop-bar .woocommerce-ordering::before {
  content: "Sort by";
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ps-muted);
}

/* ------------------------------------------------------- site search band
 * FiboSearch enqueues its stylesheet after generate-child, so equal-specificity
 * rules in style.css lose and the submit button stayed plugin-grey. shop.css is
 * the last stylesheet in the head, which is why the widget internals are styled
 * here; section 5 of style.css keeps only the band and its layout.
 */
.ps-searchbar .dgwt-wcas-sf-wrapp {
  position: relative;
}

.ps-searchbar input[type="search"].dgwt-wcas-search-input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius) 0 0 var(--ps-radius);
  padding: 0 140px 0 16px;
  background: #fff;
  color: var(--ps-ink);
  font-family: var(--ps-font-body);
  font-size: 16px;
  box-shadow: var(--ps-shadow);
}

.ps-searchbar input[type="search"].dgwt-wcas-search-input::placeholder {
  color: #64748b;
  opacity: 1;
}

.ps-searchbar .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
  top: 0;
  right: 0;
  bottom: auto;
  height: 52px;
  min-width: 122px;
  padding: 0 20px;
  border: 0;
  border-radius: 0 var(--ps-radius) var(--ps-radius) 0;
  background: var(--ps-action);
  box-shadow: none;
  color: #fff;
  font-family: var(--ps-font-body);
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.ps-searchbar .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:hover,
.ps-hero__search .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:hover {
  background: var(--ps-action-hover);
}

/* The plugin fades the button to 70% on hover/active/focus instead of changing colour. */
.ps-searchbar .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:hover,
.ps-searchbar .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:active,
.ps-searchbar .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:focus,
.ps-hero__search .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:hover,
.ps-hero__search .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:active,
.ps-hero__search .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:focus {
  opacity: 1;
}

/* The plugin's speech-bubble notch reads as a rendering glitch. */
.ps-searchbar .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit::before,
.ps-hero__search .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit::before {
  display: none;
}

/* Re-declare the focus ring: the plugin resets outlines on this control. */
.ps-searchbar .dgwt-wcas-search-input:focus-visible,
.ps-searchbar .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:focus-visible {
  outline: 2px solid var(--ps-action);
  outline-offset: 2px;
}

/* ==================================================== 3. the product card */

.woocommerce ul.products,
.woocommerce-page ul.products {
  padding: 0;
  margin: 0 0 8px;
  list-style: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  text-align: left;
}

.ps-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--ps-border-soft);
  border-radius: var(--ps-radius);
  background: var(--ps-card);
  box-shadow: var(--ps-shadow);
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ps-card:hover,
.ps-card:focus-within {
  border-color: var(--ps-action);
  box-shadow: var(--ps-shadow-hover);
}

.ps-card:hover .ps-card__title a {
  color: var(--ps-action);
}

.ps-card__media-link {
  display: block;
  position: relative;
  text-decoration: none;
}

.ps-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Explicit width: with only aspect-ratio + max-height the browser shrinks the WIDTH to the capped height, so the
     photo box sat left-aligned and narrower than the card (150px in a 221px home card). */
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 240px;
  background: #fff;
  overflow: hidden;
}

.ps-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Half the catalogue has no photo yet: give them a real tile, not a grey box. */
.ps-card__media--none {
  flex-direction: column;
  gap: 9px;
  background: var(--ps-sky-50);
  color: var(--ps-secondary);
  border-bottom: 1px solid var(--ps-border-soft);
}

/* The dashed slot reads as "photo goes here" instead of "image failed". */
.ps-card__media--none::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed var(--ps-border);
  border-radius: var(--ps-radius-btn);
  pointer-events: none;
}

.ps-card__media--none .ps-icon {
  width: 34px;
  height: 34px;
  opacity: 0.75;
}

.ps-card__nophoto {
  max-width: 80%;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  color: var(--ps-secondary);
}

.ps-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ps-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgb(15 23 42 / 12%);
}

.ps-badge--new-genuine {
  background: var(--ps-accent);
  color: var(--ps-primary);
}
.ps-badge--new {
  background: var(--ps-sky-50);
  color: var(--ps-secondary);
}
.ps-badge--used {
  background: var(--ps-border-soft);
  color: var(--ps-ink);
}

.ps-card__stock {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

.ps-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--ps-border-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ps-muted);
}

.ps-stock--in {
  color: var(--ps-success);
}
.ps-stock--out {
  color: var(--ps-danger);
}
.ps-stock--quote {
  color: var(--ps-secondary);
}

.ps-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ps-success);
}

.ps-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 5px;
  padding: 14px;
}

/* The part number is the product: mono, big, first. */
.ps-card__pn {
  margin: 0;
  font-family: var(--ps-font-mono);
  font-variant-ligatures: none;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ps-primary);
  word-break: break-word;
}

.ps-card__title {
  margin: 0;
  font-family: var(--ps-font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ps-card__title a {
  color: var(--ps-ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

.ps-card__fits {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ps-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ps-card__fits-label {
  font-weight: 600;
  color: var(--ps-ink);
}

.ps-card__system {
  margin: 2px 0 0;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ps-surface);
  border: 1px solid var(--ps-border-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ps-muted);
}

.ps-card__foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ps-card__price,
.ps-card__price .woocommerce-Price-amount {
  font-family: var(--ps-font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ps-ink);
}

.ps-card__price del,
.ps-card__price ins {
  font-size: 14px;
  font-weight: 500;
  color: var(--ps-muted);
  text-decoration: line-through;
}

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

.ps-card__quote-label {
  font-family: var(--ps-font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--ps-secondary);
}

.ps-card__cta {
  margin-top: 10px;
}

.ps-card__cta .button,
.ps-card__cta .ps-btn {
  width: 100%;
  font-size: 14px;
  padding: 10px 12px;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
  margin: 28px 0 8px;
}

.woocommerce ul.page-numbers,
.woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.page-numbers li,
.woocommerce-pagination ul li {
  border: 0;
  width: auto;
  display: flex;
}

.woocommerce .woocommerce-pagination .page-numbers li .page-numbers,
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-btn);
  background: #fff;
  color: var(--ps-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li a:focus {
  background: var(--ps-sky-50);
  border-color: var(--ps-secondary);
  color: var(--ps-secondary);
}

.woocommerce-pagination ul li .current,
.woocommerce-pagination ul li span.current {
  background: var(--ps-action);
  border-color: var(--ps-action);
  color: #fff;
}

/* No results */
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error {
  border-top-color: var(--ps-action);
  background: var(--ps-sky-50);
  color: var(--ps-ink);
  border-radius: 0 0 var(--ps-radius) var(--ps-radius);
  font-size: 15px;
}

.woocommerce .woocommerce-error {
  background: #fef2f2;
  border-top-color: var(--ps-danger);
}

.woocommerce .woocommerce-message {
  border-top-color: var(--ps-success);
}

/* =============================================== 4. single product summary */

.woocommerce div.product .product_title {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ps-ink);
}

.ps-pn-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--ps-border-soft);
  border-left: 4px solid var(--ps-action);
  border-radius: var(--ps-radius);
  background: var(--ps-surface);
}

.ps-pn-block__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ps-muted);
}

.ps-pn-block__value {
  font-family: var(--ps-font-mono);
  font-variant-ligatures: none;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ps-primary);
  word-break: break-word;
}

.ps-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-btn);
  background: #fff;
  color: var(--ps-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease;
}

.ps-copy:hover {
  border-color: var(--ps-secondary);
}

.ps-copy.is-copied {
  border-color: var(--ps-success);
  color: var(--ps-success);
}

/* Korean dealers file the number without separators, so show both forms. */
.ps-pn-block__alt {
  flex: 1 1 100%;
  font-size: 13px;
  color: var(--ps-muted);
}

.ps-pn-block__alt bdo {
  font-family: var(--ps-font-mono);
  font-weight: 600;
  color: var(--ps-secondary);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--ps-font-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--ps-ink);
}

.woocommerce div.product p.price .woocommerce-Price-amount {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: #1e293b;
  font-size: 16px;
  line-height: 1.7;
}

.woocommerce div.product .product_meta {
  font-size: 14px;
  color: var(--ps-muted);
}

.woocommerce div.product .product_meta a {
  color: var(--ps-secondary);
}

/* Used parts: quote block instead of a price */
.ps-quote {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--ps-border-soft);
  border-radius: var(--ps-radius);
  background: var(--ps-sky-50);
}

.ps-quote .ps-btn {
  width: 100%;
}

.ps-quote-note {
  margin: 0 0 12px;
  color: var(--ps-ink);
  font-size: 15px;
  line-height: 1.55;
}

.ps-fitment {
  margin: 12px 0 0;
}

.ps-fitment .ps-btn {
  width: 100%;
}

/* Product image + gallery */
.woocommerce div.product div.images {
  margin-bottom: 24px;
}

.woocommerce div.product div.images img {
  border: 1px solid var(--ps-border-soft);
  border-radius: var(--ps-radius);
  background: #fff;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
  border-bottom: 1px solid var(--ps-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ps-muted);
  text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: var(--ps-action);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--ps-primary);
}
.woocommerce div.product .woocommerce-tabs .panel h2:first-child {
  margin-top: 0;
}

/* ================================================== 5. cart and checkout */

.woocommerce table.shop_table {
  border: 1px solid var(--ps-border-soft);
  border-radius: var(--ps-radius);
  border-collapse: separate;
  background: #fff;
}

.woocommerce table.shop_table th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ps-muted);
  padding: 12px;
}

.woocommerce table.shop_table td {
  padding: 14px 12px;
}

.woocommerce .cart .product-name a {
  font-weight: 600;
  color: var(--ps-ink);
  text-decoration: none;
}

.woocommerce-page .checkout-button,
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
  width: 100%;
  font-size: 16px;
  padding: 14px 20px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .form-row .select2-container .select2-selection--single {
  min-height: 46px;
  padding: 10px 12px;
  font-size: 16px;
}

.woocommerce form .form-row label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ps-ink);
}

.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before {
  color: inherit;
}

.ps-vin {
  margin: 12px 0 24px;
  padding: 14px;
  border: 1px dashed var(--ps-border);
  border-radius: var(--ps-radius);
  background: var(--ps-surface);
}

.ps-vin h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

/* ================================================== 6. home page sections */

.ps-home {
  background: var(--ps-surface);
}

.ps-hero {
  background: linear-gradient(
    180deg,
    var(--ps-sky-50) 0%,
    var(--ps-surface) 100%
  );
  border-bottom: 1px solid var(--ps-border-soft);
  padding: 40px 0 44px;
}

.ps-hero .grid-container {
  text-align: center;
}

.ps-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ps-secondary);
}

.ps-hero__title {
  margin: 0 auto 12px;
  max-width: 20ch;
  font-family: var(--ps-font-head);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ps-primary);
}

.ps-hero__sub {
  margin: 0 auto 22px;
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ps-muted);
}

.ps-hero__search {
  max-width: 720px;
  margin: 0 auto;
}
.ps-hero__search .dgwt-wcas-search-wrapp {
  max-width: 100%;
  margin: 0;
}

.ps-hero__search input[type="search"].dgwt-wcas-search-input {
  height: 56px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  background: #fff;
  font-size: 16px;
  padding: 0 150px 0 44px;
  box-shadow: var(--ps-shadow);
}

.ps-hero__search .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
  height: 56px;
  min-width: 110px;
  border-radius: var(--ps-radius);
  background: var(--ps-action);
  color: #fff;
  font-family: var(--ps-font-body);
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
}

.ps-hero__alt {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--ps-muted);
}

.ps-section {
  padding: 44px 0;
}

.ps-section--tint {
  background: var(--ps-sky-50);
  border-top: 1px solid var(--ps-border-soft);
  border-bottom: 1px solid var(--ps-border-soft);
}

.ps-section__head {
  margin: 0 0 24px;
}

.ps-section__head h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: var(--ps-primary);
}

.ps-section__head p {
  margin: 0;
  font-size: 15px;
  color: var(--ps-muted);
}

.ps-section__head--center {
  text-align: center;
}

.ps-section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
}

.ps-section__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ps-action);
  text-decoration: none;
}

.ps-section__more:hover {
  color: var(--ps-action-hover);
  text-decoration: underline;
}

/* Home: browse sidebar beside the parts grid (Sam 2026-11-24: parts on the first screen) */
.ps-browse {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.ps-side {
  margin: 0 0 16px;
  padding: 14px 12px;
  border: 1px solid var(--ps-border-soft);
  border-radius: var(--ps-radius);
  background: var(--ps-card);
}

.ps-side__title {
  margin: 0 0 8px;
  padding: 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.ps-side__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps-side__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  border-radius: var(--ps-radius-btn);
  color: var(--ps-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.ps-side__list a:hover {
  background: var(--ps-sky-50);
  color: var(--ps-action);
}

.ps-side__icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--ps-secondary);
}

.ps-side__icon .ps-icon {
  width: 18px;
  height: 18px;
}

.ps-side__count {
  margin-left: auto;
  font-size: 12px;
  color: var(--ps-muted);
  font-variant-numeric: tabular-nums;
}

.ps-chips--small {
  gap: 6px;
  padding: 0 6px;
}

.ps-chips--small .ps-chip {
  min-height: 32px;
  padding: 0 11px;
  font-size: 13px;
}


.ps-browse .ps-browse__main ul.products.ps-products {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .ps-browse {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
  }

  .ps-browse .ps-browse__main ul.products.ps-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Parts first on phones, browse lists after them. */
  .ps-browse {
    grid-template-columns: minmax(0, 1fr);
  }
  .ps-browse__main {
    order: -1;
  }
  .ps-products--browse > li:nth-child(n + 7) {
    display: none;
  }
  .ps-side__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
  }
}

/* Vehicle chips */
.ps-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ps-border);
  border-radius: 999px;
  background: var(--ps-card);
  color: var(--ps-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.ps-chip:hover {
  background: var(--ps-primary);
  border-color: var(--ps-primary);
  color: #fff;
}

/* Popular parts grid (not inside GP's .wc-columns-container) */
.woocommerce ul.products.ps-products,
ul.products.ps-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* How ordering works */
.ps-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps-step {
  position: relative;
  padding: 20px 18px;
  border: 1px solid var(--ps-border-soft);
  border-radius: var(--ps-radius);
  background: var(--ps-card);
  box-shadow: var(--ps-shadow);
}

.ps-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ps-primary);
  color: #fff;
  font-family: var(--ps-font-head);
  font-size: 15px;
  font-weight: 700;
}

.ps-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 10px;
  border-radius: var(--ps-radius-btn);
  background: var(--ps-sky-50);
  color: var(--ps-secondary);
  vertical-align: middle;
}

.ps-step h3 {
  margin: 14px 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ps-ink);
}

.ps-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ps-muted);
}

.ps-steps__more {
  margin: 26px 0 0;
  text-align: center;
}

/* Why block */
.ps-why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps-why__item {
  padding: 20px 18px;
  border-radius: var(--ps-radius);
  background: var(--ps-card);
  border: 1px solid var(--ps-border-soft);
}

.ps-why__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--ps-sky-50);
  color: var(--ps-secondary);
}

.ps-why__item h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ps-primary);
}

.ps-why__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ps-muted);
}

/* Can't find it box */
.ps-findit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 24px;
  border: 1px solid var(--ps-border-soft);
  border-radius: var(--ps-radius);
  background: var(--ps-sky-50);
}

.ps-findit__text {
  flex: 1 1 320px;
}

.ps-findit__text h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ps-primary);
}

.ps-findit__text p {
  margin: 0;
  font-size: 15px;
  color: var(--ps-muted);
}

.ps-findit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================== 7. page templates */

.ps-page {
  background: var(--ps-surface);
}

.ps-page__head {
  background: linear-gradient(
    180deg,
    var(--ps-sky-50) 0%,
    var(--ps-surface) 100%
  );
  border-bottom: 1px solid var(--ps-border-soft);
  padding: 34px 0 30px;
}

.ps-page__title {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ps-primary);
}

.ps-page__lead {
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ps-muted);
}

.ps-qpage,
.ps-how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
  padding-top: 30px;
  padding-bottom: 56px;
}

.ps-qpage__main,
.ps-how__main {
  min-width: 0;
}

.ps-qpage__side,
.ps-how__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 20px;
}

.ps-section-inline {
  margin-bottom: 36px;
}

.ps-section-inline > h2 {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ps-sky-50);
  font-size: 23px;
  font-weight: 700;
  color: var(--ps-primary);
}

.ps-steps--long {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Forms */
.ps-form {
  padding: 22px;
  border: 1px solid var(--ps-border-soft);
  border-radius: var(--ps-radius);
  background: var(--ps-card);
  box-shadow: var(--ps-shadow);
}

.ps-form__legend {
  margin: 4px 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ps-secondary);
}

.ps-form__legend:first-child {
  margin-top: 0;
}

.ps-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.ps-field {
  margin: 0 0 16px;
}
.ps-field-grid .ps-field {
  margin-bottom: 0;
}

.ps-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ps-ink);
}

.ps-req {
  color: var(--ps-danger);
}

.ps-field input[type="text"],
.ps-field input[type="email"],
.ps-field input[type="tel"],
.ps-field select,
.ps-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-btn);
  background: #fff;
  color: var(--ps-ink);
  font-family: var(--ps-font-body);
  font-size: 16px;
  line-height: 1.5;
}

.ps-field textarea {
  min-height: 110px;
  resize: vertical;
}

.ps-field input:focus,
.ps-field select:focus,
.ps-field textarea:focus {
  border-color: var(--ps-action);
  outline: 2px solid var(--ps-sky-300);
  outline-offset: 1px;
}

.ps-mono-input {
  font-family: var(--ps-font-mono) !important;
  letter-spacing: 0.04em;
}

.ps-help {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ps-muted);
}

.ps-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--ps-border-soft);
}

.ps-form__fine {
  font-size: 13px;
  color: var(--ps-muted);
  max-width: 34ch;
}

/* Honeypot: in the DOM for bots, invisible for people and screen readers. */
.ps-field--bot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ps-note {
  display: block;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--ps-radius);
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid var(--ps-border-soft);
  background: var(--ps-surface);
}

.ps-note ul {
  margin: 0;
  padding-left: 18px;
}

.ps-note--ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.ps-note--bad {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--ps-danger);
}

/* Side cards */
.ps-sidecard {
  padding: 18px;
  border: 1px solid var(--ps-border-soft);
  border-radius: var(--ps-radius);
  background: var(--ps-card);
  box-shadow: var(--ps-shadow);
}

.ps-sidecard h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ps-primary);
}

.ps-sidecard p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ps-muted);
}

.ps-sidecard .ps-btn {
  width: 100%;
}

.ps-sidecard--wa {
  background: var(--ps-sky-50);
  border-color: #bae6fd;
}

.ps-sidecard__mail {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ps-secondary);
  text-decoration: none;
  word-break: break-all;
}

.ps-sidecard__mail:hover {
  text-decoration: underline;
}
.ps-sidecard__meta {
  margin: 12px 0 0 !important;
  font-size: 13px !important;
}

.ps-ministeps,
.ps-checklist,
.ps-minilinks {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ps-muted);
}

.ps-ministeps li,
.ps-minilinks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
}

.ps-ministeps {
  counter-reset: ps-mini;
}

.ps-ministeps li::before {
  content: counter(ps-mini, decimal);
  counter-increment: ps-mini;
  position: absolute;
  left: 0;
  top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: var(--ps-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.ps-checklist li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.ps-checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--ps-secondary);
  border-bottom: 2px solid var(--ps-secondary);
  transform: rotate(-45deg);
}

.ps-minilinks a {
  color: var(--ps-action);
  text-decoration: none;
  font-weight: 500;
}

.ps-minilinks a:hover {
  text-decoration: underline;
}

/* Timeline + rules on the ordering page */
.ps-timeline {
  border: 1px solid var(--ps-border-soft);
  border-radius: var(--ps-radius);
  background: var(--ps-card);
  overflow: hidden;
}

.ps-timeline__row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--ps-border-soft);
  font-size: 15px;
}

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

.ps-timeline__when {
  font-family: var(--ps-font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ps-primary);
}

.ps-timeline__what {
  color: var(--ps-muted);
}

.ps-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.ps-rule {
  padding: 16px;
  border: 1px solid var(--ps-border-soft);
  border-left: 3px solid var(--ps-secondary);
  border-radius: 0 var(--ps-radius) var(--ps-radius) 0;
  background: var(--ps-card);
}

.ps-rule h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ps-ink);
}

.ps-rule p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ps-muted);
}

/* FAQ */
.ps-faq {
  border: 1px solid var(--ps-border-soft);
  border-radius: var(--ps-radius);
  background: var(--ps-card);
  overflow: hidden;
}

.ps-faq__item {
  padding: 0;
  border-bottom: 1px solid var(--ps-border-soft);
}

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

.ps-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 16px;
  font-family: var(--ps-font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--ps-ink);
  cursor: pointer;
  list-style: none;
}

.ps-faq__item summary::-webkit-details-marker {
  display: none;
}

.ps-faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--ps-secondary);
}

.ps-faq__item[open] summary::after {
  content: "\2013";
}
.ps-faq__item[open] summary {
  color: var(--ps-primary);
}
.ps-faq__item summary:hover {
  background: var(--ps-surface);
}

.ps-faq__item p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ps-muted);
  max-width: 68ch;
}

/* Quick facts */
.ps-facts {
  margin: 0;
  font-size: 14px;
}

.ps-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ps-border-soft);
}

.ps-facts > div:last-child {
  border-bottom: 0;
}
.ps-facts dt {
  color: var(--ps-muted);
}

.ps-facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--ps-ink);
  text-align: right;
}

/* ============================================================ 8. responsive */

@media (min-width: 769px) {
  .ps-hero__title {
    font-size: 46px;
  }
  .ps-section {
    padding: 56px 0;
  }
  .ps-page__title {
    font-size: 38px;
  }
  .woocommerce-products-header__title {
    font-size: 34px;
  }
}

@media (max-width: 1024px) {
  .ps-qpage,
  .ps-how {
    grid-template-columns: minmax(0, 1fr);
  }

  .ps-qpage__side,
  .ps-how__side {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .woocommerce ul.products.ps-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ps-card__body {
    padding: 11px;
    gap: 4px;
  }
  .ps-card__pn {
    font-size: 15px;
  }
  .ps-card__title {
    font-size: 14px;
    min-height: 2.9em;
  }
  .ps-card__fits {
    font-size: 12px;
  }
  .ps-card__price,
  .ps-card__price .woocommerce-Price-amount {
    font-size: 19px;
  }
  .ps-card__system {
    display: none;
  }
  .ps-card__cta .button,
  .ps-card__cta .ps-btn {
    font-size: 13px;
    padding: 9px 8px;
  }
  .ps-badge {
    font-size: 10px;
    padding: 3px 7px;
  }
  .ps-stock {
    font-size: 11px;
    padding: 2px 7px;
  }

  /* Trim the embedded button so a narrow field still shows the part number. */
  .ps-searchbar input[type="search"].dgwt-wcas-search-input {
    padding-right: 104px;
  }
  .ps-searchbar .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
    min-width: 88px;
    padding: 0 14px;
    font-size: 14px;
  }

  .ps-hero {
    padding: 28px 0 32px;
  }
  .ps-hero__title {
    font-size: 29px;
  }
  .ps-hero__search input[type="search"].dgwt-wcas-search-input,
  .ps-hero__search .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
    height: 52px;
  }
  .ps-section {
    padding: 32px 0;
  }
  .ps-section__head h2 {
    font-size: 22px;
  }
  .ps-findit {
    padding: 20px 16px;
  }
  .ps-findit__actions {
    width: 100%;
  }
  .ps-findit__actions .ps-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .ps-timeline__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .ps-timeline__when {
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .ps-form {
    padding: 16px;
  }
  .ps-qpage,
  .ps-how {
    padding: 20px 16px 44px;
  }
  .ps-prose {
    padding: 24px 16px 40px;
  }
  .ps-step {
    padding: 16px 14px;
  }
}

@media (max-width: 600px) {
  .woocommerce ul.products.ps-products {
    gap: 12px;
  }
  .ps-footer {
    padding-top: 36px;
  }
}

/* ==================================================== mobile review fixes (2026-11-24, measured at 375px) */

/* Full-width bands put content straight into a GP .grid-container, which has no side padding of its own,
   so below the container width their text and tiles touched the screen edge. */
.ps-hero > .grid-container,
.ps-section > .grid-container,
.ps-page__head > .grid-container,
.ps-trust > .grid-container,
.ps-footer-cta > .grid-container {
  padding-left: 16px;
  padding-right: 16px;
}

.woocommerce .ps-loop-bar .woocommerce-ordering::before {
  white-space: nowrap;
}

@media (max-width: 768px) {
  /* The tab bar already carries WhatsApp; the header pill pushed cart + menu onto a second row (159px header). */
  .site-header .ps-menu-wa {
    display: none;
  }

  /* Trust strip as a 2x2 of headlines: four stacked rows pushed the home parts below 960px. */
  .ps-trust .ps-trust__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
  }
  .ps-trust .ps-trust__text > span {
    display: none;
  }
}

/* ==================================================== compact home top (Sam 2026-11-24: "make small") */

.ps-home .ps-hero {
  padding: 22px 0 24px;
}
.ps-home .ps-hero__eyebrow {
  margin-bottom: 6px;
  font-size: 11px;
}
.ps-home .ps-hero__title {
  margin-bottom: 6px;
  max-width: none;
  font-size: 28px;
}
.ps-home .ps-hero__sub {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.ps-home .ps-hero__search input[type="search"].dgwt-wcas-search-input,
.ps-home .ps-hero__search .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
  height: 48px;
}
.ps-home .ps-hero__alt {
  margin: 10px 0 0;
  font-size: 13px;
}

/* Trust strip on home: one line of headlines, small icons. */
.ps-home .ps-trust {
  padding: 10px 0;
}
.ps-home .ps-trust__item {
  align-items: center;
  gap: 8px;
}
.ps-home .ps-trust__icon {
  width: 28px;
  height: 28px;
}
.ps-home .ps-trust__icon .ps-icon {
  width: 16px;
  height: 16px;
}
.ps-home .ps-trust__text > span {
  display: none;
}
.ps-home .ps-trust__text strong {
  font-size: 14px;
}

.ps-home .ps-browse-wrap {
  padding-top: 24px;
}

@media (max-width: 768px) {
  .ps-home .ps-hero {
    padding: 16px 0 18px;
  }
  .ps-home .ps-hero__title {
    font-size: 22px;
  }
  .ps-home .ps-hero__sub,
  .ps-browse__main .ps-section__head p {
    display: none;
  }
}

/* ==================================================== smaller home sidebar + cards (Sam 2026-11-24) */

.ps-browse {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
}
.ps-browse .ps-side {
  margin-bottom: 12px;
  padding: 10px 8px;
}
.ps-browse .ps-side__title {
  margin-bottom: 4px;
  font-size: 14px;
}
.ps-browse .ps-side__list a {
  gap: 8px;
  padding: 4px 6px;
  font-size: 13px;
}
.ps-browse .ps-side__icon .ps-icon {
  width: 15px;
  height: 15px;
}
.ps-browse .ps-side__count {
  font-size: 11px;
}
.ps-browse .ps-chips--small .ps-chip {
  min-height: 26px;
  padding: 0 9px;
  font-size: 12px;
}

.ps-browse .ps-browse__main ul.products.ps-products {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ps-browse .ps-card__media {
  max-height: 150px;
}
.ps-browse .ps-card__body {
  padding: 10px;
}
.ps-browse .ps-card__pn {
  font-size: 14px;
}
.ps-browse .ps-card__title {
  font-size: 13px;
}
.ps-browse .ps-card__fits {
  font-size: 12px;
}
.ps-browse .ps-card__price,
.ps-browse .ps-card__price .woocommerce-Price-amount {
  font-size: 17px;
}
.ps-browse .ps-card__cta .button,
.ps-browse .ps-card__cta .ps-btn {
  padding: 7px 10px;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .ps-browse {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .ps-browse .ps-browse__main ul.products.ps-products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ps-browse {
    grid-template-columns: minmax(0, 1fr);
  }
  .ps-browse .ps-browse__main ul.products.ps-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .ps-browse .ps-card__media {
    max-height: 130px;
  }
}

/* ==================================================== product page: part facts (SEO layer 0) */

.ps-partfacts {
  clear: both;
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid var(--ps-border-soft);
  border-radius: var(--ps-radius);
  background: var(--ps-card);
}
.ps-partfacts h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.ps-partfacts__table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 14px;
}
.ps-partfacts__table th,
.ps-partfacts__table td {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--ps-border-soft);
  text-align: left;
  vertical-align: top;
  background: none;
}
.ps-partfacts__table th {
  width: 38%;
  padding-right: 12px;
  font-weight: 600;
  color: var(--ps-muted);
}
.ps-partfacts__table .ps-mono {
  font-family: var(--ps-font-mono, monospace);
  color: var(--ps-ink);
}
.ps-partfacts__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

/* ==================================================== product page: about this part (SEO layer 1) */

.ps-parttype {
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid var(--ps-border-soft);
  border-radius: var(--ps-radius);
  background: var(--ps-sky-50);
  font-size: 15px;
  line-height: 1.6;
}
.ps-parttype h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.ps-parttype h3 {
  margin: 14px 0 4px;
  font-size: 15px;
  color: var(--ps-primary);
}
.ps-parttype p {
  margin: 0;
}
.ps-parttype ul {
  margin: 0 0 0 18px;
  padding: 0;
}

/* ==================================================== vehicle hubs (SEO layer 2) */

.ps-hub__aka {
  margin: 4px 0 8px;
  font-weight: 600;
  color: var(--ps-secondary);
}
.ps-hub__intro p {
  margin: 0 0 8px;
}
.ps-hub__count {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ps-muted);
}
.ps-hub {
  padding-top: 20px;
  padding-bottom: 40px;
}
.ps-hub__systems {
  margin: 0 0 20px;
}
.ps-hub__systems .ps-chip span {
  margin-left: 4px;
  font-weight: 400;
  opacity: 0.75;
}
.ps-hub__systems .ps-chip.is-active {
  background: var(--ps-primary);
  border-color: var(--ps-primary);
  color: #fff;
}
.ps-hub__pages {
  margin: 24px 0 0;
}
.ps-hub__cta {
  margin: 24px 0 0;
  font-size: 15px;
}
.ps-vehicles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px 28px;
  padding-top: 24px;
  padding-bottom: 40px;
}
.ps-vehicles__make h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
@media (max-width: 768px) {
  .ps-hub,
  .ps-vehicles {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==================================================== 2026-11-25 tablet review */

/* WooCommerce keeps the product gallery at opacity 0 until its script runs after the page's other images load, so
   the main photo stayed blank for seconds on slow connections. Show it at once; zoom and lightbox still attach. */
.woocommerce-product-gallery {
  opacity: 1 !important;
}

/* Hub grids live on ordinary pages (no .woocommerce body class), so the shop's tablet/phone column rules missed them. */
@media (max-width: 1024px) {
  ul.products.ps-products.ps-products--hub {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  ul.products.ps-products.ps-products--hub {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
