/* ============================================
   MAVI3D — Estilo Principal
   ============================================ */

:root {
  --rosa: #ff2fb9;
  --ciano: #00d4ff;
  --preto: #0d0d14;
  --preto-claro: #17171f;
  --cinza: #a0a0b0;
  --branco: #ffffff;
  --borda: rgba(255, 47, 185, 0.25);
}

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

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: var(--preto);
  color: var(--branco);
  min-height: 100vh;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ BANNER TOPO ============ */
.banner-promocoes {
  background: linear-gradient(90deg, var(--rosa), var(--ciano));
  color: var(--preto);
  font-weight: bold;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.banner-track { display: inline-block; animation: rolarBanner 25s linear infinite; }
.banner-track span { display: inline-block; padding: 0 40px; font-size: 0.95rem; }
@keyframes rolarBanner {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ CABEÇALHO ============ */
.cabecalho {
  background: var(--preto-claro);
  border-bottom: 2px solid var(--borda);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.cabecalho-inner { display: flex; justify-content: space-between; align-items: center; }

/* ============ LOGO (AJUSTADA) ============ */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--branco);
}

.logo img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  transition: transform 0.2s;
}



.logo:hover img {
  transform: scale(1.05);
}

.logo-texto strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--rosa), var(--ciano));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.logo-texto span {
  font-size: 1rem;
  color: var(--cinza);
  letter-spacing: 0.5px;
}

/* ============ BOTÃO CARRINHO ============ */
.btn-carrinho {
  background: linear-gradient(90deg, var(--rosa), var(--ciano));
  color: var(--preto);
  border: none;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  transition: transform 0.2s;
}
.btn-carrinho:hover { transform: scale(1.05); }

.btn-carrinho .badge {
  background: var(--preto);
  color: var(--ciano);
  border-radius: 50%;
  padding: 2px 8px;
  font-size: 0.75rem;
  margin-left: 5px;
}

/* ============ CATEGORIAS ============ */
.categorias {
  background: var(--preto-claro);
  padding: 15px 0;
  border-bottom: 1px solid var(--borda);
  position: sticky;
  top: 100px;
  z-index: 99;
  overflow-x: auto;
}
.categorias .container { display: flex; gap: 10px; flex-wrap: nowrap; }

.cat-btn {
  background: transparent;
  color: var(--cinza);
  border: 1px solid var(--borda);
  padding: 12px 24px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}


}
.cat-btn:hover, .cat-btn.ativo {
  background: linear-gradient(90deg, var(--rosa), var(--ciano));
  color: var(--preto);
  border-color: transparent;
  font-weight: bold;
}

/* ============ TÍTULOS ============ */
.titulo-secao {
  margin: 30px 0 20px;
  font-size: 1.5rem;
  color: var(--branco);
  border-left: 4px solid var(--rosa);
  padding-left: 12px;
}

/* ============ BANNER DE OFERTAS ============ */
.ofertas-secao { margin: 20px auto 40px; }

.ofertas-track-wrap {
  position: relative;
  padding: 10px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ofertas-track {
  display: flex;
  gap: 15px;
  width: max-content;
}

.ofertas-track.modo-estatico {
  justify-content: center;
  width: 100%;
  animation: none;
}

.ofertas-track.modo-rolagem {
  animation: rolarOfertas 40s linear infinite;
}
.ofertas-track.modo-rolagem:hover {
  animation-play-state: paused;
}

.ofertas-track.modo-rolagem-lenta {
  animation: rolarOfertas 60s linear infinite;
}
.ofertas-track.modo-rolagem-lenta:hover {
  animation-play-state: paused;
}

@keyframes rolarOfertas {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.oferta-card {
  background: var(--preto-claro);
  border: 2px solid var(--rosa);
  border-radius: 14px;
  min-width: 200px;
  max-width: 200px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.oferta-card:hover {
  transform: scale(1.05);
  border-color: var(--ciano);
}

.oferta-card.destaque {
  min-width: 280px;
  max-width: 280px;
  border-width: 3px;
  box-shadow: 0 6px 30px rgba(255, 47, 185, 0.35);
}
.oferta-card.destaque img { height: 200px; }
.oferta-card.destaque .oferta-info strong { font-size: 1.1rem; }

.oferta-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: #222;
  display: block;
}
.oferta-card .oferta-info { padding: 10px; }
.oferta-card .oferta-info strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oferta-card .oferta-info .oferta-preco {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--ciano);
}

/* ============ GRID DE PRODUTOS ============ */
.grid-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.produto {
  background: var(--preto-claro);
  border: 1px solid var(--borda);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.produto:hover { transform: translateY(-5px); border-color: var(--rosa); }

.produto .tag-promo {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--rosa);
  color: var(--branco);
  font-size: 0.6rem;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 10px;
  z-index: 2;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.produto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #222;
}
.produto-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.produto-info h3 { font-size: 1.05rem; margin-bottom: 6px; }
.produto-info p {
  font-size: 0.85rem;
  color: var(--cinza);
  margin-bottom: 12px;
  flex-grow: 1;
}
.produto-info .preco {
  font-size: 1.3rem;
  font-weight: bold;
  background: linear-gradient(90deg, var(--rosa), var(--ciano));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.btn-add {
  background: linear-gradient(90deg, var(--rosa), var(--ciano));
  color: var(--preto);
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-add:hover { opacity: 0.85; }

/* ============ CARRINHO LATERAL ============ */
.carrinho {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--preto-claro);
  border-left: 2px solid var(--rosa);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}
.carrinho.aberto { right: 0; }

.carrinho-header {
  padding: 20px;
  border-bottom: 1px solid var(--borda);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.carrinho-header h3 {
  background: linear-gradient(90deg, var(--rosa), var(--ciano));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fechar-carrinho {
  background: transparent;
  color: var(--branco);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.carrinho-itens { flex-grow: 1; overflow-y: auto; padding: 15px 20px; }
.carrinho-vazio { color: var(--cinza); text-align: center; margin-top: 40px; }

.item-carrinho {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--borda);
  align-items: center;
}
.item-carrinho img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 8px;
}
.item-carrinho .info { flex-grow: 1; }
.item-carrinho .info strong { display: block; font-size: 0.9rem; }
.item-carrinho .info span { font-size: 0.85rem; color: var(--ciano); }
.item-carrinho .qtd { display: flex; align-items: center; gap: 6px; }
.item-carrinho .qtd button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--borda);
  background: transparent;
  color: var(--branco);
  cursor: pointer;
  font-weight: bold;
}
.btn-remover {
  background: transparent;
  border: none;
  color: #ff5566;
  cursor: pointer;
  font-size: 1.1rem;
}

.carrinho-footer { padding: 20px; border-top: 1px solid var(--borda); }
.total { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 1.1rem; }
.total strong { color: var(--ciano); font-size: 1.3rem; }

.btn-finalizar {
  width: 100%;
  background: linear-gradient(90deg, #25d366, #128c7e);
  color: var(--branco);
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-finalizar:hover { opacity: 0.9; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.ativo { opacity: 1; pointer-events: all; }

/* ============ MODAL DE PRODUTO ============ */
.produto-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.produto-modal.ativo { display: flex; opacity: 1; }

.produto-modal-conteudo {
  background: var(--preto-claro);
  border: 2px solid var(--rosa);
  border-radius: 18px;
  max-width: 1100px;
  width: 100%;
  height: 85vh;
  max-height: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(255, 47, 185, 0.3);
}

.produto-modal-imagem {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  border-radius: 16px 0 0 16px;
}
.produto-modal-imagem img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.produto-modal-info {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.produto-modal-info h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--rosa), var(--ciano));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
  flex-shrink: 0;
}

.produto-modal-descricao-wrap {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 15px;
  padding-right: 8px;
  min-height: 0;
}

.produto-modal-descricao-wrap::-webkit-scrollbar { width: 6px; }
.produto-modal-descricao-wrap::-webkit-scrollbar-track { background: #0d0d14; border-radius: 3px; }
.produto-modal-descricao-wrap::-webkit-scrollbar-thumb { background: var(--rosa); border-radius: 3px; }
.produto-modal-descricao-wrap::-webkit-scrollbar-thumb:hover { background: var(--ciano); }

.produto-modal-info .modal-descricao {
  color: var(--cinza);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.produto-modal-rodape {
  flex-shrink: 0;
  border-top: 1px solid var(--borda);
  padding-top: 15px;
}

.produto-modal-info .modal-preco {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--ciano);
  margin-bottom: 12px;
}

.produto-modal-info .btn-modal-add {
  width: 100%;
  background: linear-gradient(90deg, var(--rosa), var(--ciano));
  color: var(--preto);
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-bottom: 8px;
}
.produto-modal-info .btn-modal-add:hover { opacity: 0.85; }

.produto-modal-fechar {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--rosa);
  color: var(--branco);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.produto-modal-fechar:hover { background: #ff5566; transform: scale(1.1); }

/* ============ WHATSAPP FLUTUANTE ============ */
.whatsapp-flutuante {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 90;
  transition: transform 0.2s;
}
.whatsapp-flutuante:hover { transform: scale(1.1); }

/* ============ REDES SOCIAIS ============ */
.redes-sociais {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.rede-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  transition: transform 0.2s, opacity 0.2s;
  border: 2px solid transparent;
}
.rede-btn:hover { transform: translateY(-3px); opacity: 0.9; }

.rede-btn.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.rede-btn.facebook { background: #1877f2; }
.rede-btn.tiktok { background: #000; border-color: #ff2fb9; }

/* ============ RODAPÉ ============ */
.rodape {
  background: var(--preto-claro);
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--borda);
  color: var(--cinza);
  font-size: 0.9rem;
  margin-top: 40px;
}

/* ============ RESPONSIVO ============ */
@media (max-width: 850px) {
  .produto-modal-conteudo {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 92vh;
    max-height: none;
  }
  .produto-modal-imagem {
    border-radius: 16px 16px 0 0;
    max-height: 38vh;
    padding: 12px;
  }
  .produto-modal-info { padding: 20px; }
  .produto-modal-info h2 { font-size: 1.3rem; }
  .produto-modal-info .modal-preco { font-size: 1.5rem; }
}

@media (max-width: 600px) {
    .logo img { width: 60px; height: 60px; border-radius: 50%; }
  .logo-texto strong { font-size: 1.2rem; }
  .logo-texto span { display: none; }
  .categorias { top: 85px; }
  .grid-produtos {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  .produto img { height: 140px; }
  .produto-info h3 { font-size: 0.9rem; }
  .produto-info .preco { font-size: 1.1rem; }
  .oferta-card { min-width: 160px; max-width: 160px; }
  .oferta-card img { height: 100px; }
  .oferta-card.destaque { min-width: 240px; max-width: 240px; }
  .oferta-card.destaque img { height: 160px; }
}
