.menu-items .menu-category-items {
    display: flex;
    gap: 2rem;
    padding: 12px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    margin-bottom: 4rem;;
}

/* Hide scrollbar */
.menu-items .menu-category-items ::-webkit-scrollbar {
  display: none;
}
.menu-items .menu-category-items  {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}
.menu-items .menu-category-items.dragging {
    cursor: grabbing;
    user-select: none;
}

.menu-items .menu-item {
    display: flex;
    width: 309px;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    border-radius: 22px;
    margin: 0 6px;
}

.menu-items .menu-item:first-child {
    margin-left: 0;
}
.menu-items .menu-item:last-child {
    margin-right: 0;
}


.menu-items .menu-item .img-wrapper {
    display: flex;
    background: #eee url('/images/placeholder.svg') center center no-repeat;
    height: 220px;
    justify-content: flex-end;
    align-items: end;
    align-self: normal;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 22px 22px 0px 0px;
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.menu-items .menu-item .img-wrapper:hover {
    cursor: pointer;
}


.menu-items .menu-item .add-to-cart {
    position: absolute;
    z-index: 4;
    bottom: 12px;
    right: 12px;
    padding: 1rem 1.5rem;
    border-radius: 50%;
    background-color: #F5F5F5;
    box-shadow: 0px 4px 4px rgba(0,0,0, .25);
    font-size: 2.2rem;
    color: var(--secondary-alt);
}

.menu-items .menu-item .footer {
    display: flex;
    border-radius: 0px 0px 22px 22px;
    background: rgba(226, 226, 226, 0.05);
    padding: 0px 24px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    min-height: 60px;
}



.menu-items .menu-item .name {
    font-size: 2rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.menu-items .menu-item .price {
    font-size: 2rem;
    white-space: nowrap;
}

.prev {

}


.skeleton {
    position: relative;
    background-color: #e0e0e0;
    overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: loading 1.2s infinite;
}

@keyframes loading {
  0% {
    left: -150px;
  }
  100% {
    left: 100%;
  }
}

.scroll-btn {
    display: none;
}

.scroll-btn {
  background-color: var(--gray);
  color: white;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 1.2rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  opacity: .5;
}
.scroll-btn:hover {
    opacity: 1;
}
.scroll-btn.prev {
    left: -12px;
}
.scroll-btn.next {
    right: -12px;
}

.category {
    position: relative;
}


@media (max-width: 768px) {
    .category {
        margin: .5rem 0;
    }

    .menu-items .menu-category-items {
        gap: 1rem;
    }

    .menu-items .menu-item {
        width: 180px;
        display: grid;
        grid-template-rows: auto 1fr;
    }

    .menu-items .menu-item .img-wrapper {
        width: 180px;
        height: 138px;
    }

    .menu-items .menu-item .footer {
        flex-direction: column;
        padding: 6px;
        align-items: start;
        gap: 1rem;
    }

    .menu-items .menu-item .name {
        font-size: 1.5rem;
    }

    .menu-items .menu-item .price {
        font-size: 1.5rem;
    }

    .menu-items .menu-item .add-to-cart {
        transform: scale(0.75);
    }
    
}

@keyframes highlight-border {
  0% {
    border-color: transparent;
    box-shadow: none;
  }
  50% {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
  }
  100% {
    border-color: transparent;
    box-shadow: none;
  }
}

.ficha-producto {
    border: 2px solid transparent;
    transition: border-color 1s, box-shadow 1s;
}

.ficha-producto.highlighted {
    animation: highlight-border 2s ease-in-out 0s 1;
    transition: border-color 2s, box-shadow 2s;
}

.image-container {
  position:relative
}