/* assets/css/style.css */

/* --- 1. Variáveis e Configurações Globais --- */
:root {
  --primary-color: #0bd3c4;
  --primary-dark: #0aaea8;
  --accent-color: #ff5722;
  --accent-hover: #e64a19;
  --text-dark: #1a1a1a;
  --text-gray: #555;
  --text-light: #fff;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(0, 189, 211, 0.2);
  --radius: 16px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box; /* Essencial para layouts precisos */
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-weight: 700;
}

/* Classe utilitária para centralizar containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- 2. Animações (Keyframes) --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aplica a animação de entrada */
.animate-enter {
  animation: fadeInUp 0.8s ease forwards;
}

/* --- 3. Botão WhatsApp Flutuante --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
}

.banner {
  margin-top: 0;
  position: relative;
  width: 100%;
  height: 90vh; /* Aumentei um pouco a altura */
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;

  /* CORREÇÃO DA IMAGEM: */
  /* center 25% significa: Centraliza horizontalmente, e desce o foco vertical para 25% */
  /* Ajusta esse 25% para mais ou menos se quiseres subir/descer a mulher */
  background-position: center 25%;

  /* CORREÇÃO DO ESPAÇO: */
  /* Adiciona padding no topo para compensar o header flutuante */
  padding-top: 80px;
}

.banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* object-position faz a mesma coisa que o background-position */
  object-fit: cover;
  object-position: center 25%; /* Foco no rosto, fugindo do header */
  z-index: 0;
}

/* Gradiente sobre a imagem para melhorar leitura */
.banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.banner .overlayba {
  position: relative;
  z-index: 2;
  margin-right: 10%; /* Afasta da direita */
  background: rgba(255, 255, 255, 0.1); /* Fundo translúcido */
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  max-width: 450px;
  width: 90%;
  color: var(--text-light);
  backdrop-filter: blur(12px); /* Efeito Vidro (Blur) */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out;
}

.banner .overlayba h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner .overlayba p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.banner button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 14px 40px;
  font-size: 1rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(11, 211, 196, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.banner button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(11, 211, 196, 0.5);
}

/* --- 5. Produtos (Grid Premium Centralizado - CORRIGIDO) --- */

.products-banner {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.products-banner h2 {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.products-banner h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 10px auto 0;
  border-radius: 4px;
}

/* CONTAINER (GRID INTELIGENTE) */
.products-container {
  display: grid;
  /* Cria colunas automáticas. Se o ecrã for pequeno, reduz as colunas. */
  /* minmax(260px, 1fr) garante que o card nunca fica menor que 260px */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

/* O CARTÃO (CARD) */
.product-item {
  background-color: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centraliza tudo horizontalmente */
  border: 1px solid #eee;
  position: relative;
  height: 100%; /* Garante altura igual para todos */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03); /* Sombra leve padrão */
}

/* Efeito Hover (Desktop) */
.product-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(11, 211, 196, 0.15);
  border-color: var(--primary-color);
}

/* Imagem */
.product-item img {
  width: 100%;
  max-width: 220px; /* Limite máximo para não estourar */
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.product-item:hover img {
  transform: scale(1.05);
}

/* Título */
.product-item h3 {
  font-size: 1.1rem;
  margin: 10px 0;
  text-align: center;
  line-height: 1.4;
  min-height: 45px; /* Alinha o conteúdo abaixo */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Texto "A partir de" */
.product-item p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #777;
}

/* Preço */
.product-item p.price {
  color: var(--primary-dark);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 20px;
}

/* Botão */
.product-item .btn-ver-mais {
  margin-top: auto;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  max-width: 200px;
}

.product-item:hover .btn-ver-mais {
  background-color: var(--primary-color);
  color: #fff;
}

/* --- CORREÇÃO MOBILE (< 600px) --- */
@media (max-width: 600px) {
  .products-container {
    /* Força 1 coluna apenas */
    grid-template-columns: 1fr;
    padding: 0 15px;
    gap: 20px;
  }

  .product-item {
    /* Garante que o card ocupe a largura total, mas com margem */
    width: 100%;
    max-width: 100%;
    padding: 25px 15px;
    /* Força layout vertical (Imagem em cima, texto em baixo) */
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Ajuste de tamanhos para mobile */
  .product-item img {
    height: 150px; /* Imagem um pouco menor */
    margin-bottom: 15px;
  }

  .product-item h3 {
    font-size: 1rem;
    min-height: auto; /* Remove altura fixa no mobile */
    margin-bottom: 5px;
  }

  .product-item p.price {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .products-banner h2 {
    font-size: 1.8rem; /* Título da secção menor */
  }
}
/* --- 6. Vídeo Section (Cinema Mode) --- */
.video-banner {
  padding: 80px 20px;
  background-color: var(--bg-light);
  text-align: center;
}

.video-banner h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.video-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 8px solid #fff;
  /* Centralização extra por segurança */
  display: flex;
  justify-content: center;
}

video {
  width: 100%;
  height: auto;
  display: block;
}

/* --- 7. Popup Promocional --- */
.cupom-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Mais escuro para foco */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px); /* Desfoca o fundo do site */
}

.cupom-popup-overlay.show {
  display: flex;
  opacity: 1;
}

.cupom-popup {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  border-top: 8px solid var(--primary-color);
  transform: scale(0.7) translateY(50px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efeito elástico */
}

.cupom-popup-overlay.show .cupom-popup {
  transform: scale(1) translateY(0);
}

.oferta-titulo {
  font-size: 1.5rem;
  color: var(--primary-dark);
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.oferta-preco {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 15px 0;
}

.cupom-btn-adquirir {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 18px;
  border-radius: 12px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(255, 87, 34, 0.3);
}

.cupom-btn-adquirir:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 87, 34, 0.4);
}

.popup-image {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* --- 8. Responsividade Avançada --- */
@media (max-width: 900px) {
  .banner .overlayba {
    margin-right: 5%;
  }
}

@media (max-width: 768px) {
  .banner {
    justify-content: center; /* Centraliza no mobile */
  }

  .banner .overlayba {
    margin: 0; /* Remove margem lateral */
    width: 90%;
    background: rgba(255, 255, 255, 0.15); /* Um pouco mais visível */
    padding: 30px 20px;
  }

  .banner .overlayba h1 {
    font-size: 1.6rem;
  }

  .products-banner h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .banner {
    height: 90vh; /* Mais altura no mobile para caber tudo */
  }

  .cupom-popup {
    padding: 25px;
  }

  .oferta-preco {
    font-size: 1.6rem;
  }
}
/* assets/css/style.css */

/* Estilo do container do botão */
.ver-mais-container {
  text-align: center;
  margin-top: 20px;
  display: none; /* Escondido por padrão (no Desktop não precisa) */
}

/* Estilo do botão "Ver todos" */
.btn-expandir {
  background-color: var(--text-dark);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-expandir:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

/* --- A MAGIA ACONTECE AQUI (Responsividade) --- */
@media (max-width: 768px) {
  /* 1. Esconde os produtos extras no mobile */
  .product-item.mobile-hide {
    display: none;
  }

  /* 2. Mostra o botão "Ver todos" apenas no mobile */
  .ver-mais-container {
    display: block;
  }
}

.main-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);

  width: 95%;
  max-width: 1100px;
  height: 70px;

  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 50px;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(15px);
}

.header-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo img {
  height: 45px; /* Tamanho controlado */
  width: auto;
  /* Se o teu logo for preto, isto inverte para branco. 
       Se já for branco/colorido, remove esta linha abaixo */
  /* filter: brightness(0) invert(1); */
  transition: transform 0.3s;
}

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

/* Navegação Central */
.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 30px;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #333; /* Branco acinzentado */
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

/* Efeito Hover e Active nos Links */
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

/* Tracinho embaixo do link ativo */
.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color); /* Usa o verde do teu site */
  border-radius: 2px;
}

/* Área da Direita (Ícones e Botão) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Ícones (Carrinho e User) */
.icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.icon-img {
  width: 24px;
  height: 24px;
  /* MAGIA: Inverte a cor dos teus ícones pretos para branco! */
  filter: none;
  cursor: pointer;
  transition: transform 0.3s;
}

.icon-img:hover {
  transform: scale(1.1);
}

/* Bolinha do Carrinho */
#cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ff3b30; /* Vermelho notificação */
  color: white;
  font-size: 11px;
  font-weight: bold;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  display: none; /* JS ativa flex se > 0 */
  align-items: center;
  justify-content: center;
  border: 2px solid #1a1a1a; /* Borda da cor do fundo */
}

/* Botão de Contato (Estilo Pílula Rosa da Foto) */
.btn-header-contact {
  background-color: #e91e63; /* Rosa da foto referência */
  /* OU se preferires o verde do site, descomenta a linha abaixo: */
  /* background-color: var(--primary-color); */

  color: #fff;
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 30px; /* Formato Pílula */
  font-weight: bold;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-header-contact:hover {
  background-color: #c2185b; /* Rosa mais escuro */
  /* Se usares verde, muda para: var(--primary-dark); */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5);
}

/* Hamburger (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* --- Responsividade do Header --- */
@media (max-width: 900px) {
  .btn-header-contact {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-header {
    top: 15px;
    width: 90%;
    height: 60px;
    padding: 0 20px;
    border-radius: 30px;
  }

  .header-container {
    position: static;
  }

  .nav-menu ul {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: 15px;
    z-index: 1100;
  }

  .hamburger span {
    background-color: #1a1a1a;
    height: 3px;
    width: 25px;
    border-radius: 2px;
    transition: all 0.3s;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .nav-menu {
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
  }

  .nav-menu.active ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .nav-menu a {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: block;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .btn-header-contact {
    display: none;
  }
}
/* --- RODAPÉ (FOOTER CLEAN & HARMONIOSO) --- */
.site-footer {
  /* MUDANÇA: Fundo claro para harmonizar com o site */
  background-color: #ffffff;
  /* Texto cinza escuro para leitura fácil e elegante */
  color: #555555;

  padding: 60px 0 20px;
  font-size: 14px;

  /* A linha verde no topo continua (identidade visual), mas agora sobre fundo branco */
  border-top: 4px solid var(--primary-color);

  /* Sombra suave invertida para separar do conteúdo acima */
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.02);
  margin-top: auto;
}

/* Grid de 4 Colunas */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

/* Títulos das Colunas */
.footer-col h3 {
  /* Títulos na cor da marca (Verde Escuro) */
  color: var(--primary-dark);
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

/* Detalhe opcional: pequeno traço abaixo do título */
.footer-col h3::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color); /* Laranja ou Verde */
  margin-top: 8px;
  border-radius: 2px;
}

/* Texto de descrição */
.footer-desc {
  line-height: 1.7;
  margin-top: 15px;
  color: #666;
}

/* Ajuste do Logo no Footer */
.footer-logo img {
  max-width: 150px;
  /* Garante que o logo apareça bem em fundo branco (sem filtro invert) */
  filter: none;
  margin-bottom: 15px;
}

/* Listas de Links */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #555; /* Cinza escuro */
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  font-weight: 500;
}

/* Hover nos Links */
.footer-col ul li a:hover {
  color: var(--primary-color); /* Fica verde ao passar o mouse */
  transform: translateX(5px);
}

/* Ícones Sociais */
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f0f0f0; /* Fundo cinza clarinho para o ícone */
  border-radius: 50%; /* Ícone redondo */
  transition: var(--transition);
}

.footer-social a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(11, 211, 196, 0.3);
}

.footer-bottom {
  border-top: 1px solid #e0e0e0;
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  font-size: 13px;
  color: #777;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom strong {
  color: var(--primary-dark);
}

.dev-link {
  color: var(--accent-color); /* Laranja ou a cor de destaque */
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

.dev-link:hover {
  text-decoration: none;
  color: var(--primary-color);
}
.dev-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

.dev-link:hover::after {
  width: 100%;
}
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: left;
  }

  .site-footer {
    padding: 40px 0 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-social {
    justify-content: flex-start;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 2050;

  /* Animação de Entrada */
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: all 0.4s ease;
  border-left: 5px solid var(--primary-color);
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.cookie-img {
  width: 50px;
  animation: floatCookie 3s ease-in-out infinite;
}

@keyframes floatCookie {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(10deg) scale(1.1);
  }
}

.cookie-text p {
  margin: 0;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.cookie-text a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-cookie-accept {
  flex: 1;
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-cookie-accept:hover {
  background: var(--primary-dark);
}

.btn-cookie-manage {
  flex: 1;
  background: transparent;
  border: 1px solid #ddd;
  color: #555;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-cookie-manage:hover {
  border-color: #333;
  color: #333;
}

.cookie-floating-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 2040;
  display: none; /* Aparece via JS */
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.cookie-floating-btn:hover {
  transform: scale(1.1) rotate(15deg);
}

.cookie-floating-btn img {
  width: 30px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none; /* Escondido por padrão */
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  display: flex !important;
  opacity: 1;
  z-index: 1500;
}

.modal-overlay.show .cookie-modal.show {
  display: block !important;
  transform: scale(1);
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;

  /* Começa invisível */
  display: none;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cookie-modal.show {
  display: block;
  transform: scale(1);
  opacity: 1;
}

.cookie-modal.large {
  max-width: 700px;
  display: none;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-dark);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.modal-body {
  margin-bottom: 20px;
}

.modal-body.scrollable {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 10px;
}

.switch-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.switch-text {
  display: flex;
  flex-direction: column;
}

.switch-text strong {
  font-size: 14px;
  color: #333;
}
.switch-text small {
  font-size: 12px;
  color: #777;
}

.switch-label input {
  display: none;
}

.slider {
  position: relative;
  width: 40px;
  height: 22px;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--primary-color);
}
input:checked + .slider:before {
  transform: translateX(18px);
}

.slider.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-cookie-save {
  width: 100%;
  background: var(--text-dark);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.btn-cookie-save:hover {
  background: #000;
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 10px;
    width: calc(100% - 20px);
    padding: 20px;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}
/* --- PÁGINA DE DETALHES DO PRODUTO --- */

.product-page-content {
  padding-top: 120px; /* Espaço para o header flutuante */
  padding-bottom: 60px;
  background-color: #f8f9fa;
  min-height: 80vh;
}

/* Layout Principal (2 Colunas) */
.product-detail-wrapper {
  display: flex;
  gap: 50px;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 50px;
  align-items: flex-start;
}

/* Coluna Imagem */
.product-image-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-image-container img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s;
}

.main-image-container img:hover {
  transform: scale(1.05);
}

/* Coluna Informações */
.product-info-col {
  flex: 1;
}

.product-info-col h1 {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.price-box .currency {
  font-size: 1.5rem;
  font-weight: 600;
}
.price-box .value {
  font-size: 3rem;
  font-weight: 800;
}

.pix-price {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
  background: rgba(255, 87, 34, 0.1);
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
}

.divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 25px 0;
}

/* Controles (Validade e Quantidade) */
.purchase-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.control-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #555;
}

.custom-select {
  padding: 12px 20px;
  border-radius: 10px;
  border: 2px solid #eee;
  font-size: 1rem;
  background: #fff;
  cursor: pointer;
  min-width: 150px;
  transition: 0.3s;
}

.custom-select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.quantity-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #eee;
  border-radius: 10px;
  overflow: hidden;
}

.quantity-wrapper button {
  background: #f9f9f9;
  border: none;
  width: 40px;
  height: 45px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.2s;
}

.quantity-wrapper button:hover {
  background: #eee;
}

.quantity-wrapper input {
  width: 50px;
  text-align: center;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  height: 45px;
  /* Remove setas do input number */
  -moz-appearance: textfield;
}
.quantity-wrapper input::-webkit-outer-spin-button,
.quantity-wrapper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-buy-large {
  width: 100%;
  padding: 18px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(11, 211, 196, 0.3);
}

.btn-buy-large:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(11, 211, 196, 0.4);
}

/* Galeria Relacionada (Thumbnails) */
.related-products-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.related-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.related-item {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 15px;
  padding: 15px;
  width: 140px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.related-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.related-item p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

/* Input Moderno (Para o modal de data) */
.modern-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
  margin-top: 10px;
}

.modern-input:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Loader Tela Cheia */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsividade */
@media (max-width: 768px) {
  .product-detail-wrapper {
    flex-direction: column;
    padding: 20px;
  }

  .product-image-col {
    width: 100%;
    margin-bottom: 20px;
  }

  .product-info-col h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .price-box {
    justify-content: center;
  }

  .pix-price {
    display: block;
    text-align: center;
    margin: 0 auto;
    width: fit-content;
  }

  .purchase-controls {
    justify-content: center;
  }

  .btn-buy-large {
    font-size: 1rem;
  }
}
/* --- PÁGINA DO CARRINHO --- */

.cart-page-content {
  padding-top: 130px;
  padding-bottom: 80px;
  background-color: #f4f6f8;
  min-height: 90vh;
}
.page-title {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 30px;
}
/* Estado Vazio */
.empty-cart {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.empty-cart h2 {
  margin-top: 20px;
  color: #333;
}
.empty-cart p {
  color: #777;
  margin-bottom: 30px;
}
.btn-continue {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.btn-continue:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

/* Layout Carrinho (Esquerda: Lista, Direita: Resumo) */
.cart-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.cart-items-list {
  flex: 2; /* Ocupa mais espaço */
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Card do Item */
.cart-item {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: 0.3s;
}

.cart-item:hover {
  box-shadow: var(--shadow-soft);
}

.item-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.item-details h3 {
  font-size: 1.1rem;
  margin: 0 0 5px 0;
  color: var(--text-dark);
}
.item-details .meta {
  font-size: 0.85rem;
  color: #777;
  margin: 0;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 8px;
}
.quantity-selector button {
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-weight: bold;
  color: var(--primary-color);
}
.quantity-selector input {
  width: 30px;
  text-align: center;
  border: none;
  font-weight: 600;
}

.item-price {
  font-weight: 800;
  color: var(--text-dark);
  font-size: 1.1rem;
  min-width: 100px;
  text-align: right;
}

.btn-remove {
  background: #fee;
  color: #f44;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.btn-remove:hover {
  background: #f44;
  color: #fff;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: start;
}
.cart-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #eee;
}

.cart-card-details h3 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  color: var(--text-dark);
}
/* Resumo (Box Direita) */
.cart-summary {
  flex: 1;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 100px; /* Fixa ao rolar */
}

.cart-summary h3 {
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: #555;
}
.summary-row.total {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #eee;
}

.btn-checkout {
  width: 100%;
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  transition: 0.3s;
  text-transform: uppercase;
}
.btn-checkout:hover {
  background: var(--accent-hover);
  box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}
.badge-coupon {
  background: #e6fffa;
  color: #009688;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 10px;
}
.back-link {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #777;
  text-decoration: none;
  font-size: 0.9rem;
}
.back-link:hover {
  text-decoration: underline;
}

/* Responsividade Carrinho */
@media (max-width: 900px) {
  .cart-wrapper {
    flex-direction: column;
  }
  .cart-summary {
    width: 100%;
    position: static;
  }
}

@media (max-width: 600px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .item-controls {
    width: 100%;
    justify-content: space-between;
  }
} /* --- ESTILOS ESPECÍFICOS DO CARRINHO AVANÇADO --- */

.alert-box {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.cupom-tag {
  font-size: 0.8rem;
  background: #e6fffa;
  color: #009688;
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-block;
  margin-top: 5px;
  border: 1px solid #b2f5ea;
}

/* Edição de Data */
.date-edit-wrapper {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.btn-edit-small {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.edit-mode {
  display: flex;
  align-items: center;
  gap: 5px;
}
.mini-input {
  width: 100px;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.9rem;
  text-align: center;
}
.btn-save,
.btn-cancel {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-save {
  background: #28a745;
}
.btn-cancel {
  background: #dc3545;
}

/* Resumo Lateral */
.summary-block {
  margin-bottom: 20px;
}
.summary-block h4 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}
.summary-block.highlight {
  background: #f8fff9;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #c3e6cb;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.summary-row.discount {
  color: #28a745;
}
.summary-row.total {
  font-weight: 800;
  font-size: 1.1rem;
  border-top: 1px dashed #ccc;
  padding-top: 10px;
  margin-top: 10px;
}

/* Cupom Form */
.cupom-area {
  margin: 20px 0;
}
.cupom-form {
  display: flex;
  gap: 5px;
}
.cupom-form input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.cupom-form button {
  background: #333;
  color: #fff;
  border: none;
  padding: 0 15px;
  border-radius: 5px;
  cursor: pointer;
}
.cupom-msg {
  font-size: 0.85rem;
  margin-top: 5px;
  color: var(--primary-dark);
}

/* Botões de Ação */
.btn-checkout.pix {
  background: #28a745;
  margin-top: 10px;
}
.btn-checkout.pix:hover {
  background: #218838;
}

.login-alert {
  text-align: center;
  background: #fff3cd;
  padding: 15px;
  border-radius: 10px;
  color: #856404;
}
.auth-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}
.btn-login,
.btn-register {
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}
.btn-login {
  background: var(--primary-color);
  color: #fff;
}
.btn-register {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}
/* --- PÁGINAS DE AUTENTICAÇÃO (LOGIN / CADASTRO) --- */

.auth-page-content {
  padding-top: 140px; /* Header flutuante */
  padding-bottom: 80px;
  background: linear-gradient(
    135deg,
    #f5f7fa 0%,
    #c3cfe2 100%
  ); /* Fundo suave */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container Principal (Card) */
.auth-container {
  background: #fff;
  width: 1000px;
  max-width: 95%;
  min-height: 600px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  display: flex;
  overflow: hidden; /* Para a imagem não sair das bordas arredondadas */
}

/* Lado Esquerdo: Formulário */
.auth-form-section {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-header h1 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.auth-header p {
  color: #777;
  margin-bottom: 30px;
}

/* Lado Direito: Imagem */
.auth-image-section {
  flex: 1;
  background: url("../../imagens/pcimg1.webp") no-repeat center center; /* Usando uma imagem que já tens, ajusta se quiseres outra */
  background-size: cover;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 40px;
}

/* Overlay sobre a imagem para o texto ficar legível */
.auth-image-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8),
    rgba(11, 211, 196, 0.3)
  );
}

.auth-overlay-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.auth-overlay-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.auth-overlay-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* --- Estilos do Formulário --- */
.modern-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-row {
  display: flex;
  gap: 15px;
}

.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
}

.input-group input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: 0.3s;
  outline: none;
}

.input-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 211, 196, 0.1);
}

/* Estado de Erro */
.input-group input.error {
  border-color: #ff4d4f;
  background-color: #fff1f0;
}

.alert-box.error {
  background: #fff1f0;
  border: 1px solid #ffa39e;
  color: #d9363e;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-align: center;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #666;
  cursor: pointer;
}
.checkbox-group a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.btn-auth {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

.btn-auth:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(11, 211, 196, 0.4);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
}
.auth-footer a {
  color: var(--primary-dark);
  font-weight: bold;
  text-decoration: none;
}
.auth-footer a:hover {
  text-decoration: underline;
}

/* Responsividade Auth */
@media (max-width: 900px) {
  .auth-container {
    flex-direction: column;
    max-width: 500px;
  }
  .auth-image-section {
    display: none; /* Esconde imagem no mobile para focar no form */
  }
  .auth-form-section {
    padding: 30px;
  }
}
/* Ajuste para link 'Esqueceu a senha' no Login */
.forgot-link {
  font-size: 0.85rem;
  color: #777;
  text-decoration: none;
  transition: 0.3s;
}

.forgot-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
/* ... outros estilos ... */

/* Estilo para o wrapper do usuário no header */
.user-wrapper .user-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333; /* Mesma cor dos links do menu */
  transition: color 0.3s;
}

.user-wrapper .user-link:hover {
  color: #0bd3c4;
}

.user-wrapper .login-text {
  margin-left: 5px;
  font-size: 14px;
  font-weight: 500;
  display: none; /* Esconde em telas muito pequenas se necessário */
}

/* Mostra o texto "Entrar" em telas maiores que mobile */
@media (min-width: 769px) {
  .user-wrapper .login-text {
    display: inline-block;
  }
}
/* Estilos Extras do Perfil */
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}
.data-item {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.btn-action-small {
  background: var(--primary-color);
  color: #fff;
  padding: 5px 10px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: bold;
}
.btn-action-small:hover {
  background: var(--primary-dark);
}

@media (max-width: 600px) {
  .data-grid {
    grid-template-columns: 1fr;
  }
}
/* --- DASHBOARD / PERFIL DO CLIENTE --- */

.dashboard-content {
  padding-top: 140px;
  padding-bottom: 80px;
  background-color: #f8f9fa;
  min-height: 90vh;
}

/* Cabeçalho com Saudação */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.dashboard-header h1 {
  margin: 0;
  color: var(--text-dark);
  font-size: 2rem;
}
.dashboard-header p {
  color: #777;
  margin: 5px 0 0 0;
}

.btn-logout {
  background: transparent;
  border: 1px solid #ff4d4f;
  color: #ff4d4f;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}
.btn-logout:hover {
  background: #ff4d4f;
  color: #fff;
}

/* Grid de Estatísticas (Cards) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.stat-card {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s;
  text-decoration: none; /* Para quando for link */
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card .icon {
  width: 50px;
  height: 50px;
  background: #e6fffa;
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-card.alert .icon {
  background: #fff7e6;
  color: #fa8c16;
}
.stat-card.action {
  background: var(--primary-color);
}
.stat-card.action .icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.stat-card.action h3,
.stat-card.action .cta {
  color: #fff;
}

.stat-card h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #777;
  font-weight: 600;
}
.stat-card .number {
  margin: 5px 0 0 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
}
.stat-card .cta {
  margin: 5px 0 0 0;
  font-weight: bold;
}

/* Tabela Moderna */
.recent-orders-section h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.table-responsive {
  overflow-x: auto;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Garante que não quebra em mobile */
}

.modern-table th,
.modern-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.modern-table th {
  background-color: #fafafa;
  font-weight: 600;
  color: #555;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.modern-table tr:last-child td {
  border-bottom: none;
}

/* Badges de Status */
.status-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}
.status-badge.pago,
.status-badge.aprovado {
  background: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}
.status-badge.pendente {
  background: #fff7e6;
  color: #fa8c16;
  border: 1px solid #ffd591;
}
.status-badge.cancelado {
  background: #fff1f0;
  color: #f5222d;
  border: 1px solid #ffa39e;
}

.btn-details {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}
.btn-details:hover {
  text-decoration: underline;
}

/* Estado Vazio */
.empty-state {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}
.btn-primary-small {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  margin-top: 15px;
  font-weight: bold;
}

/* Seção Dados */
.account-settings-preview {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--text-dark);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.btn-outline:hover {
  background: var(--text-dark);
  color: #fff;
}

/* Responsividade */
@media (max-width: 768px) {
  .account-settings-preview {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .btn-logout {
    width: 100%;
  }
}
.cookie-modal input.modern-input {
  width: 100%;
  padding: 12px;
  margin: 15px 0;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 1.1rem;
  text-align: center;
  outline: none;
}
.cookie-modal input.modern-input:focus {
  border-color: var(--primary-color);
}
.cart-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
}
.date-edit-area {
  font-size: 0.9rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.link-edit {
  background: none;
  border: none;
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}
.mini-edit-form {
  display: flex;
  gap: 5px;
  align-items: center;
}
.mini-input {
  width: 90px;
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
}
.btn-mini-save,
.btn-mini-cancel {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.btn-mini-save {
  background: #28a745;
}
.btn-mini-cancel {
  background: #dc3545;
}

/* Coluna Direita (Preço e Remover) */
.cart-card-actions {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.price-display {
  display: flex;
  flex-direction: column;
}
.unit-label {
  font-size: 0.8rem;
  color: #888;
}
.price-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
}
.btn-remove-item {
  font-size: 0.85rem;
  color: #ff4d4f;
  text-decoration: none;
  background: #fff1f0;
  padding: 5px 12px;
  border-radius: 15px;
  transition: 0.3s;
}
.btn-remove-item:hover {
  background: #ff4d4f;
  color: #fff;
}

/* Box de Resumo (Lateral) */
.summary-box {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
}
.summary-box h3 {
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #555;
}
.summary-pix-box {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  padding: 15px;
  border-radius: 12px;
  margin: 20px 0;
}
.summary-line.highlight {
  color: #389e0d;
  font-weight: 600;
}
.summary-total-pix {
  border-top: 1px dashed #b7eb8f;
  padding-top: 10px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.big-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: #389e0d;
}

/* Formulário Cupom */
.coupon-form {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}
.coupon-form input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
}
.coupon-form input:focus {
  border-color: var(--primary-color);
}
.coupon-form button {
  background: #333;
  color: #fff;
  border: none;
  padding: 0 15px;
  border-radius: 8px;
  cursor: pointer;
}
.coupon-msg {
  font-size: 0.85rem;
  margin-bottom: 15px;
}
.coupon-msg.success {
  color: #28a745;
}
.coupon-msg.error {
  color: #dc3545;
}

/* Botões Finais */
.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-checkout-pix {
  background: #28a745;
  color: #fff;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}
.btn-checkout-pix span {
  font-size: 0.75rem;
  font-weight: normal;
  opacity: 0.9;
  text-transform: none;
}
.btn-checkout-pix:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-checkout-card {
  background: #fff;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  transition: 0.3s;
}
.btn-checkout-card:hover {
  background: var(--primary-color);
  color: #fff;
}

.auth-request-box {
  text-align: center;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
}
.auth-buttons-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}
.btn-login-cart {
  background: var(--primary-color);
  color: #fff;
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: bold;
}
.btn-register-cart {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: bold;
}

.continue-link {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #777;
  font-size: 0.9rem;
}
.continue-link:hover {
  text-decoration: underline;
}

/* Estado Vazio */
.empty-cart {
  text-align: center;
  padding: 80px 20px;
}
.icon-empty {
  font-size: 4rem;
  opacity: 0.3;
  margin-bottom: 20px;
}

/* Responsividade */
@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary-column {
    order: -1; /* Resumo primeiro no mobile? ou deixe normal */
  }
}
@media (max-width: 600px) {
  .cart-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .cart-card-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    border-top: 1px solid #f5f5f5;
    padding-top: 15px;
  }
}
/* Estilos para os Blocos de Preço Separados */

.summary-block.normal-price {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.summary-block h4 {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.summary-total .final-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
  margin-left: 10px;
}

.divider-dashed {
  border: 0;
  border-top: 1px dashed #ddd;
  margin: 20px 0;
}

.summary-pix-box {
  background-color: #f0fdf4; /* Verde muito suave */
  border: 1px solid #bbf7d0;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.summary-pix-box h4 {
  color: #166534; /* Verde escuro */
}

.big-price {
  font-size: 1.8rem;
  color: #166534;
  font-weight: 800;
}
/* --- PÁGINAS INSTITUCIONAIS (SOBRE, ETC) --- */

/* Hero Banner */
.page-hero-banner {
  position: relative;
  width: 100%;
  height: 60vh; /* Mais curto que a home */
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  overflow: hidden;
}

.page-hero-banner .banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.page-hero-overlay {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  text-align: center;
  max-width: 800px;
}
.page-hero-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.page-hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.page-hero-overlay button {
  /* Reusa btn-buy-large do style.css */
  width: auto !important;
}

/* Blocos de Conteúdo (Sobre Nós) */
.about-section {
  padding: 60px 0;
  width: 100%;
}
.about-section:nth-of-type(even) {
  background-color: var(--bg-white);
} /* Blocos brancos */
.about-section:nth-of-type(odd) {
  background-color: var(--bg-light);
} /* Blocos cinza claro */

.content-block {
  display: flex;
  gap: 50px;
  align-items: center;
}

/* Estrutura Texto / Imagem */
.text-image-block {
  display: flex;
  flex-direction: row;
}

.image-text-block {
  /* Inverte a ordem para criar o zigue-zague visual */
  flex-direction: row-reverse;
}

.text-content {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.image-content {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-content img {
  max-width: 100%;
  height: auto;
  max-height: 350px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.image-content img:hover {
  transform: scale(1.02);
}

.image-content .small-logo {
  max-width: 200px;
}

.primary-color {
  color: var(--primary-color);
  font-weight: bold;
}
.primary-link {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}
.primary-link:hover {
  text-decoration: underline;
}

/* Responsividade de Blocos */
@media (max-width: 900px) {
  .content-block {
    flex-direction: column; /* Pilha verticalmente */
    text-align: center;
  }

  /* ZIGUE-ZAGUE MOBILE: Não inverte. */
  .reverse-on-desktop {
    flex-direction: column;
  }

  .image-content {
    order: -1; /* Força a imagem a vir antes do texto no mobile, em todos os blocos */
    margin-bottom: 20px;
  }
}
/* --- PÁGINAS DE DÚVIDAS (FAQ ACORDEÃO) - VERSÃO PERFEITA --- */

.faq-hero {
  /* Novo Look: Fundo claro com um suave toque de verde/ciano (Melhor que o gradiente antigo) */
  background-color: #f0fcfc; /* Fundo muito claro */
  background-image: linear-gradient(180deg, #e6fffa 0%, #f0fcfc 100%);

  height: 35vh;
  min-height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  overflow: hidden;
}

.faq-hero .page-hero-overlay {
  position: relative;
  z-index: 2;
  color: var(--text-dark);
  text-align: center;
  max-width: 800px;
}
.faq-hero h1 {
  font-size: 3rem;
  margin-bottom: 5px;
  color: var(--primary-dark);
  font-weight: 800; /* Mais espesso para ter impacto */
  padding: 0 15px; /* Evita que o texto encoste nas bordas em mobile */
}
.faq-hero p {
  font-size: 1.1rem;
  color: #555;
  margin-top: 5px;
  padding: 0 15px;
}
.faq-section {
  padding: 60px 0;
  background-color: var(--bg-light); /* Fundo sutil */
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  /* O item é um card que flutua */
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  margin-bottom: 20px;
  background-color: var(--bg-white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(11, 211, 196, 0.2);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 30px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background-color: #fcfcfc;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 1.8rem;
  color: var(--primary-color);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg); /* Gira o + para um X */
  color: var(--accent-color);
}

.faq-answer {
  padding: 0 30px;
  background-color: #ffffff; /* Fundo branco puro para o texto */
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
  max-height: 0; /* Escondido */
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.faq-answer p {
  padding: 10px 0;
  margin: 0;
}

.faq-answer p:last-child {
  padding-bottom: 25px; /* Mais espaço no final */
}
.faq-answer strong {
  color: var(--primary-dark);
}

/* --- Responsividade --- */
@media (max-width: 600px) {
  .faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .faq-answer {
    padding: 0 20px;
    font-size: 0.95rem;
  }
}
.faq-hero .overlay-content {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
/* --- ADICIONAL PARA O CARRINHO --- */

.summary-line.tax-fee {
  font-weight: 500;
  color: #444;
  border-top: 1px solid #eee; /* Adiciona separador antes da taxa */
  padding-top: 10px;
  margin-top: 5px;
}
.summary-line.tax-fee .value-positive {
  color: var(--primary-dark); /* Deixa a cor mais escura */
  font-weight: 700;
}
/* --- ESTILOS DE MENSAGENS DE ALERTA FIXAS --- */

.alert-message {
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.alert-message.success {
  background-color: #f0fcfc; /* Fundo ciano suave */
  color: var(--primary-dark); /* Texto ciano */
  border-color: var(--primary-color);
}

.alert-message.error {
  background-color: #fff1f0; /* Fundo vermelho suave */
  color: #cc0000; /* Texto vermelho */
  border-color: #ff4d4f;
}

.alert-message .link-reenvio {
  color: #0bd3c4;
  font-weight: bold;
  text-decoration: underline;
  margin-left: 10px;
}
/* --- PÁGINAS DE REEXIBIÇÃO / PIX DETALHE --- */

.pix-page-content {
  /* Novo background e espaçamento */
  padding-top: 140px;
  min-height: 90vh;
  background: #f4f6f8;
  display: flex;
  justify-content: center;
  padding-bottom: 50px;
}

.pix-card {
  /* Estilo principal do cartão */
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  margin-bottom: 40px;
}

.pix-card h1 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.pix-amount {
  font-size: 2.5rem;
  color: #28a745; /* Verde de sucesso/pagamento */
  font-weight: 800;
  margin: 10px 0 20px;
}

/* Container do QR Code */
.qr-container {
  background: #fff;
  padding: 15px;
  border-radius: 15px;
  display: inline-block;
  margin: 20px 0;
  border: 2px dashed #b7eb8f; /* Borda levemente verde */
}

.qr-container img {
  width: 250px;
  height: 250px;
  display: block;
}

/* Área do Código Copia e Cola */
.pix-code-box {
  width: 100%;
  padding: 15px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #555;
  margin-top: 15px;
  resize: none;
  height: 80px;
  cursor: text;
}

/* Botão Copiar */
.btn-copy {
  background: var(--accent-color); /* Laranja */
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.btn-copy:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}

/* Botão de Finalizar/Voltar */
.btn-finish {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 10px;
  display: inline-block;
  transition: 0.3s;
}
.btn-finish:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Status Pendente */
.timer {
  color: #fa8c16;
  font-weight: bold;
  margin-top: 10px;
  font-size: 0.9rem;
  background: #fff7e6;
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-block;
}
/* --- PÁGINAS LEGAIS (POLÍTICAS E TERMOS) --- */

.page-content-wrapper {
  padding-top: 130px;
  padding-bottom: 80px;
  background-color: var(--bg-light);
  min-height: 90vh;
}

.policy-header {
  text-align: center;
  margin-bottom: 50px;
}
.policy-header h1 {
  font-size: 2.5rem;
  color: var(--primary-dark);
}
.policy-header p {
  color: #777;
  font-size: 1.1rem;
}

/* Estilo das Abas (Separadores) */
.policy-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 15px;
  border-bottom: 2px solid #eee;
}

.tab-policy {
  background: none;
  border: none;
  padding: 15px 25px;
  font-size: 1rem;
  font-weight: 600;
  color: #777;
  cursor: pointer;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.tab-policy:hover {
  color: var(--text-dark);
  border-bottom-color: #ddd;
}

.tab-policy.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Estilo do Conteúdo */
.policy-content {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  line-height: 1.8;
}

.policy-content h2 {
  color: var(--text-dark);
  font-size: 1.8rem;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.policy-content h3 {
  color: var(--primary-dark);
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.policy-content p {
  color: #444;
  margin-bottom: 15px;
}
.policy-content a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: underline;
}

.last-update {
  font-style: italic;
  font-size: 0.85rem;
  color: #999;
  margin-top: 40px;
}

/* Responsividade */
@media (max-width: 600px) {
  .policy-tabs {
    flex-direction: column;
    gap: 0;
    border-bottom: none;
  }
  .tab-policy {
    width: 100%;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    text-align: center;
  }
  .tab-policy.active {
    border-right: none;
    border-left: none;
  }
}

.policy-content {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  line-height: 1.8;

  /* 1. REGRA CRÍTICA: Esconde todas as abas por padrão */
  display: none;

  /* Opcional: Adiciona uma pequena animação de fade */
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* 2. REGRA DE ATIVAÇÃO: Mostra apenas a aba que tiver a classe 'active' */
.policy-content.active {
  display: block; /* Torna-a visível */
  opacity: 1;
}
/* --- PAINEL CS / ADMIN --- */

.dashboard-content {
  padding-top: 130px;
  padding-bottom: 80px;
  background-color: #f8f9fa;
  min-height: 90vh;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background-color: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s;
  text-align: left;
}
.stat-card:hover {
  transform: translateY(-3px);
}
.stat-card .icon {
  font-size: 2rem;
  color: var(--primary-color);
}
.stat-card h3 {
  font-size: 1rem;
  color: #777;
  margin: 0;
}
.stat-card .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
}
.stat-card.alert {
  border: 1px solid #ff4d4f;
  background-color: #fff1f0;
}

.section-title {
  color: var(--primary-dark);
  font-size: 1.8rem;
  padding-bottom: 10px;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Tabela e Paginação */
.table-container {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
  margin-bottom: 30px;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px; /* Garante que a tabela não quebra em telas menores */
}
.modern-table th,
.modern-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}
.modern-table th {
  background-color: #fcfcfc;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
}
.modern-table tr:hover {
  background-color: #f9f9f9;
}
.modern-table tr:last-child td {
  border-bottom: none;
}

/* Badges de Status (CS) */
.status-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}
.status-pendente,
.status-aguardando {
  background-color: #fff3cd;
  color: #856404;
}
.status-pago,
.status-aprovado {
  background-color: #d4edda;
  color: #155724;
}
.status-cancelado {
  background-color: #f8d7da;
  color: #721c24;
}
.status-processando {
  background-color: #cce5ff;
  color: #004085;
}

/* Ações e Formulário de Status */
.action-form {
  display: flex;
  gap: 5px;
  align-items: center;
}
.form-select {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ddd;
}
.btn {
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}
.btn-primary {
  background-color: var(--primary-color);
  color: white;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
}

/* Paginação */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  gap: 8px;
}
.pagination a,
.pagination span {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  transition: 0.3s;
}
.pagination a:hover,
.pagination .current {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.pagination .disabled {
  color: #ddd;
  pointer-events: none;
}

/* Mensagens */
.alert-box.info {
  background: #e6fffa;
  color: #009688;
  border: 1px solid #b2f5ea;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
}
.mb-4 {
  margin-bottom: 20px;
}
/* --- PAINEL DE RELATÓRIOS --- */

.report-container {
  padding-top: 130px;
  padding-bottom: 50px;
  background-color: var(--bg-light); /* Fundo claro do dashboard */
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.report-title {
  font-size: 2rem;
  color: var(--primary-dark);
  margin: 0;
}

/* Opções de Relatório (Abas de Filtro) */
.report-options {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  border-bottom: 2px solid #eee;
}

.report-option {
  padding: 10px 15px;
  background-color: #f9f9f9;
  color: #555;
  border-radius: 5px 5px 0 0; /* Borda arredondada no topo */
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  border-bottom: 3px solid transparent;
}

.report-option.active {
  background-color: var(--bg-white);
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.report-option:hover {
  background-color: #f0f0f0;
}

/* Área de Filtros */
.filters {
  background-color: var(--bg-white);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.filter-group input,
.filter-group select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.filter-button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.filter-button:hover {
  background-color: var(--primary-dark);
}

/* Sumário do Relatório */
.report-summary {
  background-color: var(--bg-white);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  border-left: 5px solid var(--accent-color);
  box-shadow: var(--shadow-soft);
}

.summary-item strong {
  color: var(--primary-dark);
}

/* Tabela de Resultados */
.table-responsive {
  overflow-x: auto;
  background: var(--bg-white);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px; /* Garante que a tabela não quebra */
}

.report-table th {
  background-color: #fcfcfc;
  color: var(--text-dark);
  padding: 15px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
}

.report-table td {
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  color: #444;
}

.report-table tr:hover {
  background-color: #f9f9f9;
}

.no-results {
  text-align: center;
  padding: 30px;
  color: #666;
  font-style: italic;
}
/* --- ESTILOS DE EXPORTAÇÃO (CS REPORTS) --- */

.export-options {
  display: flex;
  gap: 12px; /* Espaçamento entre os botões */
  align-items: center;
  margin-bottom: 20px;
}

.export-button {
  /* Base do Botão */
  padding: 10px 20px;
  color: white !important; /* Garante que o texto fique branco */
  text-decoration: none;
  border-radius: 30px; /* Formato cápsula */
  font-weight: bold;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px; /* Espaço entre o ícone e o texto */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.export-button span {
  font-size: 1.1rem;
  line-height: 1; /* Alinha o emoji */
}

/* Estilo para PDF (Usando a cor de alerta/perigo) */
.export-button.pdf {
  background-color: #dc3545; /* Vermelho mais suave */
}

.export-button.pdf:hover {
  background-color: #c82333;
  transform: translateY(-2px);
}

/* Estilo para DOCX (Usando uma cor secundária) */
.export-button.docx {
  background-color: #0bd3c4; /* Ciano/Teal primário */
}

.export-button.docx:hover {
  background-color: #0aaea8;
  transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 600px) {
  .export-options {
    flex-direction: column;
    width: 100%;
  }
  .export-button {
    width: 100%;
    justify-content: center;
  }
}
/* --- ESTILOS DE MENSAGENS DE ALERTA FIXAS --- */
.alert-message {
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s;
  border: 1px solid transparent;
}
.alert-message.success {
  background-color: #f0fcfc;
  color: var(--primary-dark);
  border-color: var(--primary-color);
}
.alert-message.error {
  background-color: #fff1f0;
  color: #d9363e;
  border-color: #ff4d4f;
}
.alert-message .link-reenvio {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: underline;
  margin-left: 10px;
}
