﻿body {
       
}
/* =========================================================
   PRODUCT LIST
========================================================= */

#divlistitemload {
   width: 100%;

    padding: 12px 10px 20px;

    box-sizing: border-box;
}
#uldivlistitemload {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 16px;

    width: 100%;

    margin: 0;

    padding: 0;

    list-style: none;

    box-sizing: border-box;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

#uldivlistitemload .product-card {

    position: relative;

    min-width: 0;

    margin: 0;

    padding: 0;

    background: #fff;

    border: 1px solid #e7e7e7;

    border-radius: 12px;

    overflow: hidden;

    box-sizing: border-box;

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}


#uldivlistitemload .product-card:hover {

    transform: translateY(-3px);

    border-color: #d9d9d9;

    box-shadow:
        0 8px 24px rgba(0,0,0,.08);
}


/* =========================================================
   LINK
========================================================= */

.product-card__link {

    display: flex;

    flex-direction: column;

    height: 100%;

    color: inherit;

    text-decoration: none;

    background: #fff;
}


.product-card__link:hover {

    color: inherit;

    text-decoration: none;
}


/* =========================================================
   IMAGE AREA
========================================================= */

.product-card__media {

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    aspect-ratio: 1 / 1;

    padding: 16px;

    background: #fff;

    box-sizing: border-box;
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-card__image {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition:
        transform .3s ease;
}


.product-card:hover .product-card__image {

    transform: scale(1.035);
}


/* =========================================================
   BADGES
========================================================= */

.product-card__badges {

    position: absolute;

    top: 10px;
    left: 10px;

    z-index: 2;

    display: flex;

    flex-direction: column;

    gap: 5px;
}


.product-card__installment {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 24px;

    padding: 3px 8px;

    border-radius: 5px;

    background: #fbda00;

    color: #222;

    font-size: 11px;

    font-weight: 700;

    line-height: 1;

    white-space: nowrap;
}


/* =========================================================
   BODY
========================================================= */

.product-card__body {

    display: flex;

    flex-direction: column;

    flex: 1;

    min-width: 0;

    padding: 0 12px 12px;

    box-sizing: border-box;
}


/* =========================================================
   BRAND
========================================================= */

.product-card__brand {

    display: grid;

    align-items: center;

    gap: 6px;

    min-height: 32px;

    margin-bottom: 7px;
}


.product-card__brand img {

    flex: 0 0 auto;

    width: auto;

    max-width: 42px;

    height: 20px;

    object-fit: contain;
}
.product-card__brand span {

    display: -webkit-box;

    overflow: hidden;

    color: #252525;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.45;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;

    min-height: calc(13px * 1.45 * 2);        
}
/* =========================================================
   PRICE
========================================================= */

.product-card__price {

    margin-top: 3px;
}


.product-card__price-main {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 5px;
}


.product-card__sale-price {

    color: #d70018;

    font-size: 14px;

    font-weight: 800;

    line-height: 1.25;

    letter-spacing: -.2px;
}


/* =========================================================
   STOCK
========================================================= */

.product-card__stock {

    display: inline-flex;

    align-items: center;

    padding: 2px 5px;

    border-radius: 4px;

    background: #edf8ef;

    color: #218739;

    font-size: 10px;

    font-weight: 600;

    line-height: 1.2;
}


/* =========================================================
   OLD PRICE + DISCOUNT
========================================================= */

.product-card__price-bottom {

    display: flex;

    align-items: center;

    gap: 7px;

    min-height: 20px;

    margin-top: 3px;
}


.product-card__old-price {

    color: #999;

    font-size: 12px;

    line-height: 1.2;

    text-decoration: line-through;
}


.product-card__discount {

    display: inline-flex;

    align-items: center;

    padding: 2px 5px;

    border-radius: 4px;

    background: #fff0f1;

    color: #d70018;

    font-size: 10px;

    font-weight: 700;

    line-height: 1.2;
}


/* =========================================================
   PROMOTION
========================================================= */

.product-card__promotion {

    display: flex;

    align-items: flex-start;

    gap: 5px;

    min-height: 38px;

    margin-top: 8px;

    padding: 7px 8px;

    border-radius: 6px;

    background: #f7f7f7;

    color: #555;

    font-size: 11px;

    line-height: 1.4;

    box-sizing: border-box;
}


.product-card__promotion-icon {

    flex: 0 0 auto;

    font-size: 12px;
}


.product-card__promotion-text {

    display: -webkit-box;

    overflow: hidden;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;
}


/* =========================================================
   ATTRIBUTES
========================================================= */

.product-card__attributes {

    margin-top: 7px;

    min-height: 0;

    font-size: 11px;

    line-height: 1.35;

    color: #666;
}


/* =========================================================
   FOOTER
========================================================= */

.product-card__footer {

    margin-top: auto;

    padding-top: 10px;
}


/* =========================================================
   BUY BUTTON
========================================================= */

.product-card__buy {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 36px;

    padding: 8px 10px;

    border: 1px solid #d70018;

    border-radius: 7px;

    background: #fff;

    color: #d70018;

    font-size: 13px;

    font-weight: 700;

    line-height: 1;

    box-sizing: border-box;

    transition:
        background .2s ease,
        color .2s ease;
}


.product-card__buy:hover {

    background: #d70018;

    color: #fff;
}


/* =========================================================
   RATING - ẨN
========================================================= */

.product-card__rating {

    display: none !important;
}
/* =========================================================
   FILTER - SAFE VERSION
   Không can thiệp layout 2 column
========================================================= */


/* Khung filter */

/*#inrighcolumnincategorypage {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;

    font-family:
        'Inter',
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}*/
#inrighcolumnincategorypage {
    background-color: #fff;

    min-height: 200px;

    margin-left: 10px;

    border: 1px solid #e8e8e8;

    border-radius: 10px;

    overflow: hidden;

    box-sizing: border-box;

    font-family:
        'Inter',
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

/* =========================================================
   KHU VỰC FILTER ĐÃ CHỌN
========================================================= */

#divlistattributefilterselect {
    background: #fff;
    border-bottom: 1px solid #eeeeee;
}

#outindivlistattributefilterselect {
    padding: 10px 12px;
    box-sizing: border-box;
}

#indivlistattributefilterselect {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;

    box-sizing: border-box;

    color: #222;
    font-size: 13px;
    line-height: 1.4;
}


/* chữ Lọc */

#indivlistattributefilterselect > span {
    float: none !important;

    padding-top: 0 !important;

    color: #222;

    font-size: 13px;
    font-weight: 700;

    line-height: 26px;
}


/* =========================================================
   TAG ĐÃ CHỌN
========================================================= */

.itemattributeselectedview {
    display: inline-flex;
    align-items: center;

    max-width: 100%;

    min-height: 25px;

    padding: 3px 5px 3px 8px;

    border: 1px solid #ffd5d9;
    border-radius: 5px;

    background: #fff5f6;

    color: #d70018;

    font-size: 11px;
    font-weight: 500;

    box-sizing: border-box;
}


.initemattributeselectedview {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.closethisitemattribute {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    margin-left: 4px;

    cursor: pointer;
}


.closethisitemattribute img {
    width: 11px;
    height: 11px;

    display: block;

    opacity: .65;
}


/* =========================================================
   TỪNG NHÓM THUỘC TÍNH
========================================================= */

.divitemattributefilter {

    margin: 0;

    padding: 0 5px;

    box-sizing: border-box;

    border-bottom: 1px solid #eeeeee;
}


.divitemattributefilter:last-child {
    border-bottom: none;
}


/* =========================================================
   TÊN THUỘC TÍNH
========================================================= */

.titleitemattributefilter {

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 40px;

    padding: 9px 0;

    box-sizing: border-box;

    color: #222;

    font-size: 13px;
    font-weight: 700;

    line-height: 1.35;
}


.titleitemattributefilter span {
    font-size: 13px;
    font-weight: 700;
}


/* mũi tên */

.titleitemattributefilter::after {
    content: "⌃";

    margin-left: 5px;

    color: #999;

    font-size: 13px;
}


/* =========================================================
   ẢNH MÔ TẢ
========================================================= */

.anhmotathuoctinh {
    margin-bottom: 6px;
}

.anhmotathuoctinh img {
    display: block;

    max-width: 100%;
    max-height: 55px;

    object-fit: contain;
}


/* =========================================================
   DANH SÁCH VALUE
========================================================= */

.divlistitemfilterinattribute {

    padding-bottom: 8px;

    box-sizing: border-box;
}


/* =========================================================
   VALUE
========================================================= */

.itemvaluefilterinattribute {
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


.initemvaluefilterinattribute {
    box-sizing: border-box;
}


/* =========================================================
   UNCHECK
========================================================= */

.initemvaluefilterinattribute .uncheckitem {

    position: relative;

    display: flex;
    align-items: flex-start;

    width: 100%;

    min-height: 29px;

    padding: 5px 5px;

    margin: 1px 0;

    border: 1px solid transparent;
    border-radius: 5px;

    box-sizing: border-box;

    color: #444;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.45;

    cursor: pointer;
}


.initemvaluefilterinattribute .uncheckitem::before {

    content: "";

    flex: 0 0 16px;

    width: 15px;
    height: 15px;

    margin-top: 1px;
    margin-right: 7px;

    border: 1px solid #c8c8c8;

    border-radius: 4px;

    background: #fff;

    box-sizing: border-box;
}


/* hover */

.initemvaluefilterinattribute .uncheckitem:hover {

    background: #f7f7f7;
}


/* =========================================================
   CHECKED
========================================================= */

.initemvaluefilterinattribute .checkeditem {

    position: relative;

    display: flex;
    align-items: flex-start;

    width: 100%;

    min-height: 29px;

    padding: 5px 5px;

    margin: 1px 0;

    border: 1px solid #ffd1d5;

    border-radius: 5px;

    background: #fff5f6;

    color: #d70018;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.45;

    cursor: pointer;

    box-sizing: border-box;
}


.initemvaluefilterinattribute .checkeditem::before {

    content: "";

    flex: 0 0 16px;

    width: 16px;
    height: 16px;

    margin-top: 1px;
    margin-right: 7px;

    border: 1px solid #d70018;

    border-radius: 4px;

    background: #d70018;

    box-sizing: border-box;
}


.initemvaluefilterinattribute .checkeditem::after {

    content: "✓";

    position: absolute;

    left: 5px;
    top: 5px;

    width: 16px;
    height: 16px;

    color: #fff;

    font-size: 12px;
    font-weight: 700;

    line-height: 16px;

    text-align: center;
}


/* =========================================================
   IMAGE VALUE
========================================================= */

.initemvaluefilterinattribute .uncheckitem,
.initemvaluefilterinattribute .checkeditem {
    display: flex;
    align-items: center;

    min-height: 32px;

    padding: 4px 6px;

    box-sizing: border-box;
}


.initemvaluefilterinattribute img {
    display: block;

    width: 60px;
    height: 24px;

    object-fit: contain;
    object-position: center;

    flex-shrink: 0;
}