/* =========================================================
 *  Trang chÃƒÂ¡Ã‚Â»Ã‚Â§ - product_marquee (bÃƒâ€žÃ†â€™ng chuyÃƒÂ¡Ã‚Â»Ã‚Ân sÃƒÂ¡Ã‚ÂºÃ‚Â£n phÃƒÂ¡Ã‚ÂºÃ‚Â©m)
 *  LÃƒâ€ Ã‚Â°u ÃƒÆ’Ã‚Â½: web dÃƒÆ’Ã‚Â¹ng 1rem = 20px
 * ========================================================= */

.product_marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    background-image: url(../images/ke.png);
    background-repeat: no-repeat;
    background-position: bottom 8rem center;
    margin-bottom: 1rem;
    background-size: 100% auto;
}

.product_marquee .marquee_wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1.2rem;
    margin: 0;
    padding: 0.5rem 0;
    width: max-content;
    cursor: grab;
    will-change: transform;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.product_marquee .marquee_wrap.dragging {
    cursor: grabbing;
}


.product_item {
    width: 17rem;
    position: relative;
}

.product_item .link_box {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.product_item .box_img {
    padding-bottom: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product_item .box_img img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
}

.product_item .box_content {
    background: #EFF4FB;
    margin-top: 3rem;
    padding: 1rem;
    opacity: 0;
    transition: .5s all;
    scale: .8;
}


.cat {}

.product_item .cat {
    color: #09AEEA;
    font-size: .8rem;
}

.product_item h3 {
    margin: 0;
    display: flex;
    justify-content: space-between;
    color: #034EA2;
    font-size: 1rem;
    font-family: 'Momo Trust Display';
}

.product_item .arrow {
    width: 1.6rem;
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 100px;
}
.product_item:hover .box_content {
    opacity: 1;
    scale: 1;
}

/* Mobile khong co hover -> .box_content luon opacity:0, de lo khoang trong
   (hop rong) duoi anh san pham. Hien luon tren mobile thay vi cho hover. */
@media (max-width: 849px) {
    .product_item .box_content {
        opacity: 1;
        scale: 1;
        margin-top: 1rem;
    }

    .product_marquee {
        background-size: 264% auto;
        background-position: bottom 8rem center;
    }
}