.home-content {
  width: 100%;
  padding-bottom: 28px;
}

.home-banner {
  width: 100%;
}

.home-banner[hidden] {
  display: none;
}

.home-banner picture,
.home-banner img {
  display: block;
  width: 100%;
}

.home-banner img {
  height: auto;
  object-fit: cover;
}

.home-collections,
.home-collection-sections {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.home-collections {
  padding: 20px 16px 4px;
}

.collection-carousel,
.product-carousel {
  display: grid;
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: inline proximity;
}

.collection-carousel::-webkit-scrollbar,
.product-carousel::-webkit-scrollbar {
  display: none;
}

.collection-carousel {
  grid-auto-columns: 116px;
  gap: 14px;
  padding: 2px 1px 12px;
}

.collection-card {
  min-width: 0;
  color: inherit;
  text-align: center;
  text-decoration: none;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}

.collection-card:focus-visible {
  outline: 2px solid rgba(31, 41, 55, 0.25);
  outline-offset: 3px;
}

.collection-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--site-radius);
  background: var(--store-neutral-color);
}

.collection-card-name {
  display: block;
  margin-top: 8px;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.home-collection-section {
  padding: 22px 16px 2px;
}

.home-collection-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.home-collection-heading h2 {
  margin: 0;
  color: #222;
  font-size: 20px;
  line-height: 1.25;
}

.home-collection-link {
  flex: 0 0 auto;
  color: var(--store-primary-color);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.product-carousel {
  grid-auto-columns: 160px;
  gap: 12px;
  padding: 2px 1px 12px;
}

.product-carousel .product-card {
  scroll-snap-align: start;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.home-load-error {
  margin: 28px auto;
  padding: 0 16px;
  color: #555;
  text-align: center;
}

@media (min-width: 720px) {
  .collection-carousel {
    grid-auto-columns: 140px;
  }

  .product-carousel {
    grid-auto-columns: 220px;
  }
}
