/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #fff;
  color: #111;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

/* Faixa promocional */
.promocao {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Topbar */
.topbar {
  background-color: #f3f3f3;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.top-links {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.top-links a {
  color: #111;
  text-decoration: none;
}

/* Menu Principal */
.main-nav {
  background-color: #fff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
}

/* Flex container para alinhar logo e links */
.nav-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  max-width: 160px;
  width: 60%;
  height: fit-content;
  margin-bottom: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links li a {
  color: #111;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
}

/* Banner Principal */
.banner-principal img {
  width: 100%;
  height: auto;
  display: block;
}

/* Banners secundários com scroll horizontal */
.banners-secundarios {
  padding: .5rem 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.banners-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.banners-scroll::-webkit-scrollbar {
  display: none;
}

.banner {
  flex: 0 0 auto;
  width: 85%;
  max-width: 320px;
  scroll-snap-align: start;
  border-radius: 0%;
}

.banner img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.mais-relogios {
  text-align: center;
  padding: 2rem 1rem;
  padding-top: 0;
}

.btn-mais-relogios {
  display: inline-block;
  background-color: #111;
  color: #fff;
  padding: 0.8rem 2rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 0px;
  transition: background 0.3s;
}

.btn-mais-relogios:hover {
  background-color: #333;
}


@media (min-width: 768px) {
  .banners-scroll {
    justify-content: center;
    overflow-x: visible;
    flex-wrap: nowrap;
  }

  .banner {
    width: 48%;
    max-width: none;
  }
}

/* Produtos */
.bestseller {
  padding: 2rem 1rem;
}

.bestseller h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Produtos como carrossel horizontal */
.carrossel-produtos {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
}

.carrossel-produtos::-webkit-scrollbar {
  display: none;
}

.carrossel-produtos .produto {
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: start;
}

.grid-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

/* Produtos - Botões padronizados */
.produto {
  background-color: transparent;
  padding: .5rem;
  border-radius: 0px;
  text-align: center;
  box-shadow: none;
}

.produto img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin: auto;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.produto h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.produto p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.produto strong {
  display: block;
  font-size: 1.1rem;
  color: #25d366;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* Container para os botões */
.produto-botoes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Estilo padronizado para todos os botões do produto */
.produto .btn-produto {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
}

/* Botão primário - Adicionar ao Carrinho */
.produto .btn-produto.primario {
  background-color: #000000;
  color: #fff;
}

.produto .btn-produto.primario:hover {
  background-color: #333;
  transform: translateY(-2px);
}

/* Botão secundário - Ver Detalhes */
.produto .btn-produto.secundario {
  background-color: #1D2228;
  color: #fff;
}

.produto .btn-produto.secundario:hover {
  background-color: #2a3138;
  transform: translateY(-2px);
}

/* Manter compatibilidade com botões antigos */
.btn-wpp {
  display: inline-block;
  background-color: #000000;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.5rem;
}

.btn-wpp:hover {
  background-color: #333;
  transform: translateY(-2px);
}

/* Botão específico para "Ver Detalhes" quando usar a classe antiga */
.btn-wpp[style*="background-color: #007bff"] {
  background-color: #1D2228 !important;
}

.btn-wpp[style*="background-color: #007bff"]:hover {
  background-color: #2a3138 !important;
}

/* Responsividade para botões em dispositivos móveis */
@media (max-width: 768px) {
  .produto .btn-produto,
  .btn-wpp {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
}

.produto {
  background-color: transparent;
  padding: .5rem;
  border-radius: 0px;
  text-align: center;
  box-shadow: none;
}


.produto img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin: auto;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.produto h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.produto p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.produto strong {
  display: block;
  font-size: 1.1rem;
  color: #25d366;
  margin-top: 0.5rem;
}

.btn-wpp {
  display: inline-block;
  background-color: #25d366;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 2px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-wpp:hover {
  background-color: #1da851;
}

/* Botão "Ver todos" */
.btn-ver-todos {
  display: block;
  width: fit-content;
  margin: 2rem auto 0;
  background-color: #111;
  color: #fff;
  padding: 0.8rem 2rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn-ver-todos:hover {
  background-color: #333;
}

/* Section de Marcas */
.marcas-destaque {
  text-align: center;
  padding: 2rem 1rem;
}

.marcas-destaque h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.logos-marcas {
  display: flex;
  justify-content: center;
  align-items: center;
  /* <-- Alinha verticalmente ao centro */
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logos-marcas img {
  width: 50px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 0.3s;
}

.logos-marcas img:hover {
  filter: grayscale(0);
}

/* Footer */
footer {
  background-color: #111;
  color: #eee;
  padding: 2rem 1rem 1rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

footer h4 {
  margin-bottom: 0.5rem;
}

footer a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-copy {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
}


/* Estilo para os produtos na página de coleção */
#lista-colecao {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
  overflow-x: auto;
}

@media (max-width: 767px) {
  #lista-colecao {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem 0;
  }

  #lista-colecao::-webkit-scrollbar {
    height: 8px;
  }

  #lista-colecao .produto {
    flex: 0 0 calc(50% - 1rem);
    scroll-snap-align: start;
  }
}


/* Carrinho Flutuante Corrigido */
.carrinho-flutuante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

.btn-carrinho {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  color: #fff;
  padding: 15px 20px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-carrinho::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.btn-carrinho:hover {
  background: linear-gradient(135deg, #555 0%, #777 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-carrinho:hover::before {
  width: 100px;
  height: 100px;
}

.btn-carrinho.carrinho-animado {
  animation: pulseCart 0.6s ease-in-out;
}

@keyframes pulseCart {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); background: linear-gradient(135deg, #25d366 0%, #20c956 100%); }
  100% { transform: scale(1); }
}

/* Lista do Carrinho - CORRIGIDO */
.itens-carrinho {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 350px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 0;
  max-height: 450px;
  overflow: hidden;
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: block !important; /* Força a exibição */
}

/* Quando o carrinho NÃO está oculto */
.itens-carrinho:not(.oculto) {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  display: block !important;
}

/* Quando o carrinho está oculto */
.itens-carrinho.oculto {
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  display: none !important;
}

.itens-carrinho::before {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 30px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
}

.itens-carrinho h3 {
  margin: 0;
  padding: 20px 20px 15px;
  font-size: 18px;
  color: #333;
  border-bottom: 2px solid #f5f5f5;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px 15px 0 0;
}

/* Lista de Itens */
#carrinho-itens {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 250px;
  overflow-y: auto;
  padding: 10px 0;
}

#carrinho-itens::-webkit-scrollbar {
  width: 6px;
}

#carrinho-itens::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#carrinho-itens::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.item-carrinho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.item-carrinho:hover {
  background-color: #f8f9fa;
}

.item-carrinho:last-child {
  border-bottom: none;
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.item-nome {
  font-weight: bold;
  color: #333;
  font-size: 14px;
  line-height: 1.3;
}

.item-detalhes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #666;
}

.item-preco {
  font-weight: bold;
  color: #25d366;
}

.item-quantidade {
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
}

.remover-item {
  background: #ff4757;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 10px;
}

.remover-item:hover {
  background: #ff3838;
  transform: scale(1.1);
}

.remover-item svg {
  width: 14px;
  height: 14px;
}

.carrinho-vazio {
  text-align: center;
  padding: 30px 20px;
  color: #999;
  font-style: italic;
}

/* Rodapé do Carrinho */
.carrinho-footer {
  padding: 15px 20px;
  border-top: 2px solid #f0f0f0;
  background: #fafafa;
  border-radius: 0 0 15px 15px;
}

#total-carrinho {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.carrinho-acoes {
  display: flex;
  gap: 10px;
}

.btn-finalizar {
  background: linear-gradient(135deg, #25d366 0%, #20c956 100%);
  color: white;
  border: none;
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn-finalizar:hover {
  background: linear-gradient(135deg, #20c956 0%, #1da851 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-limpar {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn-limpar:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

/* Notificações */
.notificacao-carrinho {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  font-size: 14px;
  font-weight: bold;
  max-width: 300px;
}

.notificacao-carrinho.mostrar {
  transform: translateX(0);
}

.notificacao-carrinho.adicionado {
  background: linear-gradient(135deg, #25d366 0%, #20c956 100%);
}

.notificacao-carrinho.removido {
  background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
}

.notificacao-carrinho.erro {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

/* Responsividade */
@media (max-width: 768px) {
  .itens-carrinho {
    width: 300px;
    max-height: 400px;
  }
  
  .carrinho-flutuante {
    bottom: 15px;
    right: 15px;
  }
  
  .item-carrinho {
    padding: 12px 15px;
  }
  
  .item-nome {
    font-size: 13px;
  }
  
  .notificacao-carrinho {
    right: 15px;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .itens-carrinho {
    width: 280px;
    right: -10px;
  }
  
  .carrinho-acoes {
    flex-direction: column;
  }
  
  .btn-finalizar, .btn-limpar {
    width: 100%;
  }
}

/* CARRINHO RESPONSIVO - ADICIONAR NO FINAL DO ARQUIVO CSS */

.carrinho-flutuante {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.btn-carrinho {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.btn-carrinho:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.itens-carrinho {
  position: absolute;
  top: 60px;
  right: 0;
  width: 350px;
  max-height: 80vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 1.5rem;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
}

.itens-carrinho h3 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1.2rem;
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.5rem;
}

#carrinho-itens {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.item-carrinho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.item-info {
  flex: 1;
}

.item-nome {
  display: block;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.3rem;
}

.item-detalhes {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.remover-item {
  background: #dc3545;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
}

.carrinho-acoes {
  display: flex;
  gap: 0.5rem;
}

.btn-finalizar {
  flex: 1;
  background: #28a745;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.btn-limpar {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.oculto {
  display: none !important;
}

.carrinho-animado {
  animation: pulseCarrinho 0.6s ease;
}

@keyframes pulseCarrinho {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* MOBILE RESPONSIVO */
@media (max-width: 768px) {
  .carrinho-flutuante {
    top: 10px;
    right: 10px;
  }
  
  .itens-carrinho {
    width: calc(100vw - 20px);
    max-width: 350px;
    right: -10px;
  }
}

@media (max-width: 400px) {
  .itens-carrinho {
    width: calc(100vw - 10px);
    right: -15px;
    padding: 1rem;
  }
  
  .item-detalhes {
    flex-direction: column;
    gap: 0.2rem;
  }
  
  .carrinho-acoes {
    flex-direction: column;
  }
}

/* CORREÇÃO PARA PRODUTOS NO MOBILE - ADICIONAR NO FINAL DO estilo.css */

/* Sobrescrever a regra existente para #lista-colecao */
#lista-colecao {
  display: grid;
  gap: 1.5rem;
  padding: 1rem;
}

/* Desktop - 4 colunas */
@media (min-width: 1024px) {
  #lista-colecao {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* Tablet - 3 colunas */
@media (min-width: 768px) and (max-width: 1023px) {
  #lista-colecao {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Tablet pequeno - 2 colunas */
@media (min-width: 600px) and (max-width: 767px) {
  #lista-colecao {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* MOBILE - 1 COLUNA (como no Coliseu) */
@media (max-width: 599px) {
  #lista-colecao {
    grid-template-columns: 1fr !important; /* 1 produto por linha */
    gap: 1rem;
    padding: 0.5rem;
    display: grid !important; /* Força grid em vez de flex */
    overflow-x: visible !important; /* Remove scroll horizontal */
  }
  
  #lista-colecao .produto {
    flex: none !important; /* Remove propriedades flex */
    width: 100% !important; /* Largura total */
  }
}

/* Melhorias nos cards dos produtos para mobile */
@media (max-width: 599px) {
  .produto {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
  }
  
  .produto img {
    height: 280px; /* Imagem maior no mobile */
    width: 100%;
    object-fit: cover;
  }
  
  .produto h3 {
    font-size: 1.3rem; /* Título maior */
    padding: 0 1rem;
    margin: 1rem 0 0.5rem;
  }
  
  .produto p {
    font-size: 1rem; /* Descrição maior */
    padding: 0 1rem;
    margin-bottom: 0.5rem;
  }
  
  .produto strong {
    font-size: 1.4rem; /* Preço maior */
    padding: 0 1rem;
    margin-bottom: 1rem;
  }
  
  .produto-botoes {
    padding: 1rem;
  }
  
  .produto .btn-produto {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
  }
}

/* Correção para o carrossel de produtos da página inicial */
.carrossel-produtos {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
}

/* Para manter o carrossel horizontal na página inicial em mobile */
@media (max-width: 599px) {
  .carrossel-produtos {
    display: flex !important; /* Mantém flex para o carrossel da home */
  }
  
  .carrossel-produtos .produto {
    flex: 0 0 280px; /* Largura fixa para itens do carrossel */
    width: 280px;
  }
}

/* Títulos das seções em mobile */
@media (max-width: 599px) {
  #titulo-colecao,
  .bestseller h2 {
    font-size: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
    padding: 0 1rem;
  }
}