/* =========================
   STP Product Facts
   ========================= */

.stp-facts{
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  background: rgba(0,0,0,0.02);
}

.stp-facts .stp-row{
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 6px 0;
  flex-wrap: wrap;
}

.stp-facts .stp-label{
  color: #555;
  font-weight: 700;
  min-width: 150px;
}

.stp-facts .stp-value{
  color: #111;
  font-weight: 700;
}

.stp-facts .stp-oem{
  font-weight: 800;
}

/* =========================
   Compatibility
   ========================= */

.stp-compat{
  margin-top: 10px;
}

.stp-row-compat{
  margin-top: 8px;
}

.stp-compat-list{
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stp-compat-list li{
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.stp-check{
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
}

.stp-compat-text{
  font-weight: 700;
  color: #111;
  line-height: 1.35;
}

.stp-more-btn,
.stp-less-btn{
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-weight: 800;
  cursor: pointer;
}

.stp-more-btn{
  color: #c81f25;
}

.stp-less-btn{
  color: #555;
}

.stp-more-btn:hover,
.stp-less-btn:hover{
  text-decoration: underline;
}

.stp-compat-list li.stp-compat-hidden{
  display: none !important;
}

.stp-compat-list li.stp-less-row{
  display: none !important;
}

.stp-compat.stp-show-all .stp-compat-list li.stp-compat-hidden{
  display: flex !important;
}

.stp-compat.stp-show-all .stp-compat-list li.stp-less-row{
  display: flex !important;
}

.stp-compat.stp-show-all .stp-compat-list li.stp-more-row{
  display: none !important;
}

/* =========================
   Expanded Fitment Section
   ========================= */

.stp-fitment{
  margin: 18px 0;
}

.stp-fitment h2{
  margin: 0 0 8px;
}

.stp-fitment-intro{
  margin: 0 0 12px;
  color: #555;
}


.stp-fitment-summary{
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  background: rgba(0,0,0,0.02);
}

.stp-fitment-summary h3{
  margin: 0 0 6px;
  font-size: 16px;
}

.stp-fitment-summary p{
  margin: 0;
  color: #333;
  line-height: 1.5;
}

.stp-fitment-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.stp-fitment-table th,
.stp-fitment-table td{
  border: 1px solid rgba(0,0,0,0.10);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.stp-fitment-table thead th{
  font-weight: 800;
  background: rgba(0,0,0,0.02);
}

.stp-fitment-table td:first-child,
.stp-fitment-table th:first-child{
  width: 90px;
  white-space: nowrap;
}

.stp-fitment-table td:nth-child(4),
.stp-fitment-table th:nth-child(4){
  width: 42%;
}

.stp-fitment-notes{
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  background: #fff;
}

.stp-fitment-notes h3{
  margin: 0 0 6px;
  font-size: 16px;
}

.stp-fitment-notes p{
  margin: 0;
}

/* =========================
   This Part Fits (crawlable)
   ========================= */

.stp-fits{
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  background: rgba(0,0,0,0.02);
}

.stp-fits-list{
  margin: 0;
  color: #333;
  line-height: 1.8;
}

.stp-fits-item{
  white-space: nowrap;
}

.stp-fits-item + .stp-fits-item::before{
  content: "\00B7\0020";
  color: #999;
  white-space: normal;
}

.stp-fits-note{
  color: #666;
}

.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;
  margin: 0 0 0 4px;
  font-weight: 800;
  cursor: pointer;
}

.stp-fits-more{ color: #c81f25; }
.stp-fits-less{ color: #555; display: none; }

.stp-fits-more:hover,
.stp-fits-less:hover{ text-decoration: underline; }

.stp-fits.stp-show-all .stp-fits-more{ display: none; }
.stp-fits.stp-show-all .stp-fits-less{ display: inline; }

/* =========================
   Mobile
   ========================= */

@media (max-width: 640px){
  .stp-facts{
    padding: 12px;
  }

  .stp-facts .stp-label{
    min-width: 120px;
  }

  .stp-fitment-table{
    font-size: 14px;
  }

  .stp-fitment-table th,
  .stp-fitment-table td{
    padding: 8px 10px;
  }

  .stp-fitment-table td:first-child,
  .stp-fitment-table th:first-child{
    width: 72px;
  }

  .stp-fitment-table td:nth-child(4),
  .stp-fitment-table th:nth-child(4){
    width: auto;
  }
}

/* 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) ---- */
.stp-fulfil {
  display: inline-block; margin: 4px 0 2px; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
}
.stp-fulfil-ship { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.stp-fulfil-pickup { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
/* 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: 2px solid #b32d2e; border-radius: 6px; padding: 14px 16px; margin: 0 0 16px; background: #fdf2f2; }
.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; }
