/* Keep every photo, purchase area, and policy note inside one product card. */
.shop .showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px 36px;
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  background: var(--cream);
  box-shadow: 5px 5px 0 #e5d6b8;
  scroll-margin-top: 24px;
}

.shop .showcase + .showcase {
  margin-top: 36px;
}

.shop .showcase > * {
  min-width: 0;
}

.shop .product-visual {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

/* The frame owns its height; an upload's dimensions cannot stretch the card. */
.shop .product-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fbf6e8;
  box-shadow: 4px 4px 0 #e5d6b8;
}

.shop .product-image-content {
  position: absolute;
  inset: 48px 20px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  min-width: 0;
  min-height: 0;
}

.shop .product-image-content img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 7px rgba(25, 45, 55, .14));
}

.shop .product-style-images {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
}

.shop .product-tag {
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 8px;
  border-width: 1px;
  transform: none;
  font-size: .7rem;
  line-height: 1.4;
  letter-spacing: .04em;
}

.shop .product-visual figcaption {
  min-height: 2.8em;
  margin: 12px 0 0;
  font-size: .78rem;
  line-height: 1.4;
}

.shop .product-copy {
  padding: 0;
  overflow-wrap: anywhere;
}

.shop .product-copy h3 {
  margin: 12px 0 16px;
  font-size: clamp(1.75rem, 2.6vw, 2.3rem);
  line-height: 1.18;
}

.shop .product-copy .fine {
  margin-bottom: 16px;
  line-height: 1.6;
}

.shop .product-rule {
  margin: 20px 0;
}

.shop .ship {
  margin: 10px 0 20px;
}

.shop .paypal-purchase {
  min-width: 0;
}

/* Longer assurances belong to this product, below its photo and purchase area. */
.shop .product-notes {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.shop .product-notes .product-support {
  max-width: none;
  margin: 0;
  line-height: 1.6;
}

.shop .product-notes .preorder-information {
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.shop .preorder-information p {
  max-width: none;
  font-size: .9rem;
}

.shop .product-notes .purchase-trust {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding-top: 16px;
  font-size: .8rem;
}

@media (max-width: 840px) {
  .shop .showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .shop .product-visual {
    max-width: 440px;
    justify-self: center;
  }

  .shop .product-copy h3 {
    font-size: clamp(1.65rem, 5vw, 2.1rem);
  }

  .shop .product-notes .purchase-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .shop .section-wrap {
    padding-right: 16px;
    padding-left: 16px;
  }

  .shop .showcase {
    padding: 16px;
    gap: 20px;
    box-shadow: 3px 3px 0 #e5d6b8;
  }

  .shop .showcase + .showcase {
    margin-top: 28px;
  }

  .shop .product-image-content {
    inset: 44px 14px 14px;
  }
}
