/*
===============================================================================
READ BEFORE ACTION - SAMCLO CSS RULES — QUY TẮC CHỈNH SỬA CSS
===============================================================================

1. FUNCTION GROUPS — PHÂN NHÓM CHỨC NĂNG
- Mọi CSS phải thuộc một nhóm chức năng đã có.
- Nếu chưa có nhóm phù hợp, tạo nhóm mới với:
  English Name — Tên tiếng Việt
  + mô tả ngắn chức năng.

2. CORRECT PLACEMENT — ĐẶT CSS ĐÚNG VỊ TRÍ
- CSS mới phải được đặt trong đúng nhóm chức năng của nó.
- Không được mặc định "chèn vào cuối file" nếu chức năng đã có nhóm riêng.

3. CHECK BEFORE FIX — KIỂM TRA TRƯỚC KHI SỬA
- Trước khi sửa, phải kiểm tra CSS hiện tại của chính chức năng đó
  để phát hiện selector hoặc rule bị chồng chéo (overlap/conflict).
- Nếu đã có CSS xử lý chức năng tương tự, sửa từ rule gốc thay vì
  đè bằng một rule mới.
- Chỉ thêm rule mới khi thực sự cần thiết.

4. CASCADE & RESPONSIVE — THỨ TỰ CSS & RESPONSIVE
- Khi sửa CSS phải kiểm tra ảnh hưởng của:
  + selector specificity
  + thứ tự xuất hiện của rule
  + !important
  + desktop/mobile media query
- Không sửa một breakpoint làm hỏng breakpoint khác.

5. CHANGE LOCATION — XÁC ĐỊNH VỊ TRÍ SỬA
- Khi sửa CSS, phải nói rõ:
  + Dòng nào đến dòng nào được sửa.
  + Selector/rule nào được thay đổi.
  + Nội dung thay đổi là gì.
- Chỉ cung cấp block CSS cần thay đổi để copy.
- Không trả lại toàn bộ file nếu người dùng không yêu cầu.

===============================================================================
*/




/*
==============================================================
 SAMCLO CUSTOM CSS — ORGANIZED MAP / BẢN ĐỒ CẤU TRÚC
--------------------------------------------------------------
 Mục đích: phân vùng code để dễ tìm và bảo trì.
 LƯU Ý: bản này KHÔNG xóa, KHÔNG gộp và KHÔNG thay đổi rule.
 Thứ tự rule gốc được giữ nguyên vì CSS phụ thuộc cascade.

 00. GLOBAL — Toàn website
 01. HEADER — Đầu trang
 02. NAVIGATION & MEGA MENU — Menu & Mega Menu
 03. CATEGORY & HOME — Danh mục & Trang chủ
 04. FOOTER — Chân trang
 05. PRODUCT LISTING — Danh sách sản phẩm
 06. PRODUCT DETAIL — Chi tiết sản phẩm
 07. STICKY ADD TO CART — Thanh mua hàng cố định
 08. PRODUCT SUPPORT UI — UI bổ trợ sản phẩm
 09. CART & MINI CART — Giỏ hàng & Mini Cart
 10. CHECKOUT — Thanh toán
 11. RESPONSIVE FIXES — Sửa lỗi responsive
 12. CHECKOUT PRIVACY ERROR — Lỗi chính sách

 Ghi chú: Mobile/responsive được đặt ngay trong nhóm chức năng mà nó
 điều chỉnh, thay vì gom toàn bộ mobile vào một khu vực riêng. Cách này
 giúp tránh phá cascade của CSS hiện tại.
==============================================================
*/


/* =========================================================
   00. GLOBAL — TOÀN WEBSITE
   ---------------------------------------------------------
   Căn lề chung, biến CSS, container và các thiết lập nền tảng.
   Bao gồm cả quy tắc responsive dùng chung cho toàn website.
   ========================================================= */

/* SAMCLO - BIẾN CĂN LỀ CHUNG */
:root {
    --samclo-left: 40px;
    --samclo-right: 60px;
    --samclo-mobile-left: 10px;
    --samclo-mobile-right: 10px;

    --samclo-brand: #F15A24;
}

/* Thành phần thông thường: Tabs, tiêu đề... */
.samclo-align {
    width: auto !important;
    max-width: none !important;
    margin-left: var(--samclo-left) !important;
    margin-right: var(--samclo-right) !important;
    box-sizing: border-box !important;
}

/* Row Flatsome: thu cả hai mép vào trong */
.row.samclo-align {
    width: calc(
        100% - var(--samclo-left) - var(--samclo-right)
    ) !important;
    max-width: none !important;
    margin-left: var(--samclo-left) !important;
    margin-right: var(--samclo-right) !important;
}

/* Vùng nội dung dùng riêng */
.samclo-container {
    width: calc(
        100% - var(--samclo-left) - var(--samclo-right)
    ) !important;
    max-width: none !important;
    margin-left: var(--samclo-left) !important;
    margin-right: var(--samclo-right) !important;
    box-sizing: border-box !important;
}

/* Điện thoại và màn hình nhỏ */
@media (max-width: 849px) {
    .samclo-align {
        margin-left: var(--samclo-mobile-left) !important;
        margin-right: var(--samclo-mobile-right) !important;
    }

    .row.samclo-align,
    .samclo-container {
        width: calc(
            100% - var(--samclo-mobile-left) - var(--samclo-mobile-right)
        ) !important;
        margin-left: var(--samclo-mobile-left) !important;
        margin-right: var(--samclo-mobile-right) !important;
    }
}








/* =========================================================
   01. HEADER — ĐẦU TRANG
   ---------------------------------------------------------
   Logo, thanh trên cùng, tìm kiếm, tài khoản, giỏ hàng và màu
   thương hiệu của Header.
   ========================================================= */

/* Đẩy logo sang phải */
.header-main .logo {
    margin-left: 40px !important;
}

/* Căn lề trái dòng chữ trên cùng theo logo */
.header-top .flex-row {
    padding-left: 60px;
}



/* SAMCLO - CĂN CỤM TÌM KIẾM, TÀI KHOẢN, GIỎ HÀNG */
@media (min-width: 850px) {
    .header-main .header-inner {
        padding-right: var(--samclo-right, 40px) !important;
        box-sizing: border-box;
    }
}


/* SAMCLO - ĐỒNG BỘ MÀU HEADER VỚI LOGO */

/* Nút tài khoản và giỏ hàng */
.header-main .header-button .button,
.header-main .header-button a.button {
    background-color: var(--samclo-brand) !important;
    border-color: var(--samclo-brand) !important;
    color: #FFFFFF !important;
}



/* Biểu tượng bên trong nút */
.header-main .header-button .button i,
.header-main .header-button .button svg {
    color: #FFFFFF !important;
    fill: currentColor;
}

/* Nút tìm kiếm */
.header-main .searchform .button,
.header-main .searchform button {
    background-color: var(--samclo-brand) !important;
    border-color: var(--samclo-brand) !important;
    color: #FFFFFF !important;
}

/* Hiệu ứng khi rê chuột */
.header-main .header-button .button:hover,
.header-main .searchform .button:hover,
.header-main .searchform button:hover {
    background-color: #D94716 !important;
    border-color: #D94716 !important;
}





/* Giãn khoảng cách menu chính */
.header-nav-main > li {
    margin-left: 20px;
    margin-right: 30px;
}

/* Ẩn mũi tên dropdown */
.header-nav-main .menu-item-has-children > a .icon-angle-down {
    display: none !important;
}
/* Ẩn mũi tên riêng của NAM */
#menu-item-322 > a .icon-angle-down,
#menu-item-322 > a .ux-menu-link__icon {
    display: none !important;
}

/* Menu chính: gạch dưới khi rê chuột */
.header-nav-main > li > a {
    position: relative !important;
}

.header-nav-main > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #f15a24;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.header-nav-main > li:hover > a::after,
.header-nav-main > li.active > a::after {
    transform: scaleX(1);
}

/* =====================================================
   HEADER - ACCOUNT & CART
   Giữ tài khoản và giỏ hàng cùng hàng, sát nhau hơn
   ===================================================== */


/* =====================================================
   HEADER - ACCOUNT & CART
   Giảm khoảng cách và giữ cùng hàng với Search
   ===================================================== */

@media screen and (min-width: 850px) {
  .header-main .flex-right .header-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  .header-main .flex-right .header-nav > li {
    margin: 0 0 0 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .header-main .flex-right .cart-item,
  .header-main .flex-right .account-item {
    display: flex;
    align-items: center;
    flex-shrink: 0 !important;
  }
}

/* ==================================================
   FONT CHỮ WEBSITE - BE VIETNAM PRO
   Mục đích: Hỗ trợ tiếng Việt, thay font mặc định
   Thư mục font: /wp-content/fonts/BeVietnamPro font/
   Vị trí sửa: Giao diện > Tùy biến > CSS bổ sung
   ================================================== */

/* 1. Khai báo font Regular - 400 */
@font-face {
    font-family: 'Be Vietnam Pro';
    src: url('/wp-content/fonts/BeVietnamPro%20font/BeVietnamPro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 2. Khai báo font Medium - 500 */
@font-face {
    font-family: 'Be Vietnam Pro';
    src: url('/wp-content/fonts/BeVietnamPro%20font/BeVietnamPro-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* 3. Khai báo font Bold - 700 */
@font-face {
    font-family: 'Be Vietnam Pro';
    src: url('/wp-content/fonts/BeVietnamPro%20font/BeVietnamPro-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 4. Be Vietnam Pro ExtraBold - 800 */
@font-face {
    font-family: 'Be Vietnam Pro';
    src: url('/wp-content/fonts/BeVietnamPro%20font/BeVietnamPro-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* 5. Be Vietnam Pro Black - 900 */
@font-face {
    font-family: 'Be Vietnam Pro';
    src: url('/wp-content/fonts/BeVietnamPro%20font/BeVietnamPro-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* 6. Áp dụng font cho toàn bộ website */
body,
button,
input,
select,
textarea {
    font-family: 'Be Vietnam Pro', sans-serif !important;
}

/* 7. Áp dụng font cho tiêu đề */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Be Vietnam Pro', sans-serif !important;
}





/* =========================================================
   02. NAVIGATION & MEGA MENU — MENU & MEGA MENU
   ---------------------------------------------------------
   Menu chính, hover, nhãn thanh lý, Mega Menu Nam/Nữ, cột menu,
   ảnh trong menu và các điều chỉnh responsive của menu.
   ========================================================= */

/* MENU THANH LÝ GIÁ RẺ - NHÃN GIẢM GIÁ TRÊN ĐẦU */

.header-nav-main .menu-thanh-ly > a {
    position: relative;
    color: #ba091e !important;
    font-weight: 700 !important;
    display: inline-block !important;
    padding-top: 12px !important;
}

/* Nhãn -70% nằm phía trên tên menu */

.header-nav-main .menu-thanh-ly > a::before {
    content: "-70%";
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    transform: none;
    color: #ba091e;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
/* Giữ nhãn -70% hiển thị khi rê chuột sang mục khác */
.header-nav-main .menu-thanh-ly > a::before {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Không để hiệu ứng hover của menu làm mất nhãn */
.header-nav-main .menu-thanh-ly:hover > a::before,
.header-nav-main .menu-thanh-ly > a:hover::before {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}






/* Khung mega menu */
.coolmate-mega {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 12px !important;
    min-height: 420px !important;
    box-sizing: border-box !important;
}

/* 5 cột chia đều */
.coolmate-mega > .col {
    flex: 1 1 20% !important;
    width: 20% !important;
    max-width: 20% !important;
    min-width: 0 !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
}

/* Đường kẻ dọc trước cột ảnh */
.coolmate-mega > .col:nth-child(5) {
    border-left: 1px solid #ddd !important;
}

/* Nội dung cột */
.coolmate-mega > .col > .col-inner {
    width: 100% !important;
    height: 100% !important;
}

/* Bỏ gạch ngang dưới menu */
.coolmate-mega .ux-menu--divider-solid .ux-menu-link,
.coolmate-mega .ux-menu-link__link {
    border-bottom: none !important;
}

/* Khoảng cách giữa các mục */
.coolmate-mega .ux-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}


/* Giữ nguyên cấu trúc cột gốc Flatsome */
.coolmate-mega > .col:nth-child(5) {
    box-sizing: border-box !important;
}

/* Cho phần chứa ảnh sử dụng toàn bộ chiều rộng cột */
.coolmate-mega > .col:nth-child(5) > .col-inner {
    width: 100% !important;
    max-width: none !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

/* Ảnh rộng hết vùng chứa */
.coolmate-mega > .col:nth-child(5) .img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 12px !important;
}

/* Giữ tỷ lệ 16:9 của ảnh */
.coolmate-mega > .col:nth-child(5) .img-inner {
    position: relative !important;
    width: 100% !important;
    padding-top: 56.25% !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}

.coolmate-mega > .col:nth-child(5) .img-inner img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Tiêu đề các cột trong Mega Menu */
.coolmate-mega .ux-menu > .ux-menu-link:first-child .ux-menu-link__text {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111 !important;
}

/* Tạo mũi tên ngang bên phải tiêu đề */
.coolmate-mega .ux-menu > .ux-menu-link:first-child .ux-menu-link__text::after {
    content: "⟶";
    display: inline-block;
    margin-left: 12px;
    color: #243cff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    vertical-align: -1px;
}

/* Không áp dụng kiểu tiêu đề cho các mục con */
.coolmate-mega .ux-menu > .ux-menu-link:not(:first-child) .ux-menu-link__text {
    font-size: 14px;
    font-weight: 400;
    color: #555;
}

/* Mega Menu: tất cả liên kết đổi màu khi rê chuột */
.coolmate-mega a,
.coolmate-mega a .ux-menu-link__text {
    transition: color 0.2s ease !important;
}

.coolmate-mega a:hover,
.coolmate-mega a:hover .ux-menu-link__text {
    color: #f15a24 !important;
}

/* Mũi tên ở tiêu đề cột cũng đổi màu */
.coolmate-mega .ux-menu > .ux-menu-link:first-child a:hover .ux-menu-link__text::after {
    color: #f15a24 !important;
}

/* Mega Menu: tiêu đề cột đổi sang màu cam SAMCLO khi hover */
.coolmate-mega .ux-menu > .ux-menu-link:first-child:hover,
.coolmate-mega .ux-menu > .ux-menu-link:first-child:hover a,
.coolmate-mega .ux-menu > .ux-menu-link:first-child:hover .ux-menu-link__text {
    color: #f15a24 !important;
}



/* =========================================================
   03. CATEGORY & HOME — DANH MỤC & TRANG CHỦ
   ---------------------------------------------------------
   Tab Nam/Nữ, tiêu đề danh mục, danh mục vuốt ngang, banner và
   các điều chỉnh hình ảnh/khoảng cách của khu vực danh mục.
   ========================================================= */

/* SAMCLO - MÀU TAB NAM/NỮ THEO LOGO */
.samclo-align .nav-pills > li.active > a,
.samclo-align .nav-pills > li.active > a:hover,
.samclo-align .nav-pills > li.active > a:focus {
    background-color: #F15A24 !important;
    color: #FFFFFF !important;
    border-color: #F15A24 !important;
}

/* Tab chưa chọn */
.samclo-align .nav-pills > li:not(.active) > a {
    color: #333333 !important;
}

/* Tab chưa chọn khi rê chuột */
.samclo-align .nav-pills > li:not(.active) > a:hover {
    background-color: #FFF0E9 !important;
    color: #F15A24 !important;
}



/* SAMCLO - Căn tiêu đề và Xem thêm trên cùng một hàng */
@media (max-width: 549px) {
    .samclo-section-heading {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    .samclo-section-heading > .col:first-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .samclo-section-heading > .col:last-child {
        flex: 0 0 auto !important;
        align-self: center !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
    }

    .samclo-section-heading > .col:last-child .button {
			transform: translateY(-5px) !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
    }
}


/* SAMCLO - Danh mục vuốt ngang trên điện thoại */
@media (max-width: 549px) {
    .samclo-category-carousel {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 10px;
    }

    .samclo-category-carousel > .col {
        flex: 0 0 44% !important;
        width: 44% !important;
        max-width: 44% !important;
        scroll-snap-align: start;
    }

    .samclo-category-carousel::-webkit-scrollbar {
        display: none;
    }
}


/* SAMCLO - Bỏ khung card, chỉ bo góc ảnh */
.samclo-category-carousel .col-inner,
.samclo-category-carousel .box {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}


/* SAMCLO - Bo 4 góc ảnh danh mục */
.samclo-category-carousel .col .img-inner {
    border-radius: 12px !important;
    overflow: hidden !important;
}

.samclo-category-carousel .col .img-inner img {
    border-radius: 12px !important;
    display: block;
}




/* SAMCLO - Khe hở danh mục trên PC và mobile */
.samclo-category-carousel > .col,
.samclo-category-carousel .row > .col {
    padding-left: 6px !important;
    padding-right: 6px !important;
}

@media (max-width: 549px) {
    .samclo-category-carousel > .col,
    .samclo-category-carousel .row > .col {
        padding-left: 1.5px !important;
        padding-right: 1.5px !important;
    }
}


/* SAMCLO - Hover tên danh mục theo màu cam thương hiệu */
.samclo-category-carousel .text h4 {
    transition: color 0.2s ease;
}

.samclo-category-carousel .col-inner:hover .text h4 {
    color: #F15A24 !important;
}





/* SAMCLO - Bo góc 2 banner ĐỒ NAM / ĐỒ NỮ */
.samclo-category-banner .banner,
.samclo-category-banner .banner .banner-inner,
.samclo-category-banner .banner-bg,
.samclo-category-banner .banner-layers {
    border-radius: 12px !important;
    overflow: hidden !important;
}






/* =========================================================
   04. FOOTER — CHÂN TRANG
   ---------------------------------------------------------
   Footer 1/2, cột nội dung, hotline, email, mạng xã hội, căn lề
   và responsive cho tablet/mobile.
   ========================================================= */

/* SAMCLO FOOTER 1 — 3 cột full width theo biến căn lề chung */

#footer .footer-1 {
    background-color: #F15A24 !important;
    width: 100% !important;
}

/* Bỏ giới hạn chiều rộng container của Footer 1 */
#footer .footer-1 .container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Dùng chung biến căn lề với các khu vực Samclo */
#footer .footer-1 .row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 24px !important;

    width: calc(
        100% - var(--samclo-left) - var(--samclo-right)
    ) !important;
    max-width: none !important;
    margin-left: var(--samclo-left) !important;
    margin-right: var(--samclo-right) !important;

    box-sizing: border-box !important;
}

/* Tắt chiều rộng cột mặc định của Flatsome */
#footer .footer-1 .row > .col {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: initial !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Toàn bộ chữ trắng, trừ nút góp ý */
#footer .footer-1,
#footer .footer-1 h1,
#footer .footer-1 h2,
#footer .footer-1 h3,
#footer .footer-1 p,
#footer .footer-1 span,
#footer .footer-1 strong,
#footer .footer-1 small,
#footer .footer-1 a {
    color: #fff !important;
}

/* Nút góp ý nền trắng, chữ đen */
#footer .footer-1 .samclo-footer-feedback {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 10px 22px !important;
    background: #fff !important;
    color: #000 !important;
    border-radius: 30px !important;
    white-space: nowrap !important;
}

#footer .footer-1 .samclo-footer-feedback,
#footer .footer-1 .samclo-footer-feedback * {
    color: #000 !important;
}

/* Tablet */
@media (max-width: 849px) {
    #footer .footer-1 .row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #footer .footer-1 .row > .col:nth-child(3) {
        grid-column: 1 / -1;
    }
}

/* Điện thoại */
@media (max-width: 549px) {
    #footer .footer-1 .row {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
    }

    #footer .footer-1 .row > .col:nth-child(3) {
        grid-column: auto;
    }
}


/* FIX: icon mạng xã hội nằm ngang */
#footer .footer-1 .samclo-footer-social {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
}

#footer .footer-1 .samclo-footer-social a {
    display: inline-flex !important;
    flex: 0 0 90px !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
}


/* SAMCLO: Hotline và Email thành 2 hàng */
#footer .footer-1 .samclo-footer-contact {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 18px !important;
    width: 100% !important;
}

#footer .footer-1 .samclo-footer-contact-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
}

#footer .footer-1 .samclo-footer-icon-img {
    display: block !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    object-fit: contain !important;
}

#footer .footer-1 .samclo-footer-contact-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-width: 0 !important;
}

#footer .footer-1 .samclo-footer-contact-text small,
#footer .footer-1 .samclo-footer-contact-text strong {
    display: block !important;
    margin: 3px !important;
    color: #fff !important;
}

#footer .footer-1 .samclo-footer-contact-text small {
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
	  letter-spacing: 0.5px !important;
}

#footer .footer-1 .samclo-footer-contact-text strong {
    font-size: 18px !important;
    line-height: 1.5 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

/* SAMCLO FOOTER — ĐẨY CỘT HOTLINE/EMAIL VÀO GIỮA */
#footer .footer-1 .samclo-footer-contact {
    margin-left: 170px !important;
}


/* SAMCLO FOOTER 2 — MỞ RỘNG CẢ TIÊU ĐỀ VÀ NỘI DUNG */
#footer .footer-2 .container,
#footer .footer-2 .row {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

#footer .footer-2 .container {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

#footer .footer-2 .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#footer .footer-2 .row > .col {
    flex: 1 1 0 !important;
    width: 0 !important;
    max-width: none !important;
    min-width: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
}

#footer .footer-2 .row > .col:last-child {
    flex: 2 1 0 !important;
}

/* SAMCLO FOOTER 2 - chuẩn hóa lề 5 cột */
#footer .footer-2 #row-271849128 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

#footer .footer-2 #row-271849128 > .col {
    padding-left: 15px !important;
    padding-right: 15px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

#footer .footer-2 #row-271849128 .col-inner {
    width: 100% !important;
    margin: 0 !important;
}

#footer .footer-2 #row-271849128 .section-title-container {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}






/* =========================================================
   05. PRODUCT LISTING — DANH SÁCH SẢN PHẨM
   ---------------------------------------------------------
   Giá bán, giá gốc, nhãn giảm giá, nhãn Mới, giới hạn tên sản phẩm
   và các bố cục giá trên desktop/mobile.
   ========================================================= */

/* =====================================================
   SAMCLO - GIÁ SẢN PHẨM VÀ NHÃN GIẢM GIÁ
   ===================================================== */

/* 1. Ẩn nhãn giảm giá trên ảnh ở toàn bộ website.
   Giữ nguyên nhãn "Mới". */
.badge-container .badge-inner.on-sale {
    display: none !important;
}

/* 2. Trang chi tiết: bố cục giá theo chiều dọc */
.single-product .product-info .price {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    column-gap: 10px;
    row-gap: 0;
}

/* 3. Giá gốc nằm ở hàng trên */
.single-product .product-info .price del {
    display: block !important;
    order: 1;
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    color: #999;
    font-size: 14px;
    font-weight: 400;
    opacity: 1;
}

/* 4. Giá khuyến mãi nằm ở hàng dưới */
.single-product .product-info .price ins {
    display: inline-block !important;
    order: 2;
    flex: 0 0 auto;
    margin: 0;
    color: inherit;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
}

/* 5. Giá sản phẩm không giảm ở trang chi tiết */
.single-product .product-info .price > .woocommerce-Price-amount {
    font-size: 28px;
    font-weight: 700;
}


/* 7. Giá gốc trong danh sách */
.products .product .price del {
    color: #999;
    font-size: 12px;
    font-weight: 400;
    opacity: 1;
}

/* 8. Giá khuyến mãi trong danh sách */
.products .product .price ins {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}


/* SAMCLO - Nhãn giảm giá cạnh giá bán */

/* Kiểu dáng nhãn giảm giá */
.price .samclo-sale-percent {
    display: inline-block;
    flex: 0 0 auto;
    width: fit-content;
    margin: 0 0 0 2px;
    padding: 3px 8px;
    border-radius: 20px;
    background: #303fce;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    vertical-align: middle;
}

/* Trang chi tiết: giá gốc ở hàng trên */
.single-product .product-info .price del {
    flex: 0 0 100%;
    width: 100%;
    order: 1;
}

/* Trang chi tiết: giá khuyến mãi và nhãn ở hàng dưới */
.single-product .product-info .price ins {
    order: 2;
}

.single-product .product-info .price .samclo-sale-percent {
    order: 3;
}


/* SAMCLO - GIÁ VÀ NHÃN GIẢM GIÁ CÙNG HÀNG */

/* Danh sách sản phẩm */
.products .product .price {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}

/* Giá gốc: đưa về cuối */
.products .product .price del {
    order: 3 !important;
    color: #999;
    font-size: 12px;
    font-weight: 400;
    opacity: 1;
    white-space: nowrap;
}

/* Giá bán: đứng đầu */
.products .product .price ins {
    order: 1 !important;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* Nhãn giảm giá: đứng ngay sau giá bán */
.products .product .price .samclo-sale-percent {
    order: 2 !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: fit-content !important;
    margin: 0 !important;
    padding: 2px 6px !important;
    border-radius: 20px;
    background: #303fce;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

/* Điện thoại: giữ cả 3 thành phần trên cùng một hàng */
@media (max-width: 549px) {
    .products .product .price {
        flex-wrap: nowrap !important;
        gap: 4px !important;
        white-space: nowrap !important;
    }

    .products .product .price del {
        font-size: 10px !important;
    }

    .products .product .price ins {
        font-size: 12px !important;
    }

    .products .product .price .samclo-sale-percent {
        padding: 2px 5px !important;
        font-size: 10px !important;
    }
}


/* SAMCLO - FIX NHÃN GIẢM GIÁ XUỐNG DÒNG TRÊN MOBILE */
@media (max-width: 549px) {

    .products .product-small .price-wrapper .price,
    .products .product .price {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        column-gap: 4px !important;
        row-gap: 2px !important;
    }

    /* Giá bán */
    .products .product-small .price ins,
    .products .product .price ins {
        order: 1 !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        font-size: 11px !important;
    }

    /* Nhãn giảm giá: cùng hàng với giá bán */
    .products .product-small .price .samclo-sale-percent,
    .products .product .price .samclo-sale-percent {
        order: 2 !important;
        flex: 0 0 auto !important;
        display: inline-block !important;
        margin: 0 !important;
        padding: 2px 5px !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    /* Giá gốc: ưu tiên xuống hàng nếu không đủ chỗ */
    .products .product-small .price del,
    .products .product .price del {
        order: 3 !important;
        flex: 0 0 auto !important;
        font-size: 10px !important;
        white-space: nowrap !important;
    }
}


/* SAMCLO - GIỮ GIÁ VÀ TAG GIẢM GIÁ CÙNG HÀNG TRÊN MOBILE */
@media (max-width: 549px) {
  .product-small .price {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  .product-small .price del,
  .product-small .price ins,
  .product-small .price .samclo-sale-percent {
    display: inline-block !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }

  .product-small .price del {
    order: 1;
  }

  .product-small .price ins {
    order: 2;
  }

  .product-small .price .samclo-sale-percent {
    order: 3;
    font-size: 9px !important;
    padding: 2px 4px !important;
    line-height: 1.2 !important;
  }
}





/* SAMCLO - NHÃN MỚI TRÊN ẢNH SẢN PHẨM */
.products .product-small .box-image {
    position: relative !important;
}

.products .product-small .box-image > .badge-container {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 99 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
}



/* SAMCLO - TAG MỚI: TRANG CHI TIẾT SẢN PHẨM */
body.single-product .woocommerce-product-gallery {
    position: relative !important;
}

body.single-product .woocommerce-product-gallery .badge-container {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;

    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;

    z-index: 99 !important;
}




/* GIỮ NHÃN MỚI DẠNG VIÊN THUỐC */
.badge-container .new-bubble-auto {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;

    padding: 5px 9px !important;
    margin: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 999px !important;

    background: #000000 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}


/* SAMCLO - FIX TAG MOI TREN TRANG CHI TIET */
body.single-product
.woocommerce-product-gallery > .badge-container {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
}

body.single-product
.woocommerce-product-gallery > .badge-container > .new-bubble-auto {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: none !important;
}


/* SAMCLO - TĂNG KÍCH THƯỚC GIÁ VÀ TAG GIẢM GIÁ TRÊN MOBILE */
@media (max-width: 549px) {
  .product-small .price {
    font-size: 10px !important;
    line-height: 1.5 !important;
    gap: 4px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .product-small .price del,
  .product-small .price ins,
  .product-small .price .woocommerce-Price-amount {
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  .product-small .samclo-sale-percent {
    font-size: 10px !important;
    padding: 3px 5px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
}



/* SAMCLO - GIỚI HẠN TÊN SẢN PHẨM 2 DÒNG */
@media (max-width: 549px) {
  .product-small .name,
  .product-small .name a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    line-height: 1.4 !important;
    max-height: 2.8em !important;
  }
}




/* SAMCLO - Trang chi tiết: giá gốc trên, giá bán và tag cùng hàng */

body.single-product .price-wrapper > p.price.product-page-price {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    column-gap: 8px !important;
    row-gap: 2px !important;
}

/* Giá gốc: một hàng riêng phía trên */
body.single-product .price-wrapper > p.price.product-page-price > del {
    display: block !important;
    flex: 0 0 100% !important;
    order: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1.4 !important;
}

/* Giá bán: hàng thứ hai */
body.single-product .price-wrapper > p.price.product-page-price > ins {
    display: inline-block !important;
    flex: 0 0 auto !important;
    order: 2 !important;
    margin: 0 !important;
    font-size: 28px !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
}

/* Tag giảm giá: cùng hàng với giá bán */
body.single-product .price-wrapper > p.price.product-page-price > .samclo-sale-percent {
    display: inline-block !important;
    flex: 0 0 auto !important;
    order: 3 !important;
    align-self: center !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

@media (max-width: 549px) {
    body.single-product .price-wrapper > p.price.product-page-price > del {
        font-size: 15px !important;
    }

    body.single-product .price-wrapper > p.price.product-page-price > ins {
        font-size: 23px !important;
    }
}







/* =========================================================
   06. PRODUCT DETAIL — CHI TIẾT SẢN PHẨM
   ---------------------------------------------------------
   Biến thể, màu sắc, kích cỡ, số lượng, Add to Cart, Size Chart,
   Product Meta, breadcrumb, gallery và các thành phần trang sản phẩm.
   ========================================================= */

/* SAMCLO - Đưa giá trị biến thể lên cùng dòng với nhãn */
.single-product .variations_form table.variations th.label {
  width: 1%;
  white-space: nowrap;
  vertical-align: top;
}

.single-product .variations_form table.variations th.label label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: baseline;
  flex-wrap: nowrap !important;
  width: max-content !important;
  max-width: none !important;
  white-space: nowrap !important;
  gap: 4px;
}

.single-product .variations_form .samclo-selected-value {
  display: inline !important;
  white-space: nowrap !important;
  font-weight: 400;
  color: inherit;
}

/* SAMCLO - Bố cục biến thể giống Coolmate */
.single-product .variations_form table.variations,
.single-product .variations_form table.variations tbody {
  display: block !important;
  width: 100% !important;
}

.single-product .variations_form table.variations tr {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100% !important;
  margin-bottom: 12px !important;
}

.single-product .variations_form table.variations th.label,
.single-product .variations_form table.variations td.value {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  text-align: left !important;
  white-space: normal !important;
}

.single-product .variations_form table.variations th.label {
  margin: 0 0 8px !important;
}

.single-product .variations_form table.variations th.label label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.single-product .variations_form .samclo-selected-value {
  display: inline !important;
  white-space: nowrap !important;
  font-weight: 400 !important;
}

.single-product .variations_form table.variations td.value {
  margin: 0 !important;
}



/* =========================================
   SAMCLO - VARIATION SWATCHES LIKE COOLMATE
   ========================================= */

/* Khoảng cách giữa các nút */
.single-product .variations_form .ux-swatches {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px !important;
}

/* ---------- COLOR SWATCHES ---------- */

/* Viền ngoài dạng viên thuốc */
.single-product .variations_form
.ux-swatches[ data-attribute_name="attribute_pa_mau-sac" ] .ux-swatch,
.single-product .variations_form
.ux-swatches--color .ux-swatch {
  width: 58px !important;
  height: 38px !important;
  min-width: 58px !important;
  padding: 3px !important;
  border: 2px solid #d0d0d0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color .15s ease;
}

/* Giữ hình/màu swatch bên trong */
.single-product .variations_form
.ux-swatches--color .ux-swatch .ux-swatch__color,
.single-product .variations_form
.ux-swatches--color .ux-swatch .ux-swatch__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border-radius: 999px !important;
  overflow: hidden;
}

/* Màu đang chọn: viền xanh như Coolmate */
.single-product .variations_form
.ux-swatches--color .ux-swatch.selected,
.single-product .variations_form
.ux-swatches--color .ux-swatch.active {
  border: 2px solid #243dff !important;
  box-shadow: 0 0 0 1px #243dff !important;
}

/* ---------- SIZE BUTTONS ---------- */

.single-product .variations_form
.ux-swatches--label .ux-swatch {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 70px !important;
  min-width: 70px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 10px !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 12px !important;
  background: #d2d2d2 !important;
  color: #555 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  transition: background .15s ease, color .15s ease;
}

/* Chữ bên trong nút size */
.single-product .variations_form
.ux-swatches--label .ux-swatch .ux-swatch__text {
  color: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* Size đang chọn: nền đen, chữ trắng */
.single-product .variations_form
.ux-swatches--label .ux-swatch.selected,
.single-product .variations_form
.ux-swatches--label .ux-swatch.active {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Hover */
.single-product .variations_form
.ux-swatches--label .ux-swatch:hover {
  border-color: #000 !important;
}

/* Mobile */
@media (max-width: 549px) {
  .single-product .variations_form
  .ux-swatches--color .ux-swatch {
    width: 48px !important;
    min-width: 48px !important;
    height: 34px !important;
  }

  .single-product .variations_form
  .ux-swatches--label .ux-swatch {
    width: 58px !important;
    min-width: 58px !important;
    height: 40px !important;
    min-height: 40px !important;
  }
}


/* SAMCLO - Size buttons theo giao diện Coolmate */

/* Chỉ tác động đến hàng Kích cỡ */
.single-product .variations_form tr:has(
  select[name="attribute_pa_kich-co"]
) td.value .ux-swatches .ux-swatch {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 70px !important;
  min-width: 70px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 1px solid #d2d2d2 !important;
  border-radius: 12px !important;
  background: #d2d2d2 !important;
  color: #555 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

/* Chữ bên trong nút */
.single-product .variations_form tr:has(
  select[name="attribute_pa_kich-co"]
) td.value .ux-swatches .ux-swatch * {
  color: inherit !important;
  font-weight: 400 !important;
}

/* Size đang chọn */
.single-product .variations_form tr:has(
  select[name="attribute_pa_kich-co"]
) td.value .ux-swatches .ux-swatch.selected,
.single-product .variations_form tr:has(
  select[name="attribute_pa_kich-co"]
) td.value .ux-swatches .ux-swatch.active {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Hover */
.single-product .variations_form tr:has(
  select[name="attribute_pa_kich-co"]
) td.value .ux-swatches .ux-swatch:hover {
  border-color: #000 !important;
}

/* Mobile */
@media (max-width: 549px) {
  .single-product .variations_form tr:has(
    select[name="attribute_pa_kich-co"]
  ) td.value .ux-swatches .ux-swatch {
    width: 58px !important;
    min-width: 58px !important;
    height: 40px !important;
    min-height: 40px !important;
  }
}




/* SAMCLO - Quantity + Add to cart theo Coolmate */

/* Hàng chứa số lượng và nút mua */
.single-product div.product form.cart:not(.variations_form),
.single-product div.product form.cart {
  margin-top: 18px;
}

/* Bộ chọn số lượng */
.single-product form.cart .quantity {
  display: inline-flex !important;
  align-items: center !important;
  float: none !important;
  height: 50px !important;
  margin: 0 12px 0 0 !important;
  padding: 0 !important;
  border: 1px solid #222 !important;
  border-radius: 999px !important;
  background: #fff !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

/* Ô nhập số lượng */
.single-product form.cart .quantity input.qty {
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid #eee !important;
  border-right: 1px solid #eee !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #111 !important;
  text-align: center !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

/* Nút +/- nếu theme/plugin đang hiển thị */
.single-product form.cart .quantity .minus,
.single-product form.cart .quantity .plus {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

/* Nút thêm vào giỏ */
.single-product form.cart .single_add_to_cart_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  border: 1px solid #303030 !important;
  border-radius: 999px !important;
  background: #303030 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  box-shadow: none !important;
  transition: background .2s ease, color .2s ease;
}

/* Hover */
.single-product form.cart .single_add_to_cart_button:hover {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}

/* Biến thể: giữ số lượng và nút mua cùng hàng */
.single-product form.variations_form.cart .woocommerce-variation-add-to-cart {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

/* Nút mua chiếm phần chiều rộng còn lại */
.single-product form.variations_form.cart
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

/* Mobile */
@media (max-width: 549px) {
  .single-product form.variations_form.cart
  .woocommerce-variation-add-to-cart {
    gap: 8px !important;
  }

  .single-product form.cart .quantity {
    margin-right: 0 !important;
    height: 44px !important;
  }

  .single-product form.cart .quantity input.qty {
    width: 38px !important;
    min-width: 38px !important;
    height: 42px !important;
  }

  .single-product form.cart .quantity .minus,
  .single-product form.cart .quantity .plus {
    width: 30px !important;
    min-width: 30px !important;
    height: 42px !important;
  }

  .single-product form.cart .single_add_to_cart_button {
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
  }
}


/* CHỈNH VỊ TRÍ SIZECHART CỦA PLUGIN */

label[for="pa_kich-co"] {
  display: inline;
}

label[for="pa_kich-co"] .wpcsc-size-charts-list {
  display: none;
}

.wpcsc-size-charts-list[data-samclo-moved="1"] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  float: right;
  margin: 0;
  font-size: 12px;
}

.wpcsc-size-charts-list[data-samclo-moved="1"] .wpcsc-size-charts-list-label {
  display: none;
}

.wpcsc-size-charts-list[data-samclo-moved="1"] .wpcsc-size-charts-list-item {
  margin: 0;
}

.wpcsc-size-charts-list[data-samclo-moved="1"] .wpcsc-size-charts-list-item {
  font-size: 0;
}

.wpcsc-size-charts-list[data-samclo-moved="1"] .wpcsc-size-charts-list-item::after {
  content: "Hướng dẫn chọn size";
  font-size: 12px;
}


/* =========================================
   SAMCLO - WPC SIZE CHART
   Giao diện tham khảo Coolmate
   ========================================= */

/* Khung nội dung popup */
.wpcsc-popup,
.wpcsc-modal,
.wpcsc-container {
  font-family: inherit;
  color: #333;
  font-size: 14px;
  line-height: 1.55;
}

/* Tiêu đề popup và tiêu đề bảng */
.wpcsc-popup h1,
.wpcsc-popup h2,
.wpcsc-popup h3,
.wpcsc-modal h1,
.wpcsc-modal h2,
.wpcsc-modal h3,
.wpcsc-container h1,
.wpcsc-container h2,
.wpcsc-container h3 {
  color: #222;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
}

/* Đoạn mô tả phía trên bảng */
.wpcsc-popup p,
.wpcsc-modal p,
.wpcsc-container p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0;
}

/* Bảng thông số */
.wpcsc-popup table,
.wpcsc-modal table,
.wpcsc-container table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: none;
  margin: 12px 0 18px;
  font-size: 14px;
  line-height: 1.45;
}

/* Ô bảng */
.wpcsc-popup th,
.wpcsc-popup td,
.wpcsc-modal th,
.wpcsc-modal td,
.wpcsc-container th,
.wpcsc-container td {
  padding: 9px 12px;
  border: none;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: middle;
}

/* Tiêu đề cột M, L, XL... */
.wpcsc-popup thead th,
.wpcsc-modal thead th,
.wpcsc-container thead th {
  background: #fff;
  color: #111;
  font-weight: 700;
  text-align: center;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

/* Cột tên thông số */
.wpcsc-popup tbody td:first-child,
.wpcsc-modal tbody td:first-child,
.wpcsc-container tbody td:first-child {
  color: #333;
  font-weight: 500;
  text-align: left;
}

/* Cột số liệu */
.wpcsc-popup tbody td:not(:first-child),
.wpcsc-modal tbody td:not(:first-child),
.wpcsc-container tbody td:not(:first-child) {
  color: #444;
  text-align: center;
}

/* Hàng nền xen kẽ */
.wpcsc-popup tbody tr:nth-child(even),
.wpcsc-modal tbody tr:nth-child(even),
.wpcsc-container tbody tr:nth-child(even) {
  background-color: #f3f3f3;
}

/* Không đổi nền khi rê chuột */
.wpcsc-popup tbody tr:hover,
.wpcsc-modal tbody tr:hover,
.wpcsc-container tbody tr:hover {
  background-color: #f3f3f3;
}

/* Danh sách và hướng dẫn phía dưới bảng */
.wpcsc-popup ul,
.wpcsc-modal ul,
.wpcsc-container ul {
  margin: 10px 0 14px;
  padding-left: 20px;
}

.wpcsc-popup ol,
.wpcsc-modal ol,
.wpcsc-container ol {
  margin: 10px 0 14px;
  padding-left: 20px;
}

.wpcsc-popup li,
.wpcsc-modal li,
.wpcsc-container li {
  color: #444;
  line-height: 1.6;
  margin-bottom: 5px;
}

/* Chữ đậm trong phần hướng dẫn */
.wpcsc-popup strong,
.wpcsc-modal strong,
.wpcsc-container strong,
.wpcsc-popup b,
.wpcsc-modal b,
.wpcsc-container b {
  color: #333;
  font-weight: 700;
}

/* Hình ảnh trong nội dung bảng size nếu có */
.wpcsc-popup img,
.wpcsc-modal img,
.wpcsc-container img {
  max-width: 100%;
  height: auto;
}

/* Mobile */
@media (max-width: 767px) {
  .wpcsc-popup,
  .wpcsc-modal,
  .wpcsc-container {
    font-size: 13px;
  }

  .wpcsc-popup table,
  .wpcsc-modal table,
  .wpcsc-container table {
    font-size: 12px;
  }

  .wpcsc-popup th,
  .wpcsc-popup td,
  .wpcsc-modal th,
  .wpcsc-modal td,
  .wpcsc-container th,
  .wpcsc-container td {
    padding: 8px 6px;
  }

  .wpcsc-popup p,
  .wpcsc-modal p,
  .wpcsc-container p {
    font-size: 13px;
  }
}


/* =========================================
   SAMCLO - SIZE CHART POPUP
   Tham chiếu giao diện Coolmate
   ========================================= */

/* 1. Đổi tên bảng thành "Hướng dẫn chọn size" */
.wpcsc-popup .wpcsc-size-chart-title {
  font-size: 0;
  line-height: 1.4;
  margin: 0 0 18px;
}

.wpcsc-popup .wpcsc-size-chart-title::after {
  content: "Hướng dẫn chọn size";
  display: block;
  color: #222;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
}

/* 2. Khu vực phía trên bảng */
.wpcsc-popup .wpcsc-size-chart-above-text {
  margin-bottom: 12px;
}

/* Tiêu đề THÔNG SỐ SẢN PHẨM */
.wpcsc-popup .wpcsc-size-chart-above-text .text-sm {
  color: #111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

/* Đường kẻ dưới tiêu đề */
.wpcsc-popup .wpcsc-size-chart-above-text hr {
  border: 0;
  border-top: 1px solid #d5d5d5;
  margin: 8px 0 10px;
}

/* Mô tả phía trên bảng */
.wpcsc-popup .wpcsc-size-chart-above-text > div:last-child {
  color: #555;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* 3. Bảng thông số */
.wpcsc-popup .wpcsc-size-chart-content table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

/* Tất cả ô */
.wpcsc-popup .wpcsc-size-chart-content th,
.wpcsc-popup .wpcsc-size-chart-content td {
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: middle;
}

/* Tiêu đề cột M, L, XL... */
.wpcsc-popup .wpcsc-size-chart-content thead th {
  background: #fff;
  color: #111;
  font-weight: 700;
  text-align: center;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

/* Tên thông số ở cột đầu */
.wpcsc-popup .wpcsc-size-chart-content tbody td:first-child {
  color: #333;
  font-weight: 500;
  text-align: left;
}

/* Các số đo */
.wpcsc-popup .wpcsc-size-chart-content tbody td:not(:first-child) {
  color: #444;
  text-align: center;
}

/* Hàng nền xám xen kẽ */
.wpcsc-popup .wpcsc-size-chart-content tbody tr:nth-child(even) {
  background: #f2f2f2;
}

/* Không đổi nền khi rê chuột */
.wpcsc-popup .wpcsc-size-chart-content tbody tr:hover {
  background: #f2f2f2;
}

/* 4. Khối hướng dẫn phía dưới bảng
   Gộp tiêu đề và danh sách vào cùng nền xám */
.wpcsc-popup .wpcsc-size-chart-under-text {
  background: #e9e9e9;
  border-radius: 4px;
  padding: 12px 16px;
  margin: 14px 0 0;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
}

/* Tiêu đề trong khối xám */
.wpcsc-popup .wpcsc-size-chart-under-text > .font-semibold {
  color: #333;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 2px;
}

/* Danh sách trong khối xám */
.wpcsc-popup .wpcsc-size-chart-under-text ul {
  list-style: disc;
  margin: 0;
  padding-left: 20px;
}

/* Từng dòng hướng dẫn */
.wpcsc-popup .wpcsc-size-chart-under-text li {
  color: #444;
  font-size: 13px;
  line-height: 1.5;
  margin: 1px 0;
  padding: 0;
}

/* 5. Khoảng cách trong popup */
.wpcsc-popup .wpcsc-size-chart-content {
  color: #333;
}

.wpcsc-popup .wpcsc-size-chart-content > table + .wpcsc-size-chart-under-text {
  margin-top: 14px;
}

/* 6. Điện thoại */
@media (max-width: 767px) {
  .wpcsc-popup .wpcsc-size-chart-title::after {
    font-size: 23px;
  }

  .wpcsc-popup .wpcsc-size-chart-content th,
  .wpcsc-popup .wpcsc-size-chart-content td {
    padding: 8px 6px;
    font-size: 12px;
  }

  .wpcsc-popup .wpcsc-size-chart-under-text {
    padding: 11px 12px;
  }
}

/* 1. Ẩn tên bảng "Size quần pants" */
.wpcsc-popup .wpcsc-size-chart-title {
  display: none !important;
}

/* 2. Hiện lại đường kẻ ngang dưới "THÔNG SỐ SẢN PHẨM" */
.wpcsc-popup .wpcsc-size-chart-above-text .relative {
  display: block !important;
  height: 1px !important;
  width: 100% !important;
  background: rgba(0, 0, 0, 0.2) !important;
  margin: 8px 0 10px !important;
}

/* Trường hợp đường kẻ được tạo bằng thẻ HR */
.wpcsc-popup .wpcsc-size-chart-above-text hr {
  display: block !important;
  width: 100%;
  border: 0 !important;
  border-top: 1px solid #d5d5d5 !important;
  margin: 8px 0 10px !important;
}




/* SAMCLO - Breadcrumb */
.product-breadcrumb-container .woocommerce-breadcrumb {
    text-transform: none !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
}

/* Trang cha: màu xám, chữ thường */
.product-breadcrumb-container .woocommerce-breadcrumb a,
.product-breadcrumb-container .woocommerce-breadcrumb .divider {
    color: #888888 !important;
    font-weight: 400 !important;
}

/* Trang hiện tại: màu đen, in đậm */
.product-breadcrumb-container .woocommerce-breadcrumb a:last-of-type {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* SAMCLO - Breadcrumb hover underline */
.product-breadcrumb-container .woocommerce-breadcrumb a {
    text-decoration: none !important;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.product-breadcrumb-container .woocommerce-breadcrumb a:hover {
    color: #000000 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px;
}

/* SAMCLO - Breadcrumb một dòng, vuốt ngang trên mobile */
@media (max-width: 549px) {
    .product-breadcrumb-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .product-breadcrumb-container .woocommerce-breadcrumb {
        display: block !important;
        width: 100% !important;
        white-space: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 6px;
    }

    .product-breadcrumb-container .woocommerce-breadcrumb::-webkit-scrollbar {
        height: 3px;
    }
}


/* SAMCLO - Tên sản phẩm */
.product-title-container .product-title {
    font-size: 24px !important;
    color: #000000 !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* Mobile */
@media (max-width: 549px) {
    .product-title-container .product-title {
        font-size: 24px !important;
    }
}



/* =========================================================
   07. STICKY ADD TO CART — THANH MUA HÀNG CỐ ĐỊNH
   ---------------------------------------------------------
   Sticky Add to Cart desktop/mobile, variation sheet, gallery mobile,
   lightbox, thumbnail và các điều chỉnh liên quan trên thiết bị nhỏ.
   ========================================================= */

/* =========================================================
   SAMCLO - STICKY ADD TO CART
   Desktop: một hàng, 5 nhóm, chiều cao gọn theo tham chiếu Coolmate.
   Mobile: giữ cơ chế bố cục hiện có, chỉ giữ z-index/căn lề.
   ========================================================= */

/* Desktop: cố định thanh ở đầu màn hình */
@media (min-width: 850px) {
  body.single-product .sticky-add-to-cart {
    position: fixed !important;
    top: var(--wp-admin--admin-bar--height, 0px) !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    z-index: 9990 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #e5e5e5 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06) !important;
  }

  body.single-product .sticky-add-to-cart .sticky-add-to-cart__product {
    display: grid !important;
    grid-template-columns: 24% 14% 19% 19% 24% !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: calc(100% - var(--samclo-left, 40px) - var(--samclo-right, 40px)) !important;
    max-width: none !important;
    min-height: 112px !important;
    height: auto !important;
    margin: 0 var(--samclo-right, 40px) 0 var(--samclo-left, 40px) !important;
    padding: 8px 0 !important;
    box-sizing: border-box !important;
  }

  body.single-product .sticky-add-to-cart .sticky-add-to-cart__product > .samclo-sticky-info,
  body.single-product .sticky-add-to-cart .sticky-add-to-cart__product > .samclo-sticky-social-group,
  body.single-product .sticky-add-to-cart .sticky-add-to-cart__product > .samclo-sticky-color,
  body.single-product .sticky-add-to-cart .sticky-add-to-cart__product > .samclo-sticky-size,
  body.single-product .sticky-add-to-cart .sticky-add-to-cart__product > .samclo-sticky-action-group {
    display: flex !important;
    align-self: stretch !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    border-left: 1px solid #e5e5e5 !important;
  }

  /* 1. Ảnh + tên + giá */
  body.single-product .sticky-add-to-cart .sticky-add-to-cart__product > .samclo-sticky-info {
    justify-content: flex-start !important;
    gap: 10px !important;
    padding-left: 0 !important;
    border-left: 0 !important;
  }

  body.single-product .samclo-sticky-info .sticky-add-to-cart-img {
    display: block !important;
    flex: 0 0 64px !important;
    width: 64px !important;
    max-width: 64px !important;
    height: 78px !important;
    object-fit: cover !important;
    margin: 0 !important;
    border-radius: 6px !important;
  }

  body.single-product .samclo-sticky-info-details {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.single-product .samclo-sticky-info .product-title-small {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere !important;
  }

  body.single-product .samclo-sticky-price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    line-height: 1.2 !important;
  }

  body.single-product .samclo-sticky-price .price {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 3px 7px !important;
    margin: 0 !important;
  }

  body.single-product .samclo-sticky-price del {
    display: block !important;
    margin: 0 !important;
    color: #888 !important;
    font-size: 11px !important;
    opacity: 1 !important;
  }

  body.single-product .samclo-sticky-price ins {
    display: inline-block !important;
    margin: 0 !important;
    color: #111 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
  }

  /* 2. Đánh giá + lượt bán + chia sẻ */
  body.single-product .sticky-add-to-cart .sticky-add-to-cart__product > .samclo-sticky-social-group {
    flex-direction: column !important;
    gap: 8px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    text-align: center !important;
  }

  body.single-product .samclo-sticky-social-group .samclo-sticky-rating,
  body.single-product .samclo-sticky-social-group .samclo-sticky-share {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: center !important;
  }

  body.single-product .samclo-sticky-rating .samclo-social-proof {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
    width: 100% !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  body.single-product .samclo-sticky-rating .samclo-social-proof__reviews,
  body.single-product .samclo-sticky-rating .samclo-social-proof__sales {
    display: block !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  body.single-product .samclo-sticky-rating .samclo-social-proof__divider {
    display: none !important;
  }

  body.single-product .samclo-sticky-share .samclo-share {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  body.single-product .samclo-sticky-share .samclo-share__trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #243cff !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
  }

  body.single-product .samclo-sticky-share .samclo-share__trigger-icon {
    width: 14px !important;
    height: 14px !important;
    fill: currentColor !important;
  }

  body.single-product .samclo-sticky-share .samclo-share__menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    z-index: 10000 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 180px !important;
    padding: 12px !important;
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12) !important;
  }

  body.single-product .samclo-sticky-share .samclo-share__menu[hidden] {
    display: none !important;
  }

  body.single-product .samclo-sticky-share .samclo-share__item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
  }

  body.single-product .samclo-sticky-share .samclo-share__item svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* 3 + 4. Màu sắc và kích thước */
  body.single-product .sticky-add-to-cart .sticky-add-to-cart__product > .samclo-sticky-color,
  body.single-product .sticky-add-to-cart .sticky-add-to-cart__product > .samclo-sticky-size {
    flex-direction: column !important;
    gap: 7px !important;
    text-align: center !important;
  }

  body.single-product .samclo-sticky-attribute-label {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  body.single-product .samclo-sticky-attribute-choices {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.single-product .samclo-sticky-choice {
    flex: 0 0 auto !important;
    margin: 0 !important;
    cursor: pointer !important;
  }

  body.single-product .samclo-sticky-size .samclo-sticky-choice {
    min-width: 34px !important;
    height: 36px !important;
    padding: 0 8px !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  body.single-product .samclo-sticky-size .samclo-sticky-choice.selected,
  body.single-product .samclo-sticky-size .samclo-sticky-choice.active {
    border-color: #111 !important;
    background: #111 !important;
    color: #fff !important;
  }

  body.single-product .samclo-sticky-size-guide {
    display: inline-block !important;
    margin-top: 1px !important;
    color: #1239b5 !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    text-decoration: underline !important;
    white-space: nowrap !important;
    cursor: pointer !important;
  }

  body.single-product .samclo-sticky-color .samclo-sticky-choice {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    max-height: 36px !important;
    flex: 0 0 36px !important;
}



  /* 5. Số lượng + nút thêm giỏ */
  body.single-product .sticky-add-to-cart .sticky-add-to-cart__product > .samclo-sticky-action-group {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding-left: 12px !important;
    padding-right: 0 !important;
  }

  body.single-product .samclo-sticky-action-group .samclo-sticky-qty {
    display: flex !important;
    flex: 0 0 100px !important;
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dedede !important;
    border-radius: 24px !important;
    box-sizing: border-box !important;
  }

  body.single-product .samclo-sticky-action-group .samclo-sticky-qty button {
    flex: 0 0 26px !important;
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
    color: #222 !important;
  }

  body.single-product .samclo-sticky-action-group .samclo-sticky-qty input {
    flex: 1 1 auto !important;
    width: 36px !important;
    min-width: 20px !important;
    max-width: 42px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
  }

  body.single-product .sticky-add-to-cart .samclo-sticky-action-group .sticky-add-to-cart-select-options-button {
    display: inline-flex !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 220px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border-radius: 24px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  /* Ẩn sticky khi nút mua hàng gốc đang hiện trên màn hình */
  body.samclo-main-atc-visible .sticky-add-to-cart {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body:not(.samclo-main-atc-visible) .sticky-add-to-cart {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* Mobile/tablet: không áp bố cục 5 cột desktop */
@media (max-width: 849px) {
  body.single-product .sticky-add-to-cart {
    z-index: 9990 !important;
  }

  body.single-product .sticky-add-to-cart .sticky-add-to-cart__product {
    width: calc(100% - var(--samclo-mobile-left, 10px) - var(--samclo-mobile-right, 10px)) !important;
    margin-left: var(--samclo-mobile-left, 10px) !important;
    margin-right: var(--samclo-mobile-right, 10px) !important;
    box-sizing: border-box !important;
  }

  body.single-product .samclo-sticky-share,
  body.single-product .samclo-sticky-price {
    display: none !important;
  }
}



/* =========================================================
   SAMCLO MOBILE STICKY ATC + BOTTOM SHEET + IMAGE PREVIEW
   Chỉ áp dụng mobile/tablet; desktop giữ nguyên
   ========================================================= */

@media (max-width: 849px) {
  body.single-product .sticky-add-to-cart {
    display: none !important;
  }

  #samclo-mobile-atc-bar {
    display: block;
    position: fixed;
    z-index: 9990;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .08);
    box-sizing: border-box;
  }

  body.single-product.samclo-main-atc-visible #samclo-mobile-atc-bar {
    display: none !important;
  }

  #samclo-mobile-atc-bar .samclo-mobile-atc-open {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 7px;
    background: #f15a24;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
  }

  #samclo-mobile-atc-overlay {
    display: flex;
    position: fixed;
    z-index: 99995;
    inset: 0;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, .48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }

  #samclo-mobile-atc-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #samclo-mobile-atc-overlay .samclo-mobile-atc-sheet {
    width: 100%;
    max-width: 640px;
    max-height: min(82dvh, 720px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
    background: #fff;
    color: #222;
    box-sizing: border-box;
    transform: translateY(18px);
    transition: transform .2s ease;
  }

  #samclo-mobile-atc-overlay.is-open .samclo-mobile-atc-sheet {
    transform: translateY(0);
  }

  body.samclo-mobile-sheet-open {
    overflow: hidden !important;
  }

  .samclo-mobile-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    font-size: 16px;
  }

  .samclo-mobile-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f3f3;
    color: #222;
    font-size: 24px;
    line-height: 1;
  }

  /* Ô màu bên trái, ảnh biến thể bên phải */
  .samclo-mobile-color-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, 38%);
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
  }

  .samclo-mobile-color-options,
  .samclo-mobile-size-options {
    min-width: 0;
  }

  .samclo-mobile-option-title {
    margin: 0 0 10px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
  }

  .samclo-mobile-color-options .samclo-sticky-attribute-choices {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start;
    justify-content: flex-start !important;
    gap: 9px !important;
  }

  .samclo-mobile-color-options .samclo-sticky-choice {
    flex: 0 0 auto;
  }

  .samclo-mobile-variation-preview {
    display: flex;
    min-width: 0;
    min-height: 138px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    color: #555;
    font-size: 11px;
  }

  .samclo-mobile-variation-preview img {
    display: block;
    width: 100%;
    height: 112px;
    object-fit: contain;
    border-radius: 4px;
  }

  .samclo-mobile-size-options {
    margin-bottom: 18px;
  }

  .samclo-mobile-size-options .samclo-sticky-attribute-choices {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  .samclo-mobile-size-options .samclo-sticky-choice {
    min-width: 52px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: #f2f2f2;
    color: #333;
  }

  .samclo-mobile-size-options .samclo-sticky-choice.selected,
  .samclo-mobile-size-options .samclo-sticky-choice.active {
    border-color: #222;
    background: #222;
    color: #fff;
  }

  .samclo-mobile-size-options .samclo-sticky-size-guide {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
  }

  .samclo-mobile-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    font-size: 14px;
  }

  .samclo-mobile-qty-controls {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .samclo-mobile-qty-controls button {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-size: 18px;
  }

  .samclo-mobile-qty-value {
    min-width: 16px;
    text-align: center;
  }

  .samclo-mobile-sheet-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 7px;
    background: #f15a24;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
  }

  /* Ảnh phóng to */
  #samclo-mobile-image-lightbox {
    display: flex;
    position: fixed;
    z-index: 100000;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .92);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }

  #samclo-mobile-image-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #samclo-mobile-image-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 85dvh;
    object-fit: contain;
  }

  #samclo-mobile-image-lightbox button {
    position: absolute;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: 16px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 30px;
  }
}

@media (min-width: 850px) {
  #samclo-mobile-atc-bar,
  #samclo-mobile-atc-overlay,
  #samclo-mobile-image-lightbox {
    display: none !important;
  }
}



/* SAMCLO: FIX SWATCH MOBILE + ẢNH BIẾN THỂ BÊN PHẢI */
@media (max-width: 849px) {
  .samclo-mobile-color-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 114px !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .samclo-mobile-color-options {
    min-width: 0 !important;
    overflow: visible !important;
    padding-bottom: 4px !important;
}

  .samclo-mobile-color-options .samclo-sticky-attribute-choices {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-content: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  .samclo-mobile-color-options .samclo-sticky-choice {
    box-sizing: border-box !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
  }

  .samclo-mobile-color-options .samclo-sticky-choice img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
  }

  .samclo-mobile-color-options .samclo-sticky-choice.selected,
  .samclo-mobile-color-options .samclo-sticky-choice.active {
    outline: 2px solid #f15a24 !important;
    outline-offset: 2px !important;
  }

  .samclo-mobile-variation-preview {
    width: 114px !important;
    min-width: 114px !important;
    min-height: 138px !important;
    align-self: stretch !important;
  }

  .samclo-mobile-variation-preview img {
    width: 100% !important;
    height: 112px !important;
    object-fit: contain !important;
  }
}

/* SAMCLO - Mobile: ảnh biến thể nằm dưới hàng màu */
@media (max-width: 849px) {
  #samclo-mobile-atc-overlay .samclo-mobile-color-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
  }

  #samclo-mobile-atc-overlay .samclo-mobile-color-options {
    width: 100% !important;
    min-width: 0 !important;
  }

  #samclo-mobile-atc-overlay .samclo-mobile-color-options
  .samclo-sticky-attribute-choices {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
  }

  #samclo-mobile-atc-overlay .samclo-mobile-variation-preview {
    display: flex !important;
    width: 100% !important;
    min-height: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }

  #samclo-mobile-atc-overlay .samclo-mobile-variation-preview img {
    width: auto !important;
    max-width: 100% !important;
    height: 170px !important;
    object-fit: contain !important;
  }
}


/* SAMCLO - Mobile: thêm galler cho biến thể*/
/* =====================================================
   SAMCLO MOBILE - VARIATION GALLERY SLIDER
   Hiển thị 3.5 ảnh, vuốt ngang để xem thêm
   ===================================================== */

@media (max-width: 849px) {

  #samclo-mobile-atc-overlay .samclo-mobile-color-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  #samclo-mobile-atc-overlay .samclo-mobile-variant-gallery {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    margin: 0 0 18px;
  }

  #samclo-mobile-atc-overlay .samclo-mobile-gallery-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;

    width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  #samclo-mobile-atc-overlay
  .samclo-mobile-gallery-track::-webkit-scrollbar {
    display: none;
  }

  #samclo-mobile-atc-overlay .samclo-mobile-gallery-item {
    display: block !important;

    flex: 0 0 calc((100% - 24px) / 3.5) !important;
    width: calc((100% - 24px) / 3.5) !important;
    min-width: 0 !important;

    height: 190px !important;
    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px !important;

    background: #f8f8f8 !important;

    scroll-snap-align: start;
  }

  #samclo-mobile-atc-overlay
  .samclo-mobile-gallery-item img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 5px !important;

    object-fit: contain !important;
  }
}


/* SAMCLO MOBILE - CỐ ĐỊNH KHUNG GALLERY TỶ LỆ 3:4 */

@media (max-width: 849px) {

  #samclo-mobile-atc-overlay
  .samclo-mobile-gallery-item {
    flex: 0 0 calc((100% - 24px) / 3.5) !important;
    width: calc((100% - 24px) / 3.5) !important;

    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    min-height: 0 !important;

    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  #samclo-mobile-atc-overlay
  .samclo-mobile-gallery-item img {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position: center !important;
  }
}


/* =====================================================
   SAMCLO - LIGHTBOX + HÀNG THUMBNAIL BÊN DƯỚI
   ===================================================== */

/* Lightbox: bố cục dọc */
#samclo-mobile-image-lightbox.is-open {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;

    box-sizing: border-box !important;
    padding: 60px 20px 24px !important;
}

/* Ảnh lớn */
#samclo-mobile-image-lightbox .samclo-lightbox-main-image {
    display: block !important;
    touch-action: pan-y !important;

    flex: 0 1 auto !important;
    min-height: 0 !important;

    width: auto !important;
    max-width: 100% !important;
    max-height: calc(85dvh - 90px) !important;

    object-fit: contain !important;
    margin: 0 auto !important;
}

/* Chỉ nút đóng nằm ở góc phải phía trên */
#samclo-mobile-image-lightbox > button:first-child {
    position: absolute !important;
    top: max(12px, env(safe-area-inset-top, 0px)) !important;
    right: 16px !important;
    left: auto !important;
    bottom: auto !important;

    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.15) !important;
    color: #fff !important;
    font-size: 30px !important;
}

/* Hàng thumbnail */
#samclo-mobile-image-lightbox .samclo-lightbox-thumbnails {
    position: relative !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 8px !important;
    width: 100% !important;
    max-width: 500px !important;
    min-height: 72px !important;

    padding: 4px 2px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
}

#samclo-mobile-image-lightbox
.samclo-lightbox-thumbnails::-webkit-scrollbar {
    display: none !important;
}

/* Từng thumbnail: ghi đè CSS button cũ */
#samclo-mobile-image-lightbox .samclo-lightbox-thumb {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    display: block !important;
    flex: 0 0 52px !important;

    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 68px !important;

    padding: 2px !important;
    margin: 0 !important;

    border: 1px solid rgba(255,255,255,.35) !important;
    border-radius: 4px !important;

    background: transparent !important;
    opacity: .55 !important;
    overflow: hidden !important;
}

/* Ảnh bên trong thumbnail */
#samclo-mobile-image-lightbox .samclo-lightbox-thumb img {
    position: static !important;

    display: block !important;
    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: contain !important;
    margin: 0 !important;
}

/* Thumbnail đang được chọn */
#samclo-mobile-image-lightbox .samclo-lightbox-thumb.active {
    border: 2px solid #f15a24 !important;
    opacity: 1 !important;
}



/* =====================================================
   SAMCLO - SỐ LƯỢNG + THÊM GIỎ CÙNG MỘT HÀNG
   MOBILE VARIATION SHEET
   ===================================================== */

@media (max-width: 849px) {

  /* Chia tỷ lệ 35% - 65% */
  #samclo-mobile-atc-overlay .samclo-mobile-purchase-row {
    display: grid !important;
    grid-template-columns: 35% minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 4px !important;
  }

  /* Khung số lượng */
  #samclo-mobile-atc-overlay .samclo-mobile-qty-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #222 !important;
    border-radius: 30px !important;
    background: #fff !important;
  }

  /* Ẩn chữ Số lượng để tiết kiệm diện tích */
  #samclo-mobile-atc-overlay .samclo-mobile-qty-row > strong {
    display: none !important;
  }

  /* Cụm nút tăng giảm */
  #samclo-mobile-atc-overlay .samclo-mobile-qty-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;

    width: 100% !important;
    gap: 0 !important;
  }

  #samclo-mobile-atc-overlay .samclo-mobile-qty-controls button {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 38px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    background: transparent !important;
    color: #222 !important;
    font-size: 17px !important;
  }

  #samclo-mobile-atc-overlay .samclo-mobile-qty-value {
    flex: 1 1 auto !important;
    min-width: 16px !important;
    text-align: center !important;
    font-size: 14px !important;
  }

  /* Nút thêm giỏ */
  #samclo-mobile-atc-overlay .samclo-mobile-sheet-submit {
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;

    margin: 0 !important;
    padding: 8px 5px !important;

    border-radius: 7px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }
}



/* =====================================================
   SAMCLO - MOBILE SIZE CHART POPUP
   Giới hạn chiều cao, nút đóng và cuộn bảng trong sticky
   ===================================================== */

/* SAMCLO - WPC SIZE CHART MOBILE */
@media (max-width: 767px) {

  /* Popup chiếm khoảng 58% chiều cao màn hình */
  .mfp-wrap .mfp-container {
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mfp-wrap .mfp-content {
    position: relative !important;
    width: 100% !important;
    max-width: 480px !important;
    height: auto !important;
    max-height: 58dvh !important;
    margin: 0 !important;
    vertical-align: middle !important;
  }

  /* Nội dung trắng lấp đầy khung popup */
  .mfp-wrap .wpcsc-popup {
    width: 100% !important;
    height: 58dvh !important;
    max-height: 58dvh !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 48px 14px 14px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #fff !important;
    border-radius: 10px !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Nút X ở góc trên bên phải */
  .mfp-wrap .mfp-close {
    position: absolute !important;
    top: 40px !important;
    right: 6px !important;
    left: auto !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 50% !important;
    color: #333 !important;
    font-family: Arial, sans-serif !important;
    font-size: 0 !important;
    line-height: 36px !important;
    opacity: 1 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    z-index: 999999 !important;
  }

  .mfp-wrap .mfp-close::before {
    content: none !important;
    display: none !important;
  }

  .mfp-wrap .mfp-close::after {
    content: "\00D7" !important;
    display: block !important;
    font-family: Arial, sans-serif !important;
    font-size: 27px !important;
    font-weight: 400 !important;
    line-height: 32px !important;
    color: #333 !important;
  }

  .mfp-wrap .wpcsc-popup .wpcsc-size-chart-title {
    padding-right: 35px !important;
  }

 /* SAMCLO - FIX VỊ TRÍ NÚT ĐÓNG SIZE CHART */
@media (max-width: 767px) {
  .mfp-wrap .wpcsc-popup button.mfp-close {
    top: 10px !important;
    right: 6px !important;
  }
}


  /* Bảng cuộn ngang */
  .mfp-wrap .wpcsc-popup table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .mfp-wrap .wpcsc-popup th,
  .mfp-wrap .wpcsc-popup td {
    min-width: 52px !important;
    padding: 9px 7px !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  /* Cố định cột tên thông số */
  .mfp-wrap .wpcsc-popup th:first-child,
  .mfp-wrap .wpcsc-popup td:first-child {
    position: sticky !important;
    left: 0 !important;
    min-width: 105px !important;
    width: 105px !important;
    max-width: 105px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-align: left !important;
    background: #fff !important;
    z-index: 2 !important;
  }

  .mfp-wrap .wpcsc-popup tbody tr:nth-child(even) td:first-child {
    background: #f3f3f3 !important;
  }
}


/* SAMCLO - thêm dấu x cho SIZE CHART CLOSE BUTTON DESKTOP */
@media (min-width: 768px) {
  .mfp-wrap .wpcsc-popup button.mfp-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;

    background: #111 !important;
    border: none !important;
    border-radius: 50% !important;

    color: #fff !important;
    font-size: 0 !important;
    line-height: 36px !important;
    opacity: 1 !important;
    text-shadow: none !important;
    box-shadow: none !important;

    z-index: 999999 !important;
    cursor: pointer !important;
  }

  .mfp-wrap .wpcsc-popup button.mfp-close::before {
    content: none !important;
    display: none !important;
  }

  .mfp-wrap .wpcsc-popup button.mfp-close::after {
    content: "\00D7" !important;
    display: block !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-size: 25px !important;
    font-weight: 400 !important;
    line-height: 32px !important;
  }
}


/* SAMCLO - Product Meta: bỏ line từng dòng */
.single-product .product_meta {
    position: relative;
    border: 0 !important;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.single-product .product_meta > span,
.single-product .product_meta > div {
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* SAMCLO - Thu hẹp khoảng cách Product Meta và đánh giá */
.single-product .product_meta {
    margin-bottom: 4px !important;
    padding-bottom: 0 !important;
}

/* SAMCLO - Product Meta: tăng nhẹ cỡ chữ */
.single-product .product_meta {
    font-size: 15px !important;
    line-height: 1.2 !important;
}

/* Hàng đánh giá + lượt bán + chia sẻ */
.single-product .samclo-social-proof,
.single-product .samclo-product-social-proof {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    position: relative;
    border-bottom: 0 !important;
}

/* SAMCLO - tạo khoảng cách giữa Divider và khối giá */
.single-product .product-price-container {
    margin-top: 0px !important;
}


/* ==========================================
   SAMCLO - SIZE CHART TABLE EXPANSION
   ========================================== */

/* Nút mở rộng trong ô tiêu đề đầu tiên */
.wpcsc-popup .wpcsc-size-chart-content thead th:first-child {
  position: relative !important;
}

.wpcsc-popup .samclo-size-expand-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #333 !important;
  cursor: pointer !important;
}

.wpcsc-popup .samclo-size-expand-trigger:hover {
  color: #f15a24 !important;
}

/* Lớp mở rộng chỉ chứa bảng size */
/* ==========================================
   SAMCLO - EXPANDED SIZE TABLE CENTER MODAL
   ========================================== */

.samclo-size-expand-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  background: rgba(0, 0, 0, 0.75) !important;
}

.samclo-size-expand-panel {
  position: relative !important;
  width: 90vw !important;
  max-width: 1200px !important;
  height: auto !important;
  max-height: 85vh !important;
  margin: auto !important;
  padding: 55px 24px 24px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: #fff !important;
  border-radius: 8px !important;
}

/* Nút đóng bảng mở rộng */
.samclo-size-expand-close {
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 1px solid #ddd !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #222 !important;
  font-size: 25px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.samclo-size-expand-scroll {
  width: 100% !important;
  max-height: calc(85vh - 80px) !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
}

.samclo-size-expand-scroll table {
  width: 100% !important;
  min-width: 750px !important;
  margin: 0 !important;
  border-collapse: collapse !important;
  font-size: 14px !important;
}

.samclo-size-expand-scroll th,
.samclo-size-expand-scroll td {
  padding: 13px 16px !important;
  white-space: nowrap !important;
  text-align: center !important;
}

.samclo-size-expand-scroll th:first-child,
.samclo-size-expand-scroll td:first-child {
  text-align: left !important;
}

/* Mobile */
@media (max-width: 767px) {
  .samclo-size-expand-overlay {
    padding: 12px !important;
  }

  .samclo-size-expand-panel {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 85dvh !important;
    padding: 50px 12px 14px !important;
  }

  .samclo-size-expand-scroll {
    max-height: calc(85dvh - 70px) !important;
  }

  .samclo-size-expand-scroll table {
    min-width: 650px !important;
    font-size: 13px !important;
  }

  .samclo-size-expand-scroll th,
  .samclo-size-expand-scroll td {
    padding: 10px 9px !important;
  }
}

/* ==========================================
   SAMCLO - ORIGINAL SIZE GUIDE SIDE DRAWER
   Chỉ áp dụng desktop
   ========================================== */

@media (min-width: 768px) {

  .mfp-wrap {
    overflow: hidden !important;
  }

  .mfp-wrap .mfp-container {
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-end !important;
    padding: 0 !important;
  }

  .mfp-wrap .mfp-container::before {
    display: none !important;
  }

  .mfp-wrap .mfp-content {
    width: clamp(420px, 36vw, 620px) !important;
    max-width: 620px !important;
    height: 100vh !important;
    margin: 0 !important;
    vertical-align: top !important;
    text-align: left !important;
  }

  .mfp-wrap .wpcsc-popup {
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 65px 30px 30px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-radius: 0 !important;
    background: #fff !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Nút đóng popup hướng dẫn */
  .mfp-wrap .wpcsc-popup button.mfp-close {
    top: 12px !important;
    right: 14px !important;
  }
}

/* SAMCLO - BÔI ĐẬM TÊN THÔNG SỐ TRONG BẢNG MỞ RỘNG */
.samclo-size-expand-scroll table tbody td:first-child {
  font-weight: 700 !important;
  color: #222 !important;
  text-align: left !important;
}

/* SAMCLO - TÔ NỀN XEN KẼ CÁC HÀNG BẢNG SIZE MỞ RỘNG */
.samclo-size-expand-scroll table tbody tr:nth-child(even) {
  background-color: #f1f1f1 !important;
}

.samclo-size-expand-scroll table tbody tr:nth-child(odd) {
  background-color: #fff !important;
}

/* SAMCLO - Mobile: đánh giá và chia sẻ cùng hàng, không ảnh hưởng bố cục sản phẩm */
@media screen and (max-width: 549px) {
    body.single-product .row:has(> .col > .col-inner > .samclo-social-proof):has(> .col > .col-inner > .samclo-share) {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
    }

    body.single-product .row:has(> .col > .col-inner > .samclo-social-proof):has(> .col > .col-inner > .samclo-share) > .col:has(> .col-inner > .samclo-social-proof) {
        flex: 0 0 75% !important;
        width: 75% !important;
        max-width: 75% !important;
    }

    body.single-product .row:has(> .col > .col-inner > .samclo-social-proof):has(> .col > .col-inner > .samclo-share) > .col:has(> .col-inner > .samclo-share) {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
    }

    body.single-product .row:has(> .col > .col-inner > .samclo-social-proof):has(> .col > .col-inner > .samclo-share) .samclo-social-proof {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        white-space: nowrap !important;
        gap: 4px !important;
        font-size: 12px !important;
    }

    body.single-product .row:has(> .col > .col-inner > .samclo-social-proof):has(> .col > .col-inner > .samclo-share) .samclo-share {
        margin: 0 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    body.single-product .row:has(> .col > .col-inner > .samclo-social-proof):has(> .col > .col-inner > .samclo-share) .samclo-share__trigger {
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        font-size: 12px !important;
    }
}


/* Samclo - Link mô tả sản phẩm */
.samclo-description-link {
    display: block;
    width: fit-content;
    margin: 14px auto 0;
    color: #333;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
}

#tab-description {
    scroll-margin-top: 110px;
}




/* =========================================================
   08. PRODUCT SUPPORT UI — UI BỔ TRỢ SẢN PHẨM
   ---------------------------------------------------------
   Policy grid, upsell, Product Meta, gallery overlay và các thành phần
   hỗ trợ hiển thị sản phẩm không thuộc nhóm checkout.
   ========================================================= */

/* =========================================
   SAMCLO - MOBILE PRODUCT GALLERY OVERLAY
   Flatsome Child Theme
========================================= */

@media (max-width: 849px) {

  /* Hàng chứa gallery */
  .samclo-gallery-row {
    position: relative !important;
  }

  /* Ảnh chính */
  .samclo-main-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 10px !important;
  }

  /* Cột thumbnail overlay */
  .samclo-thumb-col {
    position: absolute !important;
    top: 12px !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    width: 44px !important;
    max-width: 44px !important;
    flex: 0 0 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 30 !important;
    transform: none !important;
  }

  .samclo-thumb-col > .col-inner {
    width: 44px !important;
    margin: 0 !important;
  }

  /* Khung thumbnail */
  .samclo-thumb-col .product-thumbnails {
    position: relative !important;
    display: block !important;
    width: 44px !important;
    height: 420px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .samclo-thumb-col .flickity-viewport {
    width: 44px !important;
    height: 420px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .samclo-thumb-col .flickity-viewport::-webkit-scrollbar {
    display: none !important;
  }

  .samclo-thumb-col .flickity-slider {
    width: 44px !important;
    height: var(--samclo-thumb-list-height, 420px) !important;
    transform: none !important;
  }

  /* Từng ảnh phụ */
  .samclo-thumb-col .product-thumbnails .col {
    position: absolute !important;
    left: 0 !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 54px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
    top: var(--samclo-thumb-top, 0px) !important;
  }

  .samclo-thumb-col .col a {
    display: block !important;
    width: 40px !important;
    height: 54px !important;
  }

  .samclo-thumb-col .col img {
    display: block !important;
    width: 40px !important;
    height: 54px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    object-fit: cover !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    box-sizing: border-box !important;
  }

  /* Ảnh đang được chọn */
  .samclo-thumb-col .col.is-nav-selected img {
    border: 2px solid #222 !important;
    opacity: 1 !important;
  }

  /* Nút chuyển ảnh */
  .samclo-main-col .product-gallery-slider .flickity-prev-next-button {
    display: block !important;
    opacity: 1 !important;
    top: auto !important;
    bottom: 24px !important;
    transform: none !important;
    width: 36px !important;
    height: 36px !important;
    background: #fff !important;
    border-radius: 50% !important;
  }

  .samclo-main-col .product-gallery-slider .flickity-prev-next-button.previous {
    left: auto !important;
    right: 54px !important;
  }

  .samclo-main-col .product-gallery-slider .flickity-prev-next-button.next {
    right: 10px !important;
  }
}


  /* định dạng lại box cam kêt-chính sách */
/* =====================================
  /* =====================================
 /* =====================================
   SAMCLO POLICY - FINAL LAYOUT FIX
===================================== */

/* Grid 2 cột */
.samclo-policy-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 24px !important;
    padding: 16px !important;
    background: #f2f2f2 !important;
    border-radius: 8px !important;
    align-items: center !important;
}

/* Reset Flatsome Column */
.samclo-policy-grid > .col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.samclo-policy-grid .col-inner {
    width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
}

/* Icon Box */
.samclo-policy-grid .icon-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
}

/* Icon: cố định 28px */
.samclo-policy-grid .icon-box-img {
    display: block !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.samclo-policy-grid .icon-box-img .icon,
.samclo-policy-grid .icon-box-img .icon-inner {
    width: 28px !important;
    height: 28px !important;
}

.samclo-policy-grid .icon-box-img img {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
    margin: 0 !important;
}

/* Text: cho phép co theo không gian còn lại */
.samclo-policy-grid .icon-box-text {
    display: block !important;
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.samclo-policy-grid .icon-box-text p {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    overflow-wrap: break-word;
}

/* Desktop */
@media (min-width: 850px) {
    .samclo-policy-grid {
        gap: 16px 32px !important;
        padding: 16px !important;
    }
}

/* Mobile */
@media (max-width: 849px) {
    .samclo-policy-grid {
        gap: 16px 12px !important;
        padding: 12px !important;
    }

    .samclo-policy-grid .icon-box {
        gap: 8px !important;
    }
}

/* FIX: Loại bỏ padding mặc định của Flatsome */
/* SAMCLO - Policy grid */
.samclo-policy-grid > .col > .col-inner {
    width: 100% !important;
    padding: 0 !important;
    min-width: 0 !important;
}

/* SAMCLO - Giảm khoảng cách giữa 2 hàng chính sách */
.samclo-policy-grid {
    row-gap: 10px !important;
}


/* SAMCLO - Policy text adaptive sizing */
@media (max-width: 849px) {
    .samclo-policy-grid .icon-box-text p {
        font-size: 10px !important;
        line-height: 12px !important;
        color: #111 !important;
        font-weight: 600 !important;
    }
}



/* =========================================
   SAMCLO - UPSELLS / COOLMATE STYLE
   Scope: WooCommerce Upsells only
========================================= */

/* Product layout */
.single-product .up-sells.upsells-wrapper .row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    width: 100%;
}

.single-product .up-sells.upsells-wrapper .product-small {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Hide original sale badge */
.single-product .up-sells.upsells-wrapper .badge-container {
    display: none !important;
}

/* Product image */
.single-product .up-sells.upsells-wrapper .box-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3 / 4;
}

.single-product .up-sells.upsells-wrapper .box-image .image-zoom,
.single-product .up-sells.upsells-wrapper .box-image > a {
    width: 100%;
    height: 100%;
}

.single-product .up-sells.upsells-wrapper .box-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

/* Hide quick view */
.single-product .up-sells.upsells-wrapper .grid-tools {
    display: none !important;
}

/* Product information */
.single-product .up-sells.upsells-wrapper .box-text {
    padding: 8px 0 0;
    text-align: left;
    height: auto !important;
}

.single-product .up-sells.upsells-wrapper .title-wrapper,
.single-product .up-sells.upsells-wrapper .price-wrapper,
.single-product .up-sells.upsells-wrapper .add-to-cart-button {
    height: auto !important;
}

/* Product name - one line */
.single-product .up-sells.upsells-wrapper .product-title {
    height: auto !important;
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
}

.single-product .up-sells.upsells-wrapper .product-title a {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Hide rating */
.single-product .up-sells.upsells-wrapper .star-rating {
    display: none !important;
}

/* Price */
.single-product .up-sells.upsells-wrapper .price-wrapper {
    margin: 0;
}

.single-product .up-sells.upsells-wrapper .price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.single-product .up-sells.upsells-wrapper .price del {
    order: 2;
    font-size: 11px;
    font-weight: 400;
    color: #999;
}

.single-product .up-sells.upsells-wrapper .price ins {
    order: 1;
    text-decoration: none;
}

.single-product .up-sells.upsells-wrapper .samclo-sale-percent {
    order: 3;
    display: inline-block;
    padding: 1px 5px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 600;
}

/* Tablet */
@media (max-width: 849px) and (min-width: 550px) {
    .single-product .up-sells.upsells-wrapper .row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile - horizontal scrolling */
@media (max-width: 549px) {
    .single-product .up-sells.upsells-wrapper .row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 12px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .single-product .up-sells.upsells-wrapper .product-small {
        flex: 0 0 42%;
        width: 42%;
        max-width: 42%;
        scroll-snap-align: start;
    }
}


/* Upsells floating cart button */
.single-product .up-sells.upsells-wrapper .add-to-cart-button {
    position: absolute;
    right: 7px;
    bottom: 7px;
    z-index: 5;
    margin: 0 !important;
    width: 40px;
    height: 40px;
}

.single-product .up-sells.upsells-wrapper .add-to-cart-button a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #ddd !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.95) !important;
    color: #111 !important;
    font-size: 0 !important;
    line-height: 1;
    box-shadow: none;
}

.single-product .up-sells.upsells-wrapper .add-to-cart-button a::before {
    content: "";
    display: block;
    width: 21px;
    height: 21px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h2l2.4 12.5a2 2 0 0 0 2 1.6h8.8a2 2 0 0 0 2-1.6L22 8H6'/%3E%3Ccircle cx='10' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M14 9v6m-3-3h6'/%3E%3C/svg%3E");
}

.single-product .up-sells.upsells-wrapper .add-to-cart-button a:hover {
    background: #fff !important;
    border-color: #111 !important;
}


/* SAMCLO - Remove duplicate Flatsome image cart */

/* SAMCLO - Hide WooCommerce View Cart link in Upsells */
.single-product .up-sells.upsells-wrapper
.add-to-cart-button a.added_to_cart.wc-forward {
    display: none !important;
}



/* =========================================================
   09. CART & MINI CART — GIỎ HÀNG & MINI CART
   ---------------------------------------------------------
   Header Cart, Mini Cart dropdown, sản phẩm, số lượng, subtotal,
   footer, nút Xem giỏ hàng và responsive mobile.
   ========================================================= */

/* SAMCLO - Header Cart giống Coolmate */
/* Ẩn tổng tiền, giữ icon và số lượng sản phẩm */

.header-cart-link .cart-price,
.header-cart-link .cart-total,
.header-cart-link .header-cart-title {
    display: none !important;
}

/* SAMCLO - Căn chính giữa icon giỏ hàng */

.header-main .header-button a.header-cart-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;

    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Ẩn toàn bộ vùng chứa giá tiền */
.header-main .header-cart-link .header-cart-title {
    display: none !important;
}

/* Căn icon */
.header-main .header-cart-link > i.icon-shopping-basket {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* =================================================
   SAMCLO - HEADER CART HOVER DROPDOWN
   Desktop: hiển thị Mini Cart dạng dropdown
   ================================================= */

@media (min-width: 850px) {

    /* Ẩn lớp phủ nền */
    .mfp-bg {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Không chiếm toàn màn hình */
    .mfp-wrap {
        overflow: visible !important;
        pointer-events: none !important;
    }

    .mfp-container {
        padding: 0 !important;
        text-align: right !important;
        pointer-events: none !important;
    }

    .mfp-content {
        width: 360px !important;
        max-width: calc(100vw - 30px) !important;
        margin: 0 !important;
        pointer-events: auto !important;
        vertical-align: top !important;
    }

    /* Khung dropdown */
    #cart-popup {
        width: 360px !important;
        max-width: calc(100vw - 30px) !important;
        background: #fff !important;
        border-radius: 10px !important;
        box-shadow: 0 4px 20px rgba(0,0,0,.12) !important;
        position: fixed !important;
        top: 75px !important;
        right: 30px !important;
        left: auto !important;
        max-height: 75vh !important;
        overflow: hidden !important;
    }

    .cart-popup-inner {
        padding: 16px !important;
    }
}





/* =====================================================
   SAMCLO - MINI CART DROPDOWN STYLE
   Tham chiếu giao diện Coolmate
   ===================================================== */

@media (min-width: 850px) {

    /* Khung chính */
    #cart-popup {
        width: 340px !important;
        max-width: calc(100vw - 30px) !important;
        max-height: 75vh !important;
        background: #fff !important;
        border: 1px solid #eee !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 18px rgba(0,0,0,.10) !important;
        overflow: hidden !important;
    }

    .cart-popup-inner {
        padding: 14px !important;
    }

    /* Ẩn tiêu đề GIỎ HÀNG và đường phân cách */
    #cart-popup .cart-popup-title {
        display: none !important;
    }

    /* Khu vực danh sách sản phẩm */
    #cart-popup .widget_shopping_cart_content {
        display: flex !important;
        flex-direction: column !important;
    }

    #cart-popup ul.woocommerce-mini-cart {
        display: block !important;
        max-height: 430px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 5px 0 0 !important;
    }

    /* Từng sản phẩm */
    #cart-popup li.mini_cart_item {
        position: relative !important;
        display: block !important;
        min-height: 110px !important;
        padding: 0 20px 14px 0 !important;
        margin: 0 0 14px !important;
        border-bottom: 1px solid #eee !important;
        overflow: hidden !important;
    }

    /* Nút xóa */
    #cart-popup li.mini_cart_item > a.remove {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 20px !important;
        height: 20px !important;
        line-height: 18px !important;
        font-size: 18px !important;
        color: #999 !important;
        background: transparent !important;
        border: 0 !important;
        z-index: 2 !important;
    }

    /* Link sản phẩm */
    #cart-popup li.mini_cart_item > a:not(.remove) {
        display: block !important;
        min-height: 110px !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #111 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
        overflow: hidden !important;
    }

    /* Ảnh sản phẩm */
    #cart-popup li.mini_cart_item > a:not(.remove) img {
        float: left !important;
        width: 82px !important;
        height: 110px !important;
        object-fit: cover !important;
        border-radius: 7px !important;
        margin: 0 12px 0 0 !important;
    }

    /* Thông tin màu sắc, kích cỡ */
    #cart-popup li.mini_cart_item dl.variation {
        margin: 3px 0 5px 94px !important;
        padding: 0 !important;
        border: 0 !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
        color: #777 !important;
    }

    #cart-popup li.mini_cart_item dl.variation dt {
        display: none !important;
    }

    #cart-popup li.mini_cart_item dl.variation dd {
        display: inline !important;
        float: none !important;
        margin: 0 5px 0 0 !important;
        padding: 0 !important;
    }

    #cart-popup li.mini_cart_item dl.variation p {
        display: inline !important;
        margin: 0 !important;
    }

    /* Giá và số lượng */
    #cart-popup .ux-mini-cart-qty {
        margin: 5px 0 0 94px !important;
        padding: 0 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #111 !important;
    }

    #cart-popup .ux-mini-cart-qty .quantity {
        color: #111 !important;
    }

    @media (min-width: 850px) {
    #cart-popup .ux-mini-cart-qty .woocommerce-Price-amount {
        color: #000 !important;
    }
}

    /* Footer */
    #cart-popup .ux-mini-cart-footer {
        padding: 12px 0 0 !important;
        margin: 0 !important;
        border-top: 1px solid #eee !important;
    }

    /* Tổng tiền */
    #cart-popup .woocommerce-mini-cart__total {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin: 0 0 12px !important;
        padding: 0 !important;
        border: 0 !important;
        font-size: 13px !important;
        color: #111 !important;
    }

    #cart-popup .woocommerce-mini-cart__total strong {
        font-weight: 500 !important;
    }

    #cart-popup .woocommerce-mini-cart__total .amount {
        font-weight: 700 !important;
    }

    /* Ẩn nút Thanh toán, giữ nút Xem giỏ hàng */
    #cart-popup .woocommerce-mini-cart__buttons {
        display: flex !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #cart-popup .woocommerce-mini-cart__buttons a.checkout {
        display: none !important;
    }

    #cart-popup .woocommerce-mini-cart__buttons a.wc-forward {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: 8px 15px !important;
        border: 1px solid #222 !important;
        border-radius: 22px !important;
        background: #fff !important;
        color: #111 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        text-transform: none !important;
    }
}




/* SAMCLO - Loại bỏ vùng bao trắng của Magnific Popup */
@media (min-width: 850px) {

    .mfp-bg {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .mfp-wrap {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: visible !important;
        background: transparent !important;
        pointer-events: none !important;
    }

    .mfp-container {
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        background: transparent !important;
        pointer-events: none !important;
    }

    .mfp-content {
        display: block !important;
        width: 340px !important;
        max-width: calc(100vw - 30px) !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
        vertical-align: top !important;
        pointer-events: none !important;
    }

    #cart-popup {
        position: fixed !important;
        top: 95px !important;
        right: 25px !important;
        left: auto !important;
        width: 340px !important;
        max-width: calc(100vw - 30px) !important;
        background: #fff !important;
        pointer-events: auto !important;
    }

    #cart-popup * {
        pointer-events: auto;
    }
}



/* =====================================================
   SAMCLO - MINI CART DROPDOWN
   Layout theo tham chiếu Coolmate
   ===================================================== */

@media (min-width: 850px) {

    /* 1. Khung dropdown */
    #cart-popup {
        width: 340px !important;
        max-width: calc(100vw - 30px) !important;
        max-height: 75vh !important;
        background: #fff !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .cart-popup-inner {
        padding: 14px !important;
    }

    /* Ẩn tiêu đề GIỎ HÀNG */
    #cart-popup .cart-popup-title {
        display: none !important;
    }

    /* 2. Sắp xếp tổng tiền lên đầu */
    #cart-popup .widget_shopping_cart_content {
        display: flex !important;
        flex-direction: column !important;
    }

    #cart-popup .ux-mini-cart-footer {
        display: contents !important;
    }

    #cart-popup .woocommerce-mini-cart__total {
        order: 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin: 0 0 14px !important;
        padding: 0 0 12px !important;
        border-bottom: 1px solid #eee !important;
        font-size: 12px !important;
        color: #333 !important;
    }

    #cart-popup .woocommerce-mini-cart__total strong {
        font-weight: 400 !important;
    }

    #cart-popup .woocommerce-mini-cart__total .amount {
        font-weight: 700 !important;
        color: #111 !important;
    }

    /* 3. Danh sách sản phẩm */
    #cart-popup ul.woocommerce-mini-cart {
        order: 1 !important;
        display: block !important;
        max-height: 430px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 5px 0 0 !important;
    }

    #cart-popup li.mini_cart_item {
        position: relative !important;
        display: block !important;
        min-height: 110px !important;
        margin: 0 0 14px !important;
        padding: 0 20px 14px 0 !important;
        border-bottom: 1px solid #eee !important;
        overflow: hidden !important;
    }

    /* 4. Ảnh cố định bên trái */
    #cart-popup li.mini_cart_item > a:not(.remove) {
        position: relative !important;
        display: block !important;
        min-height: 110px !important;
        padding: 0 0 0 96px !important;
        margin: 0 !important;
        color: #111 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
        overflow: hidden !important;
    }

    #cart-popup li.mini_cart_item > a:not(.remove) img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        float: none !important;
        width: 84px !important;
        height: 110px !important;
        object-fit: cover !important;
        border-radius: 7px !important;
        margin: 0 !important;
    }

    /* 5. Nút xóa sản phẩm */
    #cart-popup li.mini_cart_item > a.remove {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        z-index: 3 !important;
        width: 20px !important;
        height: 20px !important;
        line-height: 18px !important;
        font-size: 17px !important;
        color: #999 !important;
        background: transparent !important;
        border: 0 !important;
    }

    /* 6. Màu sắc và kích cỡ */
    #cart-popup li.mini_cart_item dl.variation {
        margin: 3px 0 4px 96px !important;
        padding: 0 !important;
        border: 0 !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
        color: #777 !important;
    }

    #cart-popup li.mini_cart_item dl.variation dt {
        display: none !important;
    }

    #cart-popup li.mini_cart_item dl.variation dd {
        display: inline !important;
        float: none !important;
        margin: 0 5px 0 0 !important;
        padding: 0 !important;
    }

    #cart-popup li.mini_cart_item dl.variation p {
        display: inline !important;
        margin: 0 !important;
    }

    /* 7. Giá và số lượng */
    #cart-popup .ux-mini-cart-qty {
        margin: 4px 0 0 96px !important;
        padding: 0 !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        color: #111 !important;
    }

    #cart-popup .ux-mini-cart-qty .quantity {
        font-weight: 600 !important;
    }

    #cart-popup .ux-mini-cart-qty .woocommerce-Price-amount {
        font-weight: 700 !important;
    }

    /* 8. Footer và nút Xem giỏ hàng */
    #cart-popup .woocommerce-mini-cart__buttons {
        order: 2 !important;
        display: flex !important;
        margin: 0 !important;
        padding: 12px 0 0 !important;
        border-top: 1px solid #eee !important;
    }

    /* Ẩn nút Thanh toán */
    #cart-popup .woocommerce-mini-cart__buttons a.checkout {
        display: none !important;
    }

    /* Chỉ giữ nút Xem giỏ hàng */
    #cart-popup .woocommerce-mini-cart__buttons a.wc-forward {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: 8px 15px !important;
        border: 1px solid #222 !important;
        border-radius: 22px !important;
        background: #fff !important;
        color: #111 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        text-transform: none !important;
    }
}




/* =====================================================
   SAMCLO - MINI CART LAYOUT V2
   ===================================================== */

@media (min-width: 850px) {

    /* DROPDOWN */
    .mfp-content {
        width: 380px !important;
        max-width: calc(100vw - 30px) !important;
    }

    #cart-popup {
        width: 380px !important;
        max-width: calc(100vw - 30px) !important;
        right: 60px !important;
        left: auto !important;
        box-sizing: border-box !important;
    }

    .cart-popup-inner {
        padding: 14px !important;
    }

    /* TỔNG TIỀN */
    #cart-popup .woocommerce-mini-cart__total {
        margin-bottom: 12px !important;
        padding-bottom: 0 !important;
        border: 0 !important;
    }

    /* DANH SÁCH */
    #cart-popup ul.woocommerce-mini-cart {
        max-height: 430px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0 5px 0 0 !important;
    }

    /* MỖI SẢN PHẨM */
    #cart-popup li.mini_cart_item {
        position: relative !important;
        display: block !important;
        box-sizing: border-box !important;
        height: 133px !important;
        min-height: 133px !important;
        margin: 0 0 12px !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    /* LINK CHỨA ẢNH VÀ TÊN */
    #cart-popup li.mini_cart_item > a:not(.remove) {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: 133px !important;
        min-height: 133px !important;
        padding: 0 0 0 112px !important;
        margin: 0 !important;
        box-sizing: border-box !important;

        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;

        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* ẢNH 3:4 */
    #cart-popup li.mini_cart_item > a:not(.remove) img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        display: block !important;

        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        height: 133px !important;
        max-height: 133px !important;

        aspect-ratio: 3 / 4 !important;
        object-fit: cover !important;
        object-position: center !important;

        margin: 0 !important;
        padding: 0 !important;
        border-radius: 7px !important;
    }

    /* PHÂN LOẠI - ĐỊNH VỊ NGAY DƯỚI TÊN */
    #cart-popup li.mini_cart_item dl.variation {
        position: absolute !important;
        top: 24px !important;
        left: 112px !important;
        right: 20px !important;

        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;

        font-size: 12px !important;
        line-height: 1.4 !important;
        color: #777 !important;
    }

    #cart-popup li.mini_cart_item dl.variation dt {
        display: none !important;
    }

    #cart-popup li.mini_cart_item dl.variation dd {
        display: inline !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #cart-popup li.mini_cart_item dl.variation dd p {
        display: inline !important;
        margin: 0 !important;
    }

    #cart-popup li.mini_cart_item dl.variation dd[class*="Size"]::before,
    #cart-popup li.mini_cart_item dl.variation dd[class*="Kchc"]::before {
        content: " / ";
    }

    /* GIÁ VÀ SỐ LƯỢNG */
    #cart-popup .ux-mini-cart-qty {
        position: absolute !important;
        top: 47px !important;
        left: 112px !important;
        right: 20px !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    /* Tách giá và số lượng thành hai dòng */
    #cart-popup .ux-mini-cart-qty .quantity {
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: flex-start !important;
        gap: 4px !important;

        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    /* Giá */
    #cart-popup .ux-mini-cart-qty .woocommerce-Price-amount {
        display: block !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #111 !important;
    }

    /* Nút xóa */
    #cart-popup li.mini_cart_item > a.remove {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        z-index: 5 !important;
    }

    /* BỎ ĐƯỜNG KẺ */
    #cart-popup li.mini_cart_item,
    #cart-popup .ux-mini-cart-footer,
    #cart-popup .woocommerce-mini-cart__total {
        border: 0 !important;
    }

    /* FOOTER */
    #cart-popup .ux-mini-cart-footer {
        padding-top: 8px !important;
    }
}



/* SAMCLO - Mini Cart: giá sản phẩm */
@media (min-width: 850px) {
    #cart-popup .ux-mini-cart-qty .woocommerce-Price-amount {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #000 !important;
    }
}





/* SAMCLO - Mini Cart: Subtotal inline giống Coolmate */
@media (min-width: 850px) {

    #cart-popup .woocommerce-mini-cart__total {
        display: block !important;
        text-align: left !important;
        white-space: nowrap !important;
        margin-bottom: 12px !important;
    }

    #cart-popup .woocommerce-mini-cart__total strong {
        display: inline !important;
        margin-right: 4px !important;
    }

    #cart-popup .woocommerce-mini-cart__total > .woocommerce-Price-amount {
        display: inline !important;
        margin-left: 0 !important;
        font-weight: 700 !important;
    }

    #cart-popup .samclo-cart-product-count {
        display: inline !important;
        margin-left: 4px !important;
        font-size: 12px !important;
        font-weight: 400 !important;
        color: #666 !important;
    }
}



/* SAMCLO - Mini Cart: tách tên sản phẩm khỏi nút xóa */
@media (min-width: 850px) {

    #cart-popup li.mini_cart_item > a:not(.remove) {
        padding-right: 26px !important;
        box-sizing: border-box !important;
    }

    #cart-popup li.mini_cart_item > a.remove {
        right: 0 !important;
        left: auto !important;
        top: 0 !important;
        z-index: 10 !important;
    }

    #cart-popup li.mini_cart_item dl.variation,
    #cart-popup .ux-mini-cart-qty {
        right: 26px !important;
    }
}



@media (min-width: 850px) {
    #cart-popup,
    #cart-popup .cart-popup-inner,
    #cart-popup .widget_shopping_cart,
    #cart-popup .widget_shopping_cart_content {
        height: auto !important;
        min-height: 0 !important;
    }

    #cart-popup .cart-popup-inner {
        padding-bottom: 14px !important;
    }
}

/* SAMCLO - Mini Cart: tăng giảm số lượng */

@media (min-width: 850px) {

    /* Khung điều khiển số lượng */
    #cart-popup .samclo-mini-cart-qty-controls {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;

        width: 88px !important;
        min-width: 88px !important;
        max-width: 88px !important;
        height: 34px !important;
        min-height: 34px !important;

        padding: 0 4px !important;
        margin: 0 !important;
        gap: 0 !important;

        border: 1px solid #ccc !important;
        border-radius: 20px !important;
        box-sizing: border-box !important;
    }

    /* Hai nút trừ và cộng */
    #cart-popup .samclo-mini-cart-qty-controls button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        flex: 0 0 26px !important;
        width: 26px !important;
        min-width: 26px !important;
        height: 32px !important;
        min-height: 32px !important;

        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;

        font-size: 17px !important;
        line-height: 1 !important;
        color: #222 !important;
    }

    /* Số lượng ở chính giữa */
    #cart-popup .samclo-mini-cart-qty-controls .samclo-qty-value {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        flex: 1 1 auto !important;
        min-width: 0 !important;
        height: 32px !important;

        margin: 0 !important;
        padding: 0 !important;

        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        text-align: center !important;
    }
}


@media (min-width: 850px) {

    /* Khung chứa giá và cụm số lượng */
    #cart-popup .ux-mini-cart-qty {
        display: block !important;
        width: 100% !important;
    }

    /* Giá luôn chiếm một dòng riêng */
    #cart-popup .ux-mini-cart-qty > .quantity {
        display: block !important;
        width: 100% !important;
        margin: 0 0 7px 0 !important;
        float: none !important;
        clear: both !important;
    }

    #cart-popup .ux-mini-cart-qty > .quantity .woocommerce-Price-amount {
        display: block !important;
        margin: 0 !important;
    }

    /* Cụm điều khiển luôn xuống dòng */
    #cart-popup .ux-mini-cart-qty > .samclo-mini-cart-qty-controls {
        display: flex !important;
        position: static !important;
        float: none !important;
        clear: both !important;

        width: 88px !important;
        min-width: 88px !important;
        max-width: 88px !important;
        height: 34px !important;

        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;

        margin: 0 !important;
        padding: 0 4px !important;
        box-sizing: border-box !important;
    }

    #cart-popup .samclo-mini-cart-qty-controls button {
        display: flex !important;
        flex: 0 0 26px !important;
        width: 26px !important;
        height: 32px !important;
        min-height: 32px !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #cart-popup .samclo-mini-cart-qty-controls .samclo-qty-value {
        display: flex !important;
        flex: 1 1 auto !important;
        align-items: center !important;
        justify-content: center !important;
        height: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
}


/* GIÃN ĐỀU NỘI DUNG TRONG MINI CART */
@media (min-width: 850px) {

    /* Vùng nội dung bên phải ảnh */
    #cart-popup li.mini_cart_item {
        height: 120px !important;
        min-height: 120px !important;
    }

    /* Tên sản phẩm */
    #cart-popup li.mini_cart_item > a:not(.remove) {
        height: 120px !important;
        display: block !important;
        padding-top: 0 !important;
        line-height: 1.4 !important;
    }

    /* Màu sắc / Size */
    #cart-popup li.mini_cart_item dl.variation {
        top: 24px !important;
        line-height: 1.4 !important;
    }

    /* Giá */
    #cart-popup .ux-mini-cart-qty {
        top: 47px !important;
        gap: 7px !important;
    }

    #cart-popup .ux-mini-cart-qty .woocommerce-Price-amount {
        color: #000 !important;
        line-height: 1.4 !important;
    }

    /* Nút số lượng */
    #cart-popup .samclo-mini-cart-qty-controls {
        margin-top: 0 !important;
    }
}

@media (min-width: 850px) {

    #cart-popup .ux-mini-cart-qty .quantity,
    #cart-popup .ux-mini-cart-qty .quantity .woocommerce-Price-amount,
    #cart-popup .ux-mini-cart-qty .quantity .woocommerce-Price-amount bdi,
    #cart-popup .ux-mini-cart-qty .quantity .woocommerce-Price-currencySymbol {
        color: #000000 !important;
    }

}

@media (min-width: 850px) {
    #cart-popup .ux-mini-cart-qty .quantity {
        opacity: 1 !important;
    }
}


@media (min-width: 850px) {

    /* 1. Tăng chiều ngang Mini Cart */
    .mfp-content {
        width: 430px !important;
        max-width: calc(100vw - 30px) !important;
    }

    #cart-popup {
        width: 430px !important;
        max-width: calc(100vw - 30px) !important;
    }

    /* 2. Tăng khoảng cách giữa các sản phẩm */
    #cart-popup ul.woocommerce-mini-cart {
        max-height: 440px !important;
        padding-right: 5px !important;
        padding-bottom: 0 !important;
    }

    #cart-popup li.mini_cart_item {
        margin-bottom: 16px !important;
        height: 120px !important;
        min-height: 120px !important;
    }

    #cart-popup li.mini_cart_item:last-child {
        margin-bottom: 4px !important;
    }

    /* 3. Thanh cuộn mỏng và tinh tế hơn */
    #cart-popup ul.woocommerce-mini-cart {
        scrollbar-width: thin;
        scrollbar-color: #bdbdbd transparent;
    }

    #cart-popup ul.woocommerce-mini-cart::-webkit-scrollbar {
        width: 4px;
    }

    #cart-popup ul.woocommerce-mini-cart::-webkit-scrollbar-track {
        background: transparent;
    }

    #cart-popup ul.woocommerce-mini-cart::-webkit-scrollbar-thumb {
        background: #bdbdbd;
        border-radius: 10px;
    }

    #cart-popup ul.woocommerce-mini-cart::-webkit-scrollbar-thumb:hover {
        background: #888;
    }
}


/* DÙNG CHUNG MINI CART CHO MOBILE */

@media (max-width: 849px) {

    /* Popup: căn giữa, gần hết chiều ngang màn hình */
    body .mfp-wrap .mfp-content:has(#cart-popup) {
        width: calc(100vw - 24px) !important;
        max-width: 420px !important;
        margin: 0 auto !important;
        vertical-align: middle !important;
    }

    #cart-popup {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 88vh !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        background: #fff !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    #cart-popup .cart-popup-inner {
        display: flex !important;
        flex-direction: column !important;
        max-height: 88vh !important;
        padding: 14px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Bỏ tiêu đề Giỏ hàng kiểu popup cũ */
    #cart-popup .cart-popup-title {
        display: none !important;
    }

    #cart-popup .widget_shopping_cart,
    #cart-popup .widget_shopping_cart_content {
        min-height: 0 !important;
        height: auto !important;
    }

    #cart-popup .widget_shopping_cart_content {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Danh sách sản phẩm có vùng cuộn riêng */
    #cart-popup ul.woocommerce-mini-cart {
        flex: 0 1 auto !important;
        max-height: 54vh !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0 5px 0 0 !important;
        margin: 0 !important;
        scrollbar-width: thin;
        scrollbar-color: #bbb transparent;
    }

    #cart-popup ul.woocommerce-mini-cart::-webkit-scrollbar {
        width: 4px;
    }

    #cart-popup ul.woocommerce-mini-cart::-webkit-scrollbar-thumb {
        background: #bbb;
        border-radius: 10px;
    }

    /* Mỗi sản phẩm */
    #cart-popup li.mini_cart_item {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: 120px !important;
        min-height: 120px !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Tên sản phẩm */
    #cart-popup li.mini_cart_item > a:not(.remove) {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: 120px !important;
        min-height: 120px !important;
        padding: 0 22px 0 96px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        overflow: hidden !important;
    }

    /* Ảnh sản phẩm */
    #cart-popup li.mini_cart_item > a:not(.remove) img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        display: block !important;
        width: 86px !important;
        min-width: 86px !important;
        max-width: 86px !important;
        height: 115px !important;
        max-height: 115px !important;
        aspect-ratio: 3 / 4 !important;
        object-fit: cover !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 7px !important;
    }

    /* Màu sắc và size */
    #cart-popup li.mini_cart_item dl.variation {
        position: absolute !important;
        top: 24px !important;
        left: 96px !important;
        right: 20px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
        color: #777 !important;
    }

    #cart-popup li.mini_cart_item dl.variation dt {
        display: none !important;
    }

    #cart-popup li.mini_cart_item dl.variation dd {
        display: inline !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #cart-popup li.mini_cart_item dl.variation dd p {
        display: inline !important;
        margin: 0 !important;
    }

    #cart-popup li.mini_cart_item dl.variation dd[class*="Size"]::before,
    #cart-popup li.mini_cart_item dl.variation dd[class*="Kchc"]::before {
        content: " / ";
    }

    /* Giá và cụm số lượng */
    #cart-popup li.mini_cart_item .ux-mini-cart-qty {
        position: absolute !important;
        top: 48px !important;
        left: 96px !important;
        right: 20px !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #cart-popup .ux-mini-cart-qty .quantity {
        display: block !important;
        margin: 0 0 7px !important;
        padding: 0 !important;
        opacity: 1 !important;
    }

    #cart-popup .ux-mini-cart-qty .woocommerce-Price-amount,
    #cart-popup .ux-mini-cart-qty .woocommerce-Price-amount bdi {
        display: block !important;
        color: #000 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
    }

    #cart-popup .samclo-mini-cart-qty-controls {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 88px !important;
        min-width: 88px !important;
        max-width: 88px !important;
        height: 34px !important;
        margin: 0 !important;
        padding: 0 4px !important;
        border: 1px solid #ccc !important;
        border-radius: 20px !important;
        box-sizing: border-box !important;
    }

    #cart-popup .samclo-mini-cart-qty-controls button {
        display: flex !important;
        flex: 0 0 26px !important;
        align-items: center !important;
        justify-content: center !important;
        width: 26px !important;
        height: 32px !important;
        min-height: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        font-size: 17px !important;
    }

    #cart-popup .samclo-mini-cart-qty-controls .samclo-qty-value {
        display: flex !important;
        flex: 1 1 auto !important;
        align-items: center !important;
        justify-content: center !important;
        height: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
    }

    /* Nút xóa */
    #cart-popup li.mini_cart_item > a.remove {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        z-index: 5 !important;
    }

    /* Footer và tổng tiền */
    #cart-popup .ux-mini-cart-footer {
        flex: 0 0 auto !important;
        padding-top: 10px !important;
        background: #fff !important;
    }

    #cart-popup .woocommerce-mini-cart__total {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 5px !important;
        margin: 0 0 12px !important;
        padding: 0 0 10px !important;
        border-bottom: 1px solid #eee !important;
        font-size: 13px !important;
    }

    #cart-popup .woocommerce-mini-cart__total strong {
        font-weight: 400 !important;
    }

    #cart-popup .woocommerce-mini-cart__total .woocommerce-Price-amount {
        color: #000 !important;
        font-weight: 700 !important;
    }

    #cart-popup .woocommerce-mini-cart__buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        margin: 0 !important;
    }

    #cart-popup .woocommerce-mini-cart__buttons a {
        flex: 1 1 50% !important;
        width: 50% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 12px 5px !important;
        border: 1px solid #222 !important;
        border-radius: 28px !important;
        background: #fff !important;
        color: #111 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        text-align: center !important;
    }
}

/* hiện dòng tạm tính trong MINI CART CHO MOBILE */

@media (max-width: 849px) {

    /* Popup sử dụng chiều cao giới hạn */
    #cart-popup {
        display: flex !important;
        flex-direction: column !important;
        max-height: 88dvh !important;
        overflow: hidden !important;
    }

    #cart-popup .cart-popup-inner {
        display: flex !important;
        flex-direction: column !important;
        height: 88dvh !important;
        max-height: 88dvh !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    #cart-popup .widget_shopping_cart,
    #cart-popup .widget_shopping_cart_content {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    /* Danh sách sản phẩm chiếm phần không gian còn lại */
    #cart-popup ul.woocommerce-mini-cart {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    /* Footer luôn nằm dưới danh sách */
    #cart-popup .ux-mini-cart-footer {
        display: block !important;
        position: relative !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin-top: 0 !important;
        padding: 10px 0 0 !important;
        background: #fff !important;
        z-index: 10 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Hàng tạm tính */
    #cart-popup .woocommerce-mini-cart__total {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 0 12px !important;
        padding: 10px 0 !important;
        border-top: 1px solid #eee !important;
        border-bottom: 1px solid #eee !important;
        color: #222 !important;
        font-size: 13px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    #cart-popup .woocommerce-mini-cart__total strong,
    #cart-popup .woocommerce-mini-cart__total .woocommerce-Price-amount,
    #cart-popup .woocommerce-mini-cart__total .samclo-cart-product-count {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Hai nút cuối popup */
    #cart-popup .woocommerce-mini-cart__buttons {
        display: flex !important;
        width: 100% !important;
        margin: 0 !important;
    }
}



@media (max-width: 849px) {

    /* Popup chia thành header - body - footer */
    #cart-popup .cart-popup-inner {
        display: flex !important;
        flex-direction: column !important;
        height: 88dvh !important;
        max-height: 88dvh !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    #cart-popup .widget_shopping_cart,
    #cart-popup .widget_shopping_cart_content {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    /* Cho các thành phần bên trong footer tham gia cùng flex layout */
    #cart-popup .ux-mini-cart-footer {
        display: contents !important;
    }

    /* HEADER: Tạm tính luôn ở trên cùng */
    #cart-popup .woocommerce-mini-cart__total {
        order: 1 !important;
        display: flex !important;
        flex: 0 0 auto !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 5px !important;

        width: 100% !important;
        margin: 0 !important;
        padding: 12px 0 !important;

        background: #fff !important;
        border-top: 0 !important;
        border-bottom: 1px solid #e5e5e5 !important;
        box-sizing: border-box !important;
        z-index: 20 !important;
    }

    /* BODY: Danh sách sản phẩm cuộn ở giữa */
    #cart-popup ul.woocommerce-mini-cart {
        order: 2 !important;
        display: block !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        margin: 0 !important;
        padding: 12px 5px 5px 0 !important;
    }

    /* FOOTER: Hai nút luôn nằm dưới cùng */
    #cart-popup .woocommerce-mini-cart__buttons {
        order: 3 !important;
        display: flex !important;
        flex: 0 0 auto !important;

        width: 100% !important;
        margin: 0 !important;
        padding: 12px 0 0 !important;

        background: #fff !important;
        border-top: 1px solid #eee !important;
        z-index: 20 !important;
    }

}



@media (max-width: 849px) {

    /* Mở rộng khung popup gần hết chiều cao màn hình */
    body .mfp-wrap {
        overflow-y: hidden !important;
    }

    body .mfp-wrap .mfp-content:has(#cart-popup) {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: calc(100vw - 24px) !important;
        max-width: 420px !important;
        height: calc(100dvh - 24px) !important;
        max-height: calc(100dvh - 24px) !important;

        margin: 0 auto !important;
        vertical-align: middle !important;
    }

    #cart-popup {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;

        margin: 0 !important;
        overflow: hidden !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    #cart-popup .cart-popup-inner {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;

        padding: 14px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Danh sách sản phẩm chiếm phần không gian còn lại */
    #cart-popup .widget_shopping_cart,
    #cart-popup .widget_shopping_cart_content {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    #cart-popup ul.woocommerce-mini-cart {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    /* Hai nút luôn cố định sát đáy popup */
    #cart-popup .woocommerce-mini-cart__buttons {
        flex: 0 0 auto !important;
        margin-top: auto !important;
        padding-top: 12px !important;
        padding-bottom: 4px !important;
        background: #fff !important;
        border-top: 1px solid #eee !important;
    }

}

@media (max-width: 849px) {

    /* Lớp nền tối nằm dưới Mini Cart */
    body .mfp-bg {
        z-index: 999990 !important;
    }

    /* Popup Mini Cart nằm trên tất cả sticky ATC */
    body .mfp-wrap {
        z-index: 999999 !important;
    }

    /* Đảm bảo nội dung popup hiển thị đầy đủ */
    body .mfp-wrap .mfp-content {
        position: relative !important;
        z-index: 1000000 !important;
    }

    #cart-popup {
        position: relative !important;
        z-index: 1000001 !important;
    }
}




/* SAMCLO - MINI CART MOBILE CLOSE BUTTON */
@media (max-width: 849px) {

    body .mfp-wrap:has(#cart-popup) button.mfp-close {
        position: fixed !important;
        top: 30px !important;
        right: 22px !important;
        left: auto !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;

        padding: 0 !important;
        margin: 0 !important;

        border: 1px solid #ddd !important;
        border-radius: 50% !important;
        background: #fff !important;

        color: #222 !important;
        font-size: 0 !important;
        line-height: 1 !important;

        z-index: 10000000 !important;
        opacity: 1 !important;
        box-shadow: none !important;
    }

    /* Không tạo thêm X bằng pseudo-element */
    body .mfp-wrap:has(#cart-popup) button.mfp-close::before,
    body .mfp-wrap:has(#cart-popup) button.mfp-close::after {
        content: none !important;
        display: none !important;
    }

    /* Chỉ sử dụng SVG thật trong HTML */
    body .mfp-wrap:has(#cart-popup) button.mfp-close svg {
        display: block !important;
        width: 16px !important;
        height: 16px !important;
        flex: 0 0 16px !important;

        margin: 0 !important;
        padding: 0 !important;

        stroke: #222 !important;
        transform: translate(0px, 0px) !important;
    }
}



/* =========================================================
   10. CHECKOUT — THANH TOÁN
   ---------------------------------------------------------
   Toàn bộ layout checkout, customer fields, order review, sản phẩm,
   coupon, payment, address, privacy, validation, fixed bottom bar
   và các card/tóm tắt đơn hàng.

   10.01 Layout — Bố cục tổng thể
   10.02 Customer Information — Thông tin khách hàng
   10.03 Order Summary — Tóm tắt đơn hàng
   10.04 Product Selection — Chọn sản phẩm
   10.05 Coupon & Payment — Mã giảm giá & thanh toán
   10.06 Address — Địa chỉ
   10.07 Privacy & Validation — Chính sách & kiểm tra dữ liệu
   10.08 Fixed Bottom Bar — Thanh đặt hàng cố định
   ========================================================= */

/* =====================================================
   SAMCLO - ONE PAGE CHECKOUT V4
   Target: form > .row.pt-0 > .col
   ===================================================== */


/* 1. MỞ RỘNG KHUNG CHECKOUT */

body.woocommerce-checkout
.cart-container.container {

    width: calc(100% - 40px) !important;
    max-width: 1600px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    box-sizing: border-box;
}


/* 2. CHIA GRID TẠI ĐÚNG PHẦN TỬ CHA */

body.woocommerce-checkout
form.checkout > .row.pt-0 {

    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr) !important;

    gap: 24px !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box;
}


/* 3. RESET CỘT TRÁI VÀ PHẢI CỦA FLATSOME */

body.woocommerce-checkout
form.checkout > .row.pt-0 > .col {

    display: block !important;

    width: 100% !important;
    max-width: none !important;

    flex: none !important;

    float: none !important;

    margin: 0 !important;
    padding: 0 !important;

    min-width: 0 !important;

    box-sizing: border-box;
}


/* 4. CỘT THÔNG TIN KHÁCH HÀNG */

body.woocommerce-checkout
#customer_details {

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
}


/* 5. CỘT GIỎ HÀNG */

body.woocommerce-checkout
.checkout-sidebar {

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
}


/* 6. TIÊU ĐỀ GIỎ HÀNG */

body.woocommerce-checkout
#order_review_heading {

    width: 100% !important;

    margin: 0 0 18px !important;
    padding-bottom: 14px !important;

    font-size: 24px;
    line-height: 1.3;

    border-bottom: 1px solid #e5e5e5;
}


/* 7. KHUNG ORDER REVIEW */

body.woocommerce-checkout
#order_review {

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    min-width: 0 !important;
}


/* 8. BẢNG SẢN PHẨM */

body.woocommerce-checkout
#order_review table {

    display: table !important;

    width: 100% !important;
    max-width: 100% !important;

    table-layout: auto !important;

    border-collapse: collapse !important;
    border: 0 !important;
}


body.woocommerce-checkout
#order_review table thead {

    display: none !important;
}


body.woocommerce-checkout
#order_review table td {

    padding: 14px 8px !important;

    vertical-align: top;

    border-bottom: 1px solid #eee !important;
}


body.woocommerce-checkout
#order_review td.product-name {

    width: 72% !important;

    font-size: 14px;

    overflow-wrap: break-word;
}

body.woocommerce-checkout
#order_review td.product-name {

    width: 72% !important;
    padding-left: 24px !important;

    font-size: 14px;

    overflow-wrap: break-word;
}

body.woocommerce-checkout
#order_review td.product-total {

    width: 28% !important;

    text-align: right;

    white-space: nowrap;

    font-weight: 700;
}


/* 9. PHƯƠNG THỨC THANH TOÁN */

body.woocommerce-checkout
#payment {

    display: block !important;

    width: 100% !important;

    margin-top: 24px !important;

    padding: 18px !important;

    background: #f7f7f7 !important;

    border-radius: 10px;
}


body.woocommerce-checkout
#place_order {

    width: 100% !important;
    min-height: 54px;

    font-size: 16px;
    font-weight: 700;
}


/* 10. MOBILE */

@media (max-width: 849px) {

    body.woocommerce-checkout
    .cart-container.container {

        width: calc(100% - 30px) !important;
        max-width: 100% !important;
    }

    body.woocommerce-checkout
    form.checkout > .row.pt-0 {

        display: flex !important;

        flex-direction: column !important;

        gap: 24px !important;
    }

    body.woocommerce-checkout
    form.checkout > .row.pt-0 > .col {

        width: 100% !important;
        max-width: 100% !important;
    }

}


/* SAMCLO - CHECKOUT CARD LAYOUT V1 */

/* Nền tổng thể */
body.woocommerce-checkout {
    background: #f5f5f5 !important;
}

body.woocommerce-checkout #main {
    background: #f5f5f5 !important;
}

/* Khoảng cách khu vực checkout */
body.woocommerce-checkout .cart-container.container {
    padding-top: 45px !important;
    padding-bottom: 60px !important;
}

/* Hai cột thành hai card */
body.woocommerce-checkout form.checkout > .row.pt-0 > .col {
    background: #fff !important;
    border: 1px solid #ededed !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

/* Bỏ viền mặc định của cột phải */
body.woocommerce-checkout form.checkout > .row.pt-0 > .large-5.col {
    border-left: 1px solid #ededed !important;
}

/* Căn lại tiêu đề */
body.woocommerce-checkout #customer_details {
    margin-top: 0 !important;
}

body.woocommerce-checkout #order_review_heading {
    border-bottom: 1px solid #eaeaea !important;
    padding-bottom: 16px !important;
    margin-bottom: 16px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

/* Bỏ nền xám thanh thanh toán mặc định */
body.woocommerce-checkout #payment {
    background: #fff !important;
    padding: 0 !important;
    margin-top: 24px !important;
}

/* Mobile */
@media (max-width: 849px) {
    body.woocommerce-checkout .cart-container.container {
        padding-top: 20px !important;
    }

    body.woocommerce-checkout form.checkout > .row.pt-0 > .col {
        padding: 18px !important;
        border-radius: 12px !important;
    }
}



/* SAMCLO - CHECKOUT CONTENT WIDTH FIX */

/* Ép nội dung hai card sử dụng toàn bộ chiều rộng */
body.woocommerce-checkout #customer_details,
body.woocommerce-checkout .checkout-sidebar,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout #payment {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Bỏ giới hạn chiều rộng nội bộ của bảng đơn hàng */
body.woocommerce-checkout #order_review table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
    box-sizing: border-box !important;
}

/* Căn lại hai cột giá và tên sản phẩm */
body.woocommerce-checkout #order_review td.product-name {
    width: 72% !important;
}

body.woocommerce-checkout #order_review td.product-total {
    width: 28% !important;
}

/* SAMCLO - ORDER SUMMARY BLOCK */

body.woocommerce-checkout #order_review table tfoot {
    display: block !important;
    margin-top: 20px !important;
    padding: 12px 16px !important;
    background: #f7f7f9 !important;
    border: 1px solid #ededed !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
}

body.woocommerce-checkout #order_review table tfoot tr {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

body.woocommerce-checkout #order_review table tfoot th,
body.woocommerce-checkout #order_review table tfoot td {
    display: block !important;
    padding: 10px 0 !important;
    border: 0 !important;
}

body.woocommerce-checkout #order_review table tfoot tr.order-total {
    border-top: 1px solid #ddd !important;
    font-weight: 700 !important;
}



/* Ẩn số lượng mặc định vì đã có bộ điều khiển riêng */
body.woocommerce-checkout #order_review .product-quantity {
    display: none !important;
}


/* =====================================================
   SAMCLO - CHECKOUT PRODUCT ROW
   Tái sử dụng bố cục ảnh và thông tin từ Mini Cart
   ===================================================== */

body.woocommerce-checkout #order_review td.product-name {
    position: relative !important;
    vertical-align: top !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

/* Ảnh sản phẩm */
body.woocommerce-checkout .samclo-checkout-thumb {
    float: left !important;
    display: block !important;
    width: 84px !important;
    height: 110px !important;
    margin: 0 12px 8px 0 !important;
    overflow: hidden !important;
    border-radius: 7px !important;
}

body.woocommerce-checkout .samclo-checkout-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
}

/* Tên sản phẩm */
body.woocommerce-checkout #order_review td.product-name {
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Điều khiển số lượng */
body.woocommerce-checkout .samclo-checkout-qty {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 10px 0 8px 96px !important;
    white-space: nowrap !important;
}

body.woocommerce-checkout .samclo-checkout-qty button {
    min-width: 20px !important;
    width: auto !important;
    height: 28px !important;
    padding: 0 4px !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: #333 !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

body.woocommerce-checkout .samclo-checkout-qty-value {
    font-size: 13px !important;
    min-width: 12px !important;
    text-align: center !important;
}

body.woocommerce-checkout .samclo-checkout-qty .samclo-checkout-remove {
    margin-left: 8px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-transform: none !important;
}

body.woocommerce-checkout
.samclo-checkout-qty .samclo-checkout-remove:hover {
    color: #e53935 !important;
}

/* Màu sắc và kích cỡ */
body.woocommerce-checkout #order_review td.product-name dl.variation {
    clear: both !important;
    margin: 4px 0 0 96px !important;
    padding: 0 !important;
    border: 0 !important;
    color: #777 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

body.woocommerce-checkout #order_review td.product-name dl.variation dt,
body.woocommerce-checkout #order_review td.product-name dl.variation dd {
    float: none !important;
    display: inline !important;
    margin: 0 4px 0 0 !important;
    padding: 0 !important;
}

body.woocommerce-checkout #order_review td.product-name dl.variation p {
    display: inline !important;
    margin: 0 !important;
}

/* Mobile */
@media (max-width: 549px) {
    body.woocommerce-checkout .samclo-checkout-thumb {
        width: 72px !important;
        height: 96px !important;
        margin-right: 10px !important;
    }

    body.woocommerce-checkout .samclo-checkout-qty,
    body.woocommerce-checkout #order_review td.product-name dl.variation {
        margin-left: 82px !important;
    }
}



/* =========================================================
   SAMCLO - CHECKOUT VARIATION SELECTORS
   ========================================================= */

body.woocommerce-checkout
.samclo-checkout-variations {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 8px 0 8px 96px !important;
}

body.woocommerce-checkout
.samclo-checkout-variation-field {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
}


body.woocommerce-checkout
select.samclo-checkout-variation-select {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;

    position: relative !important;
    width: auto !important;
    min-width: 90px !important;
    max-width: 130px !important;
    height: 36px !important;

    margin: 0 !important;
    padding: 0 30px 0 12px !important;

    appearance: auto !important;
    -webkit-appearance: auto !important;

    border: 1px solid #e5e5e5 !important;
    border-radius: 20px !important;
    background: #f3f3f3 !important;

    color: #333 !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: normal !important;

    box-shadow: none !important;
    cursor: pointer !important;
}


body.woocommerce-checkout
.samclo-checkout-variation-select:focus {
    border-color: #bbb !important;
    outline: none !important;
}

body.woocommerce-checkout
.samclo-checkout-variation-select:disabled {
    opacity: .55 !important;
    cursor: wait !important;
}

body.woocommerce-checkout
.samclo-checkout-variation-message {
    clear: both !important;
    margin: 6px 0 0 96px !important;
    color: #777 !important;
    font-size: 12px !important;
}

body.woocommerce-checkout
.samclo-checkout-variation-message.is-error {
    color: #d93025 !important;
}

/* Thuộc tính cũ không còn cần hiển thị vì đã có dropdown */
body.woocommerce-checkout
#order_review td.product-name dl.variation {
    display: none !important;
}

/* Mobile */
@media (max-width: 549px) {
    body.woocommerce-checkout
    .samclo-checkout-variations,
    body.woocommerce-checkout
    .samclo-checkout-variation-message {
        margin-left: 82px !important;
    }

    body.woocommerce-checkout
    .samclo-checkout-variation-select {
        min-width: 70px !important;
        max-width: 115px !important;
    }
}



/* SAMCLO - REMOVE ORANGE BORDER CHECKOUT */
body.woocommerce-checkout
.checkout-sidebar {
    border: none !important;
    outline: none !important;
}

body.woocommerce-checkout
.checkout-sidebar {
    box-shadow: none !important;
}

body.woocommerce-checkout
.col-inner.has-border:has(> .checkout-sidebar) {
    border: none !important;
    outline: none !important;
}

/* SAMCLO - HIDE CHECKOUT BREADCRUMBS */
body.woocommerce-checkout nav.checkout-breadcrumbs {
    display: none !important;
}




/* =====================================================
   SAMCLO - CHECKOUT PRODUCT SELECTION
   Một bộ quy tắc duy nhất cho checkbox và thanh công cụ
   ===================================================== */

/* Thanh công cụ: Chọn tất cả / Xóa tất cả */
body.woocommerce-checkout .samclo-cart-selection-toolbar td {
    display: table-cell !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
    padding: 12px 0 14px !important;
    border-bottom: 1px solid #e8e8e8 !important;
}

body.woocommerce-checkout .samclo-select-all-label {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 9px !important;
    width: auto !important;
    margin: 0 !important;
    white-space: nowrap !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
}

body.woocommerce-checkout .samclo-cart-clear-all {
    display: inline-flex !important;
    position: absolute !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    min-width: max-content !important;
    min-height: 28px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #555 !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

body.woocommerce-checkout .samclo-cart-clear-all:hover {
    color: #e53935 !important;
}

/* Checkbox: kích thước và giao diện thống nhất */
body.woocommerce-checkout .samclo-cart-item-select,
body.woocommerce-checkout .samclo-cart-select-all {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-block !important;
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #2638e8 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: none !important;
    cursor: pointer !important;
    vertical-align: middle !important;
}

body.woocommerce-checkout .samclo-cart-item-select:checked,
body.woocommerce-checkout .samclo-cart-select-all:checked,
body.woocommerce-checkout .samclo-cart-select-all:indeterminate {
    background: #2638e8 !important;
    border-color: #2638e8 !important;
}

body.woocommerce-checkout .samclo-cart-item-select:checked::after,
body.woocommerce-checkout .samclo-cart-select-all:checked::after {
    content: "" !important;
    display: block !important;
    width: 5px !important;
    height: 9px !important;
    margin: 2px 0 0 6px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

body.woocommerce-checkout .samclo-cart-select-all:indeterminate::after {
    content: "" !important;
    display: block !important;
    width: 10px !important;
    height: 2px !important;
    margin: 7px 0 0 3px !important;
    background: #fff !important;
}

/* Vị trí checkbox từng sản phẩm: bên trái, căn giữa theo ảnh */
body.woocommerce-checkout #order_review td.product-name {
    position: relative !important;
    overflow: visible !important;
}

body.woocommerce-checkout .samclo-cart-item-select-slot {
    position: absolute !important;
    top: 45px !important;
    left: -4px !important;
    z-index: 30 !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
}

body.woocommerce-checkout .samclo-cart-item-select-label {
    position: static !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

/* Trạng thái đang cập nhật */
body.woocommerce-checkout .samclo-cart-item-select:disabled,
body.woocommerce-checkout .samclo-cart-select-all:disabled,
body.woocommerce-checkout .samclo-cart-clear-all:disabled {
    opacity: .45 !important;
    cursor: wait !important;
}

/* Mobile */
@media (max-width: 549px) {
    body.woocommerce-checkout .samclo-cart-selection-toolbar td {
        gap: 10px !important;
        padding: 10px 0 12px !important;
    }

    body.woocommerce-checkout .samclo-select-all-label,
    body.woocommerce-checkout .samclo-cart-clear-all {
        font-size: 13px !important;
    }

    body.woocommerce-checkout .samclo-cart-item-select-slot {
        top: 38px !important;
        left: -4px !important;
    }
}


/* SAMCLO - FINAL CHECKOUT TOOLBAR FIX */

/* Checkbox chọn tất cả thẳng hàng checkbox sản phẩm */
body.woocommerce-checkout .samclo-cart-select-all {
    position: relative !important;
    left: -12px !important;
}

/* Cấu trúc bảng chuẩn */
body.woocommerce-checkout
#order_review tr.samclo-cart-selection-toolbar {
    display: table-row !important;
}

/* Toolbar */
body.woocommerce-checkout
#order_review tr.samclo-cart-selection-toolbar > td {
    display: table-cell !important;
    position: relative !important;
    width: 100% !important;
    text-align: left !important;
}

/* Nhãn chọn tất cả */
body.woocommerce-checkout
#order_review .samclo-select-all-label {
    flex: 0 0 auto !important;
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Nút xóa tất cả */
body.woocommerce-checkout
#order_review .samclo-cart-clear-all {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}



/* SAMCLO - COUPON BLOCK */

body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout form.checkout_coupon {
    display: none !important;
}

body.woocommerce-checkout .samclo-checkout-coupon-row > td {
    padding: 20px 0 !important;
    border-bottom: 1px solid #eee !important;
}

body.woocommerce-checkout .samclo-checkout-coupon h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

body.woocommerce-checkout .samclo-checkout-coupon-controls {
    display: flex;
    gap: 8px;
}

body.woocommerce-checkout .samclo-checkout-coupon-controls input {
    flex: 1;
    min-width: 0;
    height: 42px;
    margin: 0 !important;
}

body.woocommerce-checkout .samclo-checkout-coupon-controls button {
    margin: 0 !important;
    background: #f15a24 !important;
    color: #fff !important;
    white-space: nowrap;
}

body.woocommerce-checkout .samclo-checkout-coupon-message:empty {
    display: none;
}

body.woocommerce-checkout .samclo-checkout-coupon-message {
    margin-top: 10px;
}



/* SAMCLO - PAYMENT BLOCK */

body.woocommerce-checkout #payment {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 24px !important;
    padding: 20px !important;
    background: #fff !important;
    border: 1px solid #ededed !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}

/* =====================================================
   SAMCLO - COUPON BLOCK UI
   ===================================================== */

body.woocommerce-checkout .samclo-checkout-coupon-row > td {
    padding: 24px !important;
    border: 1px solid #ededed !important;
    border-radius: 16px !important;
    background: #fff !important;
}

body.woocommerce-checkout .samclo-checkout-coupon {
    width: 100% !important;
}

body.woocommerce-checkout .samclo-checkout-coupon h3 {
    margin: 0 0 20px !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    text-transform: none !important;
    color: #111 !important;
}

body.woocommerce-checkout .samclo-checkout-coupon-controls {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

body.woocommerce-checkout
.samclo-checkout-coupon-controls input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 20px !important;
    margin: 0 !important;
    border: 1px solid #d5d5d5 !important;
    border-radius: 30px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 14px !important;
}

body.woocommerce-checkout
.samclo-checkout-coupon-controls input:focus {
    border-color: #999 !important;
    outline: none !important;
}

body.woocommerce-checkout
.samclo-checkout-coupon-controls button {
    flex: 0 0 auto !important;
    height: 46px !important;
    padding: 0 25px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 30px !important;
    background: #f15a24 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
}

body.woocommerce-checkout
.samclo-checkout-coupon-controls button:hover {
    background: #d94b19 !important;
}

body.woocommerce-checkout
.samclo-checkout-coupon-message {
    margin-top: 12px !important;
}





/* =========================================================
   SAMCLO - CHECKOUT SEPARATE CARDS
   Mỗi khu vực là một card độc lập như Coolmate
   ========================================================= */

/* Vùng chứa các card */
body.woocommerce-checkout #samclo-checkout-extras {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    width: 100% !important;
    margin-top: 18px !important;
}

/* Hai card riêng biệt */
body.woocommerce-checkout .samclo-checkout-card {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 24px !important;
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04) !important;
}

/* Tiêu đề card */
body.woocommerce-checkout
.samclo-checkout-card h3 {
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    color: #111 !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
}

/* Mã giảm giá */
body.woocommerce-checkout
#samclo-checkout-coupon-card .samclo-checkout-coupon {
    width: 100% !important;
    margin: 0 !important;
}

body.woocommerce-checkout
.samclo-checkout-coupon-controls {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
}

body.woocommerce-checkout
.samclo-checkout-coupon-controls input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 1px solid #d5d5d5 !important;
    border-radius: 24px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 14px !important;
}

body.woocommerce-checkout
.samclo-checkout-coupon-controls button {
    flex: 0 0 auto !important;
    min-width: 110px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 24px !important;
    background: #f15a24 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
}

body.woocommerce-checkout
.samclo-checkout-coupon-controls button:hover {
    background: #d94818 !important;
    color: #fff !important;
}

/* Tóm tắt đơn hàng */
body.woocommerce-checkout
#samclo-checkout-summary-card {
    max-width: 100% !important;
}

body.woocommerce-checkout
.samclo-checkout-summary-table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    background: transparent !important;
}

body.woocommerce-checkout
.samclo-checkout-summary-table th,
body.woocommerce-checkout
.samclo-checkout-summary-table td {
    padding: 12px 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 14px !important;
    vertical-align: middle !important;
}

body.woocommerce-checkout
.samclo-checkout-summary-table th {
    text-align: left !important;
    font-weight: 600 !important;
}

body.woocommerce-checkout
.samclo-checkout-summary-table td {
    text-align: right !important;
}

body.woocommerce-checkout
.samclo-checkout-summary-table .order-total th,
body.woocommerce-checkout
.samclo-checkout-summary-table .order-total td {
    padding: 18px 14px !important;
    background: #f5f6fa !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

body.woocommerce-checkout
.samclo-checkout-summary-table .order-total th {
    border-radius: 8px 0 0 8px !important;
}

body.woocommerce-checkout
.samclo-checkout-summary-table .order-total td {
    border-radius: 0 8px 8px 0 !important;
}

/* Bảng phí vận chuyển bên trong dòng Shipment */
body.woocommerce-checkout
.samclo-checkout-summary-table .shipping__table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.woocommerce-checkout
.samclo-checkout-summary-table .shipping__table th,
body.woocommerce-checkout
.samclo-checkout-summary-table .shipping__table td {
    padding: 0 !important;
    border: 0 !important;
}

/* Căn nhãn Shipment và phí giao hàng */
body.woocommerce-checkout
.samclo-checkout-summary-table .woocommerce-shipping-totals > td {
    width: 100% !important;
}

body.woocommerce-checkout
.samclo-checkout-summary-table .shipping__table tr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

body.woocommerce-checkout
.samclo-checkout-summary-table .shipping__table th {
    text-align: left !important;
}

body.woocommerce-checkout
.samclo-checkout-summary-table .shipping__table td {
    text-align: right !important;
}

/* Mobile */
@media (max-width: 549px) {
    body.woocommerce-checkout #samclo-checkout-extras {
        gap: 14px !important;
        margin-top: 14px !important;
    }

    body.woocommerce-checkout .samclo-checkout-card {
        padding: 18px !important;
        border-radius: 12px !important;
    }

    body.woocommerce-checkout
    .samclo-checkout-card h3 {
        font-size: 22px !important;
    }

    body.woocommerce-checkout
    .samclo-checkout-coupon-controls {
        gap: 8px !important;
    }

    body.woocommerce-checkout
    .samclo-checkout-coupon-controls button {
        min-width: 90px !important;
        padding: 0 14px !important;
    }
}

/* =========================================================
   SAMCLO CHECKOUT - 3 CARD ĐỘC LẬP
   ========================================================= */

/* Bỏ khung bao ngoài cột phải */
body.woocommerce-checkout
form.checkout > .row.pt-0 > .large-5.col {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Card danh sách sản phẩm */
body.woocommerce-checkout
#samclo-checkout-products-card {
    display: block !important;
    width: 100% !important;
    margin-bottom: 18px !important;
    padding: 24px !important;
    background: #fff !important;
    border: 1px solid #ededed !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.04) !important;
    box-sizing: border-box !important;
}

/* Không để bảng sản phẩm tạo thêm khung con */
body.woocommerce-checkout
#samclo-checkout-products-card #order_review {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* Khoảng cách giữa 3 card */
body.woocommerce-checkout #samclo-checkout-extras {
    gap: 18px !important;
    margin-top: 0 !important;
}

/* Mobile */
@media (max-width: 549px) {
    body.woocommerce-checkout
    #samclo-checkout-products-card {
        padding: 18px !important;
        border-radius: 12px !important;
    }
}


/* CHECKOUT: Khôi phục khung chính */
body.woocommerce-checkout form.checkout > .row.pt-0 > .large-5.col {
    background: #fff !important;
    border: 1px solid #ededed !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
}

/* CHECKOUT: Các card bên trong */
body.woocommerce-checkout .samclo-checkout-card {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}


/* CHECKOUT: Bỏ khung lớn bao quanh cột đơn hàng */
body.woocommerce-checkout
form.checkout > .row.pt-0 > .large-5.col {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Bỏ khoảng đệm của lớp col-inner */
body.woocommerce-checkout
form.checkout > .row.pt-0 > .large-5.col > .col-inner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}


/* SAMCLO - CHECKOUT: GIÁ BÁN VÀ GIÁ GỐC */
body.woocommerce-checkout .samclo-checkout-line-price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 3px !important;
    white-space: nowrap !important;
}

body.woocommerce-checkout .samclo-checkout-current-price {
    display: block !important;
    color: #111 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    -webkit-text-stroke: 0.25px currentColor;
}

/* GIÁ GỐC CHECKOUT */
body.woocommerce-checkout .samclo-checkout-regular-price {
    display: block !important;
    white-space: nowrap !important;
    color: #000 !important;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-decoration-line: line-through !important;
    text-decoration-color: #000 !important;
    text-decoration-thickness: 1px !important;
}

/* Giữ số tiền và ký hiệu đồng trên cùng một dòng */
body.woocommerce-checkout .samclo-checkout-regular-price .woocommerce-Price-amount,
body.woocommerce-checkout .samclo-checkout-regular-price bdi,
body.woocommerce-checkout .samclo-checkout-regular-price .woocommerce-Price-currencySymbol {
    display: inline !important;
    white-space: nowrap !important;
    font-weight: 800 !important;
}




/* =========================================================
   SAMCLO - CHECKOUT CUSTOMER PANEL
   ========================================================= */

/* Cột trái là một card thông tin duy nhất */
body.woocommerce-checkout
form.checkout > .row.pt-0 > .large-7.col {
    background: #fff !important;
    border: 1px solid #ededed !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.04) !important;
    padding: 24px !important;
    box-sizing: border-box !important;
}

/* Bỏ khung con không cần thiết */
body.woocommerce-checkout #customer_details,
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-additional-fields {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Thông báo đăng nhập */
body.woocommerce-checkout .woocommerce-form-login-toggle {
    margin: 0 0 20px !important;
}

/* Tiêu đề */
body.woocommerce-checkout
.woocommerce-billing-fields > h3 {
    margin: 0 0 20px !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid #eaeaea !important;
    color: #111 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    text-transform: none !important;
}

/* Các trường nhập */
body.woocommerce-checkout
.woocommerce-billing-fields input.input-text,
body.woocommerce-checkout
.samclo-checkout-extra-fields input {
    height: 46px !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 24px !important;
    padding: 0 16px !important;
    box-shadow: none !important;
    background: #fff !important;
}

/* Checkbox */
body.woocommerce-checkout .samclo-checkout-toggle {
    margin: 8px 0 14px !important;
}

body.woocommerce-checkout .samclo-checkout-toggle label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
}

/* Khu vực form mở rộng */
body.woocommerce-checkout .samclo-checkout-conditional {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    padding: 14px !important;
    margin: 0 0 16px !important;
    background: #f5f5f5 !important;
    border-radius: 12px !important;
}

body.woocommerce-checkout
.samclo-checkout-conditional[hidden],
body.woocommerce-checkout
#order_comments_field[hidden] {
    display: none !important;
}

body.woocommerce-checkout
.samclo-checkout-conditional .form-row {
    width: 100% !important;
    margin: 0 0 12px !important;
}

body.woocommerce-checkout
.samclo-checkout-conditional .form-row:nth-last-child(-n+2) {
    margin-bottom: 0 !important;
}

/* Ghi chú */
body.woocommerce-checkout #order_comments {
    border-radius: 12px !important;
    min-height: 100px !important;
}

/* PC: Một thanh cuộn chính cho toàn bộ Checkout */
@media (min-width: 850px) {

    body.woocommerce-checkout
    form.checkout > .row.pt-0 {
        align-items: flex-start !important;
    }

    /* Cột trái: giữ sticky */
    body.woocommerce-checkout
    form.checkout > .row.pt-0 > .large-7.col {
        position: sticky !important;
        top: 110px !important;
        align-self: flex-start !important;
    }

    /* Cột phải: bỏ cuộn lồng nhau */
    body.woocommerce-checkout
    form.checkout > .row.pt-0 > .large-5.col {
        position: static !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overscroll-behavior: auto !important;
        padding-bottom: 16px !important;
    }
}

/* Mobile: trở về cuộn trang bình thường */
@media (max-width: 849px) {

    body.woocommerce-checkout
    form.checkout > .row.pt-0 > .large-7.col,
    body.woocommerce-checkout
    form.checkout > .row.pt-0 > .large-5.col {
        position: static !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    body.woocommerce-checkout
    form.checkout > .row.pt-0 > .large-7.col {
        padding: 18px !important;
        border-radius: 12px !important;
    }

    body.woocommerce-checkout
    .samclo-checkout-conditional {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}


/* Dùng thông tin địa chỉ thanh toán làm địa chỉ giao hàng */
body.woocommerce-checkout .woocommerce-shipping-fields {
    display: none !important;
}




/* =========================================================
   SAMCLO - CHECKOUT LOGIN + PRIVACY CONSENT
   ========================================================= */

/* Dòng đăng nhập */
body.woocommerce-checkout .woocommerce-form-login-toggle {
    margin: -6px 0 18px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

body.woocommerce-checkout .woocommerce-form-login-toggle,
body.woocommerce-checkout .woocommerce-form-login-toggle * {
    font-size: 13px !important;
}

body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Checkbox chính sách */
body.woocommerce-checkout .samclo-checkout-privacy-consent {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

body.woocommerce-checkout
.samclo-checkout-privacy-consent label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 9px !important;
    margin: 0 !important;
    cursor: pointer !important;
    font-weight: 400 !important;
}

body.woocommerce-checkout
.samclo-checkout-privacy-consent input[type="checkbox"] {
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #2638e8 !important;
    vertical-align: middle !important;
}

body.woocommerce-checkout
.samclo-checkout-privacy-consent a {
    color: #163bd5 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}




/* =========================================================
   SAMCLO - CHECKOUT CUSTOMER FIELDS
   ========================================================= */

/* Ẩn Quốc gia/Khu vực */
body.woocommerce-checkout
#billing_country_field {
    display: none !important;
}

/* Nhãn trường không in đậm */
body.woocommerce-checkout
.woocommerce-billing-fields .form-row label {
    font-weight: 400 !important;
}


/* SAMCLO - COOLMATE STYLE NAME + SALUTATION */

/* =========================================================
   SAMCLO - CHECKOUT NAME + PHONE
   Coolmate-style
   ========================================================= */

body.woocommerce-checkout .samclo-name-phone-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1.711fr) minmax(0, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    clear: both !important;
}

/* Cột Họ tên */
body.woocommerce-checkout .samclo-name-pair {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


body.woocommerce-checkout .samclo-checkout-phone-field {
    margin-top: 28px !important;
}

/* Label Họ tên */

/* Label Họ tên */
body.woocommerce-checkout .samclo-name-pair-label {
    display: block !important;
    width: 100% !important;
    margin: 0 0 7px !important;
    padding: 0 !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

/* Box Họ tên = Danh xưng + input */
body.woocommerce-checkout .samclo-name-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Danh xưng */
body.woocommerce-checkout
.samclo-name-controls #billing_salutation_field {
    display: block !important;
    flex: 0 0 130px !important;
    width: 130px !important;
    max-width: 130px !important;
    min-width: 130px !important;

    float: none !important;
    clear: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Họ tên */
body.woocommerce-checkout
.samclo-name-controls #billing_first_name_field {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;

    float: none !important;
    clear: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* SĐT là cột thứ 2 */
body.woocommerce-checkout
.samclo-name-phone-row > #billing_phone_field {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    float: none !important;
    clear: none !important;

    margin: 0 !important;
    padding: 0 !important;

    margin-top: 28px !important;
}

/* Ẩn label WooCommerce gốc */
body.woocommerce-checkout
.samclo-name-controls #billing_salutation_field > label,

body.woocommerce-checkout
.samclo-name-controls #billing_first_name_field > label {
    display: none !important;
}

/* Wrapper input */
body.woocommerce-checkout
.samclo-name-controls .woocommerce-input-wrapper,

body.woocommerce-checkout
.samclo-name-phone-row > #billing_phone_field .woocommerce-input-wrapper {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Tất cả input/select cùng chiều cao */
body.woocommerce-checkout
.samclo-name-controls #billing_salutation,

body.woocommerce-checkout
.samclo-name-controls #billing_first_name,

body.woocommerce-checkout
.samclo-name-phone-row > #billing_phone_field #billing_phone {
    height: 46px !important;
    min-height: 46px !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Danh xưng là phần trái của box Họ tên */
body.woocommerce-checkout
.samclo-name-controls #billing_salutation {
    border-radius: 24px 0 0 24px !important;
    border-right: 0 !important;
    padding-left: 16px !important;
}

/* Input Họ tên là phần phải */
body.woocommerce-checkout
.samclo-name-controls #billing_first_name {
    border-radius: 0 24px 24px 0 !important;
    padding-left: 16px !important;
}

/* SĐT là box riêng */
body.woocommerce-checkout
.samclo-name-phone-row > #billing_phone_field #billing_phone {
    border-radius: 24px !important;
    padding-left: 16px !important;
}

/* Mobile */
@media (max-width: 549px) {

    body.woocommerce-checkout .samclo-name-phone-row {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    body.woocommerce-checkout
    .samclo-name-controls #billing_salutation_field {
        flex: 0 0 110px !important;
        width: 110px !important;
        max-width: 110px !important;
        min-width: 110px !important;
    }
}



/* Mobile */
@media (max-width: 549px) {
    body.woocommerce-checkout .samclo-name-phone-row {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }
}

/* SAMCLO - CHECKOUT: Danh xưng và placeholder */

/* Chữ Anh/Chị: đen, đậm, nhỏ hơn */
body.woocommerce-checkout #billing_salutation {
    color: #111 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* Placeholder trong các ô: giảm cỡ chữ */
body.woocommerce-checkout .woocommerce-billing-fields input::placeholder {
    font-size: 14px !important;
}

/* Hỗ trợ trình duyệt WebKit */
body.woocommerce-checkout .woocommerce-billing-fields input::-webkit-input-placeholder {
    font-size: 14px !important;
}

/* SAMCLO - CHECKOUT: Màu chữ khi khách nhập dữ liệu */
body.woocommerce-checkout .woocommerce-billing-fields input,
body.woocommerce-checkout .woocommerce-billing-fields textarea,
body.woocommerce-checkout .woocommerce-billing-fields select {
    color: #111 !important;
    font-size: 14px !important;
}

/* Giữ nguyên màu xám của placeholder */
body.woocommerce-checkout .woocommerce-billing-fields input::placeholder,
body.woocommerce-checkout .woocommerce-billing-fields textarea::placeholder {
    color: #999 !important;
}


/* =========================================================
   SAMCLO - CHECKOUT: COMPACT CUSTOMER FIELDS
   ========================================================= */

/* Ẩn tiêu đề Thông tin bổ sung, giữ nội dung bên dưới */
body.woocommerce-checkout
.woocommerce-additional-fields > h3 {
    display: none !important;
}

/* Thu khoảng cách giữa các trường thông tin */
body.woocommerce-checkout
.woocommerce-billing-fields__field-wrapper > p.form-row {
    margin-bottom: -10px !important;
}

/* Thu khoảng cách nhóm thông tin bổ sung */
body.woocommerce-checkout
.woocommerce-additional-fields {
    margin-top: 13px !important;
}

body.woocommerce-checkout
.woocommerce-additional-fields__field-wrapper > p.form-row {
    margin-bottom: 2px !important;
}

/* Các checkbox tùy chọn */
body.woocommerce-checkout
.woocommerce-billing-fields .form-row:has(input[type="checkbox"]),
body.woocommerce-checkout
.woocommerce-additional-fields .form-row:has(input[type="checkbox"]) {
    margin-top: -20px !important;
    margin-bottom: 0px !important;
}

/* Không để khoảng trống dư cuối nhóm */
body.woocommerce-checkout
.woocommerce-additional-fields__field-wrapper > p:last-child {
    margin-bottom: 0 !important;
}


/* =========================================================
   SAMCLO - CHECKOUT: REDUCE TOP SPACING
   ========================================================= */

/* Thu gọn khu vực tiêu đề Checkout */
body.woocommerce-checkout .checkout-page-title {
    height: 30px !important;
    overflow: hidden !important;
}

body.woocommerce-checkout .checkout-page-title .page-title-inner {
    height: 30px !important;
    min-height: 30px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Đưa hai cột lên gần menu chính hơn */
body.woocommerce-checkout .cart-container {
    padding-top: 15px !important;
}

/* SAMCLO - CHECKOUT: ORDER NOTE */

/* Ẩn nhãn Ghi chú đơn hàng (tuỳ chọn) */
body.woocommerce-checkout
#order_comments_field > label {
    display: none !important;
}

/* Placeholder trong ô ghi chú: 13px */
body.woocommerce-checkout
#order_comments {
    font-size: 13px !important;
}

body.woocommerce-checkout
#order_comments::placeholder {
    font-size: 13px !important;
    color: #999 !important;
}

/* SAMCLO - CHECKOUT: KHOẢNG CÁCH Ô GHI CHÚ */
body.woocommerce-checkout #order_comments_field {
    margin-top: 12px !important;
    margin-bottom: 16px !important;
}

/* Căn mép trên hai cột checkout */
.row.pt-0 {
    align-items: start;
}



/* =========================================================
   SAMCLO - CHECKOUT FIXED BOTTOM BAR
   ========================================================= */

body.woocommerce-checkout #samclo-checkout-fixed-bar {
    display: none;
    position: fixed !important;
    z-index: 99990 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;

    padding: 10px 24px calc(10px + env(safe-area-inset-bottom, 0px)) !important;

    background: #fff !important;
    border-top: 1px solid #e8e8e8 !important;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .08) !important;

    box-sizing: border-box !important;
}

body.woocommerce-checkout #samclo-checkout-fixed-bar.is-ready {
    display: block !important;
}

body.woocommerce-checkout .samclo-checkout-fixed-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 24px !important;

    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
}

body.woocommerce-checkout .samclo-checkout-fixed-total {
    flex: 0 0 auto !important;
}

/* Tổng tiền */
body.woocommerce-checkout .samclo-checkout-fixed-total {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;

    min-width: 0 !important;
    gap: 2px !important;
}

body.woocommerce-checkout .samclo-checkout-fixed-label {
    color: #666 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

body.woocommerce-checkout .samclo-checkout-fixed-price,
body.woocommerce-checkout .samclo-checkout-fixed-price td {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    background: transparent !important;

    color: #111 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;

    text-align: left !important;
    white-space: nowrap !important;
}

/* Nút đặt hàng clone */
body.woocommerce-checkout .samclo-checkout-fixed-place-order {
    display: inline-flex !important;
    flex: 0 0 300px !important;
    align-items: center !important;
    justify-content: center !important;

    width: 300px !important;
    min-height: 58px !important;

    margin: 0 !important;
    padding: 12px 24px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: #f15a24 !important;
    color: #fff !important;

    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;

    box-shadow: none !important;
    cursor: pointer !important;
}

body.woocommerce-checkout .samclo-checkout-fixed-place-order:hover {
    background: #df4e1c !important;
    color: #fff !important;
}

body.woocommerce-checkout .samclo-checkout-fixed-place-order:disabled {
    opacity: .65 !important;
    cursor: wait !important;
}

/* Ẩn nút đặt hàng gốc, giữ nguyên trong form */
body.woocommerce-checkout
#payment #place_order.samclo-checkout-original-place-order-hidden {
    display: none !important;
}

/* Chừa không gian cuối trang */
body.woocommerce-checkout {
    padding-bottom: 94px !important;
}

/* Mobile */
@media (max-width: 849px) {

    body.woocommerce-checkout #samclo-checkout-fixed-bar {
        padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.woocommerce-checkout .samclo-checkout-fixed-inner {
        gap: 10px !important;
    }

    body.woocommerce-checkout .samclo-checkout-fixed-price,
    body.woocommerce-checkout .samclo-checkout-fixed-price td {
        font-size: 18px !important;
    }

    body.woocommerce-checkout .samclo-checkout-fixed-place-order {
        flex: 0 0 42% !important;
        width: 42% !important;
        min-height: 50px !important;
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    body.woocommerce-checkout {
        padding-bottom: 82px !important;
    }
}

@media (max-width: 380px) {

    body.woocommerce-checkout .samclo-checkout-fixed-inner {
        gap: 6px !important;
    }

    body.woocommerce-checkout .samclo-checkout-fixed-price,
    body.woocommerce-checkout .samclo-checkout-fixed-price td {
        font-size: 16px !important;
    }

    body.woocommerce-checkout .samclo-checkout-fixed-place-order {
        flex-basis: 40% !important;
        width: 40% !important;
        font-size: 12px !important;
    }
}


/* FIX: Đưa tổng tiền sát nút đặt hàng */
body.woocommerce-checkout
.samclo-checkout-fixed-inner {
    justify-content: flex-end !important;
    gap: 24px !important;
}

body.woocommerce-checkout
.samclo-checkout-fixed-total {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
}


/* =========================================================
   SAMCLO - CHECKOUT VALIDATION
   Chỉ báo lỗi sau khi khách bấm ĐẶT HÀNG
   ========================================================= */

/* Field chưa hợp lệ */
body.woocommerce-checkout
#customer_details .woocommerce-invalid input,
body.woocommerce-checkout
#customer_details .woocommerce-invalid select,
body.woocommerce-checkout
#customer_details .woocommerce-invalid textarea,
body.woocommerce-checkout
#customer_details .samclo-phone-invalid,
body.woocommerce-checkout
#customer_details .samclo-field-invalid,

/* Select2: viền đỏ trên ô đang hiển thị */
body.woocommerce-checkout
#customer_details .woocommerce-invalid .select2-selection--single {
    border-color: #e53935 !important;
}

/* Ẩn thông báo lỗi inline — chỉ giữ viền đỏ trên field */
body.woocommerce-checkout
#customer_details .checkout-inline-error-message {
    display: none !important;
}


/* Không đỏ khi field chưa được validate */
body.woocommerce-checkout
#customer_details input,
body.woocommerce-checkout
#customer_details select,
body.woocommerce-checkout
#customer_details textarea {
    transition: border-color .15s ease;
}

/* Lỗi SĐT */
body.woocommerce-checkout .samclo-phone-error {
    display: none;
    margin-top: 6px;
    color: #e53935;
    font-size: 12px;
    line-height: 1.4;
}

/* Hiện lỗi khi JS đánh dấu */
body.woocommerce-checkout
.samclo-phone-error.is-visible {
    display: block !important;
}

/* Lỗi checkbox chính sách */
body.woocommerce-checkout
.samclo-checkout-privacy-consent.has-error {
    color: #e53935 !important;
}

body.woocommerce-checkout
.samclo-checkout-privacy-consent.has-error
input[type="checkbox"] {
    outline: 2px solid #e53935 !important;
    outline-offset: 1px !important;
}



/* Giữ viền đỏ cho trường không hợp lệ */
body.woocommerce-checkout
#customer_details .woocommerce-invalid input,
body.woocommerce-checkout
#customer_details .woocommerce-invalid select,
body.woocommerce-checkout
#customer_details .woocommerce-invalid textarea {
    border-color: #e53935 !important;
}

/* SAMCLO - Checkout: Tên sản phẩm màu đen */
body.woocommerce-checkout #order_review td.product-name {
    color: #111 !important;
    font-weight: 600 !important;
}

/* Ẩn WooCommerce checkout notice
   Giữ validation bằng viền đỏ trên field */
body.woocommerce-checkout
.woocommerce-NoticeGroup-checkout {
    display: none !important;
}


/* =========================================================
   SAMCLO - CHECKOUT: HIỂN THỊ TIẾT KIỆM
   ========================================================= */

/* Trong card Tóm tắt đơn hàng */
body.woocommerce-checkout
.samclo-checkout-summary-table .samclo-checkout-total-discount {
    display: block !important;
    margin-top: 4px !important;
    color: #e53935 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

body.woocommerce-checkout
.samclo-checkout-summary-table .samclo-checkout-total-saving {
    display: none !important;
}

/* Trong thanh đặt hàng cố định */
body.woocommerce-checkout
.samclo-checkout-fixed-price .samclo-checkout-total-discount {
    display: none !important;
}

body.woocommerce-checkout
.samclo-checkout-fixed-price .samclo-checkout-total-saving {
    display: block !important;
    margin-top: 3px !important;
    color: #666 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-align: right !important;
}

body.woocommerce-checkout
.samclo-checkout-fixed-price .samclo-checkout-total-saving .woocommerce-Price-amount {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}





/* =====================================================
   SAMCLO - CHECKOUT SAVER STYLE
   ===================================================== */

/* Tiết kiệm dưới Tạm tính */
body.woocommerce-checkout .samclo-subtotal-saving {
    display: block !important;
    margin-top: 4px !important;
    color: #16a34a !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: right !important;
}

/* Tiết kiệm trên thanh đặt hàng cố định */
body.woocommerce-checkout .samclo-checkout-total-saving {
    color: #16a34a !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* Tiết kiệm trong toàn bộ khu vực checkout */
body.woocommerce-checkout .samclo-checkout-total-saving,
body.woocommerce-checkout .samclo-checkout-total-saving * {
    color: #16a34a !important;
}

/* Không viết hoa các nhãn trong tóm tắt */
body.woocommerce-checkout
.samclo-checkout-summary-table th,
body.woocommerce-checkout
.samclo-checkout-summary-table td,
body.woocommerce-checkout
#samclo-checkout-summary-card h3 {
    text-transform: none !important;
}

/* Tiêu đề Tóm tắt đơn hàng */
body.woocommerce-checkout
#samclo-checkout-summary-card h3 {
    text-transform: none !important;
}

/* Không hiển thị nhãn Tổng trong thanh đặt hàng cố định */
body.woocommerce-checkout
.samclo-checkout-fixed-bar .order-total th {
    display: none !important;
}





/* =====================================================
   SAMCLO - CHECKOUT SAVER STYLE FINAL FIX
   ===================================================== */

/* 1. TIẾT KIỆM DƯỚI TẠM TÍNH */
body.woocommerce-checkout
#samclo-checkout-summary-card .samclo-subtotal-saving {
    display: block !important;
    font-size: 8pt !important;
    font-weight: 600 !important;
    color: #16a34a !important;
}

body.woocommerce-checkout
#samclo-checkout-summary-card .samclo-subtotal-saving::before {
    content: "(" !important;
}

body.woocommerce-checkout
#samclo-checkout-summary-card .samclo-subtotal-saving::after {
    content: ")" !important;
}

/* Toàn bộ nội dung và số tiền đều màu xanh */
body.woocommerce-checkout
#samclo-checkout-summary-card .samclo-subtotal-saving,
body.woocommerce-checkout
#samclo-checkout-summary-card .samclo-subtotal-saving * {
    color: #16a34a !important;
    font-size: 8pt !important;
}

/* 2. GIẢM % SO VỚI GIÁ GỐC */
body.woocommerce-checkout
#samclo-checkout-summary-card .samclo-checkout-total-discount {
    display: block !important;
    font-size: 12px !important;
    color: #e53935 !important;
}

body.woocommerce-checkout
#samclo-checkout-summary-card .samclo-checkout-total-discount::before {
    content: "(" !important;
}

body.woocommerce-checkout
#samclo-checkout-summary-card .samclo-checkout-total-discount::after {
    content: ")" !important;
}

/* 3. TIẾT KIỆM DƯỚI TỔNG TIỀN THANH CỐ ĐỊNH */
body.woocommerce-checkout
#samclo-checkout-fixed-bar .samclo-checkout-total-saving,
body.woocommerce-checkout
#samclo-checkout-fixed-bar .samclo-checkout-total-saving * {
    color: #16a34a !important;
}

body.woocommerce-checkout
#samclo-checkout-fixed-bar .samclo-checkout-total-saving::before {
    content: "(" !important;
}

body.woocommerce-checkout
#samclo-checkout-fixed-bar .samclo-checkout-total-saving::after {
    content: ")" !important;
}

body.woocommerce-checkout
#samclo-checkout-summary-card .samclo-subtotal-saving,
body.woocommerce-checkout
#samclo-checkout-summary-card .samclo-subtotal-saving * {
    font-weight: 400 !important;
}


/* SAMCLO - Đổi tên phương thức giao hàng */
body.woocommerce-checkout
#samclo-checkout-summary-card .shipping__table th {
    font-size: 0 !important;
}

body.woocommerce-checkout
#samclo-checkout-summary-card .shipping__table th::after {
    content: "Phí giao hàng";
    font-size: 14px;
}

/* Đổi Free shipping thành Miễn phí */
body.woocommerce-checkout
#samclo-checkout-summary-card .shipping__list_label {
    font-size: 0 !important;
}

body.woocommerce-checkout
#samclo-checkout-summary-card .shipping__list_label::after {
    content: "Miễn phí";
    font-size: 14px;
}

/* ẨN CHỮ TỔNG TRÊN THANH ĐẶT HÀNG */
body.woocommerce-checkout
#samclo-checkout-fixed-bar
.samclo-checkout-fixed-label {
    display: none !important;
}


/* =========================================
   SAMCLO - CHECKOUT ADDRESS
   Coolmate inspired
========================================= */

/* Địa chỉ: full width */
#billing_address_1_field,
#shipping_address_1_field {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 0 12px !important;
}

/* Ẩn label tỉnh và phường */
#billing_state_field > label,
#billing_city_field > label,
#shipping_state_field > label,
#shipping_city_field > label {
    display: none !important;
}

/* Tỉnh / Thành phố: cột trái */
#billing_state_field,
#shipping_state_field {
    width: 49% !important;
    float: left !important;
    clear: both !important;
    margin: 0 0 16px !important;
}

/* Phường / Xã: cột phải */
#billing_city_field,
#shipping_city_field {
    width: 49% !important;
    float: right !important;
    clear: none !important;
    margin: 0 0 16px !important;
}

/* Đồng bộ chiều cao và kiểu dáng input */
#billing_address_1,
#shipping_address_1,
#billing_state,
#billing_city,
#shipping_state,
#shipping_city {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    border: 1px solid #d6d6d6 !important;
    border-radius: 24px !important;
    background-color: #fff !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    color: #333 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Focus */
#billing_address_1:focus,
#shipping_address_1:focus,
#billing_state:focus,
#billing_city:focus,
#shipping_state:focus,
#shipping_city:focus {
    border-color: #333 !important;
}

/* Placeholder */
#billing_address_1::placeholder,
#shipping_address_1::placeholder {
    color: #999 !important;
}

/* Ô chọn tỉnh và phường */
#billing_state,
#billing_city,
#shipping_state,
#shipping_city {
    cursor: pointer;
    padding-right: 32px !important;
}

/* Dọn float trước các trường tiếp theo */
#billing_city_field::after,
#shipping_city_field::after {
    content: "";
    display: table;
    clear: both;
}

/* Mobile */
@media (max-width: 549px) {
    #billing_state_field,
    #billing_city_field,
    #shipping_state_field,
    #shipping_city_field {
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }
}



/* Khắc phục float làm checkbox bị tràn và bóp hẹp */
.woocommerce-billing-fields__field-wrapper {
    display: flow-root;
}

.samclo-checkout-extra-fields {
    display: flow-root;
    clear: both !important;
    width: 100%;
    position: relative;
}

/* Đảm bảo checkbox hiển thị bình thường */
.samclo-checkout-extra-fields .samclo-checkout-toggle {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    margin: 10px 0 !important;
}

.samclo-checkout-extra-fields .samclo-checkout-toggle label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100% !important;
    white-space: normal;
}

.samclo-checkout-extra-fields .samclo-checkout-toggle input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0 4px 0 0;
}




/* SAMCLO - SELECTWOO CHECKOUT STYLE */

#billing_state_field .select2-container,
#billing_city_field .select2-container,
#shipping_state_field .select2-container,
#shipping_city_field .select2-container {
    width: 100% !important;
}

#billing_state_field .select2-selection--single,
#billing_city_field .select2-selection--single,
#shipping_state_field .select2-selection--single,
#shipping_city_field .select2-selection--single {
    height: 46px !important;
    border: 1px solid #d6d6d6 !important;
    border-radius: 24px !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: none !important;
}

#billing_state_field .select2-selection__rendered,
#billing_city_field .select2-selection__rendered,
#shipping_state_field .select2-selection__rendered,
#shipping_city_field .select2-selection__rendered {
    padding-left: 16px !important;
    padding-right: 35px !important;
    line-height: 44px !important;
    font-size: 14px !important;
    color: #333 !important;
}

#billing_state_field .select2-selection__arrow,
#billing_city_field .select2-selection__arrow,
#shipping_state_field .select2-selection__arrow,
#shipping_city_field .select2-selection__arrow {
    height: 44px !important;
    right: 10px !important;
}

.select2-container--default .select2-dropdown {
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 18px rgba(0,0,0,.10) !important;
    z-index: 999999 !important;
}

.select2-container--default .select2-search--dropdown {
    padding: 8px !important;
}

.select2-container--default .select2-search__field {
    height: 38px !important;
    border: 1px solid #ddd !important;
    border-radius: 22px !important;
    padding: 0 12px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    outline: none !important;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 200px !important;
    overflow-y: auto !important;
}

.select2-container--default .select2-results__option {
    min-height: 40px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #f15a24 !important;
    color: #fff !important;
}



/* SEARCH INPUT NẰM BÊN TRONG Ô SELECT CHÍNH */

.samclo-select-searching .select2-selection--single {
    position: relative !important;
    overflow: visible !important;
}

/* Ẩn tên tỉnh/phường cũ khi đang tìm kiếm */
.samclo-select-searching .select2-selection__rendered {
    visibility: hidden !important;
}

/* Ô tìm kiếm được đưa vào trong ô chính */
.samclo-select-searching .select2-search--dropdown {
    position: absolute !important;
    inset: 0 !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 16px !important;
    margin: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

/* Input tìm kiếm */
.samclo-select-searching .select2-search__field {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-family: inherit !important;
    font-size: 14px !important;
    color: #333 !important;
}

/* Dropdown chỉ còn danh sách kết quả */
.select2-container--default .select2-dropdown {
    overflow: hidden !important;
}

.select2-container--default .select2-search--dropdown {
    box-sizing: border-box !important;
}




/* =========================================================
   10.09 ORDER RECEIVED
   ========================================================= */

body.woocommerce-order-received
.woocommerce-order {
    display: grid !important;

    grid-template-columns:
        minmax(0, 8fr)
        minmax(0, 4fr) !important;

    column-gap: 16px !important;
    row-gap: 20px !important;

    width: 100% !important;
    max-width: 1400px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}


/* Bỏ lớp column của Flatsome khỏi layout */
body.woocommerce-order-received
.woocommerce-order > .large-7.col,

body.woocommerce-order-received
.woocommerce-order > .large-5.col {
    display: contents !important;
}


/* Reset width/padding của các phần tử con */
body.woocommerce-order-received
.woocommerce-order .woocommerce-sepay-bank-details,

body.woocommerce-order-received
.woocommerce-order .woocommerce-order-details,

body.woocommerce-order-received
.woocommerce-order .woocommerce-customer-details,

body.woocommerce-order-received
.woocommerce-order .is-well {
    width: 100% !important;
    max-width: none !important;

    min-width: 0 !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    box-sizing: border-box !important;
}


/* =========================================================
   CỘT TRÁI
   ========================================================= */

body.woocommerce-order-received
.woocommerce-sepay-bank-details {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
}






/* =========================================================
   CỘT PHẢI — THÔNG TIN ĐƠN
   ========================================================= */

body.woocommerce-order-received
.woocommerce-order .is-well {
    grid-column: 2 !important;
    grid-row: 1 !important;
}


/* =========================================================
   CỘT PHẢI — CHI TIẾT ĐƠN
   ========================================================= */

body.woocommerce-order-received
.woocommerce-order-details {
    grid-column: 2 !important;
    grid-row: 2 !important;
}


/* =========================================================
   CỘT PHẢI — KHÁCH HÀNG
   ========================================================= */

body.woocommerce-order-received
.woocommerce-customer-details {
    grid-column: 2 !important;
    grid-row: 3 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 849px) {

    body.woocommerce-order-received
    .woocommerce-order {
        display: block !important;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    body.woocommerce-order-received
    .woocommerce-order > .large-7.col,

    body.woocommerce-order-received
    .woocommerce-order > .large-5.col {
        display: block !important;
    }

    body.woocommerce-order-received
    .woocommerce-sepay-bank-details,

    body.woocommerce-order-received
    .woocommerce-order-details,

    body.woocommerce-order-received
    .woocommerce-customer-details,

    body.woocommerce-order-received
    .woocommerce-order .is-well {
        width: 100% !important;
        margin: 0 0 20px !important;
    }
}

/* bỏ viền xanh sepay */
body.woocommerce-order-received .sepay-box,
body.woocommerce-order-received .woocommerce-sepay-bank-details {
    border: none !important;
}

/* Box — Chi tiết đơn hàng */
body.woocommerce-order-received
.woocommerce-order-details {
    background: #f0f0f0!important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    padding: 24px 28px !important;
    margin-top: 20px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important;
}
body.woocommerce-order-received .is-well,
body.woocommerce-order-received .woocommerce-order-details {
    border-radius: 7px !important;
}

/* =========================================================
   11. RESPONSIVE FIXES — SỬA LỖI RESPONSIVE
   ---------------------------------------------------------
   Các bản sửa cuối file cho lỗi chiều rộng mobile và card checkout
   trên màn hình nhỏ. Đây là các patch giữ nguyên để tránh thay đổi
   behavior hiện tại.
   ========================================================= */

/* =========================================================
 * FIX: SỬA LỖI CHIỀU RỘNG GALLERY MOBILE
 * Nội dung:
 * - Trên mobile, #wrapper / #main / .shop-container
 *   bị kéo rộng ~737px thay vì theo viewport.
 * - Làm gallery sản phẩm bị rộng và cao bất thường.
 * - Ép các container chính về 100% chiều rộng mobile.
 * ========================================================= */

@media (max-width: 849px) {
    #wrapper,
    #main,
    .shop-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}


/* =========================================================
 * FIX: MOBILE CHECKOUT — BỎ CARD BO GÓC
 *
 * Mục tiêu:
 * - Bỏ card "Thông tin của bạn"
 * - Bỏ card "Đơn hàng của bạn"
 * - Bỏ card "Mã giảm giá"
 * - Bỏ card "Phương thức thanh toán"
 * - Bỏ card "Tóm tắt đơn hàng"
 * - Tận dụng tối đa chiều rộng màn hình mobile
 * - Giữ nguyên các input, nút và nội dung bên trong
 * - Không ảnh hưởng desktop
 * ========================================================= */

@media (max-width: 849px) {

    /* Card "Thông tin của bạn" */
    body.woocommerce-checkout
    form.checkout > .row.pt-0 > .large-7.col {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    /* Card "Đơn hàng của bạn" */
    body.woocommerce-checkout
    #samclo-checkout-products-card {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    /* Wrapper card bên ngoài của cột đơn hàng */
    body.woocommerce-checkout
    form.checkout > .row.pt-0 > .large-5.col {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    /* Các card checkout custom:
     * Mã giảm giá
     * Phương thức thanh toán
     * Tóm tắt đơn hàng
     */
    body.woocommerce-checkout
    .samclo-checkout-card {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    /* Giữ nội dung bên trong không bị tạo card riêng */
    body.woocommerce-checkout
    #customer_details,
    body.woocommerce-checkout
    .woocommerce-billing-fields,
    body.woocommerce-checkout
    .woocommerce-additional-fields {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }
}




/* =========================================================
   12. CHECKOUT PRIVACY ERROR — LỖI CHÍNH SÁCH
   ---------------------------------------------------------
   Hiển thị trạng thái lỗi của checkbox chính sách và dòng cảnh báo
   để người dùng nhận biết khi chưa đồng ý.
   ========================================================= */

/* =========================================================
   SAMCLO - PRIVACY CONSENT ERROR
   ========================================================= */

body.woocommerce-checkout
.samclo-checkout-privacy-consent.has-error {
    margin-bottom: 22px !important;
}

body.woocommerce-checkout
.samclo-checkout-privacy-consent.has-error
input[type="checkbox"] {
    outline: 2px solid #e53935 !important;
    outline-offset: 1px !important;
}

body.woocommerce-checkout
.samclo-privacy-consent-error {
    display: block !important;
    width: 100% !important;
    margin: 6px 0 0 27px !important;
    color: #e53935 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}