.gallery {
  display: grid;
  gap: 0.75rem;
}

.gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  aspect-ratio: 4 / 5;
  background: var(--fashion-accent-soft);
  outline: none;
}

.gallery__slide {
  scroll-snap-align: start;
  margin: 0;
  overflow: hidden;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.gallery__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--fashion-border);
}

.gallery__dot.is-active {
  background: var(--fashion-text);
}

.thumbs {
  display: none;
  gap: 0.5rem;
}

.thumb {
  flex: 0 0 4.25rem;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid transparent;
  background: var(--fashion-accent-soft);
  overflow: hidden;
  cursor: pointer;
}

.thumb.is-active { border-color: var(--fashion-text); }

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.product-detail {
  display: grid;
  gap: var(--fashion-space-6);
  padding: var(--fashion-space-5) 0 var(--fashion-space-8);
}

.product-info h1 {
  margin: 0.35rem 0 0.5rem;
}

.product-subtitle {
  color: var(--fashion-muted);
  margin: 0 0 0.75rem;
}

.product-info__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.product-info .fashion-price {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.product-copy {
  color: var(--fashion-muted);
  max-width: 36rem;
}

.availability {
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 1rem 0;
}

.product-meta-list {
  margin-top: 2rem;
  display: grid;
  gap: 0.5rem;
  color: var(--fashion-muted);
  font-size: 0.9rem;
}

.related-products {
  border-top: 1px solid var(--fashion-border);
}

@media (min-width: 900px) {
  .product-detail {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: start;
  }

  .gallery {
    grid-template-columns: 4.5rem 1fr;
  }

  .gallery__dots { display: none; }

  .thumbs {
    display: flex;
    flex-direction: column;
    overflow: visible;
    order: -1;
  }
}
