.create-page-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.create-card {
  background: #F1F0E8;
  border-radius: 20px;
  box-shadow: 0px 8px 20px #89A8B2;
  padding: 30px;
  max-width: 1200px;
  width: 100%;
}

.creator-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* Character preview (left side) */
.character-preview {
  flex: 1;
  display: flex;
  justify-content: center;
}

.preview-card {
  background: #F1F0E8;
  border-radius: 20px;
  box-shadow: 0px 8px 20px #89A8B2;
  padding: 20px;
  width: 400px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preview-box {
  position: relative;
  width: 350px;
  height: 580px;
}

.preview-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Form layout */
.clothing-options {
  flex: 1;
}

.creator-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Vertical stack of clothing rows */
.clothing-rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* One full row: label on left, options on right */
.clothing-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Label aligned left in row */
.section-label {
  min-width: 60px;
  font-weight: bold;
  font-size: 16px;
}

/* Options appear in a horizontal row */
.option-row {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

/* Hide the actual radio */
.image-option input[type="radio"] {
  display: none;
}

.image-option{
  width: 60px;       
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  background-color: #fff;
  padding: 2px;
  box-sizing: border-box;
}

.option-image:hover {
  border-color: #666;
}

/* When selected */
.image-option input[type="radio"]:checked + img {
  border-color: #89A8B2;
}

/* No clothes option style */
.no-clothes-img {
  background-color: #f8f8f8;
  border: 2px dashed #aaa;
  padding: 4px;
}

/* Color swatches */
.color-options {
  display: grid;
  grid-template-columns: repeat(3, 48px); /* 3 items per row */
  gap: 10px;
  margin-top: 10px;
}

.color-swatch {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  border: 2px solid #aaa;
  cursor: pointer;
  background-color: #fff;
  padding: 2px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

/* Selected color highlight */
.color-options input[type="radio"]:checked + .color-swatch {
  border: 2px solid #89A8B2;
}

/* Submit button */
.submit-button {
  padding: 10px 20px;
  background-color: #B3C8CF;
  color: #F1F0E8;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #89A8B2;
}

/* Scale down base layout */
.create-card {
  max-width: 1000px; /* was 1200px */
  padding: 20px;
}

.preview-card {
  width: 320px;  /* was 400px */
  height: 520px; /* was 600px */
}

.preview-box {
  width: 300px;
  height: 500px;
}

/* Reduce clothing and swatch size slightly */
.option-image {
  width: 54px;  /* was 60px or 100% */
  height: 54px;
}

.color-swatch {
  width: 40px;
  height: 40px;
}

.option-row {
  gap: 8px;
}

.color-options {
  gap: 8px;
  grid-template-columns: repeat(3, 40px); /* 3 per row, smaller */
}

.reference-label {
  font-size: 12px;
  color: #555;
  text-align: center;
  margin-top: 4px;
  max-width: 60px;
  word-wrap: break-word;
}
.image-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
