* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

body {
  background-image: url(fundo.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  text-align: center;
  display: flex;
  overflow-x: hidden;
  flex-direction: column;
}

header {
  width: 100%;
  background-color: #000000;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.always-visible-links {
  display: flex;
  gap: 10px;
}

.menu-checkbox {
  display: none;
}
.hamburger-label {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-item {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.nav-item:hover {
  color: red;
}

@media (max-width: 600px) {
  body {
    background-image: url(Fundo-mobile.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
  }

  .hamburger-label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
  }

  .hamburger-label span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .nav-menu {
    position: absolute;
    top: 98%;
    right: 0;
    width: 100%;
    max-width: 250px;
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 0 12px;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0;
    gap: 0;
    display: none; /* Escondido por padrão */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  }

  /* Itens empilhados dentro do menu suspenso */
  .nav-item {
    width: 100%;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-item:last-child {
    border-bottom: none;
  }

  /* MÁGICA DO CSS: Se clicar na label, o checkbox ativa (:checked) e abre o menu */
  .menu-checkbox:checked ~ .nav-menu {
    display: flex;
  }

  /* Efeito visual opcional: Transforma o hambúrguer em um "X" quando aberto */
  .menu-checkbox:checked + .hamburger-label span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .menu-checkbox:checked + .hamburger-label span:nth-child(2) {
    opacity: 0;
  }
  .menu-checkbox:checked + .hamburger-label span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
}

.container {
  text-align: center;
  width: 100%;
  max-width: 1200px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
  min-height: 100%;
  color: white;
  align-items: center;
  margin: 28vh auto 0 auto;
}

.filter-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.localizacao-link p {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 20px;
  cursor: pointer;
  opacity: 0.9;
  text-decoration: underline;
  font-weight: 500;
}

.localizacao-link i {
  font-size: 0.95rem;
  margin-right: 2px;
  color: white;
  text-decoration: none;
}

.custom-dropdown {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto 16px auto;
  text-align: left;
  z-index: 1;
}

#dropdown-cidade {
  z-index: 9;
}

.dropdown-header {
  width: 100%;
  height: 50px;
  padding: 18px 24px;
  font-size: 1.1rem;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  z-index: 1000;
}

.dropdown-header:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.dropdown-header::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ffffff;
  transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-header::after {
  transform: rotate(180deg);
}

.dropdown-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background-color: #880000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 10;
  display: none;
}

.custom-dropdown.open .dropdown-list {
  display: block;
}

.dropdown-item {
  padding: 14px 24px;
  font-size: 1.1rem;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#container-cidade {
  display: none;
}

#container-categoria {
  display: none;
}

.dropdown-list::-webkit-scrollbar {
  width: 6px;
}
.dropdown-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

@media (max-width: 480px) {
  body {
    background-image: url(Fundo-mobile.jpg);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  header {
    padding: 35px;
    height: 60px;
  }

  .logo img {
    max-width: 180px;
  }

  h1 {
    font-size: 1.2rem;
  }

  .localizacao-link {
    font-size: 0.85rem;
    margin-bottom: 10px;
    margin-top: 10px;
  }

  .dropdown-header {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 8px;
    z-index: 1000;
  }

  .dropdown-item {
    padding: 12px 20px;
    font-size: 1rem;
    z-index: 1000;
  }

  .dropdown-list {
    max-height: 180px;
    border-radius: 8px;
    z-index: 1000;
  }

  .sub {
    font-size: 17px;
  }

  #offer-images {
    grid-template-columns: 1fr;
  }

  #offer-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    justify-items: center;
    padding: 15px !important;
  }
}

.efeito-fade {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.efeito-fade.visivel {
  opacity: 1;
  transform: translateY(0);
}

.spinner-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0 24px 0;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: rodarSpinner 0.85s linear infinite;
}

.spinner-container p {
  font-size: 0.95rem;
  margin-top: 12px;
  margin-bottom: 0;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

@keyframes rodarSpinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.dropdown-header {
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease !important;
  z-index: 1000;
}

.dropdown-header:hover {
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 5, 5, 0.201);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
}

.modal-backdrop.aberto {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: rgb(254, 254, 254);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 32px 24px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.aberto .modal-box {
  transform: scale(1);
}

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  animation: bounce 2s infinite;
}

.modal-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: black;
  margin-bottom: 8px;
}

.modal-box p {
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.9;
  margin-bottom: 24px;
  color: #000000;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-modal {
  padding: 12px 20px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  width: 130px;
  transition: all 0.3s ease-in-out;
}

.btn-negar {
  background: rgba(255, 0, 0, 0.989);
  color: #ffffff;
  border: 1px solid rgb(255, 0, 0);
}

.btn-negar:hover {
  background: rgb(0, 0, 0);
  border: 1px solid black;
}

.btn-permitir {
  background: var(--primary);
  color: #000000;
  border: 1px solid rgb(2, 2, 2);
}

.btn-permitir:hover {
  background-color: red;
  color: white;
  border: 1px solid red;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

#offers {
  margin-top: 30px;
  width: 100%;
}
#offer-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
  justify-items: center;
  padding-left: 115px;
  padding-right: 115px;
}

.offer-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

#offer-images img {
  width: 100%;
  max-width: 350px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  object-fit: contain;
}
#offer-images img:hover {
  transform: scale(1.02);
}

.social-links a {
  margin: 3px;
  color: white;
  text-decoration: none;
}

.social-links {
  display: flex;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(253, 253, 253, 0.945);
  color: rgb(251, 1, 1);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
.social-link:hover {
  transform: translateY(-0.1px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.facebook:hover {
  background: white;
}
.instagram:hover {
  background: white;
}
.whatsapp:hover {
  background: white;
}
