/* Additions shared by the refreshed product detail, related cards and variants. */

.product .card-variants {
  display: block;
  margin: 3px 0 0;
  color: var(--action, #174e82);
  font-size: .78rem;
  font-weight: 625;
}

.product-page .pdp-reply {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--shop-muted);
}

.product-page .purchase-forecast strong {
  font-weight: 700;
  color: var(--shop-ink);
}

.product-page .pdp-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 9px 2px 0;
  color: var(--shop-accent);
  font-size: 13px;
 font-weight: 640;
}

.product-page .pdp-contact a,
.product-page .pdp-delivery-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 33px;
}

.product-page .pdp-tel {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.pdp-tel svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.product-page .pdp-delivery-quote {
  margin: 1px 2px 0;
  color: var(--shop-accent);
  font-size: 13px;
  font-weight: 640;
}

.product-page .pdp-variants {
  display: grid;
  gap: 5px;
  margin-bottom: 11px;
}

.product-page .pdp-variants h2 {
  margin: 0 0 3px;
  font-size: 16px;
  letter-spacing: -.015em;
  font-weight: 660;
}

.product-page .pdp-variants a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 4px 10px;
  padding: 7px 9px;
  border: 1px solid var(--shop-border);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.25;
  background: #fff;
}

.product-page .pdp-variants strong {
  text-align: right;
  flex-shrink: 0;
  font-weight: 690;
}

.product-page .pdp-variants a[aria-current] {
  border-color: var(--shop-accent);
  color: var(--shop-accent);
  background: #edf3f8;
  font-weight: 660;
}

.product-page .pdp-variants a:hover {
  border-color: var(--shop-accent);
  text-decoration: none;
}

.pdp-terms {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin: 0 0 22px;
  border: 1px solid var(--shop-border);
  border-radius: 9px;
  overflow: hidden;
}

.product-page .pdp-terms a {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 13px 27px 13px 14px;
  background: #fff;
}

.pdp-terms a + a {
  border-left: 1px solid var(--shop-border);
}

.pdp-terms a::after {
  content: '↗';
  position: absolute;
  top: .7rem;
  right: .65rem;
  color: var(--shop-accent);
}

.product-page .pdp-terms a:hover,
.product-page .pdp-terms a:focus-visible {
  background: var(--shop-tint);
  text-decoration: none;
}

.pdp-terms strong {
  font-size: 14px;
  color: var(--shop-accent);
  font-weight: 670;
}

.pdp-terms span {
  font-size: 12px;
  line-height: 1.25;
  color: var(--shop-muted);
}

.pdp-faq,
.pdp-shelf {
  margin-top: 26px;
}

.pdp-faq {
  padding: clamp(15px, 2vw, 24px);
  border: 1px solid var(--shop-border);
  border-radius: 10px;
  background: #fff;
}

.pdp-faq h2,
.pdp-shelf h2 {
  margin: 0 0 10px;
  font-size: clamp(21px,2.2vw,29px);
  line-height: 1.22;
}

.pdp-faq details {
  border-top: 1px solid var(--shop-border);
}

.pdp-faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 24px 10px 0;
  list-style: none;
  font-weight: 620;
}

.pdp-faq summary::-webkit-details-marker {
  display: none;
}

.pdp-faq summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  color: var(--shop-accent);
}

.pdp-faq details[open] summary::after {
  content: '−';
}

.pdp-faq details p {
  max-width: 78ch;
  margin: 0 0 13px;
  color: var(--shop-muted);
}

.pdp-shelf > p {
  margin: -3px 0 12px;
  color: var(--shop-muted);
  font-size: 14px;
}

.pdp-related-types {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pdp-related-types a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 6px 11px;
  background: #fff;
  border: 1px solid var(--shop-border);
  border-radius: 7px;
  color: var(--shop-accent);
  font-size: 14px;
  font-weight: 610;
}

.pdp-mobile-quote {
  display: none;
}

@media (max-width: 700px) {
  .pdp-mobile-quote {
    position: fixed;
    display: grid;
    z-index: 7;
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 14px max(8px, env(safe-area-inset-bottom));
    color: var(--shop-ink);
    background: #fff;
    border-top: 1px solid var(--shop-border);
    box-shadow: 0 -6px 20px #14233211;
  }

  .pdp-mobile-quote > div {
    display: grid;
    gap: 1px;
    min-width: 0;
    line-height: 1.16;
  }

  .pdp-mobile-quote strong {
    font-size: clamp(14px,4.5vw,20px);
    font-weight: 720;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
  }

  .pdp-mobile-quote small {
    color: var(--shop-muted);
    font-size: 11px;
  }

  .pdp-mobile-quote .cta {
    min-height: 44px;
    gap: 0;
    padding: 7px 6px;
    background: var(--shop-accent);
    border-radius: 6px;
    color: #fff;
    text-align: center;
    font-size: clamp(12px,3.6vw,14px);
    line-height: 1.25;
  }

  body:has(.pdp-mobile-quote) .store-footer {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .product-page .pdp-contact {
    padding-top: 5px;
  }

  .product-page .pdp-contact a,
  .product-page .pdp-delivery-quote {
    min-height: 41px;
  }

  .pdp-terms {
    grid-template-columns: repeat(2,minmax(0,1fr));
    margin-bottom: 16px;
  }

  .pdp-terms a:nth-child(odd) {
    border-left: 0;
  }

  .pdp-terms a:nth-child(n + 3) {
    border-top: 1px solid var(--shop-border);
  }

  .pdp-faq,
  .pdp-shelf {
    margin-top: 20px;
  }
}
