﻿/*v26*/
/* ==========================================================================
   LỚP GRID GỐC: Chỉ quản lý việc hiển thị cột và hàng mặc định
   ========================================================================== */
.homeproduct .product-list {
    display: grid !important;
    /* Tự động nhận số hàng từ backend cấp qua biến --product-grid-rows */
    grid-template-rows: repeat(var(--product-grid-rows, 2), auto) !important;
    gap: 5px !important;
    width: 100% !important;
}

/* Hiển thị trên màn hình DESKTOP (Từ 768px trở lên) */
@media (min-width: 768px) {
    .homeproduct .product-list {
        /* Tự động chia cột dựa trên biến --product-grid-columns */
        grid-template-columns: repeat(var(--product-grid-columns, 6), 1fr) !important;
    }
}

/* Hiển thị trên màn hình MOBILE (Dưới 767px) */
@media (max-width: 767px) {
    .homeproduct .product-list {
        /* Mặc định bẻ dòng đi dọc xuống và chia làm 2 cột cố định trên mobile */
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
/* Khung bọc ngoài định vị nút điều hướng mũi tên */
.product-carousel {
    position: relative !important;
    width: 100% !important;
}

    /* LỚP CHỈ CHỊU TRÁCH NHIỆM SCROLL (Không can thiệp cấu trúc grid dòng) */
    .product-carousel .carousel-grid {
        /* Ép luồng Grid đi ngang sang phải (Bỏ qua thuộc tính bẻ dòng dọc của grid-template-columns) */
        grid-auto-flow: column !important;
        grid-template-columns: none !important;
        /* Bật tính năng trượt và bắt dính (snap) */
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important; /* Vuốt mượt trên iOS */
    }

        /* Khử thanh scrollbar xấu xí của hệ thống trên mọi trình duyệt */
        .product-carousel .carousel-grid::-webkit-scrollbar {
            display: none !important;
        }

    .product-carousel .carousel-grid {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

        /* Ép các card sản phẩm con bắt dính lề khi dừng trượt và giữ nguyên tỷ lệ */
        .product-carousel .carousel-grid .card {
            scroll-snap-align: start !important;
            flex-shrink: 0 !important;
            margin-bottom: 0 !important; /* Xóa margin dọc chống lệch hàng Grid */
        }

    /* --- TÍNH TOÁN ĐỘ RỘNG SẢN PHẨM KHI ĐANG TRƯỢT CAROUSEL --- */
    /* Style cho 2 nút bấm điều hướng */
    .product-carousel .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 50%;
        cursor: pointer;
        z-index: 5;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
    }

    .product-carousel .carousel-btn--prev {
        left: -10px;
    }

    .product-carousel .carousel-btn--next {
        right: -10px;
    }
/* Màn hình DESKTOP: Item tự thu nhỏ/phóng to vừa khít theo số cột cấu hình */
@media (min-width: 768px) {
    .product-carousel .carousel-grid {
        grid-auto-columns: calc(100% / var(--product-grid-columns, 6) - (5px * (var(--product-grid-columns, 6) - 1) / var(--product-grid-columns, 6))) !important;
    }
}

/* Màn hình MOBILE: Item tự động co giãn hiển thị đúng 2 sản phẩm trên 1 hàng ngang */
@media (max-width: 767px) {
    .homeproduct .product-list,
    .product-carousel .carousel-grid {
        display: grid !important;
        /* Nhận cấu hình số hàng từ backend (1 hoặc 2 hàng) */
        grid-template-rows: repeat(var(--product-grid-rows, 2), auto) !important;
        gap: 8px !important;
        /* Ép luồng Grid chảy theo chiều ngang sang phải */
        grid-auto-flow: column !important;
        grid-template-columns: none !important;
        /* Chia độ rộng hiển thị đúng 2 sản phẩm trên 1 hàng ngang (item thứ 3 tràn viền) */
        grid-auto-columns: calc(50% - 4px) !important;
        /* Kích hoạt tính năng trượt và bắt dính mượt mà */
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .product-carousel .carousel-btn {
        display: none !important; /* Ẩn nút điều hướng vật lý trên mobile */
    }
}

.home-search-trend {
    background: #fff;
    width: 100%;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
}

    .home-search-trend .wgi-name {
        font-size: 24px;
        font-weight: bold;
        display: block !important;
    }

    .home-search-trend ul {
        display: flex;
        flex-wrap: wrap;
    }

        .home-search-trend ul li {
            display: block;
            width: fit-content;
            background: #f2f4f7;
            border-radius: 16px;
            padding: 2px 8px;
            margin: 10px 8px 0 0;
        }

            .home-search-trend ul li a {
                display: block;
                color: #1d2939;
            }

@media (max-width: 767px) {
    .home-search-trend {
        padding: 15px 10px;
    }

        .home-search-trend .wgi-name {
            font-size: 20px;
        }

        .home-search-trend ul {
            display: grid;
            /* Tự động tạo thêm cột vô hạn về bên phải khi có item mới */
            grid-auto-flow: column;
            /* Định nghĩa chính xác 5 hàng với chiều cao tự động co giãn theo nội dung (hoặc fixed tùy bạn) */
            grid-template-rows: repeat(4, auto);
            overflow-x: auto;
            overflow-y: hidden;
            /* Giữ nguyên gap nếu bạn đã có, hoặc khai báo ở đây để kiểm soát khoảng cách */
            gap: 0;
            margin-bottom: 0;
        }

            .home-search-trend ul li {
                white-space: nowrap; /* Giữ chữ trên 1 dòng */
                width: max-content; /* Ép chiều rộng li vừa khít với độ dài của chữ */
            }
}
/* Khung chứa countdown định vị top-right */
[class*="homeproduct-countdown-"] {
    position: absolute;
    z-index: 10;
    --countdown-size: 16px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    top: 15px;
    right: 55px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 10px;
}

/* Chữ tiêu đề nhỏ phía trên (nếu cần) */
.countdown-label {
    font-size: calc(var(--countdown-size) * 1.3);
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    text-align: center;
}

/* Khung bọc các con số */
.countdown-timer {
    font-size: var(--countdown-size);
    font-weight: 700;
    display: flex;
    gap: 2px;
    line-height: 35px;
}

/* Định dạng các ô số (hh : mm : ss) */
.countdown-item {
    background: #fff;
    padding: 9px 12px;
    border-radius: 3px;
    min-width: 22px;
    text-align: center;
    display: inline-block;
    color: #333;
    font-weight: bold;
}

@media (max-width: 768px) {
    [class*="homeproduct-countdown-"] {
        padding: 0 0 0 0;
        top: 0;
        right: 0;
    }

    .countdown-label {
        font-size: 11px;
        margin-bottom: 0;
    }

    .countdown-timer {
        line-height: 18px;
    }

    .countdown-item {
        padding: 2px 4px;
        line-height: 18px;
        font-size: 12px;
    }
}
/* Đảm bảo tất cả các element tính toán kích thước bao gồm cả padding và border */
/* Đảm bảo tính toán kích thước chuẩn, bao gồm cả padding/border để không bị đẩy hàng */
.homeproduct.homeproductwgz-4 {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    float: left; /* Dự phòng cho các trình duyệt siêu cũ, giữ các box nằm cạnh nhau */
    margin-top: 10px;
}
    /* --- TỐI ƯU HÌNH ẢNH BÊN TRONG (Chống tụt điểm Google CLS) --- */
    .homeproduct.homeproductwgz-4 .banner-item img {
        border-radius: 8px 8px 0 0;
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .homeproduct.homeproductwgz-4 .product-list {
        gap: 0 !important;
    }

        .homeproduct.homeproductwgz-4 .product-list .card {
            border-radius: 0 0 5px 5px;
        }
/* --- CẤU HÌNH TRÊN DESKTOP (Mặc định) --- */
@media (min-width: 769px) {
    .homeproduct.homeproductwgz-4 {
        /* 3 box mỗi dòng: Mỗi box chiếm 1/3 (33.333%) trừ đi phần bù của gap 10px */
        width: calc((100% - (2 * 10px)) / 3);
        margin-left: 10px;
        margin-bottom: 10px;
    }
        /* Box thứ 3, 6, 9... (cuối dòng) thì bỏ margin-right để không bị đẩy xuống hàng */
        .homeproduct.homeproductwgz-4:nth-child(3n) {
            margin-left: 0 !important;
        }

        .homeproduct.homeproductwgz-4:nth-child(n+3) {
            margin-top: 0;
        }
}
/* --- CẤU HÌNH TRÊN MOBILE (Dưới 768px) --- */
@media (max-width: 768px) {
    .homeproduct.homeproductwgz-4 {
        /* 2 box mỗi dòng: Mỗi box chiếm 1/2 (50%) trừ đi phần bù của gap 6px */
        width: 100%;
        margin-bottom: 8px;
    }
        /* Box thứ 2, 4, 6... (cuối dòng trên mobile) thì bỏ margin-right */
        .homeproduct.homeproductwgz-4:nth-child(2n) {
            margin-left: 0 !important;
        }
        /* Reset lại rule của desktop để tránh xung đột */
        .homeproduct.homeproductwgz-4:nth-child(3n) {
            margin-left: 0;
        }

        .homeproduct.homeproductwgz-4:nth-child(6n) {
            margin-left: 0 !important;
        }

        .homeproduct.homeproductwgz-4:nth-child(n+2) {
            margin-top: 0;
        }
}

/* ==========================================================================
   CSS CHO TABS & PRODUCT COMPONENT
   ========================================================================== */
.home-promotion-tabs {
    background-color: #ff0000;
    padding: 0 0 0 0;
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
    display: inline-block;
    min-height: 845px;
}

@media (max-width: 768px) {
    /*aspect-ratio*/
    .home-promotion-tabs {
    }
}

.homeproduct.homeproductwgz-3 {
    padding: 0 10px 10px 10px;
    width: 100%;
}

    .homeproduct.homeproductwgz-3 .product-list {
        display: inline-grid;
        margin-top: 10px;
        width: 100%;
    }

.homeproduct .product-list .card {
    height: 385px;
    flex-grow: 1;
}

.homeproduct .product-list .product-addToCart {
    background-color: #C5232B !important;
    color: #fff !important;
    border-radius: 5px;
    display: block;
    width: fit-content;
    margin: 0 auto;
    text-align: center;
    padding: 3px 12px;
    text-decoration: none;
    margin-top: auto;
    margin-bottom: 5px;
    cursor: pointer;
}
/* ==========================================================================
   TỐI ƯU NAV TABS HÌNH ẢNH (ẨN TEXT - ĐỀU KHUNG - RESPONSIVE)
   ========================================================================== */
.home-promotion-nav-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 0 0;
    width: 100%;
    border-bottom: none; /* Bỏ border nếu tab dạng ảnh liền nhau */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
    /* Ẩn scrollbar của tabs trên mọi trình duyệt để giữ thẩm mỹ */
    .home-promotion-nav-tabs::-webkit-scrollbar {
        display: none;
    }

.home-promotion-nav-tabs {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
    /* Định dạng thẻ LI và A */
    .home-promotion-nav-tabs li {
        box-sizing: border-box;
        padding: 0 0; /* Khoảng cách nhỏ giữa các khung tab, có thể chỉnh lại thành 0 nếu muốn khít sát */
    }

        .home-promotion-nav-tabs li a {
            display: block;
            width: 100%;
            height: 0;
            padding-bottom: 60px;
            text-indent: -9999px;
            overflow: hidden;
            white-space: nowrap;
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
            cursor: pointer;
        }
            /* Hiệu ứng khi Hover hoặc Active */
            .home-promotion-nav-tabs li a:hover,
            .home-promotion-nav-tabs li.active a {
                opacity: 1;
            }
        /* Mặc định giảm nhẹ opacity của tab không active để làm nổi bật tab đang chọn */
        .home-promotion-nav-tabs li:not(.active) a {
            /*opacity: 0.85;*/
            opacity: 1;
        }
/* ==========================================================================
   MAPPING ẢNH NỀN THEO CLASS (Từ Tab01.png đến Tab10.png)
   ========================================================================== */
.home-promotion-nav-tab-0 {
    background-image: url('icon_tabs/Tab01.png');
}

.home-promotion-nav-tab-1 {
    background-image: url('icon_tabs/Tab02.png');
}

.home-promotion-nav-tab-2 {
    background-image: url('icon_tabs/Tab03.png');
}

.home-promotion-nav-tab-3 {
    background-image: url('icon_tabs/Tab04.png');
}

.home-promotion-nav-tab-4 {
    background-image: url('icon_tabs/Tab05.png');
}

.home-promotion-nav-tab-5 {
    background-image: url('icon_tabs/Tab06.png');
}

.home-promotion-nav-tab-6 {
    background-image: url('icon_tabs/Tab07.png');
}

.home-promotion-nav-tab-7 {
    background-image: url('icon_tabs/Tab08.png');
}

.home-promotion-nav-tab-8 {
    background-image: url('icon_tabs/Tab09.png');
}

.home-promotion-nav-tab-9 {
    background-image: url('icon_tabs/Tab10.png');
}
/* ==========================================================================
   CẤU HÌNH RESPONSIVE THEO THIẾT BỊ
   ========================================================================== */
/* 1. Bản DESKTOP (Màn hình lớn): Ép 8 hoặc 10 li nằm trọn trong 1 hàng không scroll */
@media (min-width: 992px) {
    .home-promotion-nav-tabs {
        overflow: hidden; /* Khóa hẳn scroll trên desktop */
    }
        /* Nếu có chính xác 8 nút */
        .home-promotion-nav-tabs li {
            flex: 0 0 12.5%; /* 100% / 8 = 12.5% */
            max-width: 12.5%;
        }
            /* Nếu có chính xác 10 nút (CSS sẽ tự ghi đè nếu danh sách đủ 10) */
            .home-promotion-nav-tabs li:first-child:nth-last-child(10),
            .home-promotion-nav-tabs li:first-child:nth-last-child(10) ~ li {
                flex: 0 0 10%; /* 100% / 10 = 10% */
                max-width: 10%;
            }
}
/* 2. Bản MOBILE (Màn hình nhỏ): Hiển thị đúng 4.5 li trên màn hình */
@media (max-width: 991px) {
    .home-promotion-nav-tabs li {
        /* 100vw / 4.5 = 22.22vw chiếc trên màn hình */
        flex: 0 0 28vw;
        max-width: 28vw;
    }

        .home-promotion-nav-tabs li a {
            padding-bottom: 45px;
        }
}
/* 2. Style ẩn/hiện Box sản phẩm */
.homeproduct.homeproductwgz-3 {
    display: none; /* Ẩn mặc định */
    position: relative;
}

    .homeproduct.homeproductwgz-3.active {
        display: block !important; /* Hiện box được active */
    }

    .homeproduct.homeproductwgz-3 .banner-list {
        display: inline-block;
        width: 100%;
    }

/*v26*/
.product-flashsale-26 {
    background-color: #000;
}
/* Container */
.product-list-cate {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 8px 10px;
    list-style: none;
    background: transparent;
    margin: 0 8px;
}
    /* HACK căn giữa khi ít item, nhưng không phá khi nhiều item */
    .product-list-cate::before,
    .product-list-cate::after {
        content: "";
        flex: 1 0 10px; /* filler để auto căn giữa khi ít item */
    }

    .product-list-cate > * {
        scroll-snap-align: start;
    }
    /* Mỗi item (li) */
    .product-list-cate li {
        flex: 0 0 auto; /* không co dãn, rộng bằng nội dung */
        display: unset;
    }
        /* Link bên trong item */
        .product-list-cate li a {
            display: inline-block;
            padding: 8px 12px;
            background: #fff; /* nền trắng mặc định */
            color: #333; /* chữ #333 */
            text-decoration: none;
            border-radius: 6px;
            white-space: nowrap; /* không break xuống dòng */
            font-size: 14px;
            line-height: 1;
            box-sizing: border-box;
            transition: background-color .12s, color .12s;
            border: 1px solid transparent; /* giữ kích thước khi đổi nền */
        }
            /* Hover / Focus (tuỳ chọn) */
            .product-list-cate li a:hover,
            .product-list-cate li a:focus {
                filter: brightness(.98);
                outline: none;
            }

            .product-list-cate li a.active {
                background: #C5232B; /* nền vàng */
                color: #fff; /* chữ trắng */
            }
    /* Nếu muốn ẩn scrollbar trên WebKit (tuỳ chọn) */
    .product-list-cate::-webkit-scrollbar {
        height: 8px;
    }

    .product-list-cate::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(0,0,0,0.12);
    }
/*product-1223*/
.product-1223 {
    /*margin-bottom: 0;
    border-radius: 0;
    padding: 0;*/
    border-radius: 10px;
    padding: 10px 10px 10px 10px;
    margin-bottom: 10px;
}

    .product-1223:empty {
    }
/*.product-1223:has(.product-list) {
        border-radius: 10px;
        padding: 10px 10px 10px 10px;
        margin-bottom: 10px;
    }*/


.product-1223-11 {
    background-color: #ea0009;
}

.product-1223-21 {
    background-color: #6fcbdc;
}

.product-1223-31 {
    background-color: #8bc540;
}

.product-1223-41 {
    background-color: #faaf3a;
}

.product-1223-51 {
    background-color: #0071bb;
}

.product-1223-61 {
    background-color: #00a89c;
}

.product-1223 .banner-item-link {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
}

    .product-1223 .banner-item-link a {
        padding: 10px 50px;
        border-radius: 2px;
        background-color: #fff;
        border: 1px solid #ccc;
        color: #333;
        margin-bottom: 10px;
        margin-top: 10px;
    }

.product-1223 .boxbanner-1223-1 {
    float: left;
    width: 50%;
    overflow: hidden;
}

.product-1223 .boxbanner-1223-2 {
    float: right;
    width: 50%;
    overflow: hidden;
}

    .product-1223 .boxbanner-1223-2 .banner-item {
        float: left;
        width: 50%;
        overflow: hidden;
    }

.product-1223 .boxbanner-1223-3 {
}

.product-1223 .product-list {
    padding: 10px 0 0 0;
    border-radius: 0 0 5px 5px;
}



    .product-1223 .product-list .card {
        float: left;
        width: calc(20% - 8px);
        max-width: unset !important;
        margin: 0 4px 8px !important;
        height: 425px;
    }

    .product-1223 .product-list .product-list-frame {
        width: 100%;
        height: 850px;
    }

        .product-1223 .product-list .product-list-frame .card {
            float: left;
            width: calc(20% - 8px);
            max-width: unset !important;
            margin: 0 4px 8px !important;
            height: 425px;
        }
    /*width: calc(25% - 8px);*/
    .product-1223 .product-list .owl-item .card {
        width: calc(100% - 8px);
    }

    .product-1223 .product-list .owl-item .product-list-frame .card {
        width: calc(20% - 8px);
    }

    .product-1223 .product-list .card .card-img-top {
    }

    .product-1223 .product-list .product-specialtype-box {
        margin-top: 5px;
    }

        .product-1223 .product-list .product-specialtype-box span {
            top: 33px;
        }

    .product-1223 .product-list .card .product-attributes {
    }

    .product-1223 .product-list .card .product-name {
        height: 42px;
    }

    .product-1223 .product-list .card .product-price {
    }

    .product-1223 .product-list .card .product-promotionshort {
        display: block;
    }

        .product-1223 .product-list .card .product-promotionshort a {
        }

@media (min-width : 769px) {
    .product-1223 .product-list {
        display: inline-block;
    }
}

@media (max-width : 768px) {
    .product-1223 {
        padding: 10px 5px;
    }

        .product-1223 .boxbanner-1223-1 {
            display: flex;
            float: none;
            display: block;
            width: 100%;
            overflow: hidden;
        }

            .product-1223 .boxbanner-1223-1 img {
                aspect-ratio: 261 / 100;
                object-fit: cover;
                height: auto;
            }

        .product-1223 .boxbanner-1223-2 {
            float: none;
            display: block;
            width: 100%;
            overflow: hidden;
        }

            .product-1223 .boxbanner-1223-2 .banner-item {
                float: left;
                width: 50%;
                overflow: hidden;
            }

            .product-1223 .boxbanner-1223-2 img {
                aspect-ratio: 130 / 100;
                object-fit: cover;
                height: auto;
            }

        .product-1223 .product-list {
            max-height: 360px !important;
        }

            .product-1223 .product-list .card {
                height: 360px !important;
                margin: 0 2px 8px !important;
                border-radius: 5px;
            }

            .product-1223 .product-list .owl-item .card {
                width: calc(100% - 4px);
            }

            .product-1223 .product-list.pList-olwMobile .card {
                margin-bottom: 0 !important;
            }

            .product-1223 .product-list .product-specialtype-box span {
                top: 15px;
            }

            .product-1223 .product-list .card .product-price {
                font-size: 18px;
            }

            .product-1223 .product-list.pList-olw-fr1 {
                white-space: nowrap;
                overflow-x: auto;
                overflow-y: hidden;
                max-height: unset !important;
            }

                .product-1223 .product-list.pList-olw-fr1 .product-list-frame {
                    float: none;
                    display: inline-block;
                    width: calc(100vw * 1.8);
                    max-height: 720px !important;
                    height: 720px;
                }

                    .product-1223 .product-list.pList-olw-fr1 .product-list-frame .card {
                        width: calc(20% - 8px);
                    }

                        .product-1223 .product-list.pList-olw-fr1 .product-list-frame .card .product-name {
                            white-space: pre-wrap;
                        }

        .product-1223 .banner-item-link a {
            padding-top: 4px;
            padding-bottom: 4px;
            margin-top: 7px;
            margin-bottom: 0;
        }
}
/*product-1223*/
/*Page BestSeller*/
/*display: inline-block;*/
.product-bestseller {
    width: 100%;
    display: block;
}

    .product-bestseller .product-list {
        max-height: 458px;
        background-color: #ea0009;
        padding: 4px;
        border-radius: 0 0 5px 5px;
    }

    .product-bestseller .boxbanner-4 img {
        width: 100%;
        height: auto;
    }

    .product-bestseller .product-list .card {
        float: left;
        width: calc(25% - 8px);
        max-width: unset !important;
        margin: 0 4px 8px !important;
        height: 430px;
    }
    /*width: calc(25% - 8px);*/
    .product-bestseller .product-list .owl-item .card {
        width: calc(100% - 8px);
    }

    .product-bestseller .product-list .card .card-img-top {
        height: 200px;
    }

    .product-bestseller .product-list .product-specialtype-box {
        margin-top: 5px;
    }

        .product-bestseller .product-list .product-specialtype-box span {
            top: 38px;
        }

    .product-bestseller .product-list .card .product-attributes {
        display: none;
    }

    .product-bestseller .product-list .card .product-name {
        height: 45px;
        font-weight: bold;
    }

    .product-bestseller .product-list .card .product-price {
        font-size: 24px;
    }

    .product-bestseller .product-list .card .product-promotionshort {
        display: none;
    }
/*Page BestSeller*/

.boxbanner-homeheadintro {
    margin-top: 20px;
    margin-bottom: 10px;
    position: relative;
    background-color: #e6e7e9;
    height: 35px;
    width: 100%;
}

    .boxbanner-homeheadintro p {
        position: absolute;
        top: -20px;
        left: 25%;
        border-radius: 5px;
        height: 40px;
        width: 50%;
        color: #fff;
        background-color: #ed1b24;
        font-size: 25px;
        font-weight: bold;
        text-transform: uppercase;
        text-align: center;
        line-height: 40px;
    }

.home-newsfeatured {
    margin-top: 10px;
    background-color: #fff;
    padding: 15px 15px;
    border-radius: 10px;
}

.wrapbox-pList .banner-list {
    margin-bottom: 10px;
}

.wrapbox-pList .banner-item img {
    border-radius: 10px;
}

@media (max-width : 768px) {

    .product-flashsale-25 .banner-item-1 {
        display: flex;
        width: 100%;
        aspect-ratio: 720 / 230;
        overflow: hidden;
        position: relative;
    }

    .home-newsfeatured {
        background-color: #fff;
        padding: 10px 10px;
        border-radius: 5px;
        margin: 10px 0 0 0;
    }
    /*padding: 6px 3px;*/
    .product-bestseller {
    }

        .product-bestseller .product-list {
            height: 378px;
        }

            .product-bestseller .product-list .card {
                width: calc(100% - 6px);
                max-width: unset !important;
                margin: 0 3px 8px !important;
                height: 370px !important;
            }

                .product-bestseller .product-list .card .card-img-top {
                    height: 165px;
                }

                .product-bestseller .product-list .card .product-name {
                    height: 40px;
                    font-weight: normal;
                }


                .product-bestseller .product-list .card .product-price {
                    font-size: 18px;
                }

    .boxbanner-homeheadintro p {
        width: 80%;
        font-size: 18px;
        left: 10%;
    }

    .boxbanner-15, .boxbanner-16 {
        white-space: nowrap;
        overflow-y: auto;
    }

        .boxbanner-15.owlRespon-3-30 .banner-item,
        .boxbanner-16.owlRespon-3-30 .banner-item {
            float: none;
            display: inline-block;
            width: 100%;
        }

    .mhome-menu {
        display: block !important;
        padding: 0 6px;
    }

        .mhome-menu > ul {
            display: flex;
            flex-wrap: wrap;
            margin-bottom: 0 !important;
        }

            .mhome-menu > ul > li {
                align-items: center;
                border: 1px solid #e0e0e0;
                border-radius: 4px;
                color: #333;
                display: flex;
                justify-content: center;
                min-height: 40px;
                margin: 0 0 6px 6px;
                padding: 3px 1px;
                text-align: center;
                width: calc(20% - 5px);
            }

                .mhome-menu > ul > li:nth-child(5n+1) {
                    margin-left: 0;
                }

                .mhome-menu > ul > li a {
                    color: #333;
                }

                    .mhome-menu > ul > li a * {
                        font-size: 12px !important;
                        line-height: 16px !important;
                    }

                    .mhome-menu > ul > li a br {
                    }

            .mhome-menu > ul > li {
                position: relative;
            }

                .mhome-menu > ul > li a span.hot:before {
                    content: "";
                    position: absolute;
                    left: 0;
                    top: 0;
                    border: 15px solid transparent;
                    border-top: 14px solid #e3007b;
                    border-left: 13px solid #e3007b;
                    border-top-left-radius: 4px;
                }

                .mhome-menu > ul > li a span.hot:after {
                    content: 'HOT';
                    display: block;
                    white-space: pre;
                    background-color: #e3007b;
                    position: absolute;
                    color: #fff;
                    left: 1px;
                    top: 3px;
                    font-size: 7px;
                    transform: rotate(-45deg);
                    text-align: center;
                    border-radius: 4px;
                    height: 12px;
                }

    .p-home.p-mobile .product-list.pList-olwMobile {
        white-space: nowrap;
        overflow-y: auto;
    }

        .p-home.p-mobile .product-list.pList-olwMobile .card {
            float: none;
            display: inline-block;
            width: 40%;
        }

            .p-home.p-mobile .product-list.pList-olwMobile .card .product-name {
                white-space: pre-wrap;
            }

    .p-home.p-mobile .product-list.pList-olw {
        white-space: nowrap;
        overflow-y: auto;
    }

        .p-home.p-mobile .product-list.pList-olw .card {
            float: none;
            display: inline-block;
            width: 40%;
        }

            .p-home.p-mobile .product-list.pList-olw .card .product-name {
                white-space: pre-wrap;
            }

    .p-home.p-mobile .wrapbox-loadProducts-1 .product-list {
        white-space: unset;
        overflow-y: unset;
    }

        .p-home.p-mobile .wrapbox-loadProducts-1 .product-list .card {
            float: left;
            display: inline-block;
            width: 33.33%;
            height: 365px;
        }

            .p-home.p-mobile .wrapbox-loadProducts-1 .product-list .card .product-brand {
                max-width: 50%;
            }

            .p-home.p-mobile .wrapbox-loadProducts-1 .product-list .card .product-name {
                line-height: 18px;
                height: 52px;
            }

            .p-home.p-mobile .wrapbox-loadProducts-1 .product-list .card .product-attributes {
            }

            .p-home.p-mobile .wrapbox-loadProducts-1 .product-list .card .product-price {
                margin-top: 0px !important;
                margin-bottom: 6px !important;
                font-size: 1.0rem;
            }

                .p-home.p-mobile .wrapbox-loadProducts-1 .product-list .card .product-price .product-price-saving {
                    margin-left: 2px;
                    padding: 0;
                }

            .p-home.p-mobile .wrapbox-loadProducts-1 .product-list .card .product-promotionshort-box {
                display: none !important;
            }

    .p-home.p-mobile .owlRespon-2 {
        white-space: nowrap;
        overflow-y: auto;
    }

        .p-home.p-mobile .owlRespon-2 .banner-item {
            float: none;
            display: inline-block;
            width: 50%;
        }

    .p-home.p-mobile .wrapbox-loadProducts .owlRespon-2 {
        white-space: nowrap;
        overflow-y: auto;
    }

        .p-home.p-mobile .wrapbox-loadProducts .owlRespon-2 .banner-item {
            float: none;
            display: inline-block;
            width: 100%;
        }

    .p-home.p-mobile .owlRespon-2-10 {
        white-space: nowrap;
        overflow-y: auto;
    }

        .p-home.p-mobile .owlRespon-2-10 .banner-item {
            float: none;
            display: inline-block;
            width: 100%;
        }

    .p-home.p-mobile .owlRespon-3 {
        white-space: nowrap;
        overflow-y: auto;
    }

        .p-home.p-mobile .owlRespon-3 .banner-item {
            float: none;
            display: inline-block;
            width: 100%;
        }

    .product-bestseller .product-list .product-specialtype-box span {
        top: 22px;
        font-size: 20px;
        right: 5px;
    }
}
