/* =========================
RESET
========================= */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.product_cart{overflow: hidden;}
.product_cart .id_cart{
    display: flex;
    gap: 20px;
    width: fit-content;
    transition: transform 0.5s ease;
    will-change: transform;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* =========================
CARD PRODUCT
========================= */
.product_costum{
    background: #111;
    color: #fff;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    min-width: 260px;
    max-width: 260px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product_costum:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.2);
}

.product_costum::after{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
}

/* =========================
LINK
========================= */
.product_costum a{
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* =========================
ẢNH SẢN PHẨM
========================= */
.product_costum > a > img{
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* =========================
TITLE
========================= */
.title_product{
    padding: 14px 16px 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    text-align: center;
    color: #fff;
}

.title_product sup{
    color: #ffd24d;
    font-size: 12px;
}

.title_product img{
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
}

/* =========================
MÔ TẢ
========================= */
.min_title_product{
    padding: 0 16px 10px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    line-height: 1.4;
    min-height: 40px;
    text-align: center;
}

/* =========================
GIÁ
========================= */
.price_new{
    display: block;
    padding: 6px 16px 2px;
    color: #ffd24d;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.price_old{
    display: block;
    padding: 0 16px 10px;
    color: #ff3434;
    text-decoration: line-through;
    font-size: 13px;
    text-align: center;
}

/* =========================
BUTTON
========================= */
.btn_active{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px 18px;
    justify-content: center;
}

.btn_active button{
    flex: 1 1 100%;
    border: none;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: x-small;
    font-weight: 300;
}

.btn_active button:hover{
    transform: translateY(-2px);
    opacity: 0.95;
}

.btn_add_cart{
    background: #c78b2d;
    color: #fff;
}

.btn_order_buy{
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
}

.quit_view{
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.quit_view:hover{
    background: rgba(255,255,255,0.16);
}

/* =========================
TABLET
========================= */
@media(max-width: 1024px){

    .id_cart{
        grid-template-columns: repeat(2, 1fr);

        gap: 10px;

        padding: 10px;
    }

    .title_product{
        font-size: 13px;
    }

    .price_new{
        font-size: 16px;
    }
}

@media(max-width: 600px){

    .id_cart{
        grid-template-columns: 1fr;

        gap: 8px;

        padding: 10px;
    }

    .product_costum{
        padding-bottom: 8px;
                width: 13% !important;
        max-width: 29%;
        margin-left: 8px;
    }

    .title_product{
        font-size: 13px;
    }

    .min_title_product{
        font-size: 12px;
    }

    .price_new{
        font-size: 15px;
    }

    .price_old{
        font-size: 12px;
    }
}

/* =========================
IPHONE
========================= */
@media(max-width: 576px){

    .id_cart{
        grid-template-columns: 1fr;

        gap: 8px;

        padding: 8px;
    }

    .product_costum{
        border-radius: 10px;
    }

    .title_product{
        font-size: 13px;

        min-height: auto;
    }

    .min_title_product{
        font-size: 11px;
    }

    .price_new{
        font-size: 16px;
    }

    .price_old{
        font-size: 12px;
    }

    .btn_active{
        flex-direction: column;
    }

    .btn_active button{
        width: 100%;
    }
}

/* =========================
SLIDER WRAPPER
========================= */
/* KHUNG SLIDER */
.product_slider{
    width: 100%;

    overflow: hidden;

/* phần ngoài sẽ bị ẩn */

    position: relative;
}

/* LIST PRODUCT */
.product_slider .id_cart{
    display: flex;

    gap: 20px;

    transition: transform 0.5s ease;

    will-change: transform;
}

/* CARD */
.product_costum{
    min-width: calc((100% - 80px) / 5);

    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .product_slider .id_cart .product_costum{
        min-width: calc((100% - 40px) / 2);
    }
}

@media (max-width: 600px) {
    .product_slider .id_cart .product_costum{
        min-width: 100%;
    }

    .product_costum > a > img{
        height: auto;
        aspect-ratio: auto;
    }

    .title_product{
        font-size: 13px;
    }

    .min_title_product{
        font-size: 11px;
    }

    .price_new{
        font-size: x-small;
    }

    .price_old{
        font-size: 11px;
    }
}

/* =========================
IMAGE
========================= */
.product_costum img{
    width: 100%;

    height: 220px;

    object-fit: cover;

    display: block;
}

/* =========================
TABLET
========================= */
@media(max-width: 1024px){

    .product_slider .product_costum{
        min-width: calc((100% - 40px) / 2);
    }

}

/* =========================
MOBILE
========================= */
@media(max-width: 576px){

    .product_slider .product_costum{
        min-width: 100%;
    }

    .product_slider .product_costum > a > img{
        height: auto;
        aspect-ratio: auto;
    }

    .product_costum img{
        height: 160px;
    }

}