/* ============================================================
   style.css — WAP Loja — Mobile-First, Zero Overflow Horizontal
   ============================================================ */

/* ===== RESET TOTAL — nada ultrapassa a tela ===== */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
html {
  width: 100%; max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  width: 100%; max-width: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #222; background: #fff;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* REGRA GLOBAL: nenhum elemento filho direto estoura a largura */
body > * { max-width: 100%; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; box-sizing: border-box; }
a { color: inherit; }

/* ===== PROMO BAR ===== */
.promo-bar {
  width: 100%; display: block;
  background: #111; color: #fff;
  text-align: center; padding: 8px 14px;
  font-size: 12px; font-weight: 600; line-height: 1.4;
}
.promo-bar span { color: #f5a623; }

/* ===== HEADER ===== */
header { width: 100%; background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 200; }
.header-inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 14px; display: flex; align-items: center; gap: 10px; height: 52px; }
.logo-img { height: 26px; width: auto; object-fit: contain; flex-shrink: 0; }
.logo-text { font-size: 20px; font-weight: 900; font-style: italic; color: #111; text-decoration: none; letter-spacing: -1px; flex-shrink: 0; }
.search-wrap { flex: 1; min-width: 0; position: relative; display: none; }
.search-wrap input { width: 100%; padding: 8px 34px 8px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; background: #f8f8f8; }
.search-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #777; }
.header-nav { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.header-nav a { text-decoration: none; color: #333; font-size: 11px; white-space: nowrap; display: none; }
.cart-btn-wrap { position: relative; cursor: pointer; background: none; border: none; color: #333; padding: 6px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; flex-shrink: 0; }
.cart-btn-wrap svg { width: 22px; height: 22px; display: block; }
.cart-count { position: absolute; top: -2px; right: -2px; background: #f5a623; color: #fff; font-size: 9px; font-weight: 800; width: 16px; height: 16px; border-radius: 50%; display: none; align-items: center; justify-content: center; }

/* ===== CART DRAWER ===== */
.cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 900; }
.cart-overlay.open { display: block; }
.cart-drawer { position: fixed; top: 0; right: -110%; width: 100%; max-width: 360px; height: 100%; height: 100dvh; background: #fff; z-index: 1000; display: flex; flex-direction: column; transition: right 0.28s ease; box-shadow: -4px 0 30px rgba(0,0,0,0.15); }
.cart-drawer.open { right: 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #eee; flex-shrink: 0; }
.cart-header h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; min-width: 0; }
.cart-close { background: none; border: none; font-size: 28px; cursor: pointer; color: #666; padding: 4px; -webkit-tap-highlight-color: transparent; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-items { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 16px; }
.cart-empty { text-align: center; color: #aaa; font-size: 14px; padding: 40px 0; }
.cart-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 52px; height: 52px; flex-shrink: 0; background: #f5f5f5; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cart-item-img img { max-width: 95%; max-height: 95%; object-fit: contain; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 12px; font-weight: 600; color: #111; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cart-item-volt { font-size: 11px; color: #888; margin-top: 2px; }
.cart-item-price { font-size: 14px; font-weight: 800; color: #111; margin-top: 3px; }
.cart-item-qty { display: flex; align-items: center; margin-top: 7px; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; width: fit-content; }
.cart-item-qty button { background: none; border: none; width: 32px; height: 32px; font-size: 16px; cursor: pointer; color: #444; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.cart-item-qty span { font-size: 13px; font-weight: 600; padding: 0 10px; }
.cart-item-del { background: none; border: none; cursor: pointer; color: #e74c3c; padding: 6px; flex-shrink: 0; align-self: center; min-width: 36px; min-height: 36px; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.cart-footer { padding: 14px 16px; border-top: 1px solid #eee; flex-shrink: 0; }
.cart-frete { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #2ecc71; font-weight: 600; margin-bottom: 10px; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 16px; font-weight: 800; color: #111; margin-bottom: 12px; }
.btn-comprar-cart { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px; background: #f5a623; color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; min-height: 50px; }
.btn-comprar-cart:active { background: #e09400; }

/* ===== VOLT MODAL — bottom sheet ===== */
.volt-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 800; align-items: flex-end; justify-content: center; }
.volt-modal-overlay.open { display: flex; }
.volt-modal { background: #fff; border-radius: 18px 18px 0 0; padding: 22px 16px 32px; width: 100%; max-width: 100%; }
.volt-modal h3 { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.volt-modal p { font-size: 13px; color: #888; margin-bottom: 14px; }
.volt-modal-product { display: flex; align-items: center; gap: 10px; background: #fafafa; border-radius: 8px; padding: 10px; margin-bottom: 14px; }
.volt-modal-img { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.volt-modal-name { font-size: 13px; font-weight: 600; color: #111; }
.volt-modal-price { font-size: 14px; font-weight: 800; color: #111; margin-top: 2px; }
.volt-modal-opts { display: flex; gap: 10px; margin-bottom: 18px; }
.volt-opt { flex: 1; padding: 12px; border: 1.5px solid #ddd; border-radius: 10px; background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; touch-action: manipulation; min-height: 48px; }
.volt-opt.selected { border-color: #111; background: #111; color: #fff; }
.volt-modal-btns { display: flex; gap: 10px; }
.volt-cancel { flex: 1; padding: 14px; border: 1px solid #ddd; border-radius: 10px; background: #fff; font-size: 14px; cursor: pointer; min-height: 48px; }
.volt-confirm { flex: 1; padding: 14px; border: none; border-radius: 10px; background: #f5a623; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; min-height: 48px; touch-action: manipulation; }

/* ===== LIGHTBOX ===== */
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.93); z-index: 3000; align-items: center; justify-content: center; padding: 12px; }
.lightbox-overlay.show { display: flex; }
.lightbox-img { max-width: 96vw; max-height: 90vh; object-fit: contain; border-radius: 6px; }
.lightbox-close { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.18); border: none; color: #fff; font-size: 26px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }

/* ===== BREADCRUMB ===== */
.breadcrumb { width: 100%; padding: 10px 14px 0; font-size: 11px; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb a { color: #aaa; text-decoration: none; }
.breadcrumb span { margin: 0 2px; }

/* ===== PRODUCT SECTION ===== */
.product-section {
  width: 100%;
  padding: 10px 14px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  /* CRÍTICO: garante que a grid não estoure */
  min-width: 0;
}

/* ===== GALLERY / CARROSSEL — ZERO OVERFLOW ===== */
.gallery {
  width: 100%;
  min-width: 0;       /* flex/grid item não expande além do pai */
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;   /* corta qualquer filho que tente sair */
}

/* Container da imagem principal */
.main-img-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;   /* CRÍTICO — impede que imagem estoure */
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Suporte a swipe touch */
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

/* Imagem principal — nunca estoura */
.main-img-wrap img {
  display: block;
  width: auto;
  height: auto;
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  pointer-events: none;
  /* Transição suave ao trocar imagem */
  transition: opacity 0.18s ease;
}

.badge-off { position: absolute; top: 10px; left: 10px; background: #2ecc71; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 4px; z-index: 1; pointer-events: none; }

.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.92); border: 1px solid #ddd; border-radius: 50%;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; color: #555; z-index: 2;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.gallery-nav.prev { left: 6px; }
.gallery-nav.next { right: 6px; }

/* Thumbs — scroll horizontal SÓ aqui, não na página */
.thumbs-row {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.thumbs-row::-webkit-scrollbar { display: none; }
.thumb {
  width: 50px; height: 50px; flex-shrink: 0;
  border: 2px solid transparent; border-radius: 6px; overflow: hidden;
  cursor: pointer; background: #fafafa; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.thumb.active { border-color: #111; }
.thumb img { max-width: 95%; max-height: 95%; object-fit: contain; }

/* ===== PRODUCT INFO ===== */
.product-info { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 11px; }
.product-ref { font-size: 11px; color: #aaa; }
.product-title { font-size: 18px; font-weight: 700; line-height: 1.3; color: #111; }
.stars-row { display: flex; align-items: center; gap: 5px; }
.stars { color: #f5a623; font-size: 15px; }
.stars-count { font-size: 12px; color: #888; }
.tagline { font-size: 13px; color: #555; line-height: 1.4; }

.timer-box { width: 100%; background: linear-gradient(135deg,#fff3e0,#fff8f0); border: 1.5px solid #f5a623; border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.timer-label { font-size: 11px; font-weight: 700; color: #e08000; margin-bottom: 3px; }
.timer-digits { display: flex; align-items: center; gap: 3px; }
.timer-seg { background: #f5a623; color: #fff; font-size: 18px; font-weight: 800; padding: 4px 8px; border-radius: 6px; min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; }
.timer-sep { font-size: 18px; font-weight: 800; color: #f5a623; }

.price-main { font-size: 28px; font-weight: 800; color: #111; }
.price-note { font-size: 12px; color: #777; }

.voltage-section h3 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.voltage-options { display: flex; gap: 8px; width: 100%; }
.voltage-btn { flex: 1; min-width: 0; padding: 10px; border: 1.5px solid #ccc; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; color: #333; -webkit-tap-highlight-color: transparent; touch-action: manipulation; text-align: center; min-height: 44px; }
.voltage-btn.selected { border-color: #111; background: #111; color: #fff; }
.voltage-alert { width: 100%; display: none; background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px; padding: 10px 12px; font-size: 13px; color: #856404; }

.qty-buy { display: flex; gap: 8px; align-items: center; width: 100%; }
.qty-control { display: flex; align-items: center; border: 1.5px solid #ccc; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.qty-control button { background: none; border: none; width: 40px; height: 46px; font-size: 20px; cursor: pointer; color: #444; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.qty-control span { font-size: 15px; font-weight: 600; padding: 0 14px; }

.btn-buy { flex: 1; min-width: 0; background: #111; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; padding: 13px 8px; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; min-height: 50px; }
.btn-buy:active { background: #333; }

.btn-cart-add { width: 100%; background: #fff; color: #111; border: 1.5px solid #ccc; border-radius: 8px; font-size: 14px; font-weight: 600; padding: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; min-height: 50px; }
.btn-cart-add:active { background: #f5f5f5; }

.frete-box { width: 100%; border: 1px solid #eee; border-radius: 10px; padding: 14px; }
.frete-box h3 { font-size: 13px; font-weight: 600; margin-bottom: 9px; display: flex; align-items: center; gap: 6px; }
.frete-input { display: flex; gap: 8px; width: 100%; }
.frete-input input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; outline: none; -webkit-appearance: none; min-height: 44px; width: 100%; }
.frete-input button { padding: 11px 12px; background: #fff; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; cursor: pointer; min-height: 44px; flex-shrink: 0; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.frete-link { font-size: 12px; color: #f5a623; margin-top: 6px; display: block; cursor: pointer; }

/* ===== DIMENSIONS ===== */
.dims-wrap { width: 100%; padding: 0 14px; }
.dimensions { width: 100%; border: 1px solid #eee; border-radius: 10px; padding: 14px; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 14px 0; }
.dim-item { display: flex; align-items: center; gap: 7px; min-width: 0; }
.dim-icon svg { width: 16px; height: 16px; color: #888; flex-shrink: 0; }
.dim-label { font-size: 10px; color: #aaa; }
.dim-value { font-size: 13px; font-weight: 700; color: #111; }

/* ===== TABS ===== */
.tabs-section { width: 100%; padding: 0 14px 28px; }
.tabs-nav { display: flex; border-bottom: 2px solid #eee; margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn { padding: 11px 16px; background: none; border: none; font-size: 13px; font-weight: 500; cursor: pointer; color: #888; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; -webkit-tap-highlight-color: transparent; flex-shrink: 0; touch-action: manipulation; }
.tab-btn.active { color: #111; border-bottom-color: #f5a623; font-weight: 700; }
.tab-content { display: none; width: 100%; }
.tab-content.active { display: block; }
.desc-text { font-size: 14px; line-height: 1.8; color: #444; }
.desc-text p { margin-bottom: 12px; }
.desc-text strong { color: #111; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.spec-table tr:nth-child(even) { background: #fafafa; }
.spec-table td { padding: 9px 10px; border-bottom: 1px solid #f0f0f0; vertical-align: top; word-break: break-word; }
.spec-table td:first-child { color: #666; width: 46%; font-size: 12px; }
.spec-table td:last-child { font-weight: 500; color: #111; }

/* ===== REVIEWS ===== */
.reviews-section { margin-top: 24px; width: 100%; }
.reviews-section h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.rating-overview { width: 100%; border: 1px solid #eee; border-radius: 10px; padding: 14px; display: flex; gap: 16px; margin-bottom: 18px; }
.rating-big { text-align: center; flex-shrink: 0; }
.rating-num { font-size: 40px; font-weight: 800; color: #111; line-height: 1; }
.rating-stars-big { color: #f5a623; font-size: 17px; margin: 3px 0; }
.rating-total { font-size: 11px; color: #888; }
.rating-bars { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bar-row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #555; }
.bar-track { flex: 1; min-width: 0; height: 7px; background: #eee; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: #f5a623; border-radius: 4px; }
.bar-count { width: 14px; flex-shrink: 0; text-align: right; color: #888; font-size: 11px; }
.review-card { width: 100%; border: 1px solid #eee; border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.review-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.reviewer { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.reviewer-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #eee; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.reviewer-avatar svg { width: 18px; height: 18px; color: #aaa; }
.reviewer-name { font-size: 13px; font-weight: 600; }
.reviewer-badge { font-size: 10px; color: #2ecc71; font-weight: 600; margin-left: 4px; }
.reviewer-date { font-size: 11px; color: #aaa; margin-top: 1px; }
.review-stars { color: #f5a623; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.review-title { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.review-body { font-size: 13px; color: #555; line-height: 1.6; }
.review-imgs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.review-imgs img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.review-useful { font-size: 12px; color: #aaa; display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.btn-more-reviews { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px auto; padding: 12px 20px; border: 1.5px solid #ccc; border-radius: 8px; background: #fff; font-size: 14px; cursor: pointer; font-weight: 500; -webkit-tap-highlight-color: transparent; min-height: 44px; }

/* ===== BENEFITS ===== */
.benefits-bar { width: 100%; padding: 0 14px; }
.benefits-inner { width: 100%; display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid #eee; border-radius: 10px; overflow: hidden; margin: 8px 0; }
.benefit-item { padding: 12px 10px; display: flex; align-items: center; gap: 8px; border-right: 1px solid #eee; border-bottom: 1px solid #eee; background: #fff; min-width: 0; }
.benefit-item:nth-child(2n) { border-right: none; }
.benefit-item:nth-child(3), .benefit-item:nth-child(4) { border-bottom: none; }
.benefit-icon svg { width: 18px; height: 18px; color: #888; flex-shrink: 0; }
.benefit-title { font-size: 12px; font-weight: 700; color: #111; }
.benefit-sub { font-size: 10px; color: #888; }

/* ===== PAYMENT ===== */
.payment-box { width: 100%; padding: 0 14px; margin: 12px 0; }
.payment-inner { width: 100%; border: 1px solid #eee; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.payment-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.pix-tag { border: 1px solid #ddd; border-radius: 4px; padding: 4px 10px; font-size: 12px; color: #555; display: inline-block; }
.certs { display: flex; gap: 6px; flex-wrap: wrap; }
.cert-tag { border: 1px solid #ddd; border-radius: 4px; padding: 3px 7px; font-size: 11px; color: #555; }

/* ===== RELATED ===== */
.related-section { width: 100%; padding: 0 14px; margin: 20px 0; }
.related-section h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.related-grid { width: 100%; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.product-card { width: 100%; border: 1px solid #eee; border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.product-card:active { opacity: 0.9; }
.product-card.active-card { border: 2px solid #f5a623; }
.card-img { position: relative; padding: 12px; background: #fafafa; display: flex; align-items: center; justify-content: center; height: 120px; overflow: hidden; }
.card-img img { max-height: 96px; max-width: 100%; object-fit: contain; }
.card-badge-off { position: absolute; top: 7px; left: 7px; background: #2ecc71; color: #fff; font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 3px; }
.card-body { padding: 10px; }
.card-name { font-size: 11px; font-weight: 600; color: #111; margin-bottom: 4px; line-height: 1.35; }
.card-stars { color: #f5a623; font-size: 11px; margin-bottom: 4px; }
.card-stars span { color: #aaa; font-size: 10px; }
.card-price { font-size: 15px; font-weight: 800; color: #111; }
.card-installment { font-size: 10px; color: #aaa; margin-top: 1px; }
.card-timer { display: flex; align-items: center; gap: 3px; margin-top: 6px; background: #fff3e0; border-radius: 5px; padding: 3px 6px; width: fit-content; }
.card-timer-label { font-size: 9px; color: #e08000; font-weight: 600; }
.card-timer-val { font-size: 11px; font-weight: 800; color: #f5a623; font-variant-numeric: tabular-nums; }
.card-voltages { display: flex; gap: 3px; margin-top: 6px; flex-wrap: wrap; }
.card-voltage { border: 1px solid #ddd; border-radius: 3px; padding: 2px 5px; font-size: 9px; color: #666; }
.btn-ver { display: block; width: 100%; background: #f5a623; color: #fff; border: none; border-radius: 6px; padding: 9px; font-size: 12px; font-weight: 700; cursor: pointer; margin-top: 8px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; min-height: 40px; }
.btn-adicionar { display: flex; width: 100%; background: #fff; color: #333; border: 1.5px solid #ddd; border-radius: 6px; padding: 8px; font-size: 12px; cursor: pointer; margin-top: 5px; align-items: center; justify-content: center; gap: 4px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; min-height: 40px; }

/* ===== FOOTER ===== */
footer { width: 100%; background: #111; color: #ccc; padding: 32px 14px 20px; margin-top: 28px; }
.footer-inner { width: 100%; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.footer-logo { font-size: 22px; font-weight: 900; font-style: italic; color: #fff; letter-spacing: -1px; margin-bottom: 7px; }
.footer-desc { font-size: 11px; color: #999; line-height: 1.6; margin-bottom: 12px; }
.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.social-btn { width: 32px; height: 32px; background: #222; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #aaa; text-decoration: none; font-size: 13px; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-col a { display: block; font-size: 11px; color: #999; text-decoration: none; margin-bottom: 6px; padding: 2px 0; }
.footer-contact { font-size: 11px; color: #999; margin-bottom: 6px; }
.footer-cats { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.footer-cat { border: 1px solid #333; border-radius: 4px; padding: 3px 7px; font-size: 10px; color: #aaa; }
.footer-bottom { width: 100%; max-width: 1200px; margin: 20px auto 0; padding-top: 14px; border-top: 1px solid #222; font-size: 10px; color: #666; text-align: center; line-height: 1.8; }

/* ===== CHECKOUT ===== */
.page { width: 100%; max-width: 700px; margin: 0 auto; padding: 14px 14px 60px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: #666; text-decoration: none; font-size: 14px; margin-bottom: 14px; padding: 4px 0; min-height: 44px; }
.back-link:active { color: #111; }
.back-link svg { width: 16px; height: 16px; flex-shrink: 0; }
h1 { font-size: 19px; font-weight: 800; color: #111; margin-bottom: 14px; }

.order-card, .upsell-card, .section-card { width: 100%; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 12px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.order-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.order-item:last-of-type { border-bottom: none; }
.order-item-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.order-img { width: 44px; height: 44px; background: #f5f5f5; border-radius: 7px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.order-img img { max-width: 95%; max-height: 95%; object-fit: contain; }
.order-name { font-size: 12px; font-weight: 600; color: #111; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.order-sub { font-size: 11px; color: #888; margin-top: 1px; }
.order-price { font-size: 13px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.order-divider { border: none; border-top: 1px solid #f0f0f0; margin: 8px 0; }
.subtotal-row { display: flex; justify-content: space-between; font-size: 13px; color: #555; }
.upsell-header { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #111; margin-bottom: 3px; }
.upsell-sub { font-size: 11px; color: #888; margin-bottom: 10px; }
.upsell-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.upsell-item:last-child { border-bottom: none; padding-bottom: 0; }
.upsell-radio { width: 22px; height: 22px; border: 2px solid #ccc; border-radius: 50%; flex-shrink: 0; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
.upsell-radio.checked { border-color: #111; background: #111; }
.upsell-radio.checked::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.upsell-img { width: 52px; height: 52px; flex-shrink: 0; background: #f5f5f5; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.upsell-img img { max-width: 95%; max-height: 95%; object-fit: contain; }
.upsell-info { flex: 1; min-width: 0; }
.upsell-name { font-size: 12px; font-weight: 600; color: #111; line-height: 1.35; }
.upsell-prices { display: flex; align-items: center; gap: 5px; margin-top: 3px; flex-wrap: wrap; }
.upsell-new { font-size: 14px; font-weight: 800; color: #111; }
.upsell-old { font-size: 11px; color: #bbb; text-decoration: line-through; }
.upsell-pct { font-size: 10px; color: #e74c3c; font-weight: 700; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #111; margin-bottom: 12px; }
.section-title svg { width: 16px; height: 16px; flex-shrink: 0; }
.form-group { margin-bottom: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
label { display: block; font-size: 11px; font-weight: 600; color: #666; margin-bottom: 4px; }
label .req { color: #e74c3c; }
input[type="text"], input[type="email"], input[type="tel"] { width: 100%; max-width: 100%; padding: 12px 13px; border: 1.5px solid #ddd; border-radius: 8px; font-size: 16px; outline: none; color: #111; background: #fff; -webkit-appearance: none; min-height: 48px; transition: border-color 0.15s; box-sizing: border-box; }
input:focus { border-color: #f5a623; }
input.error { border-color: #e74c3c !important; background: #fff8f8; }
input::placeholder { color: #bbb; }
.field-error { font-size: 11px; color: #e74c3c; margin-top: 3px; display: none; }
.frete-options { display: flex; flex-direction: column; gap: 8px; }
.frete-opt { display: flex; align-items: center; justify-content: space-between; padding: 13px 12px; border: 1.5px solid transparent; border-radius: 10px; cursor: pointer; background: #fafafa; -webkit-tap-highlight-color: transparent; min-height: 56px; }
.frete-opt.selected { border-color: #f5a623; background: #fff9f0; }
.frete-left { display: flex; align-items: center; gap: 10px; }
.frete-radio { width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 50%; flex-shrink: 0; position: relative; }
.frete-opt.selected .frete-radio { border-color: #f5a623; }
.frete-opt.selected .frete-radio::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 9px; height: 9px; background: #f5a623; border-radius: 50%; }
.frete-info { font-size: 13px; font-weight: 600; color: #111; }
.frete-prazo { font-size: 11px; color: #888; margin-top: 1px; }
.frete-val { font-size: 13px; font-weight: 700; color: #111; }
.frete-val.free, .free-tag { color: #2ecc71; font-weight: 700; }
.total-box { padding: 10px 0; }
.total-row { display: flex; justify-content: space-between; font-size: 13px; color: #555; margin-bottom: 6px; }
.total-row.main { font-size: 18px; font-weight: 800; color: #111; margin-top: 10px; padding-top: 10px; border-top: 2px solid #eee; }
.btn-pix { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px; background: #f5a623; color: #fff; border: none; border-radius: 12px; font-size: 17px; font-weight: 800; cursor: pointer; margin-top: 14px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; min-height: 54px; }
.btn-pix:active { background: #e09400; }
.btn-pix:disabled { background: #ccc; cursor: not-allowed; }
.secure-badges { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.secure-badge { font-size: 11px; color: #aaa; display: flex; align-items: center; gap: 3px; }
.pix-result { display: none; margin-top: 14px; border: 2px solid #2ecc71; border-radius: 12px; padding: 18px; background: #f0fff4; text-align: center; }
.pix-result h3 { font-size: 16px; font-weight: 700; color: #111; margin-bottom: 6px; }
.pix-result p { font-size: 13px; color: #555; margin-bottom: 12px; }
.pix-qr { margin: 0 auto 12px; display: block; max-width: 180px; width: 100%; border-radius: 8px; }
.pix-code-box { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-size: 11px; color: #333; word-break: break-all; text-align: left; margin-bottom: 10px; font-family: monospace; line-height: 1.5; }
.btn-copy { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 14px; background: #2ecc71; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; min-height: 48px; }
.btn-copy:active { background: #27ae60; }
.pix-status { margin-top: 12px; padding: 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.pix-status.pending { background: #fff3e0; color: #e08000; }
.pix-status.paid { background: #d4edda; color: #155724; }
.pix-status.error { background: #f8d7da; color: #721c24; }
.loading-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 999; align-items: center; justify-content: center; }
.loading-overlay.show { display: flex; }
.loading-card { background: #fff; border-radius: 14px; padding: 30px 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loading-spinner { width: 42px; height: 42px; border: 3px solid #eee; border-top-color: #f5a623; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 14px; font-weight: 600; color: #333; }
.empty-cart-msg { width: 100%; background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px; padding: 14px; font-size: 14px; color: #856404; margin-bottom: 12px; display: none; }
.cart-wrap { position: relative; display: inline-flex; }
.cart-badge { position: absolute; top: -5px; right: -5px; background: #f5a623; color: #fff; font-size: 9px; font-weight: 800; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ===== VERIFICACAO ===== */
body.verificacao-page { background: #f0f0f0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; background: #fff; border-bottom: 1px solid #e5e5e5; font-size: 11px; font-weight: 600; letter-spacing: 1px; color: #333; text-transform: uppercase; flex-shrink: 0; width: 100%; }
.topbar svg { width: 16px; height: 16px; color: #5a6fd6; flex-shrink: 0; }
#loading-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 20px; }
.progress-bar-wrap { width: 200px; max-width: 80%; height: 4px; background: #ddd; border-radius: 99px; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 0%; background: #5a6fd6; border-radius: 99px; transition: width 0.1s linear; }
.progress-text { font-size: 14px; color: #666; font-weight: 500; }
#verify-screen { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; }
.shield-circle { width: 72px; height: 72px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.shield-circle svg { width: 32px; height: 32px; color: #5a6fd6; }
.confirm-box { width: 100%; max-width: 340px; border: 1.5px solid #c8d0f0; border-radius: 12px; background: #fff; padding: 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; -webkit-tap-highlight-color: transparent; min-height: 60px; }
.confirm-box:active { background: #f5f7ff; }
.confirm-left { display: flex; align-items: center; gap: 12px; }
.checkbox { width: 24px; height: 24px; border: 2px solid #bbb; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checkbox.checked { background: #5a6fd6; border-color: #5a6fd6; }
.checkbox.checked::after { content: ''; width: 5px; height: 9px; border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg) translateY(-1px); display: block; }
.confirm-label { font-size: 15px; font-weight: 600; color: #222; }
.confirm-right { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.confirm-right svg { width: 20px; height: 20px; color: #aaa; }
.confirm-right span { font-size: 10px; color: #aaa; }
.info-text { font-size: 12px; color: #888; text-align: center; max-width: 300px; line-height: 1.5; }
.access-count { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666; }
#redirect-screen { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 999; align-items: center; justify-content: center; }
.redirect-card { background: #fff; border-radius: 16px; padding: 34px 44px; display: flex; flex-direction: column; align-items: center; gap: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.18); }
.spinner { width: 38px; height: 38px; border: 3px solid #e5e5e5; border-top-color: #5a6fd6; border-radius: 50%; animation: spin 0.8s linear infinite; }
.redirect-text { font-size: 15px; font-weight: 600; color: #333; }
body.verificacao-page footer { text-align: center; padding: 16px 14px; font-size: 11px; color: #999; background: transparent; margin-top: 0; flex-shrink: 0; }
body.verificacao-page footer a { color: #666; text-decoration: underline; margin: 0 5px; }

/* ===== DESKTOP / TABLET ===== */
@media (min-width: 600px) {
  .page { padding: 20px 20px 60px; }
  h1 { font-size: 22px; }
  .form-row { gap: 12px; }
  input[type="text"], input[type="email"], input[type="tel"] { font-size: 14px; }
}
@media (min-width: 768px) {
  .search-wrap { display: block; }
  .header-inner { height: 64px; padding: 0 20px; }
  .logo-img { height: 32px; }
  .header-nav a { display: inline-flex; font-size: 12px; }
  .product-section { grid-template-columns: 1fr 1fr; gap: 28px; padding-left: 20px; padding-right: 20px; }
  .breadcrumb { padding-left: 20px; padding-right: 20px; }
  .tabs-section { padding-left: 20px; padding-right: 20px; }
  .benefits-bar { padding-left: 20px; padding-right: 20px; }
  .benefits-inner { grid-template-columns: repeat(4,1fr); }
  .benefit-item { border-bottom: none; }
  .benefit-item:nth-child(2n) { border-right: 1px solid #eee; }
  .benefit-item:last-child { border-right: none; }
  .payment-box { padding-left: 20px; padding-right: 20px; }
  .payment-inner { flex-direction: row; }
  .related-section { padding-left: 20px; padding-right: 20px; }
  .related-grid { grid-template-columns: repeat(4,1fr); }
  .dimensions { grid-template-columns: repeat(4,1fr); }
  .dims-wrap { padding-left: 20px; padding-right: 20px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
  footer { padding-left: 20px; padding-right: 20px; }
  .volt-modal { max-width: 480px; }
}
@media (min-width: 1024px) {
  .header-inner { padding: 0 24px; }
  .product-section { padding-left: 24px; padding-right: 24px; }
  .breadcrumb { padding-left: 24px; padding-right: 24px; }
  .tabs-section { padding-left: 24px; padding-right: 24px; }
  .benefits-bar { padding-left: 24px; padding-right: 24px; }
  .payment-box { padding-left: 24px; padding-right: 24px; }
  .related-section { padding-left: 24px; padding-right: 24px; }
  .dims-wrap { padding-left: 24px; padding-right: 24px; }
  footer { padding-left: 24px; padding-right: 24px; }
}

/* iPhone X+ safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .cart-footer { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  body.verificacao-page footer { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
