.shop-page [hidden],
.shop-product-page [hidden] { display: none !important; }

.shop-page,
.shop-product-page { min-height: 0 !important; }

.shop-grid {
  display: block !important;
  padding-bottom: clamp(2.5rem, 4vw, 4.5rem) !important;
}

.shop-grid__row {
  width: 100%;
  display: flex;
  gap: var(--archive-gap);
  align-items: flex-start;
  margin-bottom: var(--archive-gap);
}

.shop-card {
  min-width: 0;
  grid-column: auto !important;
  flex: var(--shop-card-ratio) 1 calc(var(--shop-card-ratio) * var(--shop-row-height));
}

.shop-grid__row--incomplete .shop-card {
  flex: 0 0 calc(var(--shop-card-ratio) * var(--shop-row-height));
}

.shop-card__media {
  height: var(--shop-row-height) !important;
  aspect-ratio: auto !important;
}

.shop-product-hero { min-height: 0 !important; }

.shop-product-hero img,
.shop-product-hero video,
.shop-editorial-media img,
.shop-editorial-media video,
.shop-editorial-pair img,
.shop-editorial-pair video,
.shop-editorial-gallery img,
.shop-editorial-gallery video,
.shop-editorial-media-text__media img,
.shop-editorial-media-text__media video {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
}

.shop-product-info {
  padding-block: clamp(3.75rem, 5.5vw, 6rem) !important;
}

.shop-product-info__title { display: contents !important; }

.shop-product-info__title h1 {
  grid-column: 1 / 13;
  max-width: none !important;
  margin-bottom: clamp(1rem, 2vw, 2rem);
  font-size: clamp(3rem, 5vw, 5.8rem) !important;
  line-height: .9;
}

.shop-product-facts {
  grid-column: 1 / 7 !important;
  margin-top: 0 !important;
}

.shop-product-info__buy {
  grid-column: 7 / 13 !important;
  align-self: start !important;
  padding-left: clamp(1rem, 3vw, 3rem);
}

.shop-product-info__price {
  font-size: clamp(2rem, 3vw, 3.25rem) !important;
  line-height: 1;
  margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem) !important;
}

.shop-product-info__description {
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.25vw, 1.3rem);
  line-height: 1.45;
}

.shop-editorial-block--text,
.shop-editorial-block--feature {
  padding-block: clamp(3.5rem, 5vw, 6rem) !important;
}

.shop-editorial-media-text {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  min-height: 0 !important;
  align-items: center;
}

.shop-editorial-media-text__media {
  min-width: 0;
  align-self: center;
}

.shop-editorial-media-text__media figure { margin: 0; }

.shop-editorial-media-text__copy {
  width: 100%;
  max-width: 44rem;
  justify-self: center;
  align-self: center;
  justify-content: center !important;
  padding: clamp(2.5rem, 4vw, 5rem) !important;
}

.shop-editorial-media-text__copy h2 {
  max-width: 10ch;
  margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
}

.shop-editorial-pair {
  display: flex !important;
  grid-template-columns: none !important;
  gap: var(--archive-gap);
  align-items: flex-start;
}

.shop-editorial-pair figure {
  min-width: 0;
  flex: var(--shop-media-ratio) 1 0;
}

.shop-editorial-block--gallery {
  padding-top: clamp(2.5rem, 4vw, 4.5rem) !important;
}

.shop-editorial-gallery__heading {
  padding-bottom: clamp(1.75rem, 3vw, 3rem) !important;
}

.shop-editorial-gallery__heading h2 {
  max-width: 8ch;
  margin: 0;
}

.shop-editorial-gallery {
  display: block !important;
}

.shop-editorial-gallery__row {
  display: flex;
  gap: var(--archive-gap);
  align-items: flex-start;
  margin-bottom: var(--archive-gap);
}

.shop-editorial-gallery__row:last-child { margin-bottom: 0; }

.shop-editorial-gallery__row figure {
  min-width: 0;
  flex: var(--shop-media-ratio) 1 0;
}

@media (min-width: 64rem) {
  .shop-product-info__title h1 { white-space: nowrap; }
}

@media (max-width: 48rem) {
  .shop-grid__row { display: block; }

  .shop-card,
  .shop-grid__row--incomplete .shop-card {
    width: 100%;
    flex: none;
  }

  .shop-card__media {
    height: auto !important;
    aspect-ratio: var(--shop-card-ratio) !important;
  }

  .shop-product-info__title { display: block !important; }

  .shop-product-info__title h1 {
    max-width: none !important;
    white-space: normal;
    font-size: clamp(2.75rem, 12vw, 4.5rem) !important;
  }

  .shop-product-facts {
    grid-column: auto !important;
    margin-top: var(--space-6) !important;
  }

  .shop-product-info__buy { padding-left: 0; }
  .shop-product-info__price { font-size: var(--text-lead) !important; }
  .shop-product-info__description { max-width: none; }

  .shop-editorial-media-text {
    grid-template-columns: 1fr !important;
  }

  .shop-editorial-media-text.is-right .shop-editorial-media-text__media { order: 0; }

  .shop-editorial-media-text__copy {
    max-width: none;
    padding: clamp(2.5rem, 8vw, 4rem) var(--page-margin) !important;
  }

  .shop-editorial-pair,
  .shop-editorial-gallery__row {
    display: block !important;
  }

  .shop-editorial-pair figure,
  .shop-editorial-gallery__row figure {
    width: 100%;
    margin-bottom: var(--archive-gap);
  }
}
