.breadcrumb {
  padding: 1.15rem var(--gutter) 0.35rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.breadcrumb a:hover {
  color: var(--color-ink);
}

.product-page {
  padding: 1rem 0 4rem;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

/* Gallery */
.product-gallery {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
}

.product-gallery__thumbs {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.thumb-btn {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-sand);
  border: 1px solid transparent;
  opacity: 0.72;
  transition: opacity var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.thumb-btn.is-active,
.thumb-btn:hover {
  opacity: 1;
  border-color: var(--color-brown);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__stage {
  position: relative;
}

.product-gallery__main {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-sand);
  cursor: zoom-in;
}

.product-gallery__main img,
.product-gallery__main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product-gallery__main.is-zoomed img {
  transform: scale(1.55);
  cursor: zoom-out;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(250, 248, 244, 0.82);
  color: var(--color-brown);
}

.gallery-nav--prev {
  left: 0.75rem;
}

.gallery-nav--next {
  right: 0.75rem;
}

.gallery-dots {
  display: none;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.gallery-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-taupe);
  opacity: 0.45;
}

.gallery-dot.is-active {
  opacity: 1;
  background: var(--color-brown);
}

/* Product info */
.product-info {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  display: grid;
  gap: 1.15rem;
  padding-top: 0.35rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.product-rating__stars {
  color: var(--color-star);
  letter-spacing: 0.08em;
}

.product-info__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-brown);
}

.product-info__price {
  font-size: 1.15rem;
  font-weight: 500;
}

.product-info__desc {
  color: var(--color-muted);
  max-width: 28rem;
}

.option-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.option-label strong {
  color: var(--color-ink);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.92rem;
}

.color-swatches {
  display: flex;
  gap: 0.55rem;
}

.color-swatch {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(28, 24, 20, 0.12);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.color-swatch.is-active {
  border-color: var(--color-brown);
  transform: scale(1.08);
}

.size-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.size-finder-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brown);
}

.size-btn {
  min-width: 2.85rem;
  min-height: 2.85rem;
  padding: 0 0.65rem;
  border: 1px solid var(--color-line-strong);
  background: var(--color-off-white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.size-btn:hover {
  border-color: var(--color-brown);
}

.size-btn.is-active {
  background: var(--color-brown);
  border-color: var(--color-brown);
  color: var(--color-cream);
}

.size-btn.is-soldout,
.size-btn:disabled {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

.product-stock-msg {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.product-stock-msg.is-low {
  color: #8a5a2b;
}

.product-stock-msg.is-out {
  color: #8b2e2e;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 2.5rem 2.75rem 2.5rem;
  align-items: center;
  border: 1px solid var(--color-line-strong);
  width: max-content;
}

.qty-control button {
  height: 2.85rem;
  font-size: 1.1rem;
  color: var(--color-brown);
}

.qty-control span {
  text-align: center;
  font-weight: 500;
}

.buy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

.fav-toggle {
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid var(--color-line-strong);
  display: grid;
  place-items: center;
  color: var(--color-brown);
}

.fav-toggle.is-active {
  color: #a33d3d;
  border-color: currentColor;
}

.product-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.product-trust span {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  font-size: 0.72rem;
  color: var(--color-muted);
  line-height: 1.35;
}

.product-trust svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--color-brown);
}

.product-motion {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.75rem;
}

.product-motion h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--color-brown);
}

.product-motion__frame {
  position: relative;
  aspect-ratio: 16 / 10;
}

/* Related */
.related {
  padding-top: 1rem;
}

.related .product-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 980px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-info {
    position: static;
  }

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

  .product-gallery__thumbs {
    display: none;
  }

  .gallery-dots {
    display: flex;
  }

  .product-gallery__main {
    aspect-ratio: 4 / 5;
  }

  .related .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .product-trust {
    grid-template-columns: 1fr;
  }

  .related .product-grid {
    grid-template-columns: 1fr;
  }

  .product-page {
    padding-bottom: 5.5rem;
  }
}
