.items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    justify-content: space-evenly; 
    width: 100%;
}

.t_cart_1 {
    font-family: 'MARSNEVENEKSK-Regular'; 
    font-size: 2.5em; 
    color: darkred; 
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.t_cart {
    font-family: 'MARSNEVENEKSK-Regular'; 
    font-size: 4em; 
    color: darkred; 
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.item {
    background-color: #3F3F3F;
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;    
    max-height: 250px;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    flex: 0 1 calc(45%); 
    box-sizing: border-box;
}

.item.no-image {
    justify-content: center; 
    padding: 20px;
}

.item.no-expand {
    cursor: default;
    transition: max-height 0.7s ease, height 0.7s ease;
}

.item.expanded {
    max-height: none;
    flex: 1 1 100%; 
    transition: max-height 0.7s ease, height 0.7s ease; 
}

.item.expanded img {
    height: 150px; 
}

.item img {
    width: 100%;
    height: 150px;
    object-fit: cover; 
    border-bottom: 1px solid #ccc;
    transition: height 0.7s ease; 

}

.item.no-image img {
    display: none; 
}

.item-info {
    padding: 10px;
   color: #FFFFFF;
    text-align: center;
    flex-grow: 1;
}

.item h4,
.item .price {
  font-size: 1em;
    margin: 2px;
}

.item .item-extra {
    display: none;
    padding-top: 10px;
}

.item h4 {
    margin: 0;
    padding: 10px;
    background-color: #800000;
    color: white;
    border-radius: 5px;
    font-size: 0.7em;
}

.item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); 
    transform: scale(1.01);
    transition: height 0.7s ease;
}

@media (min-width: 992px) {
    .item {
        flex: 0 1 calc(22%); 
    }
    .item .item-extra {
        display: block;
    }

    .item {
        max-height: none;
    }

    .item.expanded {
        flex: 1 1 100%; 
    }

    .item img {
        height: 200px;
    }
}

@media (max-width: 991px) {
    body {
        margin-top: 100px;
    }

    .item {
        max-height: 250px;
    }

    .item.expanded {
        max-height: none;
        width: 100%;
        flex-basis: 100%;
    }

    .item img {
        height: 120px;
    }

    .item.expanded img {
        height: 160px;
    }
}

/* ===== Iconos de alérgenos en las cartas ===== */
.item .alg-row {
  display: flex;
  flex-wrap: wrap;           /* permite varias filas si hace falta */
  justify-content: center;   /* centrados en la card */
  gap: 12px;                 /* separación entre iconos */
  margin-top: 10px;
  min-height: 50px;          /* asegura que haya espacio aunque no haya iconos */
}

.item .alg-ico-sm {
  width: 80px !important;    /* tamaño más grande para iconos */
  height: 80px !important;
  object-fit: contain;
  display: inline-block;
  margin-bottom: 0;          /* elimina la línea blanca debajo */
  border: none;              /* elimina bordes extra si los hay */
  background: none;          /* asegúrate de que no haya fondo blanco */
}

/* tablet */
@media (max-width: 768px) {
  .item .alg-ico-sm {
    width: 75px !important;   /* icono más grande en tablet */
    height: 75px !important;
  }
}

/* móvil normal */
@media (max-width: 480px) {
  .item .alg-ico-sm {
    width: 70px !important;
    height: 70px !important;
  }
}

/* móvil muy pequeño */
@media (max-width: 360px) {
  .item .alg-ico-sm {
    width: 65px !important;
    height: 65px !important;
  }
}

