/* Cookie Banner Animation */
.cookie-banner {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: all 0.5s ease-in-out;
  z-index: 1050;
}
.cookie-banner.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* [-------------------------------------------------] */

:root {
  --gaucho-red: #b71c1c;
  --gaucho-red-dark: #8e1313;
  --gaucho-orange: #ff6f3d;
  --gaucho-cream: #fff8f2;
  --gaucho-brown: #4a2e2a;
  --gaucho-green: #2e7d32;
  --height-main-navbar: 4.4rem;
  --height-footer: 8rem;
  --height-main: calc(100vh - var(--height-main-navbar) - var(--height-footer));
}

header {
  height: var(--height-main-navbar);
  overflow: hidden;
}

main {
  padding: 40px 0 40px;
  max-width: 100%;
  min-height: var(--height-main) !important;
}
body {
  font-family: "Montserrat", sans-serif;
  background: var(--gaucho-cream);
}

/* [-------------------------------------------------] */
.btn-gaucho {
  background: linear-gradient(90deg, var(--gaucho-orange), #ff915f);
  color: #fff;
  border: none;
}
.btn-gaucho:hover {
  filter: brightness(0.95);
  color: #fff;
}
.btn-outline-gaucho {
  border: 2px solid var(--gaucho-orange);
  color: var(--gaucho-orange);
  background: transparent;
}
.btn-outline-gaucho:hover {
  background: var(--gaucho-orange);
  color: #fff;
}

/* [-------------------------------------------------] */

.navbar {
  /* background: linear-gradient(90deg, var(--gaucho-red) 0%, var(--gaucho-red-dark) 100%); */
}
.navbar .nav-link,
.navbar .navbar-brand {
  color: #fff !important;
}

#main-navbar {
  background-color: var(--gaucho-red);
  transition: background-color 0.3s ease-in-out;
  padding-top: 10px;
  padding-bottom: 10px;
  max-width: 100%;
  height: var(--height-main-navbar);
}

#main-navbar.navbar-scrolled .navbar-brand,
#main-navbar.navbar-scrolled .nav-link,
#main-navbar.navbar-scrolled .fa-shopping-cart,
#main-navbar.navbar-scrolled .fa-bars {
  /* color: #333 !important; */
}

#main-navbar.navbar-scrolled {
  background-color: #b71c1cde;
  /* Vermelho mais escuro com transparência */
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(13.5px);
  -webkit-backdrop-filter: blur(13.5px);
}

.brand-title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

#main-navbar .nav-link,
#main-navbar .navbar-brand {
  transition: color 0.3s;
}

#main-navbar.navbar-scrolled .badge-notification {
  color: #fff;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.offcanvas-header {
  background-color: var(--gaucho-red);
  color: #fff;
}

/* Hover suave nas opções do menu lateral */
.offcanvas-body .nav-link {
  transition: background-color 0.3s, color 0.3s, padding-left 0.3s;
  border-radius: 0.25rem;
}

.offcanvas-body .nav-link:hover {
  background-color: #f8f9fa;
  /* leve cinza */
  color: var(--gaucho-red);
  /* usa sua cor principal */
  padding-left: 12px;
  /* dá um leve "slide" */
}

.offcanvas-body .btn-success {
  background-color: #25d366;
  /* verde oficial do WhatsApp */
  border: none;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
}

.offcanvas-body .btn-success:hover {
  background-color: #1ebe5d;
  transform: translateY(-2px);
}

.dropdown-menu {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  font-weight: 600;
  color: #4a2e2a;
  transition: all 0.2s;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--gaucho-orange);
  color: #fff;
}
.dropdown-divider {
  border-top: 1px solid #eee;
}

.text-red-gaucho {
  font-weight: 900;
  color: var(--gaucho-red) !important;
}

.image-icon-logo {
  border-radius: 25%;
  border: 2px solid #4a2e2a;
  background: #fff;
  padding: 2px;
}

/* [-------------------------------------------------] */

.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 20% 0%, #ffefe7, transparent 60%),
    linear-gradient(180deg, #fff8f2 0%, #ffe8de 100%);
  padding: 40px 0 40px;
  background: #2f1916 !important;
}
.hero-badge {
  background: #fff;
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  border: 1px dashed var(--gaucho-orange);
  color: var(--gaucho-brown);
  font-weight: 600;
}

.stock-badge {
  background: #fff3cd;
  color: #584203;
  border: 1px solid #ffeeba;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-white {
  color: #fff !important;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffd9cc, transparent);
}

.imagem-lanche {
  position: absolute;
  right: 0;
  max-width: 60%;
  /* width: 50%; */
  top: 0;
  height: 100%;
  max-height: -webkit-fill-available;
  object-fit: contain;
  right: 0;
  -webkit-mask-image: linear-gradient(to left, black 50%, transparent);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
}

@media (max-width: 768px) {
  :root {
    --height-footer: 13rem;
  }
  .hero .container {
    position: relative;
    z-index: 1;
  }

  .imagem-lanche {
    max-width: 130% !important;
    z-index: 0 !important;
    -webkit-mask-image: linear-gradient(
      to left,
      #000000d9 0%,
      transparent
    ) !important;
  }
}
@media (max-width: 425px) {
  .imagem-lanche {
    max-width: 150% !important;
    left: 0;
  }
}

/* [-------------------------------------------------] */

.category-chip {
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #eee;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  font-weight: 600;
  color: #6b4e4a;
}
.category-chip.active,
.category-chip:hover {
  border-color: var(--gaucho-orange);
  color: var(--gaucho-orange);
  box-shadow: 0 4px 14px rgba(255, 111, 61, 0.2);
  transform: translateY(-1px);
}

/* [-------------------------------------------------] */
.menu-card {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.price {
  font-weight: 800;
  color: var(--gaucho-red);
}
.note-input {
  border-radius: 12px !important;
  background: #fff7f2;
  border: 1px solid #ffd8c8;
}
.cart-drawer {
  width: 420px;
  max-width: 100vw;
}
.cart-item {
  border-bottom: 1px dashed #eee;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

/* --- CARDÁPIO OTIMIZADO --- */
.menu-item .card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.menu-item .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.menu-item .card-body {
  display: flex;
  flex-direction: column;
}

.menu-item .card-content {
  flex-grow: 1;
  /* Empurra o rodapé para baixo */
}

.menu-item .card-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 40px;
  /* Garante uma altura mínima para alinhar os cards */
}

/* Layout Responsivo para os Cards */
@media (max-width: 767.98px) {
  .menu-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.5rem;
    background-color: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  }

  .menu-item .menu-item-image-wrapper {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
  }

  .menu-item .menu-item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
  }

  .menu-item .card-body {
    padding: 0 0 0 1rem;
  }

  .menu-item .card-title {
    font-size: 1rem;
  }

  .menu-item .card-text {
    font-size: 0.8rem;
    min-height: auto;
  }
}

/* --- CARDÁPIO OTIMIZADO (Desktop e Comum) --- */

/* Wrapper da Imagem */
.menu-item-image-wrapper {
  max-height: 200px;
  overflow: hidden;
}

/* Imagem dentro do Wrapper */
.menu-item-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* O resto do CSS de desktop que você já tinha: */
.menu-item .card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* ... (demais estilos do card) ... */

/* Estilos de Mobile (mantidos para o layout horizontal) */
@media (max-width: 767.98px) {
  /* [Ajustado] Usa o wrapper para definir o tamanho da imagem no mobile */
  .menu-item .menu-item-image-wrapper {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    margin-right: 1rem;
    max-height: none;
    /* Remove o limite de altura do desktop */
  }

  .menu-item .menu-item-image-wrapper img {
    border-radius: 0.25rem;
  }

  /* ... (demais estilos mobile) ... */
}

/* [-------------------------------------------------] */

.badge-gaucho {
  background: var(--gaucho-green);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
}
.section-title {
  color: var(--gaucho-brown);
  font-weight: 800;
}
.section-title-white {
  color: #fff;
}
.logo-mark {
  height: 48px;
  width: auto;
}

/* [-------------------------------------------------] */

footer {
  height: var(--height-footer);
  background: #1d0f0d;
  color: #f7eae5;
}

.text-gray {
  color: #ccc !important;
}
/* [-------------------------------------------------] */

.required:after {
  content: " *";
  color: var(--gaucho-red);
}
.floating-cart-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1040;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* [-------------------------------------------------] */

/* SELECTION */
::selection {
  background-color: var(--gaucho-orange);
  color: #fffae8;
}

/* [-------------------------------------------------] */

/* BARRA DE ROLAGEM */
/* Estilo da barra de rolagem */
::-webkit-scrollbar {
  width: 6px;
  height: 10px;
}

/* Fundo da barra */
::-webkit-scrollbar-track {
  background: var(--gaucho-cream); /* preto */
}

/* Cor da alça (thumb) */
::-webkit-scrollbar-thumb {
  background: var(--gaucho-red); /* amarelo Dom Gaúcho */
  border-radius: 5px;
}

/* Hover na alça */
::-webkit-scrollbar-thumb:hover {
  background: var(--gaucho-orange) !important; /* tom mais claro no hover */
}

/* Firefox usa scrollbar-color */
html {
  scrollbar-color: var(--gaucho-red) var(--gaucho-cream); /* thumb e track */
  scrollbar-width: thin;
}

/* [-------------------------------------------------] */

/* LINKS */
a {
  color: #d93800;
}

a:focus,
a:hover {
  color: var(--gaucho-red);
}

/* [-------------------------------------------------] */

/* Margin top link scroll */
#cardapio,
#home,
#sobre,
#contato {
  scroll-margin-top: var(--height-main-navbar); /* altura do header */
}
#favoritos-container,
#pedidos-container {
  scroll-margin-top: calc( var(--height-main-navbar) + 1rem); /* altura do header */
}

/* [-------------------------------------------------] */

/* [-------------------------------------------------] */

/* select,
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  border: 2px solid #ff400080 !important;
  border-radius: 5px;
  padding: 8px;
  font-family: inherit;
  outline: none;
} */

/* Color - Inputs, Checkbox */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--gaucho-orange) !important; /* cor Dom Gaúcho */
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--gaucho-orange) !important; /* tom mais claro no foco */
  box-shadow: 0 0 5px var(--gaucho-orange) !important;
}

/* Switch customizado */
.custom-switch .form-check-input:checked {
  background-color: #f77f00 !important;
}
.custom-switch .form-check-input:checked::before {
  transform: translateX(24px);
}
.form-switch .form-check-input:after {
  background-color: #f89d3bff !important;
  transition: transform 0.3s ease-in-out;
}
.form-switch .form-check-input:checked[type="checkbox"]:after {
  background-color: #f77f00 !important;
}

.form-check-input:checked {
  background-color: #f77f00 !important;
  border-color: #f77f00 !important;
}
.form-check-input[type="radio"]:checked:after {
  background-color: var(--gaucho-cream) !important;
}

.form-select.is-invalid,
.was-validated .form-select:invalid {
  margin-bottom: 1.4rem;
}

.form-select.is-invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
  margin-top: -1.2rem;
}

.invalid-feedback {
  color: #d32f2f !important; /* vermelho de erro */
  font-weight: 600;
  font-size: 0.75rem !important;
  padding-right: 1rem !important;
  width: inherit;
}

/* [-------------------------------------------------] */

/* 🔒 Proteção contra cópia de imagens */
img {
  /* 🔒 Bloqueia clique e interação */
  pointer-events: none;

  /* 🔒 Impede seleção de imagem */
  user-select: none;
  -webkit-user-select: none; /* Safari/Chrome */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE/Edge */

  /* 🔒 Impede arrastar imagem */
  -webkit-user-drag: none; /* Safari/Chrome */
  -khtml-user-drag: none; /* Konqueror */
  -moz-user-drag: none; /* Firefox */
  -o-user-drag: none; /* Opera */
  user-drag: none;

  /* 🔒 Impede toque em dispositivos móveis */
  touch-action: none;

  /* 🔒 Evita que o cursor mude ao passar por cima */
  cursor: default;
}

/* [-------------------------------------------------] */

/* Estilo Customizado para SweetAlert2 Toasts */
.frosted-toast.swal2-popup {
  background-color: rgba(255, 150, 109, 0.6); /* Fundo branco semitransparente */
  background-color: #e49ea4bb; /* Fundo branco semitransparente */
  backdrop-filter: blur(10px); /* O efeito de vidro embaçado */
  -webkit-backdrop-filter: blur(10px); /* Para compatibilidade com Safari */
  border-radius: 8px;
  box-shadow: 5px 5px 15px #5a5a5a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  top: var(--height-main-navbar);
}

.swal2-container-custom-background {
  background-color: #fff !important;
  backdrop-filter: unset !important;
}

/* Opcional: Ajusta a cor do texto para melhor leitura */
.frosted-toast .swal2-title {
  color: #333;
}
.frosted-toast .swal2-timer-progress-bar {
  background: var(--gaucho-red); /* Usa a cor principal do seu tema */
}

.swal2-toast
  .swal2-success
  [class^="swal2-success-circular-line"][class$="left"],
.swal2-toast
  .swal2-success
  [class^="swal2-success-circular-line"][class$="right"],
.swal2-toast .swal2-success .swal2-success-fix {
  display: none !important;
}

/* [-------------------------------------------------] */



/* Garante que o SweetAlert apareça sobre os modais MDB */
.swal2-container-custom-z {
  z-index: 1070 !important; /* Mais alto que o modal (1050) e o backdrop (1055) do MDB */
}

/* Cor "accordion" quando aberto  */
.accordion-button:not(.collapsed) {
    color: crimson !important;
}