
:root{
  --bg:#f8f8f9;
  --card:#ffffff;
  --text:#111111;
  --muted:#6b7280;
  --brand:#0C0C00;
  --accent:#3483fa;
  --yellow:#690000;
  --border:#e5e7eb;
  --shadow:0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --radius:9px;
  --radius-sm:7px;
}

*{box-sizing:border-box; -webkit-tap-highlight-color: transparent;}
html,body{margin:0;padding:0;font-family:Inter,sans-serif;color:var(--text);background:var(--bg); overflow-x:hidden;}
img{max-width:100%;display:block}
a{color:#3483fa;text-decoration:none}

.container{max-width:1120px;margin:0 auto;padding:0 18px;}

.topbar{background:#f8f8f9;color:#fff;position:relative;}
.topbar::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #690000;
  z-index: 0;
}
.topbar-inner{display:flex;justify-content:space-between;align-items:center;padding:14px 0;position:relative;z-index:1;}
.banner{
  background: linear-gradient(135deg, #0C0C00 0%, #1a1a1a 100%);
  text-align:center;
  /* padding:14px 16px; */
  font-weight:700;
  color:#fff;
  border-top: 3px solid #690000;
  border-bottom: 3px solid #690000;
  position:relative;
}
.banner::before{
  content: 'BLACK FRIDAY';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #690000;
  color: #fff;
  padding: 3px 16px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  border-radius: 4px;
  
}

.grid{display:grid;grid-template-columns:1fr;gap:28px;margin:24px auto}
.col{display:flex;flex-direction:column;gap:26px}

.card{
  background:var(--card);
  border:1.5px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  position:relative;
}
.card + .card{margin-top:20px}
.card-title{
  font-size:18px;
  font-weight:600;
  margin-bottom:14px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#0C0C00;
}
.title-icon{display:inline-flex;margin-right:4px;vertical-align:middle;filter:none}

.field{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.field > span{font-weight:700;font-size:13px;color:#0C0C00;}
.field input{
  height:48px;
  border:1.5px solid #d1d5db;
  border-radius:var(--radius-sm);
  padding:0 14px;
  font-size:15px;
  outline:none;
  width:100%;
  min-width:0;
  font-family:Inter,sans-serif;
}
.field input:focus{border-color:#3483fa;box-shadow:0 0 0 3px rgba(52,131,250,.12)}

.input-prefix{display:flex;align-items:center;gap:8px;border:1.5px solid #d1d5db;border-radius:var(--radius-sm);padding:0 10px;height:48px;width:100%}
.input-prefix .prefix{white-space:nowrap;color:#374151}
.input-prefix input{all:unset;flex:1;height:44px;padding:0 6px;font-size:15px;font-family:Inter,sans-serif;}

.error-msg{color:#b91c1c;font-size:12px;margin-top:-2px}
.has-error, .input-prefix.has-error{border-color:#ef4444 !important; box-shadow:0 0 0 2px rgba(239,68,68,.12)}

.row{display:flex;gap:14px;flex-wrap:wrap}
.flex1{flex:1 1 240px}
.flex2{flex:2 1 320px}

.hidden{display:none}

.ship{margin-top:10px;border-top:1px dashed var(--border);padding-top:10px}
.ship-title{font-weight:800;margin-bottom:8px;color:#0C0C00;}
.radio{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1.5px solid var(--border);
  border-radius:var(--radius-sm);
  margin-bottom:10px;
  width:100%;
}
.radio:hover{border-color:#3483fa;}
.radio input{width:18px;height:18px;flex:0 0 auto;accent-color:#3483fa;}
.radio-title{font-weight:700;color:#0C0C00;}
.radio-sub{font-size:12px;color:var(--muted)}
.radio-price{margin-left:auto;font-weight:700;color:#3483fa;}

.pix{
  display:flex;
  gap:16px;
  align-items:center;
  border:1.5px solid var(--border);
  border-radius:var(--radius-sm);
  padding:12px;
  width:100%;
}
.pix:hover{border-color:#3483fa;}
.pix.disabled{opacity:0.8}
.pix-left .pix-logo{
  width:64px;
  height:46px;
  border:2px solid #3483fa;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#3483fa;
}
.muted{color:var(--muted);font-size:13px}
.mt8{margin-top:8px}

/* Carrinho compacto */
.cart-compact{padding:12px !important;}
.cart-compact .card-title{font-size:16px;margin-bottom:10px;}
.cart-compact .cart-line{padding:6px 0;margin-bottom:6px;}
.cart-compact .cart-line img{width:48px;height:48px;border-radius:6px;}
.cart-compact .cart-title{font-size:14px;font-weight:600;color:#0C0C00;}
.cart-compact .cart-sub{font-size:11px;}
.cart-compact .now{font-size:15px;}

.cart-line{display:flex;align-items:center;gap:12px;padding:10px 0;margin-bottom:10px}
.cart-desc{flex:1;min-width:0}
.cart-title{font-weight:700;color:#0C0C00;}
.cart-sub{color:var(--muted);font-size:12px}
.qty-btn{
  background: transparent;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: 20px;
}
.qty-btn[data-action="increase"]{
  color: #3483fa;
  border-color: #3483fa;
}
.qty-btn[data-action="increase"]:hover{
  background: #e8f3ff;
}
.qty-btn[data-action="decrease"]{
  color: #dc2626;
  border-color: #dc2626;
}
.qty-btn[data-action="decrease"]:hover{
  background: #fef2f2;
}
.item-qty{
  font-weight: 700;
  color: #0C0C00;
  font-size: 15px;
  min-width: 24px;
  text-align: center;
  user-select: none;
}
.cart-price{text-align:right;white-space:nowrap}
.old{text-decoration:line-through;color:var(--muted);font-size:13px}
.now{font-weight:900;font-size:18px;color:#0C0C00;}

.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:52px;
  border-radius:8px;
  background:rgb(53, 192, 111);
  color:#fff;
  border:0;
  cursor:pointer;
  font-weight:800;
  letter-spacing:.3px;
  margin-top:8px;
  font-size:16px;
  font-family:Inter,sans-serif;
  position:relative;
  overflow:hidden;
}
.btn-primary:hover{
  background:#35C06F;
  box-shadow:0 6px 16px #35C06F;
}

.reviews{display:flex;flex-direction:column;gap:12px}
.review{
  display:flex;
  gap:12px;
  align-items:flex-start;
  background:var(--card);
  border:1.5px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
}
.avatar-img{width:44px;height:44px;border-radius:50%;object-fit:cover;border:1px solid var(--border)}
.stars{color:#FFE600;font-size:14px}
.handle{color:#6b7280;font-size:13px;margin-bottom:4px}

/* Footer Novo Design */
.footer {
  background-color: #fafafa;
  padding: 32px 0;
  margin-top: 40px;
}

.footer-new {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 16px 0;
  text-transform: none;
}

.footer-payment-methods {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-payment-methods svg {
  height: 32px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
  filter: none;
}

.footer-text {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 0 8px 0;
  font-weight: 400;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
}

.footer-links a:hover {
  color: #3483fa;
  text-decoration: underline;
}

.footer-separator {
  color: #9ca3af;
  font-size: 12px;
}

.footer-security {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.footer-security-item {
  display: flex;
  align-items: center;
  gap: 0;
}

.footer-security-item svg {
  height: 32px;
  width: auto;
  filter: none;
}

@media (max-width: 720px) {
  .container {padding: 0 16px}
  
  .footer {
    padding: 24px 0;
  }
  
  .footer-title {
    font-size: 13px;
  }
  
  .footer-payment-methods {
    gap: 6px;
  }
  
  .footer-payment-methods svg {
    height: 24px;
  }
  
  .footer-text {
    font-size: 12px;
  }
  
  .footer-links {
    font-size: 11px;
  }
  
  .footer-security {
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .footer-security-item svg {
    height: 28px;
  }
}


.ship-option{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px;
  border:1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom:10px;
  background:#fff;
}
.ship-option:hover{border-color:#3483fa;}
.ship-option input{width:18px;height:18px;margin-top:3px;flex:0 0 auto;accent-color:#3483fa;}
.ship-content{flex:1;min-width:0}
.ship-line{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ship-title-line{font-weight:600;color:#0C0C00;}
.ship-sub{margin-top:4px;font-size:13px;color:#6b7280;display:flex;align-items:center;gap:6px}
.ship-sub img{height:16px;object-fit:contain}
.ship-price{white-space:nowrap;font-weight:700;color:#3483fa;}
.ship-green{color:#3483fa}
.ship-option:has(input:checked){border-color:#3483fa; box-shadow:0 0 0 2px rgba(52,131,250,.12)}

/* Loading Overlay - Tela Azul com Carregando e Verificado */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #690000;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay.active {
  display: flex;
}

.loading-content {
  text-align: center;
  padding: 48px 32px;
}

.loading-spinner-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
}

/* Spinner de carregamento */
.loading-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.loading-spinner.hide {
  opacity: 0;
}

/* Ícone de verificado */
.loading-check {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 80px;
  height: 80px;
  opacity: 0;
  transition: all 0.4s ease;
}

.loading-check.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.loading-check svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Animação do checkmark */
.loading-check.show svg path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheck 0.6s ease forwards;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.loading-text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  color: #ffffff;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.loading-text.hide {
  opacity: 0;
}

.loading-subtext {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  letter-spacing: 0.2px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.loading-subtext.hide {
  opacity: 0;
}

.btn-primary.loading {
  opacity: 0.7;
  cursor: not-allowed;
}


/* Badge Black Friday */
.bf-badge{
  display:inline-block;
  background:#0C0C00;
  color:#690000;
  padding:4px 10px;
  border-radius:4px;
  font-size:11px;
  font-weight:900;
  letter-spacing:0.5px;
  margin-left:8px;
  border:1px solid #690000;
}

.bf-discount{
  background:#690000;
  color:#0C0C00;
  padding:6px 12px;
  border-radius:6px;
  font-weight:900;
  font-size:14px;
  display:inline-block;
  margin-top:8px;
}

/* Ajustes para o novo layout do carrinho */
.cart-quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.cart-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 10px;
}

.cart-desc {
  flex: 1;
  min-width: 0;
}

.cart-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

/* ==============================
   Oferta +1 item (25% OFF) — alinhado ao layout do checkout
================================*/
.upsell-offer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1.5px solid var(--border);
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.upsell-offer .upsell-left{min-width:0;}
.upsell-offer .upsell-title{
  color:var(--text);
  font-size:13px;
  line-height:1.25;
  font-weight:700;
}
.upsell-offer .upsell-title strong{font-weight:900;}
.upsell-offer .upsell-sub{
  color:var(--muted);
  font-size:12px;
  margin-top:4px;
}

/* CTA (mesma identidade do btn-primary, só menor) */
.upsell-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:8px;
  background:rgb(53, 192, 111);
  color:#fff;
  border:0;
  cursor:pointer;
  font-weight:900;
  font-size:14px;
  font-family:Inter,sans-serif;
  white-space:nowrap;
}
.upsell-cta:hover{background:#35C06F; box-shadow:0 6px 16px rgba(53,192,111,.25);}
.upsell-cta[data-active="1"]{background:#dc2626;}
.upsell-cta[data-active="1"]:hover{background:#b91c1c; box-shadow:0 6px 16px rgba(220,38,38,.18);}

.upsell-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:900;
  padding:4px 8px;
  border-radius:999px;
  border:1.5px solid rgba(255,255,255,.55);
  background:rgba(255,255,255,.18);
  color:#fff;
}
.cart-line-upsell .upsell-badge{ margin-left:6px; }

/* Modal */
.upsell-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}
.upsell-modal[aria-hidden="false"]{ display:flex; }
.upsell-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
}
.upsell-modal-card{
  position:relative;
  width:min(520px, 92vw);
  border-radius:var(--radius);
  border:1.5px solid var(--border);
  background:var(--card);
  box-shadow:var(--shadow);
  color:var(--text);
  padding:18px;
}
.upsell-modal-header{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.upsell-modal-title{ font-size:16px; font-weight:900; color:#0C0C00; }
.upsell-modal-sub{ font-size:12px; color:var(--muted); margin-top:4px; line-height:1.3; }

.upsell-close{
  width:36px;
  height:36px;
  border-radius:10px;
  border:1.5px solid var(--border);
  background:#f3f4f6;
  color:#111;
  cursor:pointer;
  font-size:20px;
  line-height:1;
}
.upsell-close:hover{background:#e5e7eb;}

.upsell-modal-body{ margin-top:14px; display:flex; flex-direction:column; gap:12px; }

.upsell-modal-product{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1.5px solid var(--border);
  border-radius:var(--radius-sm);
  background:#fafafa;
}
.upsell-modal-product img{
  width:56px;
  height:56px;
  border-radius:10px;
  border:1.5px solid var(--border);
  object-fit:cover;
  background:#fff;
}
.upsell-modal-picked{font-weight:900;color:#0C0C00;font-size:14px;}

.upsell-price-preview{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.upsell-price-old{ color:var(--muted); text-decoration:line-through; font-weight:700; font-size:13px; }
.upsell-price-now{ color:#16a34a; font-weight:900; font-size:15px; }
.upsell-price-save{ color:#3483fa; font-weight:800; font-size:12px; }

/* Opcoes (chips) */
.upsell-options{display:flex; flex-direction:column; gap:12px;}
.upsell-opt-group{display:flex; flex-direction:column; gap:8px;}
.upsell-opt-label{font-weight:800; font-size:13px; color:#0C0C00;}
.upsell-opt-chips{display:flex; flex-wrap:wrap; gap:8px;}

.upsell-chip{
  appearance:none;
  border:1.5px solid #d1d5db;
  background:#fff;
  color:#111;
  border-radius:10px;
  padding:8px 12px;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
}
.upsell-chip:hover{border-color:#3483fa; box-shadow:0 0 0 3px rgba(52,131,250,.12);}
.upsell-chip[aria-pressed="true"]{border-color:#3483fa; background:#e8f3ff;}
.upsell-chip:disabled{opacity:.45; cursor:not-allowed;}

/* Acoes do modal */
.upsell-modal-actions{
  margin-top:16px;
  display:flex;
  gap:10px;
}
.upsell-modal-actions .btn-primary,
.upsell-modal-actions .btn-secondary{flex:1; margin-top:0; height:48px;}

.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:52px;
  border-radius:8px;
  background:#fff;
  color:#111;
  border:1.5px solid var(--border);
  cursor:pointer;
  font-weight:900;
  letter-spacing:.2px;
  margin-top:8px;
  font-size:15px;
  font-family:Inter,sans-serif;
}
.btn-secondary:hover{background:#f3f4f6;}

@media (max-width: 420px){
  .upsell-offer{flex-direction:column; align-items:stretch;}
  .upsell-cta{width:100%;}
  .upsell-modal-actions{flex-direction:column;}
}
