/* ======================================== */
/* 🔥 RESET / BASE */
/* ======================================== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family: Arial, sans-serif;
  background:#f1f1f1;
}

/* ========================= */
/* 🔝 HEADER */
/* ========================= */
.header-topo{
  position:relative;
  z-index:20;

  /* sombra suave igual app */
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  background: linear-gradient(
    to bottom,
    #4A90E2,
    #3A7BD5
  );
}
.header-topo .top-bar{
  color:#fff;
  text-align:center;
  padding:10px 8px;
  font-size:15px;
  min-height:auto;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.header-topo .top-bar strong{
  color:#FFD700; /* dourado suave */
}
/* mantém botões dentro */
.nav-topo{
  display:flex;
  gap:10px;
  padding:20px 15px 0px;
}

.header-topo .search-container{
  padding:0px 15px 10px;
  background: transparent !important;
}

.header-topo .search-wrapper{
  display:flex;
  align-items:center;
  background:#fff;
  border-radius:12px;
    border:1px solid #ddd;

  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.header-topo .search-icon{
  margin-right:8px;
  font-size:16px;
  opacity:0.6;
}

.header-topo .search{
  border:none;
  outline:none;
  width:100%;
  font-size:14px;
  background:transparent;
}

/* ========================= */
/* NAVEGAÇÃO ATIVA BAR BOTTOM
/* ========================= */
.active-nav {
  color: #f97316 !important;
}

.active-nav svg path {
  stroke: #f97316 !important;
  fill: #f97316 !important;
}

.active-nav span {
  color: #f97316 !important;
}

/* ========================= */
/* 🔎 BOTÃO BUSCA */
/* ========================= */

.search-wrapper{
  display: flex;
  position: relative;
  align-items: center;
  background: #fff;
  border-radius: 30px;
  padding: 5px 5px 5px 10px;
  gap: 5px;
  z-index: 10000;
}

.search{
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
}

.search-btn{
  background: #4A90E2;
  border: none;
  color: #fff;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
}

.search-btn:active{
  transform: scale(0.95);
}

.search-suggestions{
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  display: none;
  z-index: 30;
}

.search-suggestions.active{
  display: block;
}

.suggestion-item{
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.suggestion-item:last-child{
  border-bottom: none;
}

.suggestion-item:hover{
  background: #f5f5f5;
}

.suggestion-tipo{
  font-size: 12px;
  color: #888;
  margin-left: 5px;
}

/* ========================= */
/* 🔎 DESTAQUE BUSCA */
/* ========================= */

.suggestion-item strong{
  color:red;
  font-weight:bold;
}
/* ======================================== */
/* 🔥 SEÇÕES (PADRÃO GERAL) */
/* ======================================== */
.section{
  padding:15px;
  background:#fff;
}

.title{
  font-weight:bold;
  margin-bottom:10px;
  text-align:center;
}

/* ======================================== */
/* 🔥 BADGE MAIS VENDIDO */
/* ======================================== */
.badge-mais-vendido{
  position:absolute;
  top:8px;
  left:8px;
  background:red;
  color:#fff;
  font-size:11px;
  padding:4px 8px;
  border-radius:6px;
  font-weight:bold;
  z-index:2;
}

/* garante posicionamento */
.produto-card{
  position:relative;
}

/* ======================================== */
/* 👥 VENDIDOS */
/* ======================================== */
.vendidos{
  font-size:12px;
  color:#555;
  margin-top:3px;
}

/* ======================================== */
/* 💰 PREÇOS (DE / POR) */
/* ======================================== */

.preco-box{
  margin-top: 5px;
}


/* ======================================== */
/* 🔥 AVALIAÇÃO (ESTRELAS) */
/* ======================================== */
.rating{
  margin:5px 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex-wrap:wrap;
}

.nota{
  font-size:14px;
  font-weight:bold;
  color:#222;
}

/* ESTRELAS */
.stars-amazon{
  position:relative;
  width:80px;
  height:16px;
  display:flex;
  gap:2px;
  align-items:center;
}

.stars-bg svg{
  width:80px;
  height:16px;
  fill:none;
  stroke:#FFA41C;
  stroke-width:1.2;
  opacity:0.3;
}

.stars-fill{
  position:absolute;
  top:0;
  left:0;
  overflow:hidden;
}

.stars-fill svg{
  width:80px;
  height:16px;
  fill:#FFA41C;
  stroke:#FFA41C;
}

.reviews{
  font-size:13px;
  color:#666;
}


/* ======================================== */
/* 🔥 PÁGINA DESTAQUE */
/* ======================================== */

.produtos-titulo {
  font-size: 20px;
  font-weight: bold;
  padding: 15px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

/* GRID DE PRODUTOS */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 10px;
}

/* CARD */
.produto-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: 0.2s;
}

.produto-card:active {
  transform: scale(0.97);
}

/* IMAGEM */
.produto-card img {
  width: 100%;
  border-radius: 10px;
}

/* NOME */
.produto-card h3 {
  font-size: 14px;
  margin: 6px 0;
  line-height: 1.3;
  min-height: 34px;
}

/* PREÇO ATUAL */
.preco {
  font-size: 18px;
  font-weight: bold;
  color: #2ecc71;
  margin-top: 4px;
}

/* PREÇO ANTIGO */
.preco-antigo {
  color: #FF6767;
  text-decoration: line-through;
  font-size: 13px;
}

/* VENDIDOS */
.vendidos {
  font-size: 12px;
  color: #666;
  margin-top: 3px;
}

/* BOTÃO */
.btn-ver {
  margin-top: 8px;
  padding: 12px;
  width: 100%;
  border: none;
  background: #27ae60;
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

/* PAGINAÇÃO */
.produtos-paginacao {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
}

.produtos-paginacao button {
  padding: 10px 14px;
  border: none;
  background: orange;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.produtos-paginacao span {
  font-weight: bold;
  font-size: 16px;
}

/* ======================================== */
/* ⭐ ESTRELAS (PADRÃO HOME) */
/* ======================================== */

.produto-rating{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin:4px 0;
}

.produto-rating .stars-amazon{
  width:70px;
  height:14px;
}

.produto-rating .stars-bg svg,
.produto-rating .stars-fill svg{
  width:70px;
  height:14px;
}

.produto-reviews{
  font-size:12px;
  color:#666;
}

/* ======================================== */
/* 🔥 FAQ (VISUAL ORGANIZADO + ACORDEON) */
/* ======================================== */


.title-faq{
    padding: 15px 10px;
    font-weight:bold;
    margin-bottom:10px;
    text-align:center;
}

.faq-item{
  background:#fff;
  margin-bottom:8px;
  border-radius:10px;
  overflow:hidden;
  border:1px solid #eee; /* divisão leve */
}

/* PERGUNTA */
.faq-q{
  padding:12px 25px 12px 12px;
  font-weight:bold;
  cursor:pointer;
  position:relative;
}

/* LINHA ENTRE PERGUNTA E RESPOSTA */
.faq-item.active .faq-q{
  border-bottom:1px solid #eee;
}

/* ÍCONE (OPCIONAL — deixa mais profissional) */
.faq-q::after{
  content:"+";
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  font-size:18px;
  color:#666;
}

/* quando aberto muda para - */
.faq-item.active .faq-q::after{
  content:"−";
}

/* RESPOSTA */
.faq-a{
  height:0;
  overflow:hidden;
  padding:0 12px;
  transition: height 0.45s ease;
}

/* quando aberto */
.faq-item.active .faq-a{
  padding:12px;
}

/* LISTAS */
.faq-a ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.faq-a ul li {
  padding-bottom: 8px;
  position: relative;
  padding-left: 18px;
}

/* check bonito */
.faq-a ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #4CAF50;
  font-size: 12px;
}

/* PARÁGRAFOS */
.faq-a p {
  padding-bottom: 10px;
}

/* ======================================== */
/* 🔥 PAGAMENTO / ENVIO */
/* ======================================== */
.sessao-pag{
  margin-top: 15px;

  /* separação suave */
  box-shadow: 0 -2px 6px rgba(0,0,0,0.04);
}

.produto-pagamento{
  background:#fff;
  padding:16px 16px 20px;
  border-top:1px solid #eee;
}

.produto-pagamento h2{
  font-size:18px;
  margin-bottom:10px;
  color:#333;
}

/* aviso */
.pagamento-aviso{
  display:flex;
  align-items:center;
  gap:6px;
  color:#00a650;
  font-size:14px;
  margin-bottom:12px;
  line-height:1;
}

/* 🔥 corrige o alinhamento do SVG */
.icone-cartao-svg{
  display:flex;
  align-items:center;
  justify-content:center;
}

.icone-cartao-svg svg{
  width:18px;
  height:18px;
  display:block;
}

/* ========================= */
/* 💳 LOGOS PAGAMENTO (PADRÃO ML REAL) */
/* ========================= */
.pagamento-logos{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

/* 🔥 caixa padrão (igual ML) */
.logo-box{
  width:44.28px;
  height:28px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:#fff;
  border:1px solid #eee;
  border-radius:6px;

  padding:4px;
}

/* imagem dentro */
.logo-box img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

/* ========================= */
/* 📦 ENVIOS CORREIOS */
/* ========================= */

.produto-envio{
  background:#fff;
  padding:16px 16px 20px;
  border-top:1px solid #eee;
}

.produto-envio h2{
  font-size:18px;
  margin-bottom:10px;
  color:#333;
}

/* texto */
.envios{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  margin-bottom:12px;
  line-height:1.25;
}

/* 🔥 corrige o alinhamento do SVG */
.produto-envio .icone-cartao-svg{
  padding-top:10px;
  border-top:1px solid #eee;
  display:flex;
  align-items:left;
  justify-content:left;
}

.produto-envio .icone-cartao-svg img{
  width:147px;
  display:block;
}

/* ======================================== */
/* 🔥 SSL */
/* ======================================== */
.produto-ssl{
    background:#FFF;
    padding:16px 16px 20px;
    border-top:1px solid #eee;
}

.ssl{

  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
}

/* 🔥 caixa padrão (igual ML) */
.ssl .logo-box{
  width:144.28px;
  height:57px;

  background:#fff;
  border:1px solid #eee;
  border-radius:6px;

  padding:4px;
}

/* imagem dentro */
.ssl .logo-box img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

/* ======================================== */
/* 🔥 DIVISOR */
/* ======================================== */
.divisor{
  height:1px;
  background:linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.06),
    transparent
  );
  margin: 0;
}

/* ======================================== */
/* 🔥 FOOTER CLEAN PREMIUM */
/* ======================================== */

.footer{
  background: linear-gradient(180deg, #4A90E2, #3b7edb);
  padding: 20px 16px;
  text-align: center;
  font-size: 12px;
  color: #fff;
}

/* textos */
.footer p{
  margin: 6px 0;
  line-height: 1.4;
  opacity: 0.95;
}

/* divisões suaves */
.footer .borda{
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

/* linha sutil (não vermelha) */
.footer .borda::after{
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: rgba(255,255,255,0.25);
}

/* destaque da primeira linha */
.footer .borda:first-child p{
  font-weight: bold;
  font-size: 13px;
}

/* última parte mais suave */
.footer div:last-child p{
  opacity: 0.8;
  font-size: 11px;
}

/* ============================ */
/* 📱 BOTTOM BAR */
/* ============================ */

.bottom-bar{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55px;
  background: #fff;
  border-top: 1px solid #e6e6e6;

  display: flex;
  justify-content: space-around;
  align-items: center;

  z-index: 9999;

  /* 🔥 animação */
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 🔥 quando aparece */
.bottom-bar.show{
  transform: translateY(0);
  opacity: 1;
}

/* 🔥 quando escondida */
.bottom-bar.hidden{
  display: flex; /* ⚠️ mantém pra animar */
}

/* ============================ */
/* 🔘 ITENS */
/* ============================ */

.nav-item{
  text-align: center;
  font-size: 11px;
  color: #666;
  text-decoration: none;
}

.nav-item svg{
  width: 22px;
  height: 22px;
  fill: #666;
  display: block;
  margin: 0 auto 2px;
}

/* ============================ */
/* 🛒 CARRINHO */
/* ============================ */

.nav-cart{
  position: relative;
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  color: #666;
}
/* ============================ */
/* 🛒 BOTÃO CENTRAL (ML REAL) */
/* ============================ */

.cart-btn{
  position: relative;

  margin-top: -24px;

  width: 50px;
  height: 50px;

  background: #fff;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
    
    border: 2px solid #4A90E2;
}

/* ícone */
.cart-btn svg{
    width: 77px;
    height: 77px;
}
.carrinho-btn{
    color:#4A90E2;
}

/* ============================ */
/* 🔴 BADGE (PEQUENO IGUAL ML) */
/* ============================ */

.cart-badge{
  position: absolute;

  top: 5px;
  right: 10px;

  color: orange;

  font-size: 17px !important;
  font-weight: bold;

  min-width: 25px;
  height: 25px;

  padding: 0 3px;

  border-radius: 40px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* ícone carrinho */
.bottom-bar .cart-btn svg path,
.bottom-bar .cart-btn svg circle{
  stroke:#4A90E2 !important;
}

/* ============================ */
/* ⚪ CARRINHO INATIVO (REFINADO) */
/* ============================ */

.bottom-bar.cart-empty .cart-btn{
  background:#fff;
  border:2px solid #ddd;
  transition: all 0.2s ease;
}

/* ícone carrinho */
.bottom-bar.cart-empty .cart-btn svg path,
.bottom-bar.cart-empty .cart-btn svg circle{
  stroke:#aaa !important;
}

/* texto carrinho */
.bottom-bar.cart-empty .carrinho-btn{
  color:#888; /* 🔥 mais legível */
}

/* badge neutro */
.bottom-bar.cart-empty .cart-badge{
  color:#bbb;
}
/* ============================ */
/* 🔥 INTERAÇÃO */
/* ============================ */

.nav-item:active svg{
  transform: scale(0.9);
}

.nav-cart:active .cart-btn{
  transform: scale(0.95);
}

/* ============================ */
/* ✨ ANIMAÇÃO */
/* ============================ */

.cart-badge.animate{
  animation: pulseCart 0.3s ease;
}

@keyframes pulseCart{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.25); }
  100%{ transform: scale(1); }
}

/* ========================= */
/* 🔝 VOLTAR PARA O TOPO */
/* ========================= */

.voltar-topo{
  display: flex;
    justify-content: center;
  padding: 25px 10px 10px;
  gap: 6px;
}

.btn-voltar-index, .btn-voltar-produto{
  background:#000;
  color:#fff;
  border:none;

  padding:14px 22px;
  border-radius:30px;

  font-size:14px;
  font-weight:bold;

  cursor:pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap:5px;

  box-shadow:0 4px 10px rgba(0,0,0,0.2);
}
.btn-voltar-index svg,.btn-voltar-produto svg{
  display: block;
}
.btn-voltar-index:active,.btn-voltar-produto:active{
  transform: scale(0.95);
}

/* ============================
   🔔 TOAST CONFIRMAÇÃO
============================ */

.toast-confirmacao {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 99999;

  width: 100%;
  max-width: 420px;
  padding: 0 12px;
  box-sizing: border-box;

  opacity: 0;
  transition: all 0.35s ease;
}

.toast-confirmacao-box {
  background: linear-gradient(to bottom, #4A90E2, #3A7BD5);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border: 1px solid #E5E7EB;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast-confirmacao-texto {
  font-size: 14px;
    color: #fff;
  line-height: 1.4;
}

.toast-confirmacao-botoes {
  display: flex;
  gap: 10px;
}

.toast-confirmacao-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

/* cancelar */
.toast-confirmacao-btn.cancelar {
  background: #F3F4F6;
  color: #111827;
}

.toast-confirmacao-btn.cancelar:hover {
  background: #E5E7EB;
}

/* confirmar */
.toast-confirmacao-btn.confirmar {
    background: #edff00;
        color: #000;
}

.toast-confirmacao-btn.confirmar:hover {
  background: #15803d;
}