.collection {
  padding: clamp(36px, 7vw, 90px) max(20px, calc((100% - 1112px) / 2));
  background: #171b19;
  color: #faf9f4;
}

.collection h2 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -.045em;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
}

.home-products article {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-products img.collection-photo {
  display: block;
  width: 100%;
  object-fit: cover;
}

.home-products a {
  align-self: flex-start;
  margin-top: auto;
}

@media (min-width: 900px) {
  .home-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.collection-photo {
  position: relative;
  aspect-ratio: 378 / 473;
  overflow: hidden;
  border-radius: 14px;
  background: #263d33;
}

.collection-photo::before {
  position: absolute;
  inset-block-start: calc(-8 / 473 * 100%);
  inset-inline-start: var(--photo-offset);
  width: calc(810 / 378 * 100%);
  aspect-ratio: 810 / 566;
  content: "";
  background: url("./media/outdoor-collection.png") center / 100% 100% no-repeat;
}

.collection-photo--sling {
  --photo-offset: calc(-30 / 378 * 100%);
}

.collection-photo--jacket {
  --photo-offset: calc(-420 / 378 * 100%);
}

.collection h3 {
  margin: 16px 0 6px;
  font-size: 1.35rem;
}

.collection p {
  margin: 0 0 12px;
  color: #e1e3d9;
  line-height: 1.55;
}

.collection a {
  display: inline-block;
  padding-block: 8px;
  color: #ffae79;
  font-weight: 750;
  text-underline-offset: .2em;
}

.outdoor-home .collection {
  background: #f8f8f6;
  color: #171b19;
}

.outdoor-home .hero-rfq {
  background: #faf9f4;
}

.home-products .collection-photo {
  aspect-ratio: 1;
  border: 1px solid #171b1914;
  background-color: #efefec;
}

.home-products .collection-photo--sling::before {
  inset-block-start: calc(-55 / 378 * 100%);
}

.home-products h3 {
  margin: 14px 0 2px;
  font-size: 1.125rem;
  line-height: 1.3;
}

.home-products h3 a {
  padding: 0;
  color: inherit;
  text-decoration: none;
}

.home-products h3 a:hover {
  text-decoration: underline;
}

.home-products .product-image-link {
  display: block;
  align-self: stretch;
  padding: 0;
  margin: 0;
}

@media (max-width: 600px) {
  .collection-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

main.collection {
  padding-inline: max(20px, calc((100% - 1112px) / 2));
  min-height: 75vh;
}

.store-detail {
  align-items: start;
}

.collection h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 6vw, 4.5rem);
}

.store-detail h2 {
  margin: 28px 0 12px;
  font-size: 1.4rem;
}

.store-detail dt {
  font-weight: 700;
}

.store-detail dd {
  margin: 4px 0 12px;
  color: #e1e3d9;
}

.collection .store-action {
  display: inline-block;
  padding: 12px 16px;
  border: 0;
  border-radius: 4px;
  background: #ffae79;
  color: #171b19;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.store-cart-list {
  padding: 0;
  list-style: none;
}

.store-cart-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 12px 0;
  border-bottom: 1px solid #626961;
}

.store-cart-list input {
  width: 4em;
  padding: 6px;
  font: inherit;
}

.store-cart-list button {
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}

#store-cart {
  margin-bottom: 16px;
}

.product-gallery {
  margin-top: clamp(40px, 8vw, 100px);
}

.product-gallery figure {
  margin: 0;
}

.product-cover {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.size-table {
  overflow-x: auto;
}

.size-table table {
  width: 100%;
  border-collapse: collapse;
}

.size-table th,
.size-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid #626961;
}

.product-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f0f0f0;
  border-radius: 12px;
}

@media (min-width: 900px) {
  .product-gallery .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
