.cloth-creator {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 360px);
  gap: 32px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid #e0e0e0;
  background: #f8f2ea;
  color: #1f1f1f;
  font-family: inherit;
}

.cloth-creator,
.cloth-creator * {
  font-family: inherit;
}

.cloth-creator__preview {
  display: grid;
  place-items: center;
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  height: 100%;
}

.cloth-creator__image {
  position: relative;
  width: 100%;
  max-width: 460px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.18));
}

.cloth-creator__photo {
  width: 100%;
  height: auto;
  display: block;
}

.cloth-creator__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: normal;
  opacity: 0.72;
  pointer-events: none;
}

.cloth-creator__pattern {
  display: none;
}

.cloth-creator__pattern.is-active {
  display: block;
}

.cloth-creator__controls {
  display: grid;
  gap: 20px;
}

.cloth-creator__title {
  font-size: 1.5rem;
  margin: 0;
}

.cloth-creator__label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.cloth-creator__options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cloth-creator__option {
  margin: 0;
  padding: 7px 12px;
  font-size: 0.9rem;
  transition: box-shadow 0.2s ease;
}

.cloth-creator__option.is-active {
  box-shadow: 0 0 0 2px rgba(31, 31, 31, 0.25) inset;
}

.cloth-creator__option:focus {
  outline: 2px solid #1f1f1f;
  outline-offset: 2px;
}

.cloth-creator__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cloth-creator__region-controls {
  display: grid;
  gap: 12px;
}

.cloth-creator__region-row {
  display: grid;
  gap: 8px;
}

.cloth-creator__region-label {
  margin: 0;
  font-size: 0.92rem;
}

.cloth-creator__swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(31, 31, 31, 0.7);
  background: var(--swatch-color, #fff);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cloth-creator__swatch.is-active {
  box-shadow: 0 0 0 2px #1f1f1f, 0 6px 14px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.cloth-creator__swatch:focus {
  outline: 2px solid #1f1f1f;
  outline-offset: 2px;
}

.cloth-creator__select {
  width: 100%;
  max-width: 260px;
  border: 1px solid #1f1f1f;
  background: #fff7ee;
  padding: 9px 12px;
  font-size: 0.95rem;
}

.cloth-creator__order {
  margin: 0;
  padding: 10px 14px;
  font-size: 0.95rem;
}

.cloth-creator__order.is-loading {
  opacity: 0.75;
  cursor: wait;
}

.cloth-creator__summary {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .cloth-creator {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
