body {
  background-color: white;
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
}

.topo-ifood {
  background-color: #d62828;
  color: white;
}

.logo-loja {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.produto-card {
  transition: transform 0.2s ease-in-out;
}
.produto-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.icone-carrinho {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #d62828;
  color: white;
  padding: 12px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.container {
  margin-bottom: 50px;
}

#contador-carrinho {
  position: absolute;
  top: -5px;
  right: -5px;
  background: white;
  color: #d62828;
  border-radius: 50%;
  padding: 3px 7px;
  font-size: 14px;
  font-weight: bold;
}

.modal-carrinho {
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.carrinho-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

textarea.form-control,
select.form-select {
  font-size: 14px;
}

.btn {
  font-weight: bold;
}

h4,
h5 {
  font-weight: bold;
}

.secao h4 {
  font-size: 20px;
  border-left: 4px solid #d62828;
  padding-left: 10px;
}

@media (max-width: 768px) {
  .produto-card {
    text-align: left;
  }

  .produto-card img {
    width: 100%;
    height: auto;
    margin-top: 10px;
  }

  .topo-ifood h4 {
    font-size: 18px;
  }
}

.barra-inferior {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.barra-inferior .nav-item {
  flex: 1;
  text-align: center;
  color: #444;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 6px 0;
}

.barra-inferior .nav-item i {
  font-size: 0.8rem;
  display: block;
  margin-bottom: 1px;
}

.barra-inferior .nav-item.active {
  color: #d62828;
}

.barra-inferior .nav-item:hover {
  background-color: #f7f7f7;
}

.badge-notificacao {
  position: absolute;
  top: 2px;
  right: 26%;
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
}
#barraSacola {
  position: fixed;
  bottom: 12%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 1000;
  transition: transform 0.3s ease;
}

/* Sacola flutuante */
.barra-sacola {
  position: fixed;
  bottom: 70px;
  left: 10px;
  right: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px 15px;
  display: none; /* Começa escondida */
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

/* Imagem do logo */
.barra-sacola img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

/* Informações */
.barra-sacola .info {
  flex-grow: 1;
  margin-left: 10px;
  font-size: 14px;
}

/* Botão Ver Sacola */
.barra-sacola .btn-sacola {
  background: #d62828;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.3s;
}

.barra-sacola .btn-sacola:hover {
  background: #c01f1f;
}

.categoria-scroll {
    /* Container for the category links */
    display: flex; /* Use flexbox for alignment */
    gap: 20px; /* Space between category links */
    overflow-x: auto; /* Enable horizontal scrolling */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    border-bottom: 1px solid #f0f0f0; /* Subtle line to separate from content */
    padding: 0 16px; /* Horizontal padding for the container */
}

.categoria-scroll::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.categoria-link {
    /* Individual category link */
    display: inline-block;
    padding: 12px 4px; /* Vertical and horizontal padding */
    font-size: 0.95rem;
    font-weight: 600; /* Bolder font */
    color: #666; /* Default color for non-active links */
    background-color: transparent; /* No background */
    border-radius: 0; /* No rounded corners */
    text-decoration: none;
    transition: color 0.3s, border-bottom-color 0.3s;
    border-bottom: 3px solid transparent; /* Placeholder for active border */
    white-space: nowrap; /* Prevent text from wrapping */
}

.categoria-link:hover {
    color: var(--accent-orange, #F47C2C); /* Use CSS variable with fallback */
}

.categoria-link.active {
    color: var(--accent-orange, #F47C2C);
    border-bottom-color: var(--accent-orange, #F47C2C); /* Highlighted bottom border */
}

@media (max-width: 768px) {
  .topo-ifood .logo-loja {
    width: 70px !important;
    height: 70px !important;
  }

  .topo-ifood {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

/* --- Search Overlay Styles --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1050; /* Higher than other elements */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.search-overlay.active {
    transform: translateX(0);
}

.search-overlay-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-overlay-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1.1rem;
    padding: 8px;
}

.search-overlay-results {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
}

.search-overlay-no-results {
    flex-grow: 1;
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Make sure body doesn't scroll when overlay is active */
body.search-active {
    overflow: hidden;
}

#modalComplementos .modal-content {
  border-radius: 16px 16px 0 0;
}

#modalComplementos .modal-header {
  border-bottom: 1px solid #eee;
}

#modalComplementos .modal-footer {
  border-top: 1px solid #eee;
}

#modalComplementos h5 {
  margin: 0;
  flex: 1;
  text-align: center;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.modal-header {
  background: #fff3f3;
}

.complemento-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.controle-qtd {
  display: flex;
  align-items: center;
  gap: 8px;
}

.controle-qtd button {
  border: none;
  background: #e53935;
  color: white;
  width: 30px;
  height: 30px;
  font-size: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.controle-qtd span {
  width: 20px;
  text-align: center;
}

.categoria-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  /* Firefox */
}

.categoria-scroll::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.categoria-link {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  background-color: #f9f9f9;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.categoria-link:hover {
  background-color: #ffe5e5;
  color: #e53935;
}

.categoria-link.active {
  background-color: #e53935;
  color: #fff;
}

.btn-danger {
  animation: pulse 2s infinite;
}

@media (max-width: 768px) {
  .topo-ifood .logo-loja {
    width: 70px !important;
    height: 70px !important;
  }

  .topo-ifood {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

/* --- Search Overlay Styles --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1050; /* Higher than other elements */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.search-overlay.active {
    transform: translateX(0);
}

.search-overlay-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-overlay-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1.1rem;
    padding: 8px;
}

.search-overlay-results {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
}

.search-overlay-no-results {
    flex-grow: 1;
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Make sure body doesn't scroll when overlay is active */
body.search-active {
    overflow: hidden;
}
