/* Shop page concept, and the parts of the product page that are filled in from the catalog. */

.shop-page { background: var(--white); }

.shop-head { padding-block: 22px clamp(28px, 4vw, 48px); }
.shop-head h1 { margin-top: clamp(24px, 4vw, 48px); font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1; color: var(--espresso); }
.shop-count { margin-top: 14px; color: var(--taupe); }

.shop-filter { margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--bark); }
.shop-filter ul { display: flex; flex-wrap: wrap; gap: 0 clamp(14px, 1.6vw, 24px); }
.shop-filter a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-top: -1px;
  border-top: 2px solid transparent;
  font: 400 1.1875rem/1.1 var(--serif);
  color: var(--taupe);
  text-decoration: none;
  white-space: nowrap;
}
.shop-filter a:hover { color: var(--espresso); }
.shop-filter a[aria-current="page"] { color: var(--espresso); border-top-color: var(--champagne); }

.shop-list { padding-bottom: var(--band); }
.shop-grid { row-gap: clamp(36px, 4vw, 56px); }
.shop-list noscript p { max-width: 46ch; }

/* Product photos that are styled scenes fill their tile; cut-outs keep the tile colour around them. */
.product-shot-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; mix-blend-mode: normal; }

/* Product page: options longer than a length, a long list as a menu, and sold-out choices. */
.pdp-length-grid.is-wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pdp-length-grid.is-wide .pdp-length span { padding: 8px 10px; font-size: 0.9375rem; text-align: center; }
.pdp-length-grid.is-menu { grid-template-columns: 1fr; }
.pdp-length.is-out span { color: var(--taupe); text-decoration: line-through; border-style: dashed; }
.pdp-length.is-out input { cursor: default; }
.pdp-select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid rgba(70, 62, 54, 0.45);
  border-radius: 2px;
  color: var(--espresso);
  font: 400 1rem var(--sans);
}
.pdp-lengths[hidden], .pdp-thumbs[hidden], .pdp-install[hidden], .pdp-reviews[hidden], .pdp-pair[hidden], .pdp-assure[hidden], .pdp-assure li[hidden], .pdp-text[hidden] { display: none; }
.crumbs ol { align-items: center; }
.pdp-gallery.is-single { grid-template-columns: minmax(0, 1fr); }
/* A wide photo keeps its shape instead of being cut down to a tall tile. */
.pdp-stage.is-wide { aspect-ratio: 4 / 3; }
.pdp-stage.is-wide img { object-position: 50% 50%; }
.pdp-added { margin-top: 12px; font-weight: 500; color: var(--espresso); }
.pdp-added:empty { display: none; }
.pdp-details details[hidden] { display: none; }

@media (max-width: 860px) {
  /* The collection list scrolls sideways under the heading instead of wrapping into rows. */
  .shop-filter { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .shop-filter::-webkit-scrollbar { display: none; }
  .shop-filter ul { flex-wrap: nowrap; }
  .shop-filter a { font-size: 1.125rem; }
  /* On a phone the product name is the heading just below, so the breadcrumb stops at the collection. */
  .pdp-page .crumbs li[aria-current="page"] { display: none; }
}
