@import url('https://fonts.googleapis.com/css?family=Raleway');

:root {
  --main-color: #2c2c2c;
  --accent-color: #f5f5f5;
  --main-gradient: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  --dark-bg: #0a0a0a;
  --light-text: #f0f0f0;
  --neutral-gray: #6c7293;
  --border-color: rgba(255, 255, 255, 0.1);
  --transition: 0.3s ease-in-out;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #2c2c2c;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  /* Customização da barra de rolagem principal */
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f5f5f5;
}

/* Barra de rolagem global para webkit */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #c1c1c1 0%, #a8a8a8 100%);
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #a8a8a8 0%, #8e8e8e 100%);
}

.container {
  width: 100%;
  max-width: 1800px;
  margin: auto;
  padding: 0 0rem;
}

/* HEADER */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 70px;
}

/* Media queries para logo responsiva */
@media (max-width: 768px) {
  .logo img {
    height: 65px;
  }
}

/* Unificação e correção dos breakpoints mobile */
@media (max-width: 480px) {
  .logo img { height: 50px; }

  /* Reduzir tipografia do modal de Quantidade no mobile */
  #quantidade-modal .auth-header { margin-bottom: 0.8rem !important; }
  #quantidade-modal .auth-header .modal-title { font-size: 0.98rem !important; line-height: 1.12 !important; }
  #quantidade-modal .auth-header .modal-subtitle { font-size: 0.75rem !important; color: #7a7a7a !important; }

  #quantidade-modal .contato-modal-content.modern-modal { padding: 0.8rem !important; max-width: 400px !important; width: 92vw !important; border-radius: 12px !important; }
  #quantidade-modal .produto-preview { margin-bottom: 0.8rem !important; padding: 0.8rem !important; border-radius: 10px !important; }
  #quantidade-modal .produto-preview .produto-image-container img { width: 58px !important; height: 58px !important; }
  #quantidade-modal .produto-preview .produto-detalhes #produto-nome-detalhes,
  #quantidade-modal .produto-preview .produto-detalhes .produto-nome { font-size: 0.88rem !important; }
  #quantidade-modal .produto-preview .produto-detalhes #produto-preco-modal,
  #quantidade-modal .produto-preview .produto-detalhes .produto-preco { font-size: 0.88rem !important; }

  #quantidade-modal .quantidade-section { margin-bottom: 1rem !important; }
  #quantidade-modal .quantidade-section label[for="quantidade-input"] { font-size: 0.85rem !important; }
  #quantidade-modal .quantidade-controls { gap: 0.35rem !important; }
  #quantidade-modal .quantidade-controls .btn-quantidade { width: 26px !important; height: 26px !important; border: 1px solid #e4e7ea !important; }
  #quantidade-modal .quantidade-controls .btn-quantidade svg { width: 10px !important; height: 10px !important; }
  #quantidade-modal #quantidade-input { width: 44px !important; height: 28px !important; font-size: 0.85rem !important; font-weight: 600 !important; border: 1px solid #e4e7ea !important; }

  #quantidade-modal #modal-notification { padding: 0.6rem !important; font-size: 0.8rem !important; }
  #quantidade-modal .modal-actions { gap: 0.5rem !important; margin-top: 0.8rem !important; }
  #quantidade-modal .modal-actions .btn-primary,
  #quantidade-modal .modal-actions .btn-secondary { font-size: 0.8rem !important; padding: 0.6rem !important; border-radius: 8px !important; }
}

@media (max-width: 360px) {
  .logo img { height: 30px; }

  /* Ajustes extras para telas muito pequenas */
  #quantidade-modal .auth-header .modal-title { font-size: 0.95rem !important; }
  #quantidade-modal .auth-header .modal-subtitle { font-size: 0.72rem !important; }
  #quantidade-modal .produto-preview .produto-image-container img { width: 52px !important; height: 52px !important; }
  #quantidade-modal .produto-preview .produto-detalhes #produto-nome-detalhes,
  #quantidade-modal .produto-preview .produto-detalhes .produto-nome { font-size: 0.85rem !important; }
  #quantidade-modal .produto-preview .produto-detalhes #produto-preco-modal,
  #quantidade-modal .produto-preview .produto-detalhes .produto-preco { font-size: 0.82rem !important; }
  #quantidade-modal .quantidade-controls { gap: 0.3rem !important; }
  #quantidade-modal .quantidade-controls .btn-quantidade { width: 24px !important; height: 24px !important; border: 1px solid #e4e7ea !important; }
  #quantidade-modal .quantidade-controls .btn-quantidade svg { width: 9px !important; height: 9px !important; }
  #quantidade-modal #quantidade-input { width: 40px !important; height: 26px !important; font-size: 0.8rem !important; font-weight: 600 !important; border: 1px solid #e4e7ea !important; }
  #quantidade-modal .modal-actions .btn-primary,
  #quantidade-modal .modal-actions .btn-secondary { font-size: 0.75rem !important; padding: 0.55rem !important; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.navbar {
  display: flex;
}

.navbar ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar a {
  color: #2c2c2c;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #666;
}

.user-info-desktop span {
  color: #2c2c2c;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

/* CARRINHO DE COMPRAS */
#carrinho-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.carrinho-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%);
  transition: filter 0.3s ease;
  vertical-align: middle;
}

#carrinho-link:hover .carrinho-icon {
  filter: brightness(0) saturate(100%) brightness(0.4);
}

.carrinho-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  min-width: 16px;
  line-height: 1;
}

.carrinho-count:empty {
  display: none;
}

#menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #2c2c2c;
  cursor: pointer;
}

.icons {
  display: flex;
  gap: 1rem;
}

#menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2c2c2c;
  padding: 0.5rem;
}

/* HOME HERO com Vídeo de Fundo */
.home-hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  background: none !important;
  margin: 0;
  padding: 0;
  border: none;
}

#hero-video {
  position: absolute;
  top: 100px; /* margem superior para não ficar atrás da navbar */
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - 100px);
  z-index: -10;
  object-fit: contain; /* mostra o vídeo completo sem cortar */
  display: block;
}

/* Imagem hero para mobile */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  object-fit: cover;
  transform-origin: center center;
  border: none;
  margin: 0;
  padding: 0;
  outline: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  animation: heroZoomOut 20s ease-in-out infinite;
}

.hero-image.active {
  opacity: 1;
}

/* Compatibilidade com ID antigo */
#hero-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  object-fit: cover;
  transform-origin: center center;
  border: none;
  margin: 0;
  padding: 0;
  outline: none;
}

/* Animação de zoom suave */
@keyframes heroZoomOut {
  0% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1.1);
  }
}

/* Controle de exibição responsiva - DESKTOP PADRÃO */
.mobile-only,
.hero-image,
#hero-image {
  display: none !important;
}

.desktop-only,
#hero-video {
  display: block !important;
}

/* Media queries para controle responsivo - MOBILE */
@media (max-width: 768px) {
  .mobile-only,
  .hero-image,
  #hero-image {
    display: block !important;
  }
  
  .desktop-only,
  #hero-video {
    display: none !important;
  }
}

/* PRODUTOS */
.produtos {
  padding: 6rem 2rem 4rem;
  background: #ffffff;
}

.produtos h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #2c2c2c;
  font-weight: 300;
  letter-spacing: -1px;
}

.filter-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

#search, #category-filter {
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  color: #2c2c2c;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  width: 320px;
  flex: none;
}

#search:focus, #category-filter:focus {
  outline: none;
  border-color: var(--neutral-gray);
  box-shadow: 0 0 0 3px rgba(108, 114, 147, 0.1);
}

/* SEÇÕES PRINCIPAIS */
section {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* PRODUTOS GRID CLEAN */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .produtos-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
  }

  .produto-nome {
    font-size: 0.75rem;
  }

  .produto-descricao {
    font-size: 0.7rem;
  }

  .produto-preco {
    font-size: 0.85rem;
  }

  .produto-contato {
    font-size: 0.65rem;
  }
}

@media (max-width: 500px) {
  .produtos-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .produto-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .produto-nome {
    font-size: 0.7rem;
  }

  .produto-descricao {
    font-size: 0.65rem;
  }

  .produto-preco {
    font-size: 0.8rem;
  }

  .produto-contato {
    font-size: 0.6rem;
  }
}

@media (max-width: 360px) {
  .produto-nome {
    font-size: 0.65rem;
  }

  .produto-preco {
    font-size: 0.75rem;
  }

  .produto-contato {
    font-size: 0.55rem;
  }
}

.produto-card {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.produto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #e0e0e0;
}

.produto-card img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.produto-card:hover img {
  transform: scale(1.02);
}

.produto-info {
  padding: 0.3rem 0;
}

.produto-descricao {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.3;
  margin: 0.4rem 0;
  text-align: center;
}

.produto-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.ver-mais {
  background: transparent;
  border: 1px solid #ddd;
  color: #666;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: none;
  transition: all 0.2s ease;
  letter-spacing: normal;
  margin-bottom: 0.5rem;
}

.ver-mais:hover {
  background: #f8f8f8;
  color: #333;
  border-color: #ccc;
}

/* SEARCH CONTAINER */
.search-container {
  display: flex;
  align-items: center;
  width: 320px;
}

#search {
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  color: #2c2c2c;
  width: 100%;
  font-size: 0.9rem;
}

#search:focus {
  outline: none;
  border-color: var(--neutral-gray);
  box-shadow: 0 0 0 3px rgba(108, 114, 147, 0.1);
}

/* Ajustes para DESKTOP: limitar largura do campo de busca e filtro */
@media (min-width: 769px) {
  .filter-container {
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
  }

  .search-container {
    width: 320px;
    flex-shrink: 0;
  }
  
  #search {
    width: 100% !important;
    flex: none !important;
  }
  
  #category-filter {
    width: 320px !important;
    flex: none !important;
  }
}

/* Media queries para barras de pesquisa e categoria */
@media (max-width: 768px) {
  .filter-container {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  #search, #category-filter {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    width: 100%;
  }

  .search-container {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .filter-container {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  #search, #category-filter {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 25px;
  }
}

/* FOOTER */
.footer {
  background: #2c2c2c;
  padding: 3rem 1rem 2rem;
  text-align: center;
}

.footer a {
  color: #f5f5f5;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--neutral-gray);
}

.footer p {
  font-size: 0.8rem;
  margin-top: 2rem;
  color: #999999;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
  margin-left: 0; /* evita empurrar os links para a direita */
  flex-wrap: wrap; /* permite quebrar linha quando faltar espaço */
  white-space: normal; /* permite quebra dentro dos itens */
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  white-space: normal; /* permite quebra de linha por palavra */
}

.footer-links a:hover {
  color: var(--neutral-gray);
}

.footer .social-icons a img {
  filter: invert(90%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer .social-icons a img:hover {
  transform: scale(1.1);
  filter: invert(70%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Media queries para footer responsivo */
@media (max-width: 768px) {
  .footer-links {
    gap: 0.8rem;
    margin-left: 0;
    flex-wrap: wrap; /* reforça quebra no mobile */
    justify-content: center;
  }
  
  .footer-links a {
    font-size: 0.8rem;
    white-space: normal; /* garante que "Minha Conta" não corte */
  }
}

@media (max-width: 480px) {
  .footer-links {
    gap: 0.6rem;
  }
  
  .footer-links a {
    font-size: 0.75rem;
  }
  
  .footer {
    padding: 2rem 0.5rem 1.5rem;
  }
}

@media (max-width: 360px) {
  .footer-links {
    gap: 0.5rem;
  }
  
  .footer-links a {
    font-size: 0.7rem;
  }
}

/* SOBRE NÓS SECTION */
#sobre-nos-section {
  width: 100%;
  background: #181818;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.sobre-nos-container {
  width: 100%;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: #181818;
  margin: 0;
  padding: 2rem 2rem 4rem;
}

.sobre-nos-box {
  flex: 0 0 auto; /* deixa o conteúdo definir a altura */
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #181818;
  color: #ffffff;
  height: auto;
  width: 100%;
  max-width: 1100px; /* largura confortável para leitura */
  margin: 0 auto; /* centraliza */
}

.sobre-nos-box p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.9;
}

.sobre-nos-box h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
}

.sobre-nos-box h2:after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 60px;
  height: 1px;
  background: #888888;
}

/* Estilos para Missão, Visão e Valores */
.missao-visao-valores {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mvv-item h3 {
  color: #E5E5E5 !important;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

.mvv-item h3:after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 1px;
  background: #888888;
}

.mvv-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff !important;
  opacity: 1;
  margin-bottom: 0.8rem;
}

.mvv-item p:last-child {
  margin-bottom: 0;
}

.mvv-item strong {
  color: var(--main-color) !important;
  font-weight: 600;
}



/* Garantir que TODAS as palavras-chave dos valores sejam douradas */
.missao-visao-valores .mvv-item strong {
  color: var(--main-color) !important;
  font-weight: 600 !important;
}

/* Forçar cor branca para todo o texto dos itens MVV */
.missao-visao-valores .mvv-item {
  color: #ffffff !important;
}

.missao-visao-valores .mvv-item p {
  color: #ffffff !important;
}

/* Estilo específico para palavras-chave dos valores */
.valor-destaque {
  color: #E5E5E5 !important;
  font-weight: 700 !important;
}

/* Garantir que os títulos MVV sejam minimalistas */
.missao-visao-valores .mvv-item h3 {
  color: #E5E5E5 !important;
  position: relative;
}

.missao-visao-valores .mvv-item h3:after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 1px;
  background: #888888;
}

/* Correções de centralização no mobile */
@media (max-width: 768px) {
  /* Título da seção Sobre Nós */
  .sobre-nos-box h2 {
    text-align: center;
  }
  .sobre-nos-box h2:after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Títulos dos itens Missão, Visão e Valores */
  .mvv-item h3,
  .missao-visao-valores .mvv-item h3 {
    text-align: center;
  }
  .mvv-item h3:after,
  .missao-visao-valores .mvv-item h3:after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Layout responsivo para MVV em telas maiores */
@media (min-width: 768px) {
  .missao-visao-valores {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .mvv-item:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .missao-visao-valores {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .mvv-item:last-child {
    grid-column: auto;
  }
}


/* MODAL DE CONTATO CLEAN */
.contato-modal-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 500px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  color: #2c2c2c;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  /* Scrollbar minimalista (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: #c2c2c2 transparent;
}

/* Barra de rolagem para webkit (Chrome, Safari) */
.contato-modal-content::-webkit-scrollbar { width: 8px; }
.contato-modal-content::-webkit-scrollbar-track { background: transparent; }
.contato-modal-content::-webkit-scrollbar-thumb {
  background: #c2c2c2;
  border-radius: 8px;
}
.contato-modal-content::-webkit-scrollbar-thumb:hover { background: #a9a9a9; }

/* Prevenir overflow horizontal em todos os elementos do modal */
.contato-modal-content * {
  box-sizing: border-box;
  max-width: 100%;
}

.contato-close {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e0e0e0;
  z-index: 10;
  font-weight: bold;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contato-close:hover {
  background: var(--main-color);
  color: white;
  transform: scale(1.1);
  border-color: var(--main-color);
  box-shadow: 0 4px 12px rgba(44, 44, 44, 0.2);
}

/* Botão X para fechar modal */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: var(--main-color);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 0;
}

/* Botões de fechar dos modais legais devem ficar acima */
#termos-modal .modal-close-btn,
#privacidade-modal .modal-close-btn {
  z-index: 3110;
}

.modal-close-btn:hover {
  background: #1a1a1a;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.modal-close-btn svg {
  transition: transform 0.3s ease;
}

.modal-close-btn:hover svg {
  transform: rotate(-90deg);
}

/* Ocultar botão alternativo no mobile */
@media (max-width: 768px) {
  .modal-close-btn {
    display: none;
  }
}

.modal-contato-simples .contato-icones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: nowrap;
}

.modal-contato-simples .contato-icones a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  min-width: 80px;
}

.modal-contato-simples .contato-icones a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-contato-simples .contato-icones img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
  transition: all 0.3s ease;
}

.contato-icones a:hover img {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(0deg) brightness(120%) contrast(100%);
  transform: scale(1.1);
}

.contato-icones p {
  margin: 0.5rem 0 0 0;
  font-size: 0.85rem;
  color: #ffffff;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.2;
  text-overflow: ellipsis;
}

/* MODAL DE CONTEÚDO LEGAL */
.legal-content {
  text-align: left;
  color: #2c2c2c;
  line-height: 1.6;
}

.legal-content h2 {
  color: var(--main-color);
  border-bottom: 2px solid var(--main-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal-content h3 {
  color: var(--main-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.legal-content p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-align: justify;
}

.legal-content strong {
  color: var(--main-color);
}

/* MODAL DE CADASTRO */
#cadastro-modal .contato-modal-content {
  max-width: 700px;
  width: 95vw;
  max-height: 85vh;
  padding: 2rem;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

/* MODAL DE LOGIN */
#login-modal .contato-modal-content {
  max-width: 450px;
  width: 95vw;
  max-height: 65vh;
  padding: 1.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

#login-modal .form-group {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

#login-modal .form-group input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

#login-modal .form-row {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
}

#login-modal .auth-form {
  width: 100%;
  max-width: 100%;
}

#login-modal .auth-btn {
  width: 100%;
  max-width: 350px;
  margin: 1rem auto;
  display: block;
  background-color: #333333;
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#login-modal .auth-btn:hover {
  background-color: #222222;
}

.auth-content .auth-form {
  display: grid;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.auth-content .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.auth-content .form-row-cep {
  grid-template-columns: 1fr 2fr;
}

.auth-content .form-row-cidade {
  grid-template-columns: 2fr 1fr;
}

.auth-content .form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.auth-content .form-actions .btn-secondary {
  flex: 1;
}

.auth-content .form-actions .btn-primary {
  flex: 2;
}

.auth-content .form-group {
  margin-bottom: 1rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: left;
}

.auth-content .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--main-color);
  font-size: 0.9rem;
  text-align: left;
}

.auth-content .form-group input,
.auth-content .form-group select {
  width: 100%;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.auth-content .form-group input:focus,
.auth-content .form-group select:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.1);
}

.auth-content .btn {
  display: inline-block;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13.6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--main-color);
  color: var(--accent-color);
}

.auth-content .btn:hover {
  transform: translateY(-2px);
  background: #1a1a1a;
  box-shadow: 0 5px 15px rgba(44, 44, 44, 0.4);
}

.auth-content .btn-secondary {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #dee2e6;
}

.auth-content .btn-secondary:hover {
  background: #e9ecef;
  color: #495057;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.auth-content .btn-full {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

.auth-content .checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.auth-content .checkbox-container input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.auth-content .alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
}

.auth-content .alert-error {
  background-color: #fee;
  border: 1px solid #fcc;
  color: #c33;
}

.auth-content .alert-success {
  background-color: #efe;
  border: 1px solid #cfc;
  color: #363;
}

/* Responsividade para modal de cadastro */
@media (max-width: 768px) {
  .contato-modal {
    padding: 20px;
    align-items: center;
  }
  
  #cadastro-modal .contato-modal-content {
    max-width: 95vw;
    width: 95vw;
    padding: 1.5rem;
    margin: 0;
  }
  
  #login-modal .contato-modal-content {
    max-width: 95vw;
    width: 95vw;
    padding: 1.2rem;
    margin: 0;
    max-height: 70vh;
  }
  
  #login-modal .form-group {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  #login-modal .form-group input {
    width: 100%;
    font-size: 14px; /* Reduzido 15% (era 16px), mínimo para iOS */
  }
  
  #login-modal .auth-btn {
    max-width: 100%;
    margin: 1rem 1rem;
  }
  
  .auth-content .form-group {
    margin-bottom: 0.8rem;
  }
  
  /* Em telas pequenas, campos ficam em uma coluna */
  .auth-content .form-row {
    grid-template-columns: 1fr !important;
    gap: 0.8rem;
  }
  
  .auth-content .form-actions {
    flex-direction: column;
  }
  
  .auth-content .form-actions .btn-secondary,
  .auth-content .form-actions .btn-primary {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .contato-modal {
    padding: 15px;
    align-items: center;
  }
  
  #cadastro-modal .contato-modal-content {
    padding: 0.8rem;
    max-height: 98vh;
    overflow-x: hidden;
    height: auto;
    margin: 0.5rem auto;
  }
  
  /* Otimizações específicas para telas muito pequenas */
  #cadastro-modal .auth-header {
    margin-bottom: 1.5rem !important;
  }
  
  #cadastro-modal .auth-header img {
    width: 80px !important;
    margin-bottom: 0.8rem !important;
  }
  
  #cadastro-modal .auth-header h2 {
    font-size: 1.2rem !important;
    margin-bottom: 0.3rem !important;
  }
  
  #cadastro-modal .auth-header p {
    font-size: 0.8rem !important;
  }
  
  /* Estilos específicos para telas muito pequenas - termos */
  #cadastro-modal .form-terms {
    margin: 1rem 0 !important;
    padding: 0 !important;
  }
  
  #cadastro-modal .checkbox-container {
    font-size: 0.75rem !important;
    gap: 0.4rem !important;
  }
  
  #cadastro-modal .checkbox-text {
    line-height: 1.3 !important;
    font-size: 0.75rem !important;
  }
  
  #cadastro-modal .modal-link {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
  }
  
  /* Melhorias específicas para modal de cadastro em mobile */
  #cadastro-modal .auth-content .form-group {
    margin-bottom: 1rem;
    padding: 0;
  }
  
  #cadastro-modal .auth-content .form-group label {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  #cadastro-modal .auth-content .form-group input,
  #cadastro-modal .auth-content .form-group select {
    font-size: 14px; /* Reduzido 15% (era 16px), mínimo para iOS */
    padding: 0.75rem;
    min-height: 44px; /* Melhora acessibilidade touch */
  }
  
  #cadastro-modal .modal-subtitle {
    font-size: 1rem;
    margin: 1.5rem 0 1rem 0;
    word-wrap: break-word;
  }
  
  #cadastro-modal .form-terms {
    margin: 1rem 0;
  }
  
  #cadastro-modal .form-terms label {
    font-size: 0.8rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Melhorias para botões de ação em mobile */
  #cadastro-modal .form-actions {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
  }
  
  #cadastro-modal .form-actions .btn {
    width: 100%;
    padding: 0.7rem 1.2rem;
    font-size: 13.6px; /* Reduzido 15% (era 16px) */
    min-height: 40px;
    border-radius: 8px;
    font-weight: 600;
  }
  
  #cadastro-modal .form-actions .btn-secondary {
    order: 2;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
  }
  
  #cadastro-modal .form-actions .btn-primary {
    order: 1;
    background: var(--main-color);
    color: white;
  }
  
  /* Melhorias específicas para campos de endereço em mobile */
  #cadastro-modal .form-row-cep,
  #cadastro-modal .form-row-cidade {
    grid-template-columns: 1fr !important;
    gap: 0.8rem;
  }
  
  /* Correção específica para quebra de texto nos termos */
  #cadastro-modal .form-terms {
    margin: 1rem 0;
    width: 100%;
  }
  
  #cadastro-modal .checkbox-container {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    width: 100% !important;
  }
  
  #cadastro-modal .checkbox-container input[type="checkbox"] {
    margin-top: 0.2rem !important;
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
  }
  
  #cadastro-modal .checkbox-text {
    flex: 1 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    line-height: 1.4 !important;
    font-size: 0.8rem !important;
  }
  
  /* Estilos específicos para links dos termos */
  #cadastro-modal .modal-link {
    color: #5DADE2 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    display: inline !important;
    word-break: keep-all !important;
  }
  
  #cadastro-modal .modal-link:hover {
    color: #3498DB !important;
    text-decoration: underline !important;
  }
  
  /* Estilos para o span checkmark se existir */
  #cadastro-modal .checkmark {
    display: none !important;
  }
  
  #login-modal .contato-modal-content {
    padding: 1rem;
    max-height: 75vh;
  }
  
  #login-modal .form-group {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  
  #login-modal .form-group input {
    width: 100%;
    font-size: 14px; /* Reduzido 15% (era 16px), mínimo para iOS */
    padding: 0.8rem;
  }
  
  #login-modal .auth-btn {
    max-width: 100%;
    margin: 1rem 0.5rem;
  }
  
  .auth-content h2 {
    font-size: 1.3rem;
  }
  
  .auth-content h3 {
    font-size: 1rem;
  }
  
  /* Ajustes para modal de contatos em telas pequenas - 4 ícones em linha */
  .modal-contato-simples .contato-icones {
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  
  .modal-contato-simples .contato-icones a {
    flex: 1;
    max-width: 70px;
    padding: 0.5rem 0.3rem;
  }
  
  .modal-contato-simples .contato-icones img {
    width: 28px !important;
    height: 28px !important;
  }
  
  .modal-contato-simples p {
    font-size: 0.7rem !important;
  }
  
  /* Mostrar indicador de swipe apenas no mobile */
  .mobile-swipe-indicator {
    display: block !important;
  }
}

/* Responsividade para modal de contatos - 4 ícones em linha */
@media (max-width: 768px) {
  .modal-contato-simples .contato-icones {
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: center;
  }
  
  .modal-contato-simples .contato-icones a {
    flex: 1;
    max-width: 90px;
    padding: 0.8rem 0.5rem;
  }
}

/* Animação para indicador de swipe */
@keyframes pulse {
  0% { opacity: 0.5; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.2); }
  100% { opacity: 0.5; transform: scaleX(1); }
}

/* MODAL DE QUANTIDADE - Usa as mesmas classes do carrinho */
.produto-info-modal {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.produto-info-modal img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.produto-detalhes {
  flex: 1;
  text-align: left;
}

.produto-nome-detalhes {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #2c2c2c;
}

.produto-preco-detalhes {
  color: #666;
  font-size: 1rem;
  font-weight: 600;
}

.quantidade-selector {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: #f7f7f7;
  border-radius: 10px;
  border: 1px solid #ededed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quantidade-selector label {
  display: block;
  margin: 0;
  font-weight: 600;
  color: #444;
  text-align: left;
  font-size: 1rem;
  flex: 1 1 auto;
}
 
.quantidade-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  flex: 0 0 auto;
}

.quantidade-controls button,
.quantidade-controls input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  font-size: 1rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #333;
  text-align: center;
  margin: 0;
  box-sizing: border-box;
}

.quantidade-controls input {
  width: 48px;
  background: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-left: 1px solid #e6e6e6;
  border-right: 1px solid #e6e6e6;
  margin: 0;
}

/* Remover setas do input number no seletor de quantidade */
.quantidade-controls input[type=number]::-webkit-outer-spin-button,
.quantidade-controls input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
  display: none;
}
.quantidade-controls input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
  -webkit-appearance: none;
}

.quantidade-controls button:hover {
  background: #f7f7f7;
}

.quantidade-controls button:active {
  background: #f0f0f0;
  transform: translateY(0);
}

.quantidade-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}

.quantidade-actions .btn-cancelar,
.quantidade-actions .btn-finalizar {
  min-width: 150px;
  height: 48px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.quantidade-actions .btn-cancelar {
  background: #f0f0f0;
  color: #666;
}

.quantidade-actions .btn-cancelar:hover {
  background: #e0e0e0;
  color: #333;
}

.quantidade-actions .btn-finalizar {
  background: #2c2c2c;
  color: white;
}

.quantidade-actions .btn-finalizar:hover {
  background: #333;
}

/* MODAL DO CARRINHO */
.carrinho-modal {
  display: none;
  position: fixed;
  z-index: 10000; /* acima do header (9999) */
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(15px);
  justify-content: center;
  align-items: center;
}

.carrinho-modal-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  color: #2c2c2c;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  /* Scrollbar minimalista (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: #c2c2c2 transparent;
}

/* Barra de rolagem para webkit no modal do carrinho */
.carrinho-modal-content::-webkit-scrollbar { width: 8px; }
.carrinho-modal-content::-webkit-scrollbar-track { background: transparent; }
.carrinho-modal-content::-webkit-scrollbar-thumb {
  background: #c2c2c2;
  border-radius: 8px;
}
.carrinho-modal-content::-webkit-scrollbar-thumb:hover { background: #a9a9a9; }

.carrinho-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}

.carrinho-close:hover {
  color: #333;
}

.carrinho-modal h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c2c2c;
  text-align: center;
}

.carrinho-items {
  margin-bottom: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
  /* Customização da barra de rolagem para lista de itens */
  scrollbar-width: thin;
  scrollbar-color: #d1d1d1 #f8f9fa;
}

/* Barra de rolagem para lista de itens do carrinho */
.carrinho-items::-webkit-scrollbar {
  width: 6px;
}

.carrinho-items::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 8px;
}

.carrinho-items::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #d1d1d1 0%, #b8b8b8 100%);
  border-radius: 8px;
  transition: background 0.3s ease;
}

.carrinho-items::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #b8b8b8 0%, #9e9e9e 100%);
}

/* Estilo moderno para lista de itens */
.carrinho-items-modern {
  margin-bottom: 1.5rem;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 0.5rem;
  /* Customização da barra de rolagem moderna */
  scrollbar-width: thin;
  scrollbar-color: #d1d1d1 #f8f9fa;
}

.carrinho-items-modern::-webkit-scrollbar {
  width: 6px;
}

.carrinho-items-modern::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 8px;
}

.carrinho-items-modern::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #d1d1d1 0%, #b8b8b8 100%);
  border-radius: 8px;
  transition: background 0.3s ease;
}

.carrinho-items-modern::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #b8b8b8 0%, #9e9e9e 100%);
}

.carrinho-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.carrinho-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.carrinho-item-info {
  flex: 1;
}

.carrinho-item-nome {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.carrinho-item-preco {
  color: #666;
  font-size: 0.8rem;
}

.carrinho-item-remove {
  background: rgba(255, 68, 68, 0.08);
  color: #d33;
  border: 1px solid rgba(255, 68, 68, 0.25);
  border-radius: 8px;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  font-size: 0.72rem;
  transition: all 0.2s ease;
}

.carrinho-item-remove:hover {
  background: #ff4444;
  color: #fff;
  border-color: #ff4444;
}

/* ESTILOS MODERNOS DOS MODAIS */
.modern-modal {
  border-radius: 16px !important;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  /* Customização da barra de rolagem para modais modernos */
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Barra de rolagem para modais modernos */
.modern-modal::-webkit-scrollbar {
  width: 8px;
}

.modern-modal::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.modern-modal::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #c1c1c1 0%, #a8a8a8 100%);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.modern-modal::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #a8a8a8 0%, #8e8e8e 100%);
}

.carrinho-items-modern .carrinho-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.carrinho-items-modern .carrinho-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.carrinho-items-modern .carrinho-item img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carrinho-items-modern .carrinho-item-nome {
  font-size: 1rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 0.5rem;
}

.carrinho-items-modern .carrinho-item-preco {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.carrinho-items-modern .carrinho-item-quantidade {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.carrinho-items-modern .quantidade-btn {
  width: 32px !important;
  height: 32px !important;
  border: 2px solid #e9ecef !important;
  background: #ffffff !important;
  border-radius: 6px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #666 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
}

.carrinho-items-modern .quantidade-btn:hover {
  background: #f8f9fa !important;
  border-color: #ddd !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.carrinho-items-modern .quantidade-display {
  font-weight: 700 !important;
  color: #2c2c2c !important;
  min-width: 24px !important;
  text-align: center !important;
  font-size: 1rem !important;
}

.carrinho-items-modern .carrinho-item-remove {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carrinho-items-modern .carrinho-item-remove:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

/* ESTILOS DOS BOTÕES DE QUANTIDADE NO MODAL */
.btn-quantidade:hover {
  background: #f8f9fa !important;
  border-color: #ddd !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.btn-quantidade:active {
  transform: translateY(0);
}

.btn-secondary:hover {
  background: #f8f9fa !important;
  border-color: #ddd !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #404040 0%, #2c2c2c 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(44,44,44,0.4) !important;
}

.btn-checkout:hover {
  background: linear-gradient(135deg, #404040 0%, #2c2c2c 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(44,44,44,0.4) !important;
}

/* RESPONSIVIDADE DOS MODAIS MODERNOS */
@media screen and (max-width: 768px) {
  .modern-modal {
    margin: 1rem;
    max-width: calc(100vw - 2rem) !important;
    max-height: calc(100vh - 2rem) !important;
  }

  .auth-header {
    margin-bottom: 1.5rem !important;
  }

  .auth-header .brand-logo img {
    width: 100px !important;
  }

  .modal-title {
    font-size: 1.3rem !important;
  }

  .produto-preview {
    flex-direction: column;
    text-align: center;
    gap: 1rem !important;
  }

  .produto-preview img {
    width: 80px !important;
    height: 80px !important;
  }

  .quantidade-controls {
    gap: 0.8rem !important;
  }

  .btn-quantidade {
    width: 32px !important;
    height: 32px !important;
  }

  .quantidade-display input {
    width: 50px !important;
    height: 32px !important;
    font-size: 1rem !important;
  }

  .modal-actions {
    flex-direction: column;
    gap: 0.6rem !important;
  }

  .btn-checkout {
    font-size: 0.95rem !important;
    padding: 0.9rem !important;
  }

  .carrinho-items-modern .carrinho-item {
    padding: 1rem !important;
    flex-direction: column;
    text-align: center;
    gap: 0.8rem !important;
  }

  .carrinho-items-modern .carrinho-item img {
    width: 60px !important;
    height: 60px !important;
  }

  .carrinho-items-modern .carrinho-item-info {
    width: 100%;
  }

  .carrinho-items-modern .quantidade-btn {
    width: 28px !important;
    height: 28px !important;
  }

  .carrinho-items-modern .quantidade-display {
    font-size: 0.9rem !important;
  }

  .total-section {
    padding: 1rem !important;
  }
}

@media screen and (max-width: 480px) {
  .modal-title {
    font-size: 1.2rem !important;
  }

  .produto-preview {
    padding: 1rem !important;
  }

  .quantidade-controls {
    gap: 0.6rem !important;
  }

  .btn-quantidade {
    width: 30px !important;
    height: 30px !important;
  }

  .quantidade-display input {
    width: 45px !important;
    height: 30px !important;
    font-size: 0.9rem !important;
  }

  .carrinho-items-modern .carrinho-item {
    /* Layout mais compacto e consistente em grid */
    padding: 0.9rem !important;
    padding-right: 52px !important; /* reserva espaço extra para o botão remover */
    display: grid !important;
    grid-template-columns: 56px 1fr !important;
    align-items: center !important;
    gap: 0.75rem !important;
    text-align: left !important;
    position: relative !important;
  }

  .carrinho-items-modern .carrinho-item img {
    width: 56px !important;
    height: 56px !important;
    border-radius: 8px !important;
  }

  #carrinho-modal .carrinho-item-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
  }

  #carrinho-modal .carrinho-item-nome {
    font-size: 0.95rem !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    line-height: 1.25 !important;
    padding-right: 40px !important; /* garante respiro do lado do botão */
  }

  #carrinho-modal .carrinho-item-preco {
    font-size: 0.8rem !important;
    color: #777 !important;
  }

  #carrinho-modal .carrinho-item-quantidade {
    margin: 0.35rem 0 0.1rem 0 !important;
    gap: 0.5rem !important;
    justify-content: flex-start !important;
  }

  .carrinho-items-modern .quantidade-btn {
    width: 26px !important;
    height: 26px !important;
  }

  #carrinho-modal .carrinho-item-info > div:last-child {
    /* Subtotal */
    margin-top: 0.25rem !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #2c2c2c !important;
  }

  #carrinho-modal .carrinho-item-remove {
    position: absolute !important;
    top: 6px !important; /* dentro do card */
    right: 6px !important; /* dentro do card */
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* estilo ghost por padrão no mobile */
    background: #ffffff !important;
    color: #8a8a8a !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  }
  #carrinho-modal .carrinho-item-remove:hover,
  #carrinho-modal .carrinho-item-remove:focus,
  #carrinho-modal .carrinho-item-remove:active {
    background: #ff4444 !important;
    color: #ffffff !important;
    border-color: #ff4444 !important;
  }
  #carrinho-modal .carrinho-item-remove svg { width: 12px !important; height: 12px !important; }

  /* Ajuste fino para a linha de total do item para evitar sobreposição */
  #carrinho-modal .carrinho-item-total-line { padding-right: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }

  .carrinho-items-modern .quantidade-display {
    font-size: 0.85rem !important;
  }

  .modal-actions button {
    font-size: 0.85rem !important;
    padding: 0.7rem !important;
  }

  /* Carrinho: evitar que o botão fique cortado no mobile */
  #carrinho-modal .contato-modal-content {
    display: flex !important;
    flex-direction: column !important;
    max-height: 90vh !important;
    overflow-y: auto !important; /* sobrepõe inline overflow: visible */
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
  }

  #carrinho-modal .carrinho-items-modern {
    max-height: 40vh; /* garante espaço para resumo e botão */
    overflow-y: auto;
    padding-right: 0.25rem;
  }

  #carrinho-modal .total-section {
    margin-bottom: 0.75rem !important;
    padding: 1.1rem !important;
  }

  #carrinho-modal .checkout-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #ffffff;
    padding-top: 0.75rem;
    padding-bottom: calc(0.25rem + env(safe-area-inset-bottom));
    margin-left: -0.25rem; /* suaviza transição com padding interno */
    margin-right: -0.25rem;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.06);
    border-top: 1px solid #eee;
  }

  #carrinho-modal .btn-checkout {
    font-size: 0.92rem !important;
    padding: 0.8rem !important;
    width: 100% !important;
    box-shadow: 0 3px 14px rgba(44,44,44,0.25) !important; /* sombra mais sutil */
    border-radius: 10px !important;
  }

  /* Reduzir o tamanho do valor total no carrinho */
  #carrinho-modal .total-final span:first-child {
    font-size: 0.95rem !important; /* rótulo "Total:" */
  }
  #carrinho-modal .total-final span:last-child {
    font-size: 1.05rem !important; /* valor "R$ 0,00" */
  }

  /* Ajustes de barra de rolagem para mobile */
  .contato-modal-content::-webkit-scrollbar,
  .carrinho-modal-content::-webkit-scrollbar,
  .modern-modal::-webkit-scrollbar {
    width: 6px !important;
  }

  .carrinho-items::-webkit-scrollbar,
  .carrinho-items-modern::-webkit-scrollbar {
    width: 4px !important;
  }

  ::-webkit-scrollbar {
    width: 8px !important;
  }
}

.carrinho-empty {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.carrinho-total {
  border-top: 2px solid #eee;
  padding-top: 1rem;
  text-align: center;
}

.btn-finalizar {
  background: #2c2c2c;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  width: 100%;
  transition: background 0.2s ease;
}

.btn-finalizar:hover {
  background: #333;
}

/* Estado desabilitado para botão finalizar */
.btn-finalizar:disabled {
  background: #bdbdbd;
  cursor: not-allowed;
  opacity: 0.85;
}

/* Toast minimalista */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  z-index: 4000;
  pointer-events: none;
}

.toast {
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: opacity .2s ease, transform .2s ease;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast.hide {
  opacity: 0;
  transform: translateY(10px);
}

.toast a {
  color: #61dafb;
  text-decoration: underline;
}

/* (Removidos estilos de Mercado Pago para manter apenas WhatsApp) */

/* MODAL DE CONTATO CLEAN */
.contato-modal {
  display: none;
  position: fixed;
  z-index: 10000; /* acima do header (9999) */
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Modais legais devem ficar acima dos outros modais */
#termos-modal,
#privacidade-modal {
  z-index: 10010; /* ligeiramente acima de outros modais */
}

.contato-modal.show {
  display: flex;
}

/* Modal de contatos simples - centralizado */
.modal-contato-simples {
  align-items: center !important;
  padding: 20px !important;
}

.modal-contato-simples .contato-modal-content {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(15px) !important;
  max-width: 600px !important;
  width: 95vw !important;
  max-height: none !important;
  padding: 2rem !important;
  text-align: center !important;
}

.modal-contato-simples .contato-close {
  color: #ffffff !important;
  background: none !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  font-size: 2rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.modal-contato-simples .contato-close:hover {
  background: none !important;
  color: #cccccc !important;
  transform: scale(1.15) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.contato-modal h2 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.modal-contato-simples h2 {
  margin-bottom: 1rem !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 1.8rem !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.modal-contato-simples p {
  margin: 0.5rem 0 0 0 !important;
  font-size: 0.85rem !important;
  color: #ffffff !important;
  text-align: center !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.contato-icones {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.contato-icones a {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contato-icones a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.text-center {
  text-align: center;
}

.bg-cover {
  background-size: cover;
  background-position: center;
}

.padding-section {
  padding: 12rem 2rem 6rem;
}

.inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  font-size: 2em;
}

.overlay { display: none !important; }

.no-scroll {
  overflow: hidden !important;
  height: 100% !important;
  position: fixed !important;
  width: 100% !important;
  top: 0 !important;
  left: 0 !important;
}

.no-scroll html {
  overflow: hidden !important;
  height: 100% !important;
}

.produto-nome {
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0.25rem 0 0.15rem 0;
  color: #333;
  letter-spacing: normal;
}

@media (max-width: 768px) {
  .header {
    z-index: 1000;
  }
  
  .home-hero {
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background: none !important;
  }

  #hero-video {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 90px);
    object-fit: contain;
  }

  .home-hero h1 {
    font-size: 2.2rem;
  }

  .home-hero p {
    font-size: 1.1rem;
  }

  .home-hero .btn {
    padding: 0.6rem 2rem;
    font-size: 0.8rem;
    border-radius: 40px;
  }

  #sobre-nos-section h2 {
    font-size: 1.8rem;
  }

  #sobre-nos-section {
    padding: 8rem 1rem 3rem;
  }

  #slider {
    width: 85%;
    height: 75vw;
    max-height: 400px;
    max-width: 85vw;
    min-height: 280px;
    margin: 1.5rem auto;
    border-radius: 15px;
    display: block;
  }

  .control_prev, .control_next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .control_prev {
    left: 10px;
  }

  .control_next {
    right: 10px;
  }

  #slider ul li img {
    border-radius: 15px;
  }

  .produtos h2 {
    font-size: 1.8rem;
  }

  .produto-card {
    width: 100%;
  }

  .navbar ul {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    transition: all 0.3s ease-in-out;
  }

  .navbar.active {
    display: flex;
  }

  #menu-btn {
    display: block;
  }
}

/* Responsivo para o bloco de quantidade */
@media (max-width: 540px) {
  .quantidade-selector {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .quantidade-selector label {
    text-align: center;
    width: 100%;
  }
}

@media (min-width: 769px) {
  .navbar {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    gap: 2rem;
    transition: all 0.3s ease-in-out;
  }

  #menu-btn {
    display: none;
  }
}

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.produto-preco {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin: 0.4rem 0 0.2rem 0;
  letter-spacing: normal;
}

.produto-contato {
  font-size: 0.6rem;
  font-weight: 400;
  color: #666;
  margin: 0.2rem 0 0.4rem 0;
  font-style: italic;
  text-align: center;
}

/* FORMULÁRIO MINIMALISTA */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #ffffff;
  color: #333;
  font-size: 0.9rem;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #999;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

/* Grid do modal de dados do cliente */
.dados-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
}

@media (max-width: 640px) {
  .dados-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* RESPONSIVO MINIMALISTA */
@media (max-width: 768px) {
  .navbar {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 9998;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
  }
  
  .navbar.active {
    display: flex;
  }

  .navbar ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  #menu-btn {
    display: block;
  }
  
  .header-actions {
    gap: 1rem;
  }

  /* Carrinho mobile - fora do menu hamburguer */
  #carrinho-link {
    padding: 0.5rem;
  }
  
  #carrinho-link .carrinho-icon {
    width: 22px;
    height: 22px;
  }
  
  /* Ajustar posição do contador em mobile - mais próximo do ícone */
  #carrinho-link .carrinho-count {
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
  }
  
  .navbar ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .navbar a {
    padding: 1rem 1.5rem;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .navbar a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--main-color);
    transform: translateY(-1px);
  }
  
  #sobre-nos-section h2 {
    font-size: 1.5rem;
  }

  #sobre-nos-section {
    padding: 7rem 0.5rem 2rem;
  }

  #slider {
    width: 100%;
    height: 80vw;
    max-height: 350px;
    max-width: 100%;
    min-height: 250px;
    margin: 0;
    border-radius: 12px;
    display: block;
  }

  .control_prev, .control_next {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .control_prev {
    left: 8px;
  }

  .control_next {
    right: 8px;
  }

  #slider ul li img {
    border-radius: 12px;
  }

  .produtos h2 {
    font-size: 1.5rem;
  }

  .slider-content {
    margin: 1% auto;
    width: 98%;
    padding: 0.5rem;
    border-radius: 12px;
    max-height: 98vh;
  }
  
  .slider-wrapper {
    height: 90vw;
    max-height: 90vw;
    min-height: 280px;
    padding: 0.5rem;
  }
  
  .slide-container {
    padding: 0.2rem;
  }

  .slide-image {
    border-radius: 8px;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
  }
  
  .close-slider {
    top: 8px;
    right: 12px;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
  }
  
  .prev-slide, .next-slide {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    padding: 0.5rem;
  }
  
  .prev-slide {
    left: 5px;
  }
  
  .next-slide {
    right: 5px;
  }
  
  .slide-container {
    margin: 0;
  }
  
  .slide-image {
    max-height: 65vh;
    border-radius: 8px;
  }
}

/* MEDIA QUERY PARA TELAS MUITO PEQUENAS */
@media (max-width: 360px) {
  #sobre-nos-section {
    padding: 6rem 0.3rem 1.5rem;
  }

  #sobre-nos-section h2 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }

  #slider {
    width: 95%;
    height: 85vw;
    max-height: 300px;
    max-width: 95vw;
    min-height: 200px;
    margin: 0.8rem auto;
    border-radius: 10px;
    display: block;
  }



  #slider ul li img {
    border-radius: 10px;
  }

  /* Modal corrections for very small screens */
  .slider-content {
    margin: 2% auto;
    width: 100%;
    max-height: 100vh;
    padding: 0.3rem;
  }
  
  .slider-wrapper {
    height: 95vw;
    max-height: 95vw;
    min-height: 250px;
    padding: 0.3rem;
  }
  
  .slide-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
  }
  
  .close-slider {
    top: 5px;
    right: 8px;
    font-size: 1.2rem;
  }
  
  .prev-slide, .next-slide {
    font-size: 1.2rem;
    width: 25px;
    height: 25px;
  }
}

/* MEDIA QUERY SEPARADO PARA TABLET */
/* Estilos do Slider */
#slider {
  flex: 0 0 75%;
  position: relative;
  overflow: hidden;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0;
  margin-left: auto;
  border-radius: 20px;
  height: 1500px;
}

#slider h2 {
  color: #fff;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 300;
}

#slider ul {
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  position: relative;
  height: calc(100% - 100px);
  display: flex;
}

#slider ul li {
  min-width: 100%;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#slider ul li img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: none;
  min-height: 1400px;
  max-height: 1450px;
  transition: border-radius 0.3s ease;
}

#slider ul {
  animation: slideshow 20s infinite ease-in-out;
}

@keyframes slideshow {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  20% {
    transform: translateX(0);
    opacity: 1;
  }
  25% {
    transform: translateX(-100%);
    opacity: 0.8;
  }
  45% {
    transform: translateX(-100%);
    opacity: 1;
  }
  50% {
    transform: translateX(-200%);
    opacity: 0.8;
  }
  70% {
    transform: translateX(-200%);
    opacity: 1;
  }
  75% {
    transform: translateX(-300%);
    opacity: 0.8;
  }
  95% {
    transform: translateX(-300%);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  #slider {
    flex: 0 0 100%;
    padding: 0;
    background: transparent;
    height: 1200px;
    border-radius: 20px;
    overflow: hidden;
  }
  
  #slider h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
  }
  
  #slider ul li {
    padding: 0;
  }
  
  #slider ul li img {
    min-height: 1100px;
    max-height: 1150px;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
  }
  

}

/* MEDIA QUERY PARA TABLET */
@media (max-width: 768px) and (min-width: 481px) {
  .slider-content {
    margin: 1% auto;
    width: 96%;
    padding: 0.8rem;
    border-radius: 16px;
    max-height: 97vh;
  }
  
  .slider-wrapper {
    height: 85vw;
    max-height: 85vw;
    min-height: 350px;
  }
  
  .close-slider {
    top: 12px;
    right: 16px;
    font-size: 1.8rem;
    width: 38px;
    height: 38px;
  }
  
  .prev-slide, .next-slide {
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    padding: 0.75rem;
  }
  
  .prev-slide {
    left: 8px;
  }
  
  .next-slide {
    right: 8px;
  }
  
  .slide-container {
    margin: 0;
  }
  
  .slide-image {
    max-height: 70vh;
    border-radius: 10px;
  }
}

/* Ajustes para telas pequenas no modal de contato */
@media (max-width: 600px) {
  .contato-icones {
    flex-wrap: nowrap;
    gap: 0.9rem;
    justify-content: center;
  }
  .contato-icones a {
    width: 55px;
    min-width: 0;
    margin-bottom: 0;
  }
  .contato-icones img {
    width: 32px;
    height: 32px;
  }
  .contato-modal-content {
    max-width: 95vw;
    padding: 1rem 0.5rem;
  }
  .contato-modal-content h2 {
    font-size: 1.1rem;
  }
  .contato-icones p {
    font-size: 0.7rem;
  }
}

@media (max-width: 900px) {
  #slider-sobre {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .sobre-nos-box {
    max-width: 100%;
    padding: 2rem 1rem;
    border-radius: 8px;
  }
  #slider {
    max-width: 100%;
    min-width: 0;
    height: 400px;
    min-height: 220px;
    max-height: 500px;
  }
}

#slider-sobre {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto;
  padding: 4rem 2rem;
  max-width: 1400px;
  background: #181818;
}
.sobre-nos-box {
  flex: 1;
  max-width: 1000px;
  min-width: 300px;
  padding: 2rem;
  color: #fff;
  min-width: 260px;
  flex: 1 1 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.sobre-nos-box h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}
.sobre-nos-box hr {
  border: 0;
  border-top: 1px solid #fff2;
  margin: 1.2rem 0;
}
.sobre-nos-box p {
  margin-bottom: 1rem;
  font-size: 1.08rem;
  line-height: 1.7;
}
#slider {
  flex: 1;
  max-width: 600px;
  min-width: 600px;
  background: transparent;
  border-radius: 12px;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 480px;
  min-height: 320px;
  max-height: 600px;
}
@media (max-width: 1100px) {
  #slider-sobre {
    gap: 2rem;
    max-width: 98vw;
  }
  .sobre-nos-box {
    max-width: 100%;
    padding: 2rem 1rem;
    border-radius: 12px;
  }
  #slider {
    max-width: 100%;
    border-radius: 12px;
    height: 400px;
    min-height: 220px;
    max-height: 500px;
  }
}
@media (max-width: 768px) {
  .sobre-nos-container {
    flex-direction: column;
    height: auto;
  }
  .sobre-nos-box {
    flex: 0 0 auto;
    padding: 3rem 1.5rem;
    min-height: 60vh;
  }
  #slider {
    flex: 0 0 auto;
    min-height: 40vh;
  }
  .sobre-nos-box h2 {
    font-size: 2rem;
    text-align: center;
  }
  .sobre-nos-box h2:after {
    left: 50%;
    transform: translateX(-50%);
  }
  #slider {
    order: 2;
    margin-top: 2rem;
    height: 320px;
    min-height: 180px;
    max-height: 400px;
  }
}

@media (max-width: 600px) {
  .sobre-nos-box {
    padding: 1.2rem 0.5rem;
    border-radius: 8px;
    order: 1;
    align-items: center;
    text-align: center;
  }
  .sobre-nos-box h2 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }
  .sobre-nos-box p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  #slider {
    padding: 1rem 0.2rem 1.5rem 0.2rem;
    border-radius: 8px;
    order: 2;
    height: 220px;
    min-height: 120px;
    max-height: 320px;
    background: transparent;
  }
  #slider h2 {
    font-size: 1rem;
    margin-bottom: 0.7rem;
    color: #ffffff;
  }
}

/* CENTRALIZAÇÃO ESPECÍFICA PARA MODAL DE CONTATO */
#contato-modal {
  align-items: center !important;
  padding: 20px !important;
}

/* OCULTAR HERO CONTENT QUANDO MODAIS ESTÃO ABERTOS */
body.modal-open #hero-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ESTILOS PARA MODAL DE CONTATO PADRONIZADO */
#contato-modal .contato-icones {
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 0.8rem !important;
  flex-wrap: wrap !important;
  max-width: 400px !important;
  margin: 0 auto !important;
}

#contato-modal .contato-btn {
  transition: all 0.3s ease !important;
  flex: 1 !important;
  min-width: 80px !important;
  max-width: 90px !important;
}

#contato-modal .contato-btn:hover {
  transform: translateY(-3px) !important;
  border-color: #5DADE2 !important;
  background-color: #f0f8ff !important;
  box-shadow: 0 6px 20px rgba(93, 173, 226, 0.3) !important;
}

#contato-modal .contato-btn:hover img {
  transform: scale(1.1) !important;
  filter: brightness(1.2) saturate(1.3) !important;
}

#contato-modal .contato-btn:hover p {
  color: #5DADE2 !important;
  font-weight: 600 !important;
  transform: translateY(-1px) !important;
}

/* Ícones específicos com cores no hover */
#contato-modal .contato-btn:hover img[alt="WhatsApp"] {
  filter: brightness(1.2) saturate(1.5) hue-rotate(100deg) !important;
}

#contato-modal .contato-btn:hover img[alt="Instagram"] {
  filter: brightness(1.2) saturate(1.5) hue-rotate(300deg) !important;
}

#contato-modal .contato-btn:hover img[alt="Facebook"] {
  filter: brightness(1.2) saturate(1.5) hue-rotate(220deg) !important;
}

#contato-modal .contato-btn:hover img[alt="E-mail"] {
  filter: brightness(1.2) saturate(1.5) hue-rotate(200deg) !important;
}

/* ESTILOS PARA MODAL DE RECUPERAR SENHA */
#recuperar-senha-modal .auth-btn:hover {
  background-color: #222222 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#recuperar-senha-modal .form-group input:focus {
  border-color: #5DADE2;
  outline: none;
  box-shadow: 0 0 0 2px rgba(93, 173, 226, 0.2);
}

/* ESTILOS PARA BADGES DE LOGÍSTICA */
.badge-log {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 0.3rem;
  border: 1px solid transparent;
}

.badge-log.is-pendente {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.badge-log.is-pago {
  background-color: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

.badge-log.is-em_separacao {
  background-color: #cff4fc;
  color: #055160;
  border-color: #abdde5;
}

.badge-log.is-enviado {
  background-color: #e2e3ff;
  color: #383d41;
  border-color: #c3c4ff;
}

.badge-log.is-entregue {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.badge-log.is-cancelado {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}