/**
 * Viewix Factory - Product Configurator Styles
 * Interactive product selection matrix, option pills & configuration card.
 */

.vx-configurator-section {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.vx-configurator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem;
  align-items: start;
}

/* Product Visual Showcase (Left Column) */
.vx-product-showcase {
  position: sticky;
  top: calc(var(--vx-header-height) + 2rem);
  background: var(--vx-color-surface);
  border: 1px solid var(--vx-color-border);
  border-radius: var(--vx-radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vx-main-preview-wrap {
  position: relative;
  width: 100%;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  overflow: hidden;
}

.vx-main-preview-img {
  max-height: 400px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.12));
  transition: transform 0.3s ease;
}

.vx-angle-thumbnails {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.vx-angle-thumb-btn {
  width: 64px;
  height: 64px;
  border-radius: var(--vx-radius-md);
  border: 2px solid var(--vx-color-border);
  background: #ffffff;
  padding: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--vx-transition);
}

.vx-angle-thumb-btn img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.vx-angle-thumb-btn:hover, .vx-angle-thumb-btn.active {
  border-color: var(--vx-color-primary);
  box-shadow: 0 0 0 2px rgba(0, 74, 198, 0.2);
}

/* Configurator Form & Controls (Right Column) */
.vx-configurator-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.vx-config-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vx-config-label {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vx-color-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vx-config-label-val {
  font-weight: 600;
  color: var(--vx-color-primary);
  text-transform: none;
}

/* Option Pill Selector */
.vx-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.vx-pill-btn {
  padding: 0.65rem 1.125rem;
  border-radius: var(--vx-radius-md);
  border: 1px solid var(--vx-color-border);
  background: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vx-color-text-main);
  cursor: pointer;
  transition: var(--vx-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
}

.vx-pill-btn:hover {
  border-color: var(--vx-color-primary);
  background: var(--vx-color-tint);
}

.vx-pill-btn.active {
  background: var(--vx-color-primary);
  border-color: var(--vx-color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 74, 198, 0.25);
}

.vx-pill-btn:disabled, .vx-pill-btn.disabled {
  opacity: 0.38;
  cursor: not-allowed;
  background: var(--vx-color-surface);
  border-color: var(--vx-color-border);
  color: var(--vx-color-text-muted);
  text-decoration: line-through;
}

.vx-request-quote-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: auto;
}

/* Dropdown / Spec Pill */
.vx-spec-card-option {
  border: 1px solid var(--vx-color-border);
  border-radius: var(--vx-radius-md);
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vx-color-dark);
}

/* Summary Card "YOUR CONFIGURATION" */
.vx-config-summary-card {
  background: var(--vx-color-surface);
  border: 1px solid var(--vx-color-border);
  border-radius: var(--vx-radius-lg);
  padding: 1.75rem;
  margin-top: 1rem;
}

.vx-config-summary-title {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vx-color-dark);
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--vx-color-border);
}

.vx-summary-specs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.vx-summary-spec-item {
  font-size: 0.875rem;
}

.vx-summary-spec-label {
  color: var(--vx-color-text-muted);
  display: block;
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  font-weight: 700;
}

.vx-summary-spec-value {
  font-weight: 700;
  color: var(--vx-color-dark);
}

/* Model Code Banner */
.vx-model-code-box {
  background: var(--vx-color-tint);
  border: 1px dashed var(--vx-color-primary);
  border-radius: var(--vx-radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vx-model-code-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--vx-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vx-model-code-val {
  font-family: var(--vx-font-mono, monospace);
  font-size: 1rem;
  font-weight: 800;
  color: var(--vx-color-primary);
}

/* Configurator Action Buttons */
.vx-config-actions {
  display: flex;
  gap: 1rem;
}

.vx-config-actions .vx-btn {
  flex: 1;
  min-width: 0;
  white-space: normal;
}

/* Responsive Configurator */
@media (max-width: 1024px) {
  .vx-configurator-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .vx-product-showcase {
    position: static;
  }
}

@media (max-width: 480px) {
  .vx-summary-specs-list {
    grid-template-columns: 1fr;
  }
  .vx-config-actions {
    flex-direction: column;
  }
  .vx-main-preview-wrap {
    height: 300px;
  }
}
