/* Evita tremor/sobra ao rolar: scrollbar estável e fundo fixo */
html {
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  background: #1976d2;
  overscroll-behavior: contain;
}

html.dark-mode {
  background: #0f2027;
}

/* Gradiente animado em camada fixa (::before) para não repintar ao rolar; body transparente para o degradê aparecer */
body {
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  position: relative;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    -45deg,
    #1976d2,
    #1aa7d9,
    #17bfa0,
    #149ddd,
    #1976d2
  );
  background-size: 350% 350%;
  animation: gradientMove 18s ease-in-out infinite;
}

/* HERO PARALLAX - imagem definida no partial (estabelecimento.heroImageUrl ou /images/herobanner.jpg) */
.hero-parallax {
  height: 100vh;
  background-color: #1976d2;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* GLASS */
/* MODO CLARO (DIA) */
/* GLASS PREMIUM - DIA */
.glass-header,
.glass-section,
.glass-footer {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Cabeçalho fixo: z-index alto e overflow visível para os dropdowns não ficarem cortados */
header.glass-header,
nav.glass-header.navbar {
  z-index: 1030;
  overflow: visible;
}
.navbar-collapse {
  overflow: visible;
}

.glass-section,
.glass-footer {
  contain: layout style paint;
}

.glass-header::before,
.glass-section::before,
.glass-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.5),
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.5)
  );
  mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  transform: translateZ(0);
}

/* MODO DARK */
/* GLASS PREMIUM - DARK */
html.dark-mode body .glass-header,
html.dark-mode body .glass-section,
html.dark-mode body .glass-footer {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.glass-section:hover {
  transform: translateZ(0) translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

html.dark-mode body .glass-section:hover {
  box-shadow: 0 14px 36px rgba(0,0,0,0.5);
}




/* MENU DESTACADO */
.navbar .nav-link {
  position: relative;
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  transition: all 0.3s ease;
}

/* Linha animada abaixo */
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #0dcaf0, #20c997);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* Hover */
/* HOVER MODO DIA AJUSTADO */
body:not(.dark-mode) .navbar .nav-link:hover {
  color: #ffffff !important;
  background: linear-gradient(
    135deg,
    rgba(13, 202, 240, 0.25),
    rgba(32, 201, 151, 0.25)
  );
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(13, 202, 240, 0.3);
}

.navbar .nav-link:hover::after {
  width: 80%;
}

.nav-highlight:hover {
  color: #20c997 !important;
  text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* BOTÃO LOGIN */
.btn-login {
  background: linear-gradient(45deg, #0d6efd, #20c997);
  border-radius: 30px;
  color: white;
  transition: 0.4s;
}

.btn-login:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* WHATSAPP */
/* WHATSAPP COM DEGRADÊ ANIMADO */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 60px;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;
  color: white;
  text-decoration: none;

  border-radius: 50%;

  background: linear-gradient(
    135deg,
    #1ebe5d,
    #25D366,
    #20c997,
    #1ebe5d
  );

  background-size: 300% 300%;
  animation: whatsappGradient 8s ease-in-out infinite;

  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  transition: transform 0.4s ease;
  z-index: 999;
}

/* Animação do degradê */
@keyframes whatsappGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Hover elegante */
.whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 35px rgba(37, 211, 102, 0.6);
}

/* Mobile */
@media (max-width: 576px) {
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}

/* FOOTER ICONS */
.social-icons a {
  color: white;
  font-size: 22px;
  margin: 0 10px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #20c997;
}

/* ===== RODAPÉ QUANDO LOGADO ===== */
.footer-base {
  margin-top: auto;
}

.footer-logado {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logado__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.footer-logado__copy {
  flex: 0 0 auto;
}

.footer-logado__copy-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
}

.footer-logado__contato,
.footer-logado__whatsapp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.footer-logado__label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-logado__email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.footer-logado__email-btn:hover {
  background: rgba(13, 202, 240, 0.25);
  border-color: rgba(13, 202, 240, 0.6);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13, 202, 240, 0.3);
}

.footer-logado__email-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0dcaf0, #20c997);
  color: #fff;
  font-size: 0.9rem;
}

.footer-logado__email-text {
  font-weight: 600;
  text-decoration: none;
}

.footer-logado__whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.25);
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-logado__whatsapp-link:hover {
  background: rgba(37, 211, 102, 0.45);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .footer-logado__row {
    flex-direction: column;
    text-align: center;
  }

  .footer-logado__contato,
  .footer-logado__whatsapp {
    align-items: center;
  }
}

/* ===== MODAL ENVIAR E-MAIL ===== */
/* Garante que o modal fique acima do rodapé e do botão WhatsApp */
#modalEnviarEmail.modal {
  z-index: 1060;
}

.modal-email-content {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-email-header {
  background: linear-gradient(135deg, #0d6efd, #20c997);
  color: #fff;
  border-bottom: none;
  padding: 1rem 1.25rem;
}

.modal-email-header .modal-title {
  font-weight: 600;
}

.modal-email-form .modal-body {
  padding: 1.25rem 1.5rem;
}

.modal-email-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

html.dark-mode .modal-email-content {
  background: rgba(30, 30, 30, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .modal-email-form .form-control {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

html.dark-mode .modal-email-form .form-label,
html.dark-mode .modal-email-form .text-muted {
  color: rgba(255, 255, 255, 0.85) !important;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


@media (max-width: 768px) {
  .hero-parallax,
  .parallax-numbers {
    background-attachment: scroll;
  }
}

.carousel-item img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
}

@media (max-width: 768px) {
  .carousel-item img {
    height: 40vh;
  }
}

.hero-premium h1 {
  font-size: 3rem;
}

@media (max-width: 768px) {
  .hero-premium h1 {
    font-size: 2rem;
  }
}

/* CAIXA DOS ÍCONES INSTITUCIONAIS */
.icon-box {
  padding: 30px;
  border-radius: 20px;
  transition: all 0.4s ease;
}

.icon-box:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-8px);
}

/* ÍCONES PREMIUM */
.icon-premium {
  font-size: 40px;
  background: linear-gradient(45deg, #0dcaf0, #20c997);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: 0.4s ease;
}

.icon-box:hover .icon-premium {
  transform: scale(1.2) rotate(5deg);
}

/* CONTATO */
.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  transition: 0.3s ease;
}

.contact-icon {
  font-size: 22px;
  color: #0dcaf0;
  transition: 0.3s ease;
}

.contact-item:hover {
  transform: translateX(8px);
}

.contact-item:hover .contact-icon {
  color: #20c997;
  transform: scale(1.2);
}

/* Catálogo de produtos (home) */
.catalogo-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.catalogo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}
.catalogo-card__img-wrap {
  height: 180px;
  overflow: hidden;
}
.catalogo-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.catalogo-card__titulo {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.catalogo-card__obs {
  font-size: 0.85rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.catalogo-card__preco {
  font-size: 1.15rem;
  color: #0dcaf0 !important;
}

/* Modal catálogo: tema claro para o site */
.catalogo-modal-content {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #212529;
}
.catalogo-modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #f8f9fa;
}
.catalogo-modal-header .modal-title {
  color: #212529;
}
.catalogo-modal-body {
  background: #fff;
  color: #212529;
}
.catalogo-modal-nome {
  color: #212529;
}
.catalogo-modal-dl dt {
  color: #6c757d;
}
.catalogo-modal-dl dd {
  color: #212529;
}
.catalogo-modal-label {
  color: #6c757d;
}
.catalogo-modal-obs {
  color: #495057;
}
.catalogo-modal-img {
  border-color: rgba(0, 0, 0, 0.1) !important;
}
.catalogo-modal-sem-foto {
  background: #e9ecef;
  color: #6c757d;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.catalogo-modal-preco {
  color: #0d6efd;
}
.catalogo-modal-preco.text-success {
  color: #198754 !important;
  font-size: 1.35rem;
}
.catalogo-modal-preco-antigo {
  color: #6c757d;
}
.catalogo-modal-precos {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Texto institucional: justificado com hifenização por sílabas (pt) */
.institucional-texto {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-break: normal;
}

/* Efeito luz deslizando */
.icon-premium {
  font-size: 40px;
  background: linear-gradient(120deg, #0dcaf0 30%, #ffffff 50%, #20c997 70%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.contact-icon.fa-location-dot {
  position: relative;
}

.contact-icon.fa-location-dot::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #20c997;
  animation: pulse 2s infinite;
  top: 0;
  left: 0;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.map-glass {
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* BOTÃO DARK/LIGHT */
.theme-toggle-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: 0.4s ease;
  backdrop-filter: blur(8px);
}

.theme-toggle-btn:hover {
  transform: rotate(20deg) scale(1.1);
  background: rgba(255,255,255,0.25);
}

/* Modo Dark: degradê em camada fixa */
html.dark-mode body {
  background: transparent;
}

html.dark-mode body::before {
  background: linear-gradient(
    -45deg,
    #0f2027,
    #1f4037,
    #203a43,
    #2c5364
  );
}

html.dark-mode body .theme-toggle-btn {
  color: #20c997;
}

/* Responsividade extra */
@media (max-width: 992px) {
  .navbar-collapse {
    text-align: center;
  }

  .theme-toggle-btn {
    margin-top: 10px;
  }
}

/* LOGIN DROPDOWN */
.login-dropdown {
  min-width: 280px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: dropdownFade 0.3s ease forwards;
}

/* Inputs */
.login-dropdown .form-control {
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  transition: 0.3s ease;
}

.login-dropdown .form-control:focus {
  border-color: #0dcaf0;
  box-shadow: 0 0 10px rgba(13,202,240,0.4);
}

/* Animação suave */
@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/* Corrige cor dos labels no modo claro */
body:not(.dark-mode) .login-dropdown .form-label {
  color: #222;
  font-weight: 600;
}

/* Corrige cor dos inputs no modo claro */
body:not(.dark-mode) .login-dropdown .form-control {
  background: #ffffff;
  color: #222;
  border: 1px solid rgba(0,0,0,0.15);
}

/* Placeholder mais visível */
body:not(.dark-mode) .login-dropdown .form-control::placeholder {
  color: rgba(0,0,0,0.45);
}

/* Textos das seções Institucional e Contato no modo escuro */
html.dark-mode body #institucional,
html.dark-mode body #institucional h1,
html.dark-mode body #institucional h2,
html.dark-mode body #institucional h3,
html.dark-mode body #institucional p,
html.dark-mode body #institucional span,
html.dark-mode body #institucional li,
html.dark-mode body #institucional a,

html.dark-mode body #contato,
html.dark-mode body #contato h1,
html.dark-mode body #contato h2,
html.dark-mode body #contato h3,
html.dark-mode body #contato p,
html.dark-mode body #contato span,
html.dark-mode body #contato li,
html.dark-mode body #contato a {
  color: #ffffff !important;
}

/* Dropdown menu estilo moderno */
.navbar .dropdown-menu {
  border-radius: 15px;
  border: none;
  padding: 10px 0;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  animation: fadeDropdown 0.25s ease;
}

/* Itens */
.navbar .dropdown-item {
  padding: 10px 20px;
  transition: 0.3s ease;
}

/* Hover */
.navbar .dropdown-item:hover {
  background: linear-gradient(
    135deg,
    rgba(13,202,240,0.15),
    rgba(32,201,151,0.15)
  );
  color: #0dcaf0;
}

/* Animação */
@keyframes fadeDropdown {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html.dark-mode body .navbar .dropdown-menu {
  background: #1f1f1f;
}

html.dark-mode body .navbar .dropdown-item {
  color: #ffffff;
}

html.dark-mode body .navbar .dropdown-item:hover {
  background: rgba(255,255,255,0.1);
}

/* ============================= */
/* DROPDOWN GLASS EFFECT */
/* ============================= */

.navbar .dropdown-menu {
  z-index: 1040;
  border-radius: 20px;
  padding: 12px 0;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  animation: glassFade 0.3s ease forwards;
}

/* Modo claro: fundo mais opaco para o dropdown não misturar com o conteúdo atrás */
html:not(.dark-mode) body .navbar .dropdown-menu {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html:not(.dark-mode) body .navbar .dropdown-item {
  color: #1a1a1a;
}

html:not(.dark-mode) body .navbar .dropdown-item:hover {
  background: linear-gradient(
    135deg,
    rgba(13,202,240,0.12),
    rgba(32,201,151,0.12)
  );
  color: #0a8f9e;
}

/* Itens do dropdown */
.navbar .dropdown-item {
  padding: 10px 20px;
  color: #222;
  transition: 0.3s ease;
}

/* Hover elegante */
.navbar .dropdown-item:hover {
  background: linear-gradient(
    135deg,
    rgba(13,202,240,0.2),
    rgba(32,201,151,0.2)
  );
  color: #0dcaf0;
  border-radius: 12px;
}

html.dark-mode body .navbar .dropdown-menu {
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

html.dark-mode body .navbar .dropdown-item {
  color: #ffffff;
}

html.dark-mode body .navbar .dropdown-item:hover {
  background: rgba(255,255,255,0.08);
  color: #0dcaf0;
}

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

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 100px;
  contain: paint;
}

.btn-login {
  background: linear-gradient(135deg, #FF8DA1, #d4af37);
  color: white;
  border: none;
}

.btn-login:hover {
  opacity: 0.9;
}

.login-glass {
  backdrop-filter: blur(8px);
  border-radius: 12px;
}

/* Toast efeito suave */
.toast-smooth {
  opacity: 0;
  transform: translateY(-15px) scale(0.98);
  backdrop-filter: blur(8px);
  transition: all 0.4s ease;
  border-radius: 14px;
}

/* Quando aparece */
.toast.showing,
.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Quando desaparece */
.toast.hide {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
}

.glass-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.btn-anim {
  transition: all 0.3s ease;
}

.btn-anim:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.btn-gold {
  background: linear-gradient(45deg, #d4af37, #f5d76e);
  border: none;
  color: #000;
  font-weight: 600;
}

.btn-gold:hover {
  opacity: 0.9;
}

.pagination .page-link {
  border-radius: 10px;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  transform: translateY(-2px);
}

.page-item.active .page-link {
  background: linear-gradient(45deg, #d4af37, #f5d76e);
  border: none;
  color: #000;
}

th a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

th a:hover {
  color: #d4af37;
}