:root {
  --primary: #F9B000;
  --primary-dark: #d69000;
  --dark: #1b1b1f;
  --accent-dark: #4d1818;
  --light: #ffffff;
  --gray: #f3f4f6;
  --gray-soft: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 16px 40px rgba(15, 23, 42, 0.18);
}

/* ==== RESET / BASE ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: radial-gradient(circle at top, #fff9e8 0, #f5f5f7 35%, #f3f4f6 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Links genéricos */
a {
  color: inherit;
  text-decoration: none;
}

/* Utilitário para centralização padrão */
.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Slider ===== */
.slider {
  position: relative;
  max-width: 1200px;
  margin: 22px auto 34px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.slides {
  display: flex;
  transition: transform 0.7s ease-in-out;
  width: 100%;
}

.slide {
  flex: 0 0 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Botões do slider */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(15, 23, 42, 0.4);
  color: #fff;
  border: none;
  padding: 10px 13px;
  cursor: pointer;
  border-radius: 999px;
  font-size: 18px;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}

.slider:hover .prev,
.slider:hover .next {
  opacity: 1;
}

.prev:hover,
.next:hover {
  background-color: rgba(15, 23, 42, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.prev {
  left: 18px;
}

.next {
  right: 18px;
}

/* Dots */
.dots {
  position: absolute;
  bottom: 14px;
  width: 100%;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.dot.active {
  background: linear-gradient(135deg, #f9b000, #f97316);
  transform: scale(1.1);
}

/* ===== Caixinhas ===== */
.caixinhas {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 36px 20px 40px;
}

.caixa {
  display: block;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  position: relative;
  background: #0f172a;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.caixa::after {
  content: "Ver detalhes";
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.65);
  color: #f9fafb;
  border-radius: 999px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.caixa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.caixa:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.caixa:hover::after {
  opacity: 1;
  transform: translate(-50%, -2px);
}

/* ===== Seções de produtos ===== */
.secao {
  background-color: transparent;
  text-align: center;
  padding: 40px 20px 28px;
}

.secao h2 {
  font-size: 1.9rem;
  margin-bottom: 28px;
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Container dos cards */
.produtos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Produto Card ===== */
.produto-card {
  background-color: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  min-height: 380px;
  text-align: left;
  color: #111827;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.produto-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.produto-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.produto-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

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

.produto-card h3 {
  margin: 12px 14px 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
}

.preco {
  margin: 8px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preco .antigo {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.85rem;
}

.preco .novo {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
}

/* Linha divisória */
.divisor {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 32px auto;
  width: 60%;
}

/* ===== Seção de Avaliações ===== */
.secao-avaliacoes {
  background-color: #ffffff;
  padding: 50px 20px 60px;
  text-align: center;
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.06);
}

.secao-avaliacoes h2 {
  font-size: 1.9rem;
  margin-bottom: 30px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.avaliacoes-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.avaliacao {
  background: #f9fafb;
  border-radius: 18px;
  padding: 20px 18px;
  width: 310px;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.avaliacao:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.avaliador {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.avaliador img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.avaliador h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.estrelas {
  color: var(--primary);
  font-size: 0.9rem;
}

.comentario {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
  font-style: italic;
}

/* ===== Newsletter ===== */
.newsletter {
  background: radial-gradient(circle at top, #3b2a10 0, #231f20 50%, #151515 100%);
  padding: 60px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  max-width: 100%;
  margin: 50px auto;
}

.newsletter h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.newsletter p {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 24px;
}

/* Formulário */
.newsletter form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter input[type="email"] {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  outline: none;
  background: rgba(15, 23, 42, 0.7);
  color: #f9fafb;
  font-size: 0.95rem;
  min-width: 260px;
  max-width: 380px;
  flex: 1;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.newsletter input[type="email"]::placeholder {
  color: #9ca3af;
}

.newsletter input[type="email"]:focus {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 1px rgba(249, 176, 0, 0.4);
}

.newsletter button[type="submit"] {
  background: linear-gradient(135deg, #f9b000, #f97316);
  border: none;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 10px 25px rgba(234, 179, 8, 0.4);
}

.newsletter button[type="submit"]:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.confirmar-btn {
  margin-top: 18px;
  display: none;
  background: #ef4444;
  border: none;
  color: #f9fafb;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.confirmar-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.mensagem {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e7eb;
}

/* ===== Footer ===== */
.footer {
  background-color: #1B1B1B;
  color: #e5e7eb;
  padding: 42px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 26px;
}

.footer-col {
  flex: 1 1 240px;
}

.footer-col h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--primary);
}

.footer-col h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--primary);
  margin-top: 6px;
}

.footer-col p,
.footer-col a {
  font-size: 0.85rem;
  color: #d1d5db;
  line-height: 1.7;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #f9fafb;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.socials a img {
  width: 26px;
  height: 26px;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: grayscale(20%);
}

.socials a:hover img {
  transform: translateY(-2px) scale(1.08);
  filter: grayscale(0%);
}

/* Linha inferior do footer */
.footer-bottom {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid #1f2937;
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ===== Botão Voltar ao Topo ===== */
#btnTop {
  position: fixed;
  bottom: 92px;
  right: 26px;
  z-index: 99;
  background-color: #111827;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.45);
  transition: all 0.25s ease;
  width: 48px;
  height: 48px;
  opacity: 0;
  visibility: hidden;
}

#btnTop img {
  width: 22px;
  height: 22px;
}

#btnTop:hover {
  transform: translateY(-2px);
}

/* Mostrar botão quando rolar a página */
#btnTop.show {
  opacity: 1;
  visibility: visible;
}

/* ===== Botão WhatsApp ===== */
#btnWhats {
  position: fixed;
  bottom: 28px;
  right: 26px;
  z-index: 98;
  background-color: #22c55e;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.6);
  transition: all 0.25s ease;
  width: 52px;
  height: 52px;
}

#btnWhats img {
  width: 34px;
  height: 34px;
}

#btnWhats:hover {
  transform: translateY(-2px) scale(1.03);
}

/* ================== Modal de Login / Carrinho Vazio ================== */
.modal-login {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1600;
}

.modal-login.show {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-content {
  background: #ffffff;
  padding: 28px 30px;
  border-radius: 18px;
  text-align: center;
  max-width: 420px;
  box-shadow: var(--shadow-hover);
  animation: slideUp 0.25s ease;
}

.modal-content h2 {
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.modal-content p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal-actions.modal-actions-center {
  justify-content: center;
}

.btn-modal-login {
  background: linear-gradient(135deg, #f9b000, #f97316);
  color: #111827;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 600;
}

.btn-modal-login:hover {
  transform: translateY(-1px);
}

.btn-modal-fechar {
  background: #e5e7eb;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 500;
}

.btn-modal-fechar:hover {
  background: #d1d5db;
  transform: translateY(-1px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==== RESPONSIVIDADE ==== */

@media (max-width: 1024px) {
  .cart-sidebar {
    width: 320px;
    max-width: 85%;
  }
}

@media (max-width: 900px) {
  .center-section {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 90px;
  }

  .center-section {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .search-bar {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .welcome {
    order: 4;
    font-size: 0.8rem;
    text-align: center;
  }

  .logo {
    order: 1;
  }

  .cart {
    order: 2;
  }

  .cart-sidebar {
    width: 82%;
    max-width: 82%;
  }

  /* Nav Bar */
  .nav-toggle {
    display: block;
  }

  .categories-list {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-top: 1px solid #e5e7eb;
  }

  .categories-list li {
    text-align: center;
    width: 100%;
    border-bottom: 1px solid #f3f4f6;
    padding: 6px 0;
  }

  .categories-list.show {
    max-height: 900px;
  }

  .has-sub .sub-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .has-sub.open .sub-menu {
    max-height: 700px;
  }

  /* Esconde slider em telas muito pequenas se quiser */
  .slider {
    display: none;
  }

  .produtos-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .produto-card img {
    height: 220px;
  }

  .avaliacao {
    width: 90%;
  }
}

@media (max-width: 600px) {
  .produtos-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .produto-card img {
    height: 260px;
  }

  .caixinhas {
    margin: 26px 16px 34px;
  }

  #btnTop,
  #btnWhats {
    right: 18px;
  }

   .top-line {
    padding: 0 8px;           /* menos espaço lateral */
  }

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

  .promo-message {
    font-size: clamp(0.65rem, 3vw, 0.8rem); /* ✅ reduz a largura via fonte menor */
    line-height: 40px;                      /* mantém altura da barra */
    padding: 0 4px;                         /* um respiro, mas bem pequeno */
    max-width: 100%;                        /* nunca passa da largura da tela */
  }

  
}

@media (max-width: 480px) {
  .cart-sidebar {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .newsletter {
    margin: 40px auto;
  }
}
