/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f3;
  color: #2c2c2a;
  min-height: 100vh;
}

/* =====================
   HEADER
   ===================== */
.header {
  background: #ffffff;
  border-bottom: 0.5px solid #e4e4e0;
  padding: 14px 28px;
  display: flex;
  align-items: center;
}

.logo {
  font-size: 17px;
  font-weight: 500;
  color: #2c2c2a;
  letter-spacing: -0.3px;
}

/* =====================
   NOME DA DOBRADURA
   ===================== */
.nome-wrap {
  padding: 18px 24px 0;
}

.card-nome {
  background: #ffffff;
  border-radius: 16px;
  border: 0.5px solid #e4e4e0;
  padding: 15px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nome-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #aaaaaa;
  white-space: nowrap;
}

.nome-divider {
  width: 0.5px;
  height: 22px;
  background: #e0e0e0;
  flex-shrink: 0;
}

.nome-text {
  font-size: 18px;
  font-weight: 500;
  color: #2c2c2a;
  letter-spacing: -0.3px;
}

/* =====================
   GRID PRINCIPAL
   ===================== */
.main {
  display: grid;
  gap: 16px;
  padding: 16px 24px 28px;
}

/* =====================
   CARD LABEL (compartilhado)
   ===================== */
.card-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #aaaaaa;
  margin-bottom: 4px;
}

/* =====================
   CARROSSEL
   ===================== */
.card-carousel {
  background: #ffffff;
  border-radius: 20px;
  border: 0.5px solid #e4e4e0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-header {
  padding: 14px 22px;
  border-bottom: 0.5px solid #f0f0ee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c5484b;
}

.card-header h1 {
  font-size: 15px;
  font-weight: 500;
  color: #2c2c2a;
  margin: 0;
}

.card-header span {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #aaa;
}

.carousel-area {
  min-height: auto;
  min-width: auto;
  position: relative;
  overflow: hidden;
  flex: 1;
  padding: 8px 12px;
}

#ggb-container {
  width: 100%;
  height: 720px;
  margin: 0 auto;
}

/* Track dos slides */
.carousel-track {
  display: none;
}

/* Cada slide */
.slide {
  display: none;
}

.slide img,
.slide model-viewer {
  display: none;
}

/* Botões de navegação */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 0.5px solid #dddddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: #666666;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
}

.nav-btn:hover {
  background: #f5f5f3;
}

.nav-l { left: 14px; }
.nav-r { right: 14px; }

/* Numeração do passo */
.step-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(255, 255, 255, 0.92);
  border: 0.5px solid #dddddd;
  border-radius: 20px;
  padding: 4px 5px;
  font-size: 12px;
  font-weight: 500;
  color: #444444;
  z-index: 10;
}

.step-sep {
  color: #bbbbbb;
  margin: 0 2px;
}

/* Dots de navegação */
.dots-row {
  display: flex;
  gap: 5px;
  justify-content: center;
  padding: 14px 0;
  background: #ffffff;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dddddd;
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}

.dot.active {
  background: #888888;
  width: 18px;
  border-radius: 4px;
}

/* =====================
   SLIDER DE MODELOS 3D
   ===================== */
.model-row {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 16px;
}

.model-viewer-main {
  flex: 1;
  min-width: 0;
  height: 500px;
}

.slider-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 6px;
}

.glb-slider {
  writing-mode: vertical-lr;
  direction: ltr;
  width: 4px;
  height: 400px;
  border-radius: 4px;
  background: #e4e4e0;
  outline: none;
  cursor: pointer;
}

.glb-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #c5484b;
  cursor: pointer;
  transition: transform 0.15s;
}

.glb-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.glb-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #c5484b;
  cursor: pointer;
}

.slider-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 400px;
  writing-mode: horizontal-tb;
}

.slider-labels span {
  font-size: 12px;
  font-weight: 500;
  color: #aaaaaa;
  transition: color 0.15s;
}

.slider-labels span.active {
  color: #2c2c2a;
}

/* =====================
   RESPONSIVO
   ===================== */
@media (max-width: 640px) {
  .main {
    grid-template-columns: 1fr;
    padding: 12px 16px 24px;
  }

  .nome-wrap {
    padding: 14px 16px 0;
  }

  .nome-text {
    font-size: 15px;
  }

  .slide {
    height: 240px;
  }

  .model-row {
    flex-direction: column;
    align-items: stretch;
  }

  .model-viewer-main {
    flex: none;
    height: 320px;
  }

  .slider-wrap {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
  }

  .glb-slider {
    writing-mode: horizontal-tb;
    direction: ltr;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
  }

  .slider-labels {
    flex-direction: row;
    height: auto;
    width: 100%;
    justify-content: space-between;
  }
}
