/* 
    *=======================================
    *global css
    */
.custom-product-detail {
    font-family: SHPBurmese, SHPKhmer, "Helvetica Neue", Helvetica, Arial, 文泉驛正黑, "WenQuanYi Zen Hei", "Hiragino Sans GB", "儷黑 Pro", "LiHei Pro", "Heiti TC", 微軟正黑體, "Microsoft JhengHei UI", "Microsoft JhengHei", sans-serif !important;
    line-height: 1.2;
    font-size: .875rem;
    text-size-adjust: none;
    color: rgba(0, 0, 0, 0.8);
}

body,
button,
input,
select,
optgroup,
textarea {
    color: #596172;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* =============================================================================
    BREADCRUMB POST CUSTOMIZATIONS
    ========================================================================== */
.custom-woo-breadcrums {
    margin: 1.25rem 0px !important;
    background-color: #f5f5f5;
}

.custom-woo-breadcrums a {
    color: #05a !important;
}

.custom-woo-breadcrums {
    color: #767676 !important;
}

.custom-woo-breadcrums a:hover {
    text-decoration: underline !important;
}

/*========================================= 
        CUSTOM SINGLE CONTENT PRODUCT (PRODUCT DETAIL)
    */
.content-single-product-sec {
    background-color: #fafafa;
}

.card {
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .05);
}

.woocommerce div.product {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/*================= 
gallery trong content single product
 */
.woocommerce-product-gallery {
    position: relative;
}

.woocommerce div.product div.images .flex-control-nav {
    display: flex;
    overflow: hidden;
    position: relative;
    list-style: none;
    margin: 10px 0px;
    justify-content: center;
}

.woocommerce div.product div.images .flex-control-nav li {
    flex: 0 0 auto;
    margin-right: 5px;
}

.woocommerce div.product div.images .flex-control-nav li:nth-child(n + 5) {
    display: none;
}

.woocommerce div.product div.images .flex-control-nav:after {
    content: "";
    display: block;
    flex: 0 0 30px;
    /* Width of the navigation buttons */
}

.woocommerce .flex-viewport {
    width: 100%;
}

.woocommerce div.product div.images .flex-control-nav:before {
    content: "";
    display: block;
    flex: 0 0 30px;
    /* Width of the navigation buttons */
}

/* ==========================
phần popup khi nhấn vào thumnail hiển thị */
/* === Popup ảnh lớn === */
.mantop-gallery-popup {
    display: none;
    /* Ẩn mặc định */
    position: fixed;
    inset: 0;
    /* top:0; left:0; width:100%; height:100%; */
    background: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Khi active → hiển thị popup */
.mantop-gallery-popup.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* --- NÚT ĐÓNG --- */
.mantop-gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 42px;
    font-weight: 300;
    color: #fff;
    cursor: pointer;
    z-index: 100000;
    transition: color 0.25s ease;
}

.mantop-gallery-close:hover {
    color: #ff4c4c;
}

/* --- KHUNG CHÍNH CỦA POPUP --- */
.mantop-images-wrapper {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 12px;
    width: 60%;
    height: 80%;
    position: relative;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

/* --- CỘT THUMBNAIL BÊN TRÁI --- */
.mantop-images-thumn {
    background: #f6f6f6;
    padding: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    /* max-width: 90vw;
    max-height: 85vh; */
    width: 100%;
    height: 100%;
    justify-content: center;
}

.mantop-images-thumn img {
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    height: 100%;
    left: 0;
    object-fit: contain;
    object-position: center;
    /* position: absolute; */
    right: 0;
    /* width: 100%; */
    max-width: 100%;
    object-fit: contain;
}

.mantop-images-thumn img:hover {
    border-color: #000;
    transform: scale(1.03);
}

/* --- PHẦN HIỂN THỊ ẢNH LỚN --- */
.mantop-popup-images {
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    gap: 10px;
    align-content: center
}

.mantop-popup-images img:hover {
    border: 2px solid red;
}

.mantop-popup-images .swap-active {
    border: 2px solid red;
}

.mantop-popup-images img {
    max-width: 30%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;

}

/* --- HIDDEN TRÊN MOBILE --- */
@media (max-width: 768px) {
    .mantop-gallery-popup {
        display: none !important;
    }
}

#content div.product div.images,
.woocommerce div.product div.images,
.woocommerce-page #content div.product div.images,
.woocommerce-page div.product div.images {
    padding: 15px;
    width: 450px;
} 
.woocommerce #content div.product div.summary,
.woocommerce div.product div.summary,
.woocommerce-page #content div.product div.summary,
.woocommerce-page div.product div.summary {
    width: 60%;
}

.mantop-product-main {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
    /* quan trọng để responsive không vỡ */
}

/* Giữ breadcrumb ở đầu, chiếm nguyên hàng */
.mantop-product-main>.woocommerce-breadcrumb {
    align-self: flex-start;
    /* bám lên đầu container */
    flex: 0 0 100%;
    /* chiếm trọn 1 dòng */
    width: 100%;
    margin-bottom: 1rem;
    /* khoảng cách dưới breadcrumb */
}

.custom-woo-sumary {
    margin-top: 0;
    padding: 15px;
    box-sizing: border-box;
    /* padding: 20px 35px 0 20px; */

    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
}

.custom-woo-sumary .product_title {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    margin: inherit;
    vertical-align: middle;
    font-family: SHPBurmese, SHPKhmer, "Helvetica Neue", Helvetica, Arial, 文泉驛正黑, "WenQuanYi Zen Hei", "Hiragino Sans GB", "儷黑 Pro", "LiHei Pro", "Heiti TC", 微軟正黑體, "Microsoft JhengHei UI", "Microsoft JhengHei", sans-serif;

}

/* =============================
hiển thị lượt rating trong content single product dưới title*/
.rate-custom-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: .625rem;
    min-height: 1.rem;

    color: #222;
    font-size: 1rem;
    margin-right: 5px;
    cursor: pointer;
}

a,
.coblog-search .search-button:hover,
.coblog-header-four .coblog-logo-branding,
.coblog-header-four .coblog-social-icon span,
.coblog-entry-header .coblog-post-grid-category a,
.coblog-entry-header .coblog-post-grid-category a:hover,
.coblog-entry-meta span a:hover,
.coblog-post-single .nav-links>div a:hover,
.widget_categories ul li a:hover,
.widget_recent_entries ul li a:hover,
.widget_recent_comments ul li a:hover,
.widget_pages ul li a:hover,
.widget_meta ul li a:hover,
.widget_archive ul li a:hover,
.widget_nav_menu ul li a:hover,
.coblog-blog-widget-title a:hover,
.coblog-footer-menu li a:hover,
#coblog-header-trigger:hover,
.coblog-offcanvas-menu ul li a:hover,
.coblog-social-icon ul li a:hover,
.coblog-header-one .coblog-social-icon ul li a:hover,
.coblog-offcanvas-header .coblog-trigger:hover,
.coblog-trigger-bottom:hover,
.click-open-btn:hover,
.woocommerce-widget-layered-nav-list li a:hover,
.woocommerce ul.products li.product .woocommerce-loop-product__title:hover,
.woocommerce div.product form.cart .group_table td.woocommerce-grouped-product-list-item__label a:hover,
.woocommerce div.product .product_meta>span a:hover,
.woocommerce table.shop_table td.product-name a:hover,
.widget_product_categories ul li a:hover,
.woocommerce ul.cart_list li a:hover,
.woocommerce ul.product_list_widget li a:hover,
.woocommerce .star-rating span::before,
.coblog-search-user-cart .coblog-user a:hover {
    color: rgb(255, 183, 32, 1);
}
.woocommerce .shop-products   ul.variations>li {
    margin: 2px 0px !important;
    width: 100%;
}

.woocommerce .shop-products  ul.products li.product, .woocommerce-page ul.products li.product{
    min-height: 20%;
}
.woocommerce .shop-products .archive-variable-items{
    margin: 0;
}

.stars {
    padding-left: 5px;
    padding-bottom: 2px;
}

.rating-count span,
.star-average,
.custom-sale-count span {
    padding-bottom: 2px;
    border-bottom: 1px solid black;

}

.star-wrap {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    padding-right: 15px;
}

.rating-count {
    padding: 0px 15px
}

.custom-sale-count {
    padding-left: 15px;
}


.star-wrap,
.rating-count {
    border-right: 1px solid rgba(0, 0, 0, .14);
    ;
}

/*========================================= 
price trong content single product */
.woocommerce div.product p.price {
    background: #fafafa;
    padding: 20px 15px;
    margin: 0;
    font-weight: 500;
    margin-top: 10px;
    color: #ee4d2d;
    font-size: 24px;
    margin-right: 15px;
}

.woocommerce div.product form.cart .content-single-product-button {
    background: rgba(255, 87, 34, .1);
    color: #ee4d2d;
    border: 1px solid #ee4d2d;
}

/*======================= 
buy now button trong content single product */
.woocommerce div.product form.cart .buy-now {
    font-size: 13px;
    padding: 12px 25px;
    margin: 0px 10px;
}

/* =====================
    phần voucher trong content single product

    */
.KIoPj6 {
    align-items: center;
    color: #222;
    margin-bottom: 25px;
    margin-left: -4px;
    margin-top: -4px;
    padding: 4px;
}

.jJ5NSQ {
    align-items: center;
    display: flex;
}

.mini-vouchers {
    width: 100%;
}

.mini-vouchers__label {
    color: #757575;
    flex-shrink: 0;
    font-size: .9rem;
    font-weight: 400;
    margin: 0;
    text-transform: capitalize;
    width: 110px;
    line-height: 1.2;
}

.mini-vouchers__wrapper {
    height: 1.375rem;
    min-width: calc(100% - 245px);
}

.mini-vouchers__vouchers {
    display: flex;
    flex-shrink: 1;
    overflow: hidden;
    position: relative;
}

.mini-voucher-with-popover {
    position: relative;
    display: inline-block;
    margin: 0 10px;
    cursor: pointer;
}

/* Giao diện cơ bản cho vùng chứa mã giảm giá */
.mini-vouchers__wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Các mã giảm giá cơ bản */
.mini-voucher-with-popover {
    font-size: 14px;
    color: #333;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 5px;
    display: inline-block;
    text-align: center;
    background-color: #f9f9f9;
}

.novis-popper.voucher-popover-dropdown {
    display: none;
    position: absolute;
    top: 110%;
    left: 10%;
    transform: translateX(-50%);
    /* width: 400px; */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    padding: 10px;
    z-index: 1000;
    overflow-y: auto;
    max-height: 200px;
    overflow-x: auto;
}

/* Hiển thị tooltip khi hover */
.mini-vouchers__wrapper:hover .novis-popper {
    display: block;
}

.save-coupon-button {
    background: #f23e14;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: .8rem;
    margin-top: 5px;
}

.flex-auto {
    flex: 1 1 auto;
}

.mini-voucher-with-popover {
    margin-right: .625rem;
    position: relative;
}

.o3ut9x,
.theme--ofs .o3ut9x {
    background: rgba(208, 1, 27, .08);
}

.o3ut9x {
    align-items: center;
    border: 0;
    color: #ee4d2d;
    cursor: default;
    display: flex;
    justify-content: center;
    max-width: 100%;
    padding: 3px 7px;
    position: relative;
    white-space: nowrap;
    z-index: 1;
    text-transform: capitalize;
}

.o3ut9x:before {
    left: -3px;
}

.o3ut9x:after,
.o3ut9x:before {
    background-image: radial-gradient(#fff 2px, transparent 0);
    background-position-x: -6px;
    background-size: 6px 6px;
    content: "";
    height: calc(100% - 5px);
    position: absolute;
    top: 2.5px;
    width: 6px;
}

.o3ut9x:after {
    right: -3px;
}

.o3ut9x:after,
.o3ut9x:before {
    background-image: radial-gradient(#fff 2px, transparent 0);
    background-position-x: -6px;
    background-size: 6px 6px;
    content: "";
    height: calc(100% - 5px);
    position: absolute;
    top: 2.5px;
    width: 6px;
}

.mini-voucher-with-popover .tooltip-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    white-space: nowrap;
}

.mini-voucher-with-popover:hover .tooltip-content {
    display: block;
}

.voucher-detail:before {
    left: -3px;
}

.voucher-detail {
    align-items: center;
    border: 0;
    color: #ee4d2d;
    cursor: default;
    display: flex;
    justify-content: space-between;
    max-width: 100%;
    padding: 3px 7px;
    position: relative;
    white-space: nowrap;
    z-index: 1;
}

.voucher-detail {
    background: rgba(208, 1, 27, .08);
}

.coupon-code {
    font-size: 1rem;
    color: black;
}

.voucher-des {
    color: #757575;
    flex-shrink: 0;
    font-size: .8rem;
    margin: 0;
}

.voucher-list {
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.voucher-detail:after,
.voucher-detail:before {
    background-image: radial-gradient(#fff 2px, transparent 0);
    background-position-x: -6px;
    background-size: 6px 6px;
    content: "";
    height: calc(100% - 5px);
    position: absolute;
    top: 2.5px;
    width: 6px;
}

.voucher-detail:before {
    left: -3px;
}

.voucher-detail:after {
    right: -3px;
}

.coupon-description {
    color: #555;
    font-size: .8rem;
}

.coupon-usage-limit {
    color: #555;
    font-size: .8rem;
}

.coupon-expiry-date {
    color: #555;
    font-size: .8rem;
}

.detail-left {
    margin-right: 15px;
}

.yjMlzR {
    align-items: center;
    color: #222;
    display: flex;
    margin-bottom: 25px;
    margin-left: -4px;
    margin-top: -4px;
    padding: 4px;
}

.OGxzJN {
    align-items: center;
    color: #757575;
    flex-shrink: 0;
    font-size: .9rem;
    font-weight: 400;
    margin: 0;
    text-transform: capitalize;
    width: 110px;
    line-height: 1.2;
}

.o8k8S4 {
    align-items: center;
    color: #555;
    display: flex;
}

.ikrz0A {
    height: 16px;
    margin-right: 5px;
    width: 16px;
}

.Q8e31z {
    margin-right: 12px;
    font-size: .9rem;
}

.w8_Dsz {
    color: rgba(0, 0, 0, .54);
    margin-right: 10px;
    font-size: .9rem;
}

.shopee-drawer {
    display: flex;
    outline: 0;
    overflow: visible;
    position: relative;
}

.gdYMVU {
    height: 14px;
    width: 14px;
}

.product-info-wrapper {
    padding: 0px 20px;
}

.mini-vouchers,
.policy-sec {
    margin: 25px 0px;
}

/* phần varition product */
.product-variation-sec {}

.woocommerce div.product form.cart .variations label {
    align-items: center;
    color: #757575;
    flex-shrink: 0;
    font-size: .9rem;
    font-weight: 400;
    margin: 0;
    text-transform: capitalize;
    width: 110px;
    line-height: 1.2;
    text-align: left;
}

span.woo-selected-variation-item-name {
    align-items: center;
    color: #ff6845;
    flex-shrink: 0;
    font-size: .9rem;
    font-weight: 400;
}

.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item .variable-item-span {
    padding: 0 5px;
    color: black;
    font-size: .9rem;
    text-transform: capitalize;
    line-height: 1.2;
}

.reset_variations {
    color: #ff6845;
}

.woocommerce-variation.single_variation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    color: #f23e14;
    font-size: 30px;
    font-weight: 500;
}

.woocommerce div.product p.stock {
    color: #757575;
    margin: 0;
    font-size: .92em;
}



.woocommerce-variation-availability {
    margin-left: 20px;
    font-size: 18px;
}

.woocommerce div.product form.cart div.quantity-row {
    align-items: center;
    margin-bottom: 15px;
    display: flex;
}

.quantity-label {
    align-items: center;
    color: #757575;
    flex-shrink: 0;
    font-size: .9rem;
    font-weight: 400;
    margin: 0;
    text-transform: capitalize;
    width: 110px;
}

.woocommerce div.product form.cart div.quantity {
    float: none;
    margin: 0 4px 0 0;
}

/* ===============================
phần mô tả, chi tiết sản phẩm trong content single product
*/
.detail-custom-section {
    padding: .875rem;
    margin: 10px;
    background: #fff;
    border-radius: .125rem;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .05);
    margin-top: .9375rem;
    overflow: hidden;
}

.detail-custom-section>h2 {
    background: rgba(0, 0, 0, .02);
    color: rgba(0, 0, 0, .87);
    font-size: 1.125rem;
    font-weight: 400;
    margin: 0;
    padding: .875rem;
    text-transform: uppercase;
}

.sec-content-wrap {
    margin: 1.875rem .9375rem .9375rem;
    font-family: 'Roboto', sans-serif;
}

.woocommerce table.shop_attributes td {
    font-style: normal;
}

.description-section .sec-content-wrap,
.additional-info-section .sec-content-wrap {
    font-size: 18px;
}

/* nút xem thêm trong phần mô tả content single product */
.description-section {
    position: relative;
}

.description-section .sec-content-wrap {
    max-height: 300px;
    /* chiều cao ban đầu */
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

.description-section .fade-bottom {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 100%);
    pointer-events: none;
}

/* --- Nút kiểu "vạch ngang hai bên" --- */
.description-section .read-more-btn-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    cursor: pointer;
    color: #666;
    font-weight: 600;
    margin-top: 20px;
    user-select: none;
    transition: color 0.3s ease;
    margin-bottom: 20px;
}

.description-section .read-more-btn-wrap::before,
.description-section .read-more-btn-wrap::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease;
}

.description-section .read-more-btn-wrap:hover {
    color: black;
    background-color: white;
}

.description-section .read-more-btn-wrap:hover::before,
.description-section .read-more-btn-wrap:hover::after {
    background: rgba(0, 113, 161, 0.3);
}

.description-section .readmore-button {
    background-color: orange;
    color: black;
    border: 1px solid black;
    border-radius: 20px;
    cursor: pointer;
    padding: 5px 12px;
    font-size: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.description-section .readmore-button:hover {
    color: black;
    border: 1px solid black;
    cursor: pointer;
}

.woocommerce-page img.morebut-icon {
    height: 20px;
}

.rotate-180 {
    transform: rotate(180deg);
}

/*=======================================================
* PHẦN REVIEW CUSTOMIZTION TRONG CONTENT SINGLE PRODUCT
* XEM TRONG SINGLE-CONTENT-REVIEW
======================================================== 
*/
.review-list-show {
    padding-left: 1.875rem;
    ;
}

.reviews-section .sec-content-wrap {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.reviews-section .review-filter {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #fffbf8;
    border: 1px solid #f9ede5;
    border-radius: 2px;
    box-sizing: border-box;
    display: flex;
    margin-bottom: 1rem;
    min-height: 5rem;
    padding: 1.875rem;
}

.product-rating-overview__briefing {
    /* width: 20%; */
    margin-right: 1.875rem;
    text-align: center;
}

.product-rating-overview__score-wrapper {
    color: #ee4d2d;
    font-size: 1.775rem;
    padding-bottom: 10px;
}

.shopee-rating-stars .stars {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: red;
}

.woocommerce .star-rating span::before {
    color: #ffb91d;
}

.filter-board {
    display: flex;
    flex-direction: row;
    gap: 20px;

}

.fil-but {
    padding: 5px 10px;
    border-radius: 5px;
    background-color: white;
    color: black;
    font-size: 18px;
    border: 1px solid black;
    cursor: pointer;
}

.fil-but:hover {
    color: red;
    border: solid 1px red;
}

.review-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start
}

.review-wrapper .avartar {
    margin-left: 10px;
    margin-right: 10px;
    border: 0;
    height: 2.5rem;
    width: 2.5rem;
    overflow: hidden;
}

.review-wrapper .avartar img {
    border-radius: 50%;
    height: auto;
    max-width: 100%;
}

.review-wrapper .review-infor {
    color: rgba(0, 0, 0, .87);
    font-size: .75rem;
    -webkit-text-decoration: none;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.review-infor .author-name {
    margin-bottom: 10px;
}

/* .woocommerce .star-rating {
    float: left;
} */

.review-sec .review-content {
    margin-top: 0;
}

.recent-timedate {
    color: rgba(0, 0, 0, .54);
    font-size: .75rem;
    margin-bottom: .9375rem;
    margin-top: .25rem;
}

.review-content {
    position: relative;
    box-sizing: border-box;
    margin: 15px 0px;
    font-size: 14px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.87);
    word-break: break-word;
    white-space: normal;
}

.woocommerce .fil-but--active {
    background: #ff5722;
    color: #fff;
}

/**======================================
Trang sản phẩm
domain/san-pham
*========================================
*/
.woocommerce .custom-mantop-shop ul.products li.product a img {
    border-radius: 10px;
}
.custom-mantop-shop .woocommerce-ordering-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
      align-items: center;

}
.woocommerce .custom-mantop-shop ul.products li.product a img{
    margin: 0;
}
.woocommerce .shop-products .custom-mantop-shop ul.products li.product, .woocommerce-page ul.products li.product{
    margin: 10px 10px;
}
.woocommerce .custom-mantop-shop ul.products li.product .woocommerce-loop-product__title{
    font-size: 15px;
  /* overflow-x: hidden; */
  line-height: 16px;  
    /* white-space: nowrap; */
}
.woocommerce-page .custom-mantop-shop ul.products li.product, .woocommerce .custom-mantop-shop ul.products li.product
 {
    text-align: start;
 }

/* Giữ chỗ cho sao dù không có */
.woocommerce .custom-mantop-shop .rating-wrap {
  min-height: 20px; /* chiều cao của 1 dòng sao */
}
.custom-mantop-shop .price-wrap{
    color: #000;
}
.custom-mantop-shop .wvs-archive-variations-wrapper{
    margin: 0;
    padding: 0;
}
.woo-variation-swatches .custom-mantop-shop .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item, 
.woo-variation-swatches .custom-mantop-shop .variable-items-wrapper .variable-item:not(.radio-variable-item).image-variable-item
{
    margin: 2px 4px   ;
}
.woocommerce .custom-mantop-shop .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
    margin: 0;
    padding: 5px 5px;
    border-radius: 5px;
    border-color: #f2f2f2;
}
.woocommerce .custom-mantop-shop ul.products li.product .price {
    margin: 0;
}
.woocommerce .custom-mantop-shop .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering select {
    padding: 5px 5px;
    border-radius: 10px;
}

.custom-mantop-shop .orderby-label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    font-size: 14px;
    opacity: .4;
}

/* hiển thị voucher trong product loop */
 .archive-voucher-container {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    overflow: hidden;
    text-transform: capitalize;
    gap: 5px;
    color: black;
    justify-content: center;
    margin-bottom: 10px;
}

.archive-voucher-wrap {
    display: flex;
    flex-direction: row;
}

.archive-voucher {
    border: 1px solid red;
    cursor: pointer;
    font-size: 10px;
    color: red;
    border-radius: 5px;
    padding: 2px 4px;
}


/* css cho shop-page và yith filter */
.custom-mantop-shop .shop-layout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.custom-mantop-shop .yith-wcan-filters .yith-wcan-filter .filter-title {
    font-size: 18px;
    margin: 5px 0;
}

.custom-mantop-shop .filter-head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.custom-mantop-shop .filter-head h3 {
    margin: 0;
}

.custom-mantop-shop .clear-filters-text {
    color: black;
}

.custom-mantop-shop .clear-filters-text:hover {
    color: blue;
    text-decoration: underline;
}

.custom-mantop-shop .shop-products {
    padding: 15px;
}

.custom-mantop-shop .shop-filter {
    background: #f5f5f5;
    padding: 15px;
    width: 20%;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-radius: 10px;
}

.custom-mantop-shop .term-color {
    border: 1px solid #000 !important;
}

.custom-mantop-shop .filter-close-mobile {
    display: none;
}

.yith-wcan-filters {
    background: #f5f5f5;
    margin: 0;
}

.yith-wcan-filters .yith-wcan-filter .filter-title {
    color: #a3a3a3;
}

.shop-products {
    flex: 1;
    min-width: 0;
}

.woocommerce-page .woocommerce-ordering select {
    border: 1px solid black;
}

/* === Mobile filter Sidebar === */
.custom-mantop-shop .filter-toggle-mobile {
    display: none;
    /* margin-bottom: 15px; */
    background: white;
    color: #a3a3a3;
    padding: 5px 10px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid black;
    font-size: 13px;
    margin: 0px 5px;
}

.custom-mantop-shop .filter-toggle-mobile:hover {
    border: 1px solid hsl(233 68% 48%);
}

.custom-mantop-shop .filter-toggle-mobile.active {
    border: 1px solid hsl(233 68% 48%);
    color: hsl(233 68% 48%);

}

.custom-mantop-shop .filter-condition-count {
    padding: 5px;
    border-radius: 50%;
    background-color: #e5e8fa;
}
.custom-mantop-shop .woo-variation-swatches-variable-item-more a{
    color:black
}

@media (min-width:993px) {
    .custom-mantop-shop .shop-products {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .custom-mantop-shop .shop-products {
        width: 100%;
    }

    .custom-mantop-shop .shop-layout {
        flex-direction: column;
    }

    .custom-mantop-shop .woocommerce-result-count,
    .orderby-label {
        display: none !important;
    }

    .custom-mantop-shop .woocommerce-ordering-wrapper {
        display: flex;
        align-items: center;
        gap: 8px;
        /* khoảng cách giữa label và form */
        flex-wrap: wrap;
        /* giúp xuống hàng nếu quá hẹp */
        justify-content: space-between;
    }

    .custom-mantop-shop .filter-toggle-mobile {
        display: inline-block;
    }

    .custom-mantop-shop .shop-filter {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        /* background: #fff; */
        overflow-y: auto;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease;
        z-index: 2000;
    }

    .custom-mantop-shop .shop-filter.open {
        left: 0;
    }

    .custom-mantop-shop .filter-close-mobile {
        display: none;
        font-size: 24px;
        background: none;
        border: none;
        margin-bottom: 10px;
        cursor: pointer;
    }

    .custom-mantop-shop #filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1500;
    }

    .custom-mantop-shop #filter-overlay.show {
        display: block;
    }
}

/* ================================================
|*PHẦN CUSTOMIZE CHO CONTENT PRODUCT  shortcode
*HIỂN THỊ DANH SÁCH SẢN PHẨM TRONG HOME PAGE
*===============================================
*/
.custom-grid-products {
    display: grid;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}
.products{
    margin: 0;
    padding: 0;
}
.custom-product-list-item{
     list-style: none;
}
.mantop-tab-content .custom-grid-products {
    gap: .75rem;
}

.custom-grid-products li {
    box-sizing: border-box;
}

.custom-product-list-item .product-inner {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    align-items: center;
    border: 1px solid #EEEEEE;
}

.product-inner:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Ảnh sản phẩm */
.custom-product-list-item .product-thumbnail {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    width: 100%;
    height: auto;
}

.custom-product-list-item .product-thumbnail a {
 
    overflow: hidden;
}

.custom-product-list-item .product-thumbnail img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    /* Tăng độ sắc nét */
    image-rendering: crisp-edges;
}

.custom-product-list-item .product-inner:hover .product-thumbnail img {
    transform: scale(1.1);
}

.custom-product-list-item .product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}

.custom-product-list-item .product-badges .badge {
    background-color: red;
    padding: 2px 8px;
    border-radius: 10px;
    color: #fff;
    font-size: 10px;
    text-align: center;

}

.custom-product-list-item .product-rating {
    display: flex;
    flex-direction: row;

}

.custom-product-list-item .yellow-star {
    color: #FFA800;
}

.custom-product-list-item .mantop-star-rating {
    color: black;
}

.custom-product-list-item .product-info {
    display: flex;
    align-items: flex-start;
    width: 100%;
    flex-direction: column;
    padding-left: 10px;
}

.custom-product-list-item .product-rating,
.product-title,
.product-price {
    line-height: 16px;
}

.custom-product-list-item .product-title,
.product-price {
    font-size: 1rem;
}
.custom-product-list-item .product-price{
    padding-bottom:10px ;
}

.custom-product-list-item.product-title {
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.custom-product-list-item.product-price {
    padding-bottom: 10px;
}

.custom-product-list-item .product-title a {
    color: black;
}

.custom-product-list-item .product-price del {
    color: red;
}

.custom-product-list-item .product-price ins {
    background: none;
}

.custom-product-list-item .sale-price {
    color: #9695A0;
    background: none;
    /* margin-left: 10px; */
}

.custom-product-list-item .regular-price {
    margin-left: 10px;
    font-size: 12px;

}

.custom-product-list-item .wvs-archive-variations-wrapper {
    padding-left: 10px;
}

 .woo-variation-swatches .custom-product-list-item ul.variations>li {
    margin: 2px 0px;
    width: 100%;
}

.custom-product-list-item .addition-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px 10px;
    font-size: 13px;
    padding-top: .4rem;
}

.addition-info .produc-sold {
    color: rgba(0, 0, 0, .87);
}

.custom-product-list-item {
    width: 100%;
}
.custom-grid-products .woo-variation-swatches-variable-item-more a{
    color:black
}