:root {
  --green: #002d17;
  --green-soft: #0a4a2b;
  --orange: #d68b32;
  --orange-dark: #b9742333;
  --bg: #ffffff;
  --text: #1c2620;
  --muted: #6b7a72;
  --line: #e6ece8;
  --radius: 18px;
  --shadow: 0 18px 45px -20px rgba(0, 45, 23, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  background: var(--green);
}

.logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 38px 22px 14px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.3rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1.15;
}

.hero p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.hero strong { color: var(--orange); }

/* ---------- Carousel ---------- */
.carousel-section {
  position: relative;
  max-width: 1180px;
  margin: 22px auto 0;
  padding: 0 12px;
}

.carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  padding: 20px 16px 30px;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar { display: none; }

.card {
  scroll-snap-align: center;
  flex: 0 0 88%;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-media {
  background: linear-gradient(160deg, #f3f7f4 0%, #e8efe9 100%);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-media img {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
}

.badge-warranty {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.card-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green);
}

.specs {
  list-style: none;
  margin: 14px 0 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.specs li {
  font-size: 0.82rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.specs li span {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}

.specs li strong {
  font-weight: 700;
  color: var(--green);
}

.obs {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.obs b { color: var(--orange); font-weight: 700; }

.price {
  margin-top: 16px;
  background: #f6faf7;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.price .pix {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
}

.price .pix small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--orange);
  display: block;
  letter-spacing: 0.3px;
}

.price .card-installments {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.price .card-installments b { color: var(--text); }

.cta {
  margin-top: auto;
  padding-top: 18px;
}

.cta button {
  width: 100%;
  border: none;
  background: var(--orange);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
}

.cta button:hover { background: #c47b27; }
.cta button:active { transform: scale(0.98); }

/* ---------- Nav arrows ---------- */
.nav-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(0, 45, 23, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover { background: var(--green-soft); }
.nav-prev { left: -6px; }
.nav-next { right: -6px; }

/* ---------- Dots ---------- */
.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dot.active {
  background: var(--orange);
  width: 26px;
  border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 30px 20px 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer strong { color: var(--green); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 10, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 0;
}

.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  width: 100%;
  max-width: 460px;
  max-height: 100%;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  padding: 26px 24px 30px;
  position: relative;
  animation: slideUp 0.28s ease;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.modal-model {
  display: inline-block;
  background: #f6faf7;
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.progress {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 33%;
  background: var(--orange);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.step h2 {
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: 16px;
}

.step input[type="text"] {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border 0.2s ease;
}

.step input[type="text"]:focus { border-color: var(--orange); }

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: border 0.2s ease, background 0.2s ease;
}

.option:hover { border-color: var(--orange); }

.option input { accent-color: var(--green); width: 18px; height: 18px; }

.option:has(input:checked) {
  border-color: var(--green);
  background: #f6faf7;
}

.error {
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 8px;
  display: none;
}

.error.show { display: block; }

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover { background: #c47b27; }

.btn-secondary {
  background: #fff;
  color: var(--green);
  border: 2px solid var(--line);
  flex: 0 0 35%;
}

.btn-secondary:hover { border-color: var(--green); }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .card { flex: 0 0 46%; }
  .modal-overlay { align-items: center; }
  .modal { border-radius: 22px; }
}

@media (min-width: 1024px) {
  .card { flex: 0 0 31%; }
  .nav-btn { display: flex; }
}
