.dish-items-container {
    display: flex;
    justify-content: center; /* Căn giữa container */
    position: relative; /* Để định vị mũi tên bên trong container */
}

.dish-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start; /* Các items bắt đầu từ flex-start */
    max-width: 1380px; /* Đặt chiều rộng tối đa cho container */
    width: 1380px;
    padding-left: 8px;
}

.dish-items-container.can-scroll-horizon .dish-items {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    
}

.dish-items-container.can-scroll-horizon .dish-items::-webkit-scrollbar { /* WebKit */
    width: 0;
    height: 0;
}

.dish-items-container.can-scroll-horizon .dish-item {
    flex: 0 0 auto;
}

.dish-items-container.can-scroll-horizon .dish-items:active {
    cursor: grabbing; /* Con trỏ nắm tay khi nhấn chuột */
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    user-select: none;
}

.right-arrow {
    right: 10px;
}

.dish-item {
    box-sizing: border-box;
    flex: 1 1 calc(25% - 8px); /* 5 món trên 1 hàng ở PC */
    max-width: calc(25% - 8px);
    position: relative;
    border-radius: 2px;
}




.thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    box-shadow: 2px 4px 16px 0px rgba(170, 134, 68, 0.20) !important;
    height: 334px !important
}

.tag {
    display: flex;
    height: 140px;
    position: absolute;
    top: -80px;
    left: -90px;
    width: 160px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 0;
    font-size: 12px;
    text-align: center;
    transform: rotate(315deg);
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
    font-weight:600;
    font-style: normal !important;
}

.hot-tag {
    background-color: red;
}
.hot-tag .tag-text {
    color: #fff;
}

.must-try-tag {
    background: linear-gradient(135deg, #FFEBA6 0%, #E7C960 50%, #FFF5BF 100%)
    /* top: 40px;  */
}

/* JavaScript sẽ thêm class này để căn chỉnh tag khi cần thiết */
/* .tag-position-adjusted .must-try-tag {
    top: 10px; 
} */

.white-popup {
    position: relative;
    background: #FFF;
    padding: 20px;
    width: auto;
    max-width: 500px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.mfp-bg {
    background: rgba(0, 0, 0, 0.8);
}

.mfp-wrap {
    z-index: 10000;
}

.dish-item svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 5px;
}


.mfp-close {
    width: 40px !important;
}

.dish-item__title {
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
}
.dish-item__title a {
    color: #000;
    text-decoration: none !important;
}
.dish-item__title a:hover {
    color: #C8A462;
}


.dish-item .dish-infor-rating {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #DCB876;
    margin-bottom: 2px;

}
.dish-item .dish-item__shortdesc,
.dish-item__english-name {
    color: #101010;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}
.dish-item .dish-infor-price {
    color: #C8A462;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
}

.dish-item .dish-item__shortdesc {
    opacity: 0.6;
    margin-bottom: 12px !important;
}
.dish-infor {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.thumbnail-wrapper {
    text-align: center;
    border-radius: 2px !important;
}
.right-arrow {
    position: absolute;
    right: 15px;
    top: 40%
}
.right-arrow:hover {
    cursor: pointer;
}

.dish-item-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.dish-item-popup__header img {
    width: 300px;
}

.dish-item__title {
    color: var(--e-global-color-primary);
}

.dish-item-popup__text {
    text-align: justify;
    font-size: 14px;
}

.dish-item-popup__description_header {
    text-align: center;
    margin: 10px 0;
    color: var(--e-global-color-primary);
}
.tag-text {
    font-size: 11px;
    text-transform: uppercase;
    color: #000;
}
.dish-item img {
    width: 100%;
    max-width: 100%;
    height: 334px !important;
    
    border: 1px solid #AA8644 !important;
}

.dish-infor__wrapper {
    padding: 12px;
    
}

@media (max-width: 1024px) {
    .dish-item {
        flex: 1 1 calc(33.333% - 8px); /* 3 món trên 1 hàng ở máy tính bảng */
        max-width: calc(33.333% - 8px);
    }

    .dish-items-container.can-scroll-horizon .dish-item {
        flex: 0 0 calc(33.333% - 20px); /* 3 món trên 1 hàng ở máy tính bảng khi cuộn ngang */
    }
}



@media (max-width: 768px) {
    .dish-item {
        flex: 1 1 calc(50% - 8px); /* 2 món trên 1 hàng ở điện thoại */
        max-width: calc(50% - 8px);
    }
    
    .thumbnail-wrapper,
    .dish-item img {
        height: 172px !important;
    }
    
    .dish-items-container.can-scroll-horizon .dish-item {
        flex: 0 0 calc(50% - 8px); /* 2 món trên 1 hàng ở điện thoại khi cuộn ngang */
    }
    
    .dish-item__title {
        font-size: 14px;
        line-height: 20px;
    }
    .dish-item .dish-item__shortdesc,
    .dish-item__english-name {
        font-size: 12px;
        line-height: 16px;
    }
    .dish-item .dish-infor-price {
        font-size: 14px;
        line-height: 20px;
    }
}


