*,
*::before,
*::after {
  box-sizing: border-box;
}

.carta {
  width: 100%;
  /* margin: 20px auto;
	padding-top:50px !important;
  padding: 20px; */
  background: #ffffff;
}
@media (max-width: 480px) {
  .carta {
    padding-left: 20px;
    padding-right: 20px;
  }
}
/* categorías */
.carta h2 {
  text-align: left;
  font-size: 28px !important;
  margin: 35px 0 15px !important;

  text-transform: uppercase; /* mayúsculas */
  letter-spacing: 1px;

  color: #2e9e44; /* verde tipo bar */

  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 5px;
}

@media (max-width: 480px) {
  .carta h2 {
    font-size: 22px !important;
  }
}

/* productos */
.produktua {
  border-bottom: 1px solid #eaeaea;
  padding-top: 10px;
  padding-bottom: 5px;
}

/* línea principal */
.produktua-goian {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* nombre */
.izena {
  font-weight: 600;
  font-size: 16px;
}

/* precio */
.prezioa {
  font-weight: bold;
  font-size: 15px;
  white-space: nowrap;
}

/* descripción */
.deskribapena {
  margin: 5px 0 0;
  font-size: 14px;
  color: #666;
}

.alergenoak {
  margin-left: 10px;
}

.alergenoak img {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  opacity: 0.8;
}

.produktua-goian {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px; /* espacio entre nombre y precio */
}

.izena {
  font-weight: 600;
  font-size: 16px;
  flex: 1; /* ocupa el espacio disponible */
  min-width: 0; /* 🔥 clave para que pueda encogerse */
  word-break: break-word; /* rompe palabras largas */
}

.taberna-wrapper {
  max-width: 900px;
  width: 100%;
  margin: auto;
}

.tab-menu {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 90px;
  padding-top: 50px;
  margin-bottom: 40px;
}

@media (max-width: 768) {
  .tab-menu {
    padding-top: 50px;
  }
}


.tab-button {
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  background: #ddd;
  cursor: pointer;
  font-weight: 600;
}

.tab-button.active {
  background: #2e9e44;
  color: white;
}

.iragarkia {
  padding: 25px 0;
  border-bottom: 1px solid #ddd;
  max-width: 850px;
  margin: 35px auto;
}

.tab-content {
  display: flow-root;
}

.tab-content h2 {
  margin: 40px 0 15px;
}

.tab-content h2:first-of-type {
  margin-top: 0;
}

.nabarmendua {
  background: #f8fff8;
  border-left: 5px solid #2e9e44;
  padding: 20px;
  border-radius: 10px;
}

.ordutegia {
  max-width: 850px;
  margin: 30px auto;
  background: #fafafa;
  padding: 25px 30px;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ordu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e5e5e5;
}

.ordu-row:last-child {
  border-bottom: none;
}

.eguna {
  font-weight: 700;
  font-size: 22px;
}

.ordua {
  font-size: 22px;
  color: #555;
}

@media (max-width: 480px) {
  .eguna {
    font-weight: 400;
    font-size: 14px;
  }

  .ordua {
    font-size: 14px;
  }
}

.ordua.itxita {
  color: #b33;
  font-weight: 700;
}

#nagusia {
  max-width: 1000px;
  margin: auto;
}

@media (max-width: 480px) {
  #nagusia {
    padding-left: 20px;
    padding-right: 20px;
  }
}
.produktua-goian {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.izen-alergenoak {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.izena {
  font-weight: 700;
}

.alergenoak {
  display: flex;
  gap: 4px;
}

.alergenoak img {
  width: 20px;
  height: 20px;
}
.alergeno-icon {
  cursor: pointer;
  width: 20px;
  height: 20px;
}

#alergeno-popup {
  display: none;
  position: absolute;
  background: #222;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  transform: translateX(-50%);
  touch-action: manipulation;

}
