/* Scoped catalog/detail presentation. Design and checkout retain their styles. */
.storefront-catalog,
.storefront-product {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.storefront-catalog > h1,
.storefront-product h1 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.04;
}
.storefront-catalog .storefront-catalog-search {
  margin: 18px 0 8px;
  max-width: 420px;
  border: 1px solid var(--line);
  padding: 0 12px;
}
.storefront-catalog .storefront-catalog-search summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}
.storefront-catalog .storefront-catalog-search input {
  width: 100%;
  margin: 6px 0 12px;
}
.storefront-catalog #results {
  font-size: 13px;
  color: var(--muted);
}
.storefront-catalog .style-card {
  min-width: 0;
}
.storefront-catalog .card-copy h2 {
  margin: 0;
  font: 800 clamp(23px, 2.8vw, 32px)/1.1 var(--display);
  letter-spacing: -0.04em;
}
.storefront-catalog .storefront-card-price {
  font-size: 20px;
  color: #141515;
}
.storefront-catalog .storefront-reference-price,
.storefront-product .storefront-reference-price {
  display: block;
  margin-top: 4px;
  font:
    500 12px/1.4 system-ui,
    sans-serif;
}
.storefront-catalog .storefront-design-link,
.storefront-product .storefront-design-link {
  min-height: 48px;
  width: 100%;
  margin-top: 8px;
  background: #dbfa54;
  color: #141515;
  white-space: normal;
}
.storefront-catalog .storefront-design-link:hover,
.storefront-product .storefront-design-link:hover {
  background: #e9ff9d;
}
.storefront-catalog .storefront-detail-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 5px;
  font-size: 13px;
  text-underline-offset: 3px;
}
.storefront-product .product-layout,
.storefront-product .storefront-product-copy,
.storefront-product .form-grid > * {
  min-width: 0;
}
.storefront-product .storefront-style-description {
  font-size: 18px;
}
.storefront-product .form-grid {
  margin-top: 20px;
}
.storefront-product .form-grid select {
  width: 100%;
}
.storefront-product .storefront-shipping {
  margin: 18px 0;
  padding-left: 12px;
  border-left: 3px solid #dbfa54;
  font-size: 14px;
}
.storefront-product .storefront-design-note {
  font-size: 13px;
  color: var(--muted);
}
.storefront-product .storefront-inline-sizes,
.storefront-product .storefront-legacy-purchase {
  border-bottom: 1px solid var(--line);
  margin-top: 10px;
  padding-block: 4px 10px;
}
.storefront-product .storefront-inline-sizes > summary,
.storefront-product .storefront-legacy-purchase > summary {
  min-height: 44px;
  padding-block: 11px;
  font-size: 14px;
  cursor: pointer;
}
.storefront-product .storefront-inline-sizes label {
  max-width: 150px;
}
.storefront-product .storefront-size-table {
  overflow-x: auto;
  max-width: 100%;
  margin-block: 12px;
}
.storefront-product .storefront-size-table table {
  min-width: 310px;
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.storefront-product .storefront-size-table :is(th, td) {
  padding: 9px 6px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.storefront-product .storefront-size-table small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.storefront-product .storefront-size-table caption {
  text-align: left;
  padding-block: 8px;
}
.storefront-product .storefront-legacy-purchase p {
  font-size: 13px;
  color: var(--muted);
}
.storefront-product .storefront-purchase-rules,
.storefront-product #product-info > details,
.storefront-product .storefront-reviews {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.storefront-product
  :is(.storefront-purchase-rules, #product-info > details, .storefront-reviews)
  > summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 650;
}
.storefront-product #product-info {
  margin-top: 30px;
}
.storefront-product .gallery-controls {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 5px;
  padding: 8px;
}
.storefront-product .gallery-controls > button {
  min-height: 44px;
  padding: 5px;
}
/* Suppress double-tap zoom only on paging controls; retain scrolling and pinch. */
.storefront-product .gallery-controls button {
  touch-action: manipulation;
}
.storefront-product .gallery-visual {
  touch-action: pan-y pinch-zoom;
}
.storefront-product .gallery-dots {
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  min-width: 0;
}
.storefront-product .gallery-dots button {
  min-width: 44px;
  width: 44px;
  height: 44px;
  border-radius: 0;
  border-color: transparent;
  background: transparent;
}
.storefront-product .gallery-dots button::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: auto;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.storefront-product .gallery-dots button[aria-current="true"]::after {
  background: #dbfa54;
  border-color: #dbfa54;
}
@media (max-width: 700px) {
  .storefront-catalog .style-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .storefront-product .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .storefront-product .gallery-visual {
    height: 310px;
  }
  .storefront-product .gallery img {
    max-height: 280px;
  }
}
