/* =========================
   BASE / TOKENS
   ========================= */
:root {
  --bg: #f3f3f3;
  --text: #eee;
  --muted: #777;
  --border: #1e1e1e;
  --pill: #1a1a1a;
  --btn: #16d19a;
  --btn-ink: #0b0b0b;

  --card-bg: #ffffff;
  --card-stroke: rgba(0, 0, 0, 0.06);
  --elev-s1: 0 1px 1px rgba(0, 0, 0, 0.04), 0 8px 16px rgba(0, 0, 0, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.06);

  --headerH: 72px;
  --contentTop: 32px;
  --pageMax: 1100px;
}

/* =========================
   RESET / GLOBAL
   ========================= */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Montserrat,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
}

a {
  color: inherit;
  text-decoration: none;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Wrapper principal */
.wrap {
  max-width: var(--pageMax);
  margin: 0 auto;
  padding: 24px;
  padding-top: calc(var(--headerH) + var(--contentTop));
}

/* =========================
   LAYOUT
   ========================= */
.grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: flex-start;
}

.row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* =========================
   CARTÕES
   ========================= */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-stroke);
  border-radius: 2px; /* cantos ligeiramente mais “rígidos” */
  padding: 22px;
  box-shadow: var(--elev-s1);
  transition:
    transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Variante mais “apertada” para a galeria */
.card--tight {
  padding-bottom: 10px;
}

/* =========================
   GALERIA
   ========================= */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-media {
  aspect-ratio: 1/1;
  background: #0f0f0f;
  border-radius: 2px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-media img {
  width: 90%;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
}

.thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.thumbs img {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: #0f0f0f;
  border-radius: 2px;
  border: 1px solid var(--border);
  opacity: 0.75;
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.thumbs img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.thumbs img.active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--btn);
}

/* =========================
   TEXTO / PREÇO
   ========================= */
.title {
  font-family: Oswald, Montserrat, Arial;
  font-size: 28px;
  letter-spacing: 0.3px;
  margin: 0 0 4px;
  color: #111;
}

.rating {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 16px;
}

.price-now {
  font-size: 36px;
  font-weight: 800;
  color: #2b2f33;
  letter-spacing: 0.2px;
  line-height: 1.05;
}

.price-now::first-letter {
  font-size: 0.82em;
  margin-right: 2px;
  opacity: 0.95;
}

.price-old {
  color: #7e8890;
  font-weight: 600;
  text-decoration: line-through;
  text-underline-offset: 0.2em;
}

/* Pills */
.inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pill {
  background: #eef1f4;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  color: #0f172a;
}

/* =========================
   CAMPOS / TOGGLES / CTAs
   ========================= */
select,
input[type="number"],
input[type="text"],
textarea {
  width: 100%;
  background: #f7f8f9;
  border: 1px solid #d0d5dd;
  color: #111;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

label {
  font-size: 13px;
  color: #667085;
  margin-bottom: 6px;
  display: block;
  font-weight: 600;
}

.muted {
  color: #667085;
  font-size: 13px;
}

.small {
  font-size: 12px;
  color: #4b5563;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  background: #e5e7eb;
  border-radius: 999px;
  cursor: pointer;
  flex: 0 0 48px;
  border: 1px solid #d0d5dd;
}

.knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.18s ease;
}

.switch.on {
  background: var(--btn);
  border-color: var(--btn);
}

.switch.on .knob {
  left: 22px;
}

.switch.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cta {
  display: flex;
  gap: 12px;
  margin-top: 40px; /* mais espaço antes do botão de personalizar */
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}

.btn-solid {
  background: var(--btn);
  color: var(--btn-ink);
}

.btn-ghost {
  background: #fff;
  border: 1px solid #d0d5dd;
}

.btn-ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* =========================
   DETALHES
   ========================= */
.sec {
  margin-top: 18px;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: #1f2937;
}

.ok {
  color: #0f9668;
}
.warn {
  color: #a16207;
}

.card #details {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: #1f2937;
}

#details p {
  color: #1f2937;
  line-height: 1.55;
  margin: 10px 0 12px;
}

#details p strong {
  color: #0f172a;
  font-weight: 700;
}

#details .list {
  color: #1f2937;
  list-style: disc inside;
  padding-left: 0;
  margin: 6px 0 12px;
}

#details .list li {
  margin: 6px 0;
}

#details .small,
.card .small {
  color: #2d3540;
  font-size: 15px;
  line-height: 1.5;
}

#details a {
  color: #0ea5e9;
  text-underline-offset: 2px;
}

#details a:hover {
  text-decoration-thickness: 2px;
}

#btnDetails {
  border-color: #cbd5e1;
}

#btnDetails:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* Label da bolsa */
#bagLabel {
  font-size: 0.95rem;
  color: #111;
}
#bagLabel strong {
  font-weight: 600;
  color: #111;
}
#bagLabel .muted {
  color: #6b7280;
}

/* =========================
   CAMPOS DE TAMANHO ESTÁTICO
   ========================= */
.static-size {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-static {
  background: #f7f8f9;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  pointer-events: none;
  color: #111;
}

.size-note {
  font-size: 0.8rem;
  color: #6b7280;
}

/* =========================
   FORMULÁRIO (card da direita)
   ========================= */
.card.form-light {
  --ink: #111;
  --muted: #111;
  --border: #d0d5dd;
  --field: #f7f8f9;
  --pill: #eef1f4;

  display: flex;
  flex-direction: column;
  min-height: 720px;
  padding-bottom: 28px;
}

.form-light .title {
  color: #0f172a;
}
.form-light .pill {
  background: var(--pill);
  border: 1px solid #e5e7eb;
  color: #0f172a;
}
.form-light select,
.form-light input[type="number"],
.form-light input[type="text"],
.form-light textarea {
  background: var(--field);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.form-light ::placeholder {
  color: #98a2b3;
}
.form-light label {
  color: var(--muted);
  font-weight: 600;
}
.form-light .switch {
  background: #e5e7eb;
  border: 1px solid #d0d5dd;
}
.form-light .knob {
  background: #fff;
}
.form-light .switch.on {
  background: var(--btn);
  border-color: var(--btn);
}
.form-light .btn-ghost {
  background: #fff;
  border: 1px solid #d0d5dd;
}
.form-light .btn-ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* =========================
   RESPONSIVO / MOBILE
   ========================= */
@media (max-width: 960px) {
  html,
  body {
    overflow-x: hidden; /* evita scroll horizontal */
  }

  .wrap {
    max-width: 100%;
    padding: 16px;
    padding-top: calc(var(--headerH) + 20px);
    padding-bottom: 96px; /* espaço para o botão flutuante do WhatsApp */
  }

  .grid {
    grid-template-columns: 1fr; /* uma coluna apenas */
    gap: 20px;
    justify-items: center; /* centra as cartas */
    align-items: flex-start;
  }

  .card {
    width: 100%;
    max-width: 480px; /* largura confortável em mobile */
  }

  .card--tight {
    margin: 0 auto;
  }

  .card.form-light {
    min-height: 0;
    padding-bottom: 22px;
  }

  .hero-media {
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-media img {
    width: 100%;
    height: auto;
  }

  .thumbs {
    justify-content: center;
  }

  .row {
    grid-template-columns: 1fr; /* inputs em coluna */
  }

  .cta {
    flex-direction: column; /* botões em stack */
    margin-top: 28px;
    margin-bottom: 6px;
  }

  .btn {
    width: 100%;
  }
}
.field-full {
  grid-column: 1 / -1; /* ocupa as 2 colunas da .row */
}

/* Mais espaço entre Detalhes e o campo Quantidade */
#details {
  margin-bottom: 18px; /* ajusta para 20/24 se quiseres ainda mais espaço */
}
/* Título do modelo (SP PRO) mais destacado */
.card.form-light .title {
  font-family: "Kanit", Montserrat, Arial; /* fonte diferente */
  font-size: 50px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #0b1120;

  position: relative;
  display: inline-block; /* para o sublinhado não ir à largura toda */
  padding-bottom: 6px;
}

/* “Underline” personalizado sob o SP PRO */
.card.form-light .title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%; /* acompanha o comprimento do texto */
  height: 3px;
  background: linear-gradient(90deg, #16d19a, #0ea5e9);
  border-radius: 999px;
}
.form-light .cta {
  margin-top: 9px !important;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(-100px) scale(1);
}
.thumbs img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  object-position: center;
  background: transparent; /* ou #fff se preferires */
}
