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

body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #333;
}

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

/* Topo */
.topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1a1a;
  padding: 15px 20px;
  color: #fff;
  position: relative;
}

.hamburguer {
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  flex: 1;
  text-align: left;
  display: block;
}

.logo {
  flex: 2;
  text-align: center;
}

.logo img {
  max-width: 120px;
  height: auto;
}

.icons {
  flex: 1;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.icons i {
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.icone-carrinho {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  position: relative;
}

.icone-carrinho i {
  font-size: 20px;
  margin-right: 5px;
}

.texto-carrinho {
  display: none;
}

@media (min-width: 768px) {
  .texto-carrinho {
    display: inline;
  }
}

.contador-carrinho {
  background-color: #c49b3f;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 12px;
  margin-left: 6px;
}

/* Menu lateral */
.menu-lateral {
  position: fixed;
  top: 0;
  left: -100%;
  width: 250px;
  height: 100%;
  background-color: #000;
  color: #fff;
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 1000;
}

.menu-lateral.active {
  left: 0;
}

.fechar-menu {
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 20px;
  text-align: right;
}

.busca {
  font-size: 18px;
  margin-bottom: 30px;
}

.menu-lateral ul {
  list-style: none;
  padding: 0;
}

.menu-lateral ul li {
  margin-bottom: 20px;
}

.menu-lateral ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

/* Carrossel */
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.carousel img {
  width: 100%;
  flex-shrink: 0;
}

/* Rodapé */
.rodape {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

/* Página de produto refinada */
.detalhes-produto {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 48px;
  margin: 48px 0;
  align-items: start;
}

@media (max-width: 992px) {
  .detalhes-produto {
    grid-template-columns: 1fr;
  }
}

.galeria {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
}

.miniaturas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.miniaturas .thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.miniaturas .thumb:hover {
  transform: scale(1.02);
}

.miniaturas .thumb.ativa {
  border-color: #c49b3f;
}

.principal img {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.produto-nome {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
  color: #222;
}

.produto-preco {
  font-size: 26px;
  font-weight: 700;
  color: #2e7d32;
}

.acoes-compra {
  margin-top: 8px;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn-comprar {
  background-color: #c49b3f;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-comprar:hover {
  background-color: #ad8737;
}

.btn-comprar:active {
  transform: translateY(1px);
}

.produto-frete {
  font-size: 14px;
  color: #666;
}

.produto-descricao {
  margin-top: 8px;
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}

/* Vitrine de produtos na home */
.produtos h2 {
  font-size: 26px;
  text-align: center;
  margin: 40px 0 20px;
  font-weight: bold;
  color: #333;
}

.grid-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card-produto {
  background-color: #fff;
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
  font-size: 13px;
}

.card-produto:hover {
  transform: scale(1.02);
}

.card-produto img {
  max-width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}

.card-produto h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: #333;
}

.card-produto p {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-produto .preco {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #b8860b;
  margin-bottom: 8px;
}

.card-produto .btn {
  background-color: #b8860b;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.card-produto .btn:hover {
  background-color: #a0750a;
}

/* Badge frete grátis nos cards */
.frete-gratis {
  font-size: 12px;
  color: #2e7d32;
  background: #e8f5e9;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* Carrinho */
.btn-remover {
  background-color: #c62828;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.acoes-carrinho {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.acoes-carrinho .btn {
  background-color: #1976d2;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.sucesso {
  background-color: #c8e6c9;
  color: #2e7d32;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* Botão cliente */
.btn-cliente {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  padding: 6px 10px;
  border: 1px solid #fff;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-cliente i {
  margin-right: 6px;
  font-size: 16px;
}

.btn-cliente:hover {
  background-color: #c49b3f;
  border-color: #c49b3f;
  color: #fff;
}

/* Layout do produto: 3 colunas */
.produto-layout {
  display: grid;
  grid-template-columns: 100px 1fr 420px;
  gap: 24px;
  margin: 40px 0;
  align-items: start;
}

@media (max-width: 992px) {
  .produto-layout {
    grid-template-columns: 1fr;
  }
}

/* Miniaturas: wrapper com botões e lista vertical */
.thumbs-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.thumbs-btn {
  width: 36px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: #f3f4f6;
  color: #111827;
  cursor: pointer;
  font-weight: 600;
}

.thumbs-btn:hover {
  background: #e5e7eb;
}

/* Miniaturas: lista vertical com scrollbar customizada */
.thumbs-verticais {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 6px;
}

/* WebKit scrollbar */
.thumbs-verticais::-webkit-scrollbar {
  width: 6px;
}

.thumbs-verticais::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 6px;
}

.thumbs-verticais::-webkit-scrollbar-thumb {
  background: #c49b3f;
  border-radius: 6px;
}

.thumbs-verticais::-webkit-scrollbar-thumb:hover {
  background: #ad8737;
}

/* Firefox */
.thumbs-verticais {
  scrollbar-width: thin;
  scrollbar-color: #c49b3f #f3f4f6;
}

.thumbs-verticais .thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.1s ease;
}

.thumbs-verticais .thumb:hover {
  transform: scale(1.03);
}

.thumbs-verticais .thumb.ativa {
  border-color: #c49b3f;
}

/* Imagem principal */
.col-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.col-main img {
  max-width: 100%;
  max-height: 640px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Coluna direita */
.col-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Área compartilhada entre texto principal e zoom */
.info-hero { position: relative; min-height: 240px; }
.info-hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; transition: opacity 0.15s ease, visibility 0.15s ease; }
.zoom-box { position: absolute; inset: 0; background-repeat: no-repeat; background-position: 50% 50%; background-size: 200% auto; border: 1px solid #eee; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.05); transition: opacity 0.15s ease, visibility 0.15s ease; opacity: 0; visibility: hidden; }

.produto-nome { font-size: 28px; line-height: 1.3; font-weight: 600; color: #222; }
.produto-preco { font-size: 28px; font-weight: 700; color: #2e7d32; }
.produto-parcelamento { font-size: 14px; color: #555; }

/* Botões */
.acoes-compra .btn { display: inline-block; padding: 12px 18px; border-radius: 6px; border: none; cursor: pointer; font-weight: 600; }
.btn-comprar { background-color: #c49b3f; color: #fff; }
.btn-add { background-color: #1f2937; color: #fff; }
.btn-comprar:hover { background-color: #ad8737; }
.btn-add:hover { background-color: #111827; }

/* Frete */
.frete-box { padding: 14px; border: 1px solid #eee; border-radius: 8px; }
.frete-label { font-size: 14px; color: #444; margin-bottom: 8px; }
.frete-form { display: flex; gap: 8px; margin-bottom: 8px; }
.frete-form input[type="text"] { flex: 1; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.btn-frete { background-color: #f3f4f6; color: #111827; }
.frete-resultado { font-size: 13px; color: #666; }

/* Descrição */
.produto-descricao h2 { font-size: 18px; margin-bottom: 6px; }
.produto-descricao p { font-size: 15px; color: #444; line-height: 1.6; }

/* Modal de galeria */
.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.gallery-modal.open { display: flex; }
.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.gallery-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
.gallery-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  cursor: pointer;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-nav:hover { background: rgba(0,0,0,0.5); }
.gallery-nav.prev { left: -56px; }
.gallery-nav.next { right: -56px; }

/* Carrossel de relacionados */
.related-wrapper { margin-top: 20px; }
.related-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.related-head h3 { font-size: 18px; color: #222; }
.related-nav button { width: 34px; height: 34px; border-radius: 17px; border: none; background: #f3f4f6; color: #111827; cursor: pointer; font-size: 18px; }
.related-nav button:hover { background: #e5e7eb; }

.related-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 200px); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: #c49b3f #f3f4f6; }
.related-track::-webkit-scrollbar { height: 6px; }
.related-track::-webkit-scrollbar-track { background: #f3f4f6; border-radius: 6px; }
.related-track::-webkit-scrollbar-thumb { background: #c49b3f; border-radius: 6px; }
.related-track::-webkit-scrollbar-thumb:hover { background: #ad8737; }

.related-item { display: block; background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 8px; text-decoration: none; color: inherit; }
.related-item img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.ri-info { margin-top: 6px; }
.ri-title { font-size: 13px; color: #333; line-height: 1.3; height: 34px; overflow: hidden; }
.ri-price { margin-top: 4px; font-size: 14px; font-weight: 700; color: #2e7d32; }

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  text-decoration: none;
  z-index: 1500;
}
.whatsapp-fab:hover { background-color: #1ebe57; }

/* Footer features */
.footer-features { background: #f8f9fb; padding: 24px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 16px; align-items: start; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature i { color: #c49b3f; font-size: 22px; margin-top: 2px; }
.feature h4 { font-size: 16px; color: #222; margin-bottom: 4px; }
.feature p { font-size: 14px; color: #555; }

/* Footer main */
.rodape { background: #0a0a0a; color: #ddd; margin-top: 24px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); padding: 28px 0; }
.footer-brand h3 { color: #fff; letter-spacing: 1px; margin-bottom: 8px; }
.footer-brand p { color: #bbb; font-size: 14px; margin-bottom: 12px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-contact li { display: flex; align-items: center; gap: 8px; }
.footer-contact i { color: #c49b3f; }
.footer-contact a { color: #ddd; text-decoration: none; }
.footer-contact a:hover { color: #fff; }

.footer-cats h4, .footer-extra h4 { color: #fff; margin-bottom: 10px; }
.footer-cats ul, .footer-extra ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-cats a, .footer-extra a { color: #ddd; text-decoration: none; font-size: 14px; }
.footer-cats a:hover, .footer-extra a:hover { color: #fff; }

.footer-bottom { background: #000; border-top: 1px solid #111; }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-size: 13px; color: #aaa; }
.footer-links a { color: #aaa; text-decoration: none; margin-left: 12px; }
.footer-links a:hover { color: #fff; }

.carrinho-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.col-produtos {
  flex: 2;
  min-width: 300px;
}

.resumo-compra {
  flex: 1;
  min-width: 250px;
  background-color: #f9f9f9;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.resumo-compra h3 {
  margin-top: 0;
}

.btn-comprar {
  display: block;
  width: 100%;
  padding: 0.8rem;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
}

.btn-comprar:hover {
  background-color: #333;
}
