.cloth {
  display: grid;
  grid-template-columns: minmax(16rem, 24rem) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(3.2rem, 6vw, 5.5rem) clamp(1.2rem, 5vw, 5rem);
  overflow: clip;
  background:
    radial-gradient(55% 48% at 68% 42%, rgb(184 151 90 / 14%), transparent 62%),
    linear-gradient(180deg, #171513 0%, #10100e 72%, #0c0c0b 100%);
  color: #f4efe6;
}

.cloth-kicker,
.cloth-view,
.cloth-turn span {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.cloth-copy h2 {
  margin: 0.4rem 0 0.8rem;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  font-weight: 500;
  line-height: 0.92;
}

.cloth-copy p {
  max-width: 22rem;
  color: rgb(244 239 230 / 74%);
}

.cloth-price {
  margin: 1.2rem 0 0.4rem;
  color: #f4efe6;
  letter-spacing: 0.08em;
}

.cloth-sizes {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}

.cloth-sizes legend {
  margin-bottom: 0.55rem;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(244 239 230 / 62%);
}

.cloth-sizes div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cloth-sizes button,
.cloth-turn button,
.cloth-thumbs button {
  font: inherit;
  cursor: pointer;
}

.cloth-sizes button {
  min-width: 2.6rem;
  min-height: 2.6rem;
  border: 1px solid rgb(244 239 230 / 28%);
  background: transparent;
  color: #f4efe6;
}

.cloth-sizes button[aria-pressed="true"] {
  background: #f4efe6;
  color: #111;
  border-color: #f4efe6;
}

.cloth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.cloth-link {
  border-color: rgb(244 239 230 / 45%);
  color: #f4efe6;
}

.cloth-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cloth-stage {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.cloth-stage:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 8px;
}

.cloth-frame {
  width: min(100%, 34rem);
  margin: 0;
  overflow: hidden;
}

.cloth-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(74vh, 42rem);
  margin: 0 auto;
  filter: drop-shadow(0 22px 18px rgb(0 0 0 / 50%));
}

.cloth-thumbs {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.cloth-thumbs button {
  width: 4.4rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  background: transparent;
  opacity: 0.72;
}

.cloth-thumbs button[aria-selected="true"] {
  border-color: var(--gold);
  opacity: 1;
}

.cloth-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center bottom;
}

.cloth-turn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cloth-turn button {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgb(244 239 230 / 35%);
  border-radius: 999px;
  background: transparent;
  color: #f4efe6;
  font-size: 1.3rem;
  line-height: 1;
}

.cloth-turn button:hover,
.cloth-turn button:focus-visible,
.cloth-thumbs button:focus-visible,
.cloth-sizes button:focus-visible {
  border-color: var(--gold);
  outline: none;
}

.cloth .status { color: var(--gold); min-height: 1.4rem; }

@media (prefers-reduced-motion: no-preference) {
  .cloth-frame img {
    animation: cloth-in 0.45s var(--ease);
  }
}

@keyframes cloth-in {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@media (max-width: 980px) {
  .cloth {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .cloth-thumbs {
    justify-content: flex-start;
    order: 3;
    overflow-x: auto;
  }
  .cloth-copy { order: 2; }
  .cloth-stage { order: 1; }
  .cloth-frame img { max-height: min(62vh, 32rem); }
}

@media (max-width: 640px) {
  .cloth-thumbs button { flex: 0 0 4.2rem; }
  .cloth-actions .btn,
  .cloth-actions .btn-ghost { flex: 1 1 9rem; }
}
