/* ==========================================================================
   CUSTOM PRINT STUDIO & BESPOKE DESIGN LAB (Represent / Fear of God Style)
   ========================================================================== */

.custom-studio-wrap {
  padding: 1.5rem 0 5rem;
  min-height: 85vh;
}

.studio-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* Luxury Atelier Header (High-Fashion Bespoke Studio) */
.studio-top-header {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.studio-luxury-tag-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
}

.studio-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.7);
}

.studio-tag-mono {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  white-space: nowrap !important;
}

.studio-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.15;
}

.studio-subtitle {
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
  max-width: 680px;
}

.studio-spec-chips-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 0.25rem;
}

.studio-spec-chips-row::-webkit-scrollbar {
  display: none;
}

.studio-spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap !important;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

/* Two-Column Studio Layout */
.studio-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

/* Left Column: Live Mockup Canvas (Sticky on Desktop) */
.studio-canvas-sticky-col {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.studio-canvas-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.1;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  user-select: none;
}

/* Subtle fabric studio grid background */
.studio-canvas-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border-subtle) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.5;
  pointer-events: none;
}

.canvas-garment-img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
  position: relative;
  z-index: 1;
}

/* Artwork Live Projection Box */
.canvas-artwork-overlay {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Placements */
.canvas-artwork-overlay.placement-chest {
  top: 32%;
  left: 36%;
  width: 16%;
  height: 16%;
}

.canvas-artwork-overlay.placement-a4-front,
.canvas-artwork-overlay.placement-a4-back {
  top: 32%;
  left: 35%;
  width: 30%;
  height: 36%;
}

.canvas-artwork-overlay.placement-mega-back {
  top: 25%;
  left: 28%;
  width: 44%;
  height: 50%;
}

.canvas-artwork-overlay.placement-combo {
  top: 30%;
  left: 32%;
  width: 36%;
  height: 44%;
}

.canvas-artwork-overlay.placement-sleeve {
  top: 40%;
  left: 20%;
  width: 14%;
  height: 38%;
}

.canvas-user-artwork-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.canvas-user-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  text-align: center;
  line-height: 1.1;
  word-break: break-word;
  max-width: 100%;
}

/* Spec Badges overlay */
.canvas-spec-floating-bar {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.canvas-spec-pill {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.canvas-view-toggle {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.canvas-view-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-pill);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.canvas-view-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Right Column: Configurator Steps */
.studio-steps-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.studio-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-num-pill {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin: 0;
}

.step-selected-value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 700;
}

/* Options Grids */
.options-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.options-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.option-select-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.15s ease;
  position: relative;
}

.option-select-card:hover {
  border-color: var(--text-secondary);
}

.option-select-card.active {
  border-color: var(--text-primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 1px var(--text-primary);
}

.option-name {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.option-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.option-price-tag {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Color Swatches Grid */
.color-swatches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.color-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.color-swatch-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.color-swatch-item.active .color-swatch-circle {
  border-color: var(--text-primary);
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--text-primary);
}

.color-swatch-label {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* Artwork Upload Dropzone */
.artwork-dropzone {
  border: 2px dashed var(--border-medium);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  background: var(--bg-surface);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.artwork-dropzone:hover,
.artwork-dropzone.dragover {
  border-color: var(--text-primary);
  background: var(--bg-primary);
}

.dropzone-icon {
  width: 36px;
  height: 36px;
  color: var(--text-muted);
}

.dropzone-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.dropzone-text strong {
  color: var(--text-primary);
}

.dropzone-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Text Input generator */
.studio-text-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease;
}

.studio-text-input:focus {
  border-color: var(--text-primary);
}

/* Price Calculation Summary Box */
.studio-price-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.price-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-medium);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.price-total-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.price-total-amount {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Actions */
.studio-actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-whatsapp-concierge {
  background: #25d366 !important;
  color: #ffffff !important;
  border: none !important;
  font-family: var(--font-heading) !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  padding: 0.65rem 1.25rem !important;
  border-radius: var(--radius-full) !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-whatsapp-concierge:hover {
  background: #20ba5a !important;
  transform: scale(1.01);
}

#btn-add-custom-cart {
  padding: 0.65rem 1.25rem !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  border-radius: var(--radius-full) !important;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .studio-grid-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .studio-canvas-sticky-col {
    position: static;
  }
  .options-grid-2col,
  .options-grid-3col {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   COMPACT CASCADING DROPDOWN SELECTORS (User Requested Overhaul)
   ========================================================================== */
.studio-steps-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.studio-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.studio-dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.studio-dropdown-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.step-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.studio-select-wrap {
  position: relative;
  width: 100%;
}

.studio-custom-select {
  width: 100%;
  padding: 0.72rem 2.2rem 0.72rem 1rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-medium);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 14px 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.studio-custom-select:focus {
  border-color: var(--text-primary);
  outline: none;
}
