/* =============================================
   VARIÁVEIS — edite aqui para mudar as cores
   ============================================= */
:root {
  --primary: #e85d04;       /* laranja principal */
  --primary-dark: #c94e00;
  --primary-light: #fff3ec;
  --green: #25d366;
  --green-dark: #1da851;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e5e5e5;
  --radius: 12px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: #f5f5f5;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 120px; /* espaço para sticky CTA */
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-title {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.badge-frete {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
}

/* =============================================
   CAROUSEL
   ============================================= */
.carousel-wrap {
  position: relative;
  background: #fff;
}

.carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.carousel-img {
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Placeholder quando não há imagem */
.carousel-img[src$=".jpg"]::before,
.carousel-img:not([src]) {
  background: #eee;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active { background: #fff; }

/* Badge KIT (canto superior direito) */
.kit-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 0.65rem;
  text-align: center;
  line-height: 1.1;
  padding: 6px 8px;
  border-radius: 8px;
  z-index: 10;
  text-transform: uppercase;
}
.kit-badge span { font-size: 1.4rem; font-weight: 900; }

/* Frete grátis no topo do carousel */
.carousel-frete-top {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
}

/* Countdown */
.countdown-bar {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.85rem;
}
.countdown-label { font-weight: 500; }
.countdown-timer {
  font-weight: 900;
  font-size: 1.2rem;
  background: rgba(0,0,0,0.2);
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 2px;
}

/* =============================================
   PRODUTO
   ============================================= */
.product-page {
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}

/* =============================================
   CTA BLOCK
   ============================================= */
.btn-comprar {
  display: block;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 14px 16px 10px;
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s;
}
.btn-comprar:hover { background: var(--primary-dark); }
.btn-comprar .btn-sub {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 4px;
  opacity: 0.95;
  letter-spacing: 0.3px;
}

.acquiring-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

.cart-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-add-cart,
.btn-view-cart {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px;
  cursor: pointer;
}

.btn-add-cart {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-light);
}

.btn-view-cart-sticky {
  width: 100%;
  margin-top: 8px;
}

.cart-feedback {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1b8d3f;
  text-align: center;
  min-height: 16px;
}

.cart-feedback {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1b8d3f;
  text-align: center;
  min-height: 16px;
}

/* =============================================
   RATINGS
   ============================================= */
.rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.stars { color: #f5a623; font-size: 1rem; }
.rating-score { font-weight: 700; }
.rating-count { color: var(--text-muted); }
.sold-count { color: var(--primary); font-weight: 700; margin-left: 4px; }

/* =============================================
   ESPECIFICAÇÕES
   ============================================= */
.section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.helper-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.helper-text-small {
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.spec-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.spec-value { font-weight: 700; font-size: 1rem; }
.spec-card-full { grid-column: 1 / -1; }

.kit-contents {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #fafafa;
}
.kit-contents-title {
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.kit-contents-list {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text);
}

/* =============================================
   URGÊNCIA DE ESTOQUE
   ============================================= */
.stock-urgency {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}
.urgency-action { font-weight: 700; white-space: nowrap; }

/* =============================================
   MODELOS
   ============================================= */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.model-card {
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  text-align: center;
}
.model-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.model-card span {
  display: block;
  padding: 6px 8px;
  font-size: 0.8rem;
  font-weight: 600;
}
.model-card.active {
  border-color: var(--primary);
  position: relative;
}
.model-card.active::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--primary);
  color: #fff;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mix-box {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #fafafa;
}

.mix-box.mix-focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.16);
}

.mix-box.is-hidden {
  display: none;
}

.mix-box.is-hidden {
  display: none;
}

.mix-title {
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.mix-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ededed;
  padding: 8px 0;
}

.mix-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.mix-name {
  font-size: 0.84rem;
  font-weight: 700;
}

.mix-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mix-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.mix-qty {
  min-width: 18px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.mix-status {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #b00020;
}

.mix-status.ok {
  color: #1b8d3f;
}

/* =============================================
   KITS / VARIAÇÕES
   ============================================= */
.kits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kit-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.kit-option:hover { border-color: var(--primary); }
.kit-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.kit-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.tag-acessivel  { background: #e8f5e9; color: #2e7d32; }
.tag-mais-vendido { background: #1a1a1a; color: #fff; }
.tag-super      { background: var(--primary-light); color: var(--primary); }
.tag-max        { background: #1a1a1a; color: #fff; }

.kit-info { padding-right: 32px; }
.kit-name  { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.kit-price { font-weight: 900; font-size: 1.4rem; color: var(--text); }
.kit-unit  { font-size: 0.8rem; color: #2e7d32; margin-top: 2px; }
.kit-label-detail { font-size: 0.75rem; color: var(--primary); font-weight: 600; }

.unit-selector-btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 9px 12px;
  margin: 8px 0 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  color: var(--text);
}

.unit-selector-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.unit-summary {
  font-size: 0.76rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin: 0;
}

.unit-option {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--text);
}

.unit-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.unit-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 400;
}

.cart-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 420;
}

.checkout-prompt {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 430;
}

.checkout-prompt.open {
  display: block;
}

.checkout-prompt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.checkout-prompt-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 28px);
  max-width: 400px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  animation: prompt-enter 0.22s ease-out;
}

.checkout-prompt-head {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}

.checkout-prompt-body {
  padding: 20px 18px 18px;
}

.checkout-prompt-body h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  color: #111;
}

.checkout-prompt-body p {
  color: #5f6368;
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.checkout-prompt-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkout-btn {
  border-radius: 10px;
  padding: 12px 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.checkout-btn-secondary {
  background: #f1f3f4;
  color: #3c4043;
}

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

@keyframes prompt-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -44%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.cart-modal.open {
  display: block;
}

.cart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.cart-modal-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 28px);
  max-width: 380px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.cart-items {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}

.cart-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

.cart-item-title {
  font-weight: 800;
  font-size: 0.86rem;
}

.cart-item-models {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.cart-item-bottom {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-remove {
  border: 1px solid #f1c7c7;
  color: #b00020;
  background: #fff;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-footer {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  display: grid;
  gap: 6px;
}

.cart-total {
  font-size: 0.95rem;
  font-weight: 700;
}

.unit-modal.open {
  display: block;
}

.unit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.unit-modal-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 28px);
  max-width: 360px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.unit-modal-content h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.unit-modal-options {
  display: grid;
  gap: 6px;
}

.unit-modal-close {
  margin-top: 8px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
}

.discount-badge {
  display: inline-block;
  background: #d32f2f;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}

.kit-check {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: #ccc;
  color: transparent;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}
.kit-option.active .kit-check {
  background: var(--primary);
  color: #fff;
}

/* =============================================
   AVALIAÇÕES
   ============================================= */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.review-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.review-body {
  padding: 12px 14px 14px;
}
.reviewer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.reviewer-name { font-weight: 700; font-size: 0.9rem; margin: 0; }
.stars-sm { color: #f5a623; font-size: 0.85rem; }
.review-text { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* =============================================
   INFO DA LOJA
   ============================================= */
.store-info {
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px;
}
.store-name {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.store-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.store-contact-box {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}
.contact-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.2s;
}
.btn-whatsapp:hover { background: var(--green-dark); }
.store-hours {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* =============================================
   STICKY CTA
   ============================================= */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 16px 14px;
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 24px 16px;
  margin-top: 8px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.footer-col-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.site-footer a {
  display: block;
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.site-footer a:hover { text-decoration: underline; }
.cnpj-box {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: inline-block;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* =============================================
   RESPONSIVO (telas maiores que 480px ficam centralizadas)
   ============================================= */
@media (min-width: 480px) {
  body { box-shadow: 0 0 24px rgba(0,0,0,0.1); }
}
