/* ==========================================================================
   INTERACTIVE STYLE GENERATOR & FIT STUDIO WIDGET (Inspired by Reference 2)
   Live Streetwear Customizer: Silhouette, Finish, Size, Colorway
   Modern Manrope Solid & Outline Pill Redesign
   ========================================================================== */

.style-generator-section {
  padding: 4.5rem var(--fluid-gutter);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.generator-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  align-items: center;
}

.generator-info-col h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.generator-info-col p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Interactive Controls Card */
.generator-controls-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  box-shadow: var(--shadow-md);
}

.control-group-title {
  font-family: var(--font-pill);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.control-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Redesigned Solid & Outline Generator Pill */
.generator-pill {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: var(--font-pill);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.generator-pill:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.generator-pill.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  font-weight: 800;
}

/* Color Swatches */
.swatch-pills-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.color-swatch-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.color-swatch-btn:hover {
  transform: scale(1.12);
}

.color-swatch-btn.active {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
  transform: scale(1.15);
}

/* Live Simulator Visual Preview Panel */
.generator-preview-card {
  position: relative;
  background: radial-gradient(circle at 50% 40%, var(--bg-card) 0%, var(--bg-surface) 90%);
  border: 1px solid var(--border-medium);
  border-radius: 28px;
  padding: 3rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.preview-badge-top {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.preview-model-stage {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 2rem;
}

.preview-garment-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-garment-img:hover {
  transform: scale(1.06);
}

/* Bottom Floating Live Spec Bar */
.preview-spec-bar {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 1.25rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.preview-title-box h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.preview-title-box span {
  font-family: var(--font-pill);
  font-size: 0.78rem;
  color: var(--accent-blue);
  font-weight: 700;
}

.preview-price {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
}

.preview-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #032d12;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  font-family: var(--font-pill);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.preview-whatsapp-cta:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 900px) {
  .generator-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .style-generator-section {
    padding: 2.5rem var(--fluid-gutter);
  }
  .generator-controls-card {
    padding: 1.25rem 1rem;
    border-radius: 18px;
    gap: 1.2rem;
  }
  .control-group-title {
    font-size: 0.72rem;
    margin-bottom: 0.45rem;
  }
  .generator-pill {
    padding: 0.38rem 0.75rem;
    font-size: 0.76rem;
    gap: 0.35rem;
  }
  .color-swatch-btn {
    width: 30px;
    height: 30px;
  }
  .generator-preview-card {
    padding: 2rem 1.25rem 1.25rem;
    min-height: 420px;
    border-radius: 20px;
  }
  .preview-badge-top {
    top: 1rem;
    left: 1rem;
    gap: 0.4rem;
  }
  .preview-badge-top .badge {
    padding: 0.2rem 0.55rem;
    font-size: 0.65rem;
  }
  .preview-spec-bar {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .preview-spec-bar .preview-whatsapp-cta {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
  }
}
