/* Base styles and variables
 * @package B2B-Marketplace
 * @version 1.0.846
 */
:root {
    --primary-color: #FF7600;
    --primary-gradient: linear-gradient(135deg, #FF7600 0%, #F26522 100%);
    --secondary-color: #F26522;
    --text-color: #333333;
    --text-light: #757575;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --border-color: #e8e8e8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* ==========================================================================
   Header Styles (Kingfoodmart Style - Orange & Modern)
   ========================================================================== */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* --- TẦNG 1: HEADER CHÍNH (NỀN CAM KINGFOODMART) --- */
.header-main {
    background: linear-gradient(135deg, #FF7600 0%, #F26522 100%);
    color: #ffffff;
    padding: 10px 0;
}

.header-main-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-logo a {
    display: flex;
    align-items: center;
}

.header-logo img {
    display: block;
    width: auto;
    height: 38px;
    max-height: 44px;
    max-width: 200px;
    aspect-ratio: 2000 / 360;
    object-fit: contain;
    /* background: #ffffff; */
    padding: 3px 8px;
    /* border-radius: 6px; */
    /* box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); */
}

.site-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

/* --- THANH TÌM KIẾM BO TRÒN (PILL SEARCH) --- */
.header-search {
    flex: 1;
    max-width: 1050px;
    margin: 0 20px 0 12px;
}

.header-search .wpes-advanced-search-wrapper {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1600px) {
    .header-search {
        max-width: 1250px;
    }
}

.header-search .wpes-advanced-search-wrapper .sc-search-form {
    background: #ffffff;
    border: none;
    border-radius: 99px;
    height: 40px;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header-search .wpes-advanced-search-wrapper .sc-search-icon {
    color: #FF7600;
    font-size: 16px;
    margin-right: 10px;
}

.header-search .wpes-advanced-search-wrapper .sc-search-input {
    padding: 8px 0 !important;
    font-size: 14px !important;
    color: #1f2937 !important;
}

.header-search .wpes-advanced-search-wrapper .sc-search-input::placeholder {
    color: #9ca3af;
}

/* --- QUICK LINKS TRÊN HEADER CAM --- */
.header-quick-links {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-quick-links a[href*="/thanh-vien"] {
    display: none !important;
}

.quick-links-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 16px;
    align-items: center;
}

.quick-links-list li a {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity 0.2s;
}

.quick-links-list li a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.quick-links-list .quick-link-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.quick-links-list .quick-link-action:hover {
    opacity: 0.9;
    text-decoration: none;
}

.quick-links-list .quick-link-action .action-icon {
    color: #ffffff;
    font-size: 22px;
}

.quick-links-list .quick-link-action .action-subtext,
.quick-links-list .quick-link-action .action-title {
    color: #ffffff;
}

.header-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 4px;
    flex-shrink: 0;
}

/* --- CÁC NÚT ACTION (TÀI KHOẢN, ĐƠN HÀNG, GIỎ HÀNG) --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-action-item {
    position: relative;
}

.header-action-item .action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
    background: transparent;
    border: none;
    padding: 0;
}

.header-action-item .action-btn:hover {
    opacity: 0.9;
}

.header-action-item .action-icon {
    font-size: 22px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.action-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.action-subtext {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.action-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

/* Giỏ hàng */
.header-cart-wrapper {
    position: relative;
    padding: 6px 0;
}

.cart-icon,
.wishlist-icon {
    position: relative;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
}

.wishlist-icon i,
.header-wishlist-wrapper .wishlist-icon i {
    color: #ffffff !important;
}

.cart-icon .cart-count,
.wishlist-icon .wishlist-count {
    position: absolute;
    top: -7px;
    right: -10px;
    background: #e11d48;
    color: #ffffff;
    font-size: 10px;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    text-align: center;
    border-radius: 99px;
    padding: 0 4px;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.cart-title,
.wishlist-title {
    margin-left: 2px;
}

/* Mini Cart Dropdown */
.mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 16px 18px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #e2e8f0;
}

.header-cart-wrapper:hover .mini-cart-dropdown,
.header-cart-wrapper.is-open .mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mini-cart-dropdown .widget_shopping_cart_content {
    font-size: 14px;
    color: var(--text-color);
}

.mini-cart-dropdown .woocommerce-mini-cart {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 340px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 4px;
}

.mini-cart-dropdown .woocommerce-mini-cart::-webkit-scrollbar {
    width: 5px;
}

.mini-cart-dropdown .woocommerce-mini-cart::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.mini-cart-dropdown .woocommerce-mini-cart::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.mini-cart-dropdown .woocommerce-mini-cart::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Từng dòng sản phẩm trong Mini-cart */
.mini-cart-dropdown .woocommerce-mini-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.mini-cart-dropdown .woocommerce-mini-cart-item:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

/* Ảnh đại diện sản phẩm */
.mini-cart-dropdown .mini-cart-item-thumb {
    width: 54px;
    height: 54px;
    min-width: 54px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-cart-dropdown .mini-cart-item-thumb img,
.mini-cart-dropdown .woocommerce-mini-cart-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

/* Chi tiết sản phẩm: Tên + Giá */
.mini-cart-dropdown .mini-cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 8px;
}

.mini-cart-dropdown .mini-cart-item-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.mini-cart-dropdown .mini-cart-item-title:hover {
    color: #FF7600;
}

.mini-cart-dropdown .mini-cart-item-meta {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
}

.mini-cart-dropdown .mini-cart-item-meta .quantity,
.mini-cart-dropdown .woocommerce-mini-cart-item .quantity {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    padding: 0;
    margin: 0;
    width: auto;
}

.mini-cart-dropdown .quantity .qty-num {
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11.5px;
}

.mini-cart-dropdown .quantity .qty-mult {
    color: #94a3b8;
    font-size: 12px;
}

.mini-cart-dropdown .quantity .amount {
    color: #FF7600;
    font-weight: 700;
    font-size: 13.5px;
}

/* Nút xóa sản phẩm góc bên phải */
.mini-cart-dropdown .es-mini-cart-remove,
.mini-cart-dropdown a.remove {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #f8fafc;
    color: #94a3b8 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.mini-cart-dropdown .es-mini-cart-remove:hover,
.mini-cart-dropdown a.remove:hover {
    background: #fee2e2;
    color: #ef4444 !important;
    border-color: #fca5a5;
    transform: scale(1.08);
}

/* Fallback tương thích trường hợp HTML mặc định */
.mini-cart-dropdown .woocommerce-mini-cart-item>a:not(.remove):not(.es-mini-cart-remove):not(.mini-cart-item-title) {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.35;
}

.mini-cart-dropdown .woocommerce-mini-cart-item>a:not(.remove):not(.es-mini-cart-remove):not(.mini-cart-item-title) img {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

/* Tổng tiền tạm tính */
.mini-cart-dropdown .woocommerce-mini-cart__total {
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
    margin-top: 6px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #475569;
}

.mini-cart-dropdown .woocommerce-mini-cart__total strong {
    font-weight: 600;
    color: #1e293b;
    float: none;
}

.mini-cart-dropdown .woocommerce-mini-cart__total .amount {
    font-size: 17px;
    font-weight: 700;
    color: #FF7600;
}

/* Các nút bấm giỏ hàng & thanh toán */
.mini-cart-dropdown .woocommerce-mini-cart__buttons {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.mini-cart-dropdown .woocommerce-mini-cart__buttons a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.mini-cart-dropdown .woocommerce-mini-cart__buttons a:not(.checkout) {
    background: #f1f5f9;
    color: #334155;
    border-color: #e2e8f0;
}

.mini-cart-dropdown .woocommerce-mini-cart__buttons a:not(.checkout):hover {
    background: #e2e8f0;
    color: #0f172a;
}

.mini-cart-dropdown .woocommerce-mini-cart__buttons a.checkout {
    background: linear-gradient(135deg, #FF7600 0%, #F26522 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(255, 118, 0, 0.3);
}

.mini-cart-dropdown .woocommerce-mini-cart__buttons a.checkout:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 12px rgba(255, 118, 0, 0.4);
}

/* Trạng thái giỏ hàng trống */
.mini-cart-dropdown .woocommerce-mini-cart__empty-message {
    padding: 25px 10px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* --- TẦNG 2: SUB HEADER (NỀN TRẮNG) --- */
.header-subbar {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 7px 0;
}

.header-subbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.subbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

/* Nút Chọn hình thức mua hàng */
.delivery-method-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #1a73e8;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

@media (min-width: 992px) {
    .delivery-method-btn {
        /* width: 256px; */
        min-width: 256px;
    }
}

.delivery-method-btn:hover {
    background: #f0f7ff;
    color: #0b57d0;
}

.delivery-method-arrow {
    font-size: 11px;
    transition: transform 0.2s;
}

.delivery-method-btn:hover .delivery-method-arrow {
    transform: translateY(2px);
}

.subbar-divider {
    width: 1px;
    height: 22px;
    background: #e2e8f0;
    flex-shrink: 0;
}

/* Widget Thẻ OneLife */
.onelife-card-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.onelife-card-widget:hover {
    background: #f8fafc;
}

.onelife-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e8f0fe;
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.onelife-card-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.onelife-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
}

.onelife-card-subtitle {
    font-size: 11.5px;
    color: #64748b;
}

/* Phía bên phải Subbar (Danh mục & Menu) */
.subbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* --- SITE BODY & LEFT SIDEBAR LAYOUT (KINGFOODMART STYLE) --- */
.site-body-wrapper {
    background-color: var(--bg-color);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.site-body-container.has-left-sidebar {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 30px;
    width: 100%;
}

.site-left-sidebar {
    width: 256px;
    min-width: 256px;
    flex-shrink: 0;
    position: sticky;
    z-index: 90;
}

.site-main-content-wrap {
    width: 100%;
    min-width: 0;
}

.has-left-sidebar .site-main-content-wrap {
    flex: 1;
    min-width: 0;
    width: calc(100% - 272px);
}

.site-body-container:not(.has-left-sidebar) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.site-body-container:not(.has-left-sidebar) .site-main-content-wrap {
    width: 100% !important;
    max-width: 100% !important;
}

.has-left-sidebar .site-main-content-wrap .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.sidebar-category-nav {
    position: relative;
    overflow: visible;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-category-list {
    list-style: none;
    padding: 6px 0;
    margin: 0;
}

.sidebar-category-list>li {
    position: static;
    border-bottom: 1px solid #f8fafc;
}

.sidebar-category-list>li:last-child {
    border-bottom: none;
}

.sidebar-category-list>li>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    line-height: 1.35;
}

.sidebar-category-list>li:hover>a {
    background: #fff7ed;
    color: #FF7600;
    padding-left: 18px;
    font-weight: 600;
}

/* Ẩn triệt để ảnh/icon trong menu theo yêu cầu: "nhưng ko cần hiển thị ảnh cho menu" */
.sidebar-category-list img,
.sidebar-category-list svg,
.sidebar-category-list i:not(.arrow-icon) {
    display: none !important;
}

/* Mũi tên chevron-right bên phải */
.sidebar-category-list>li.menu-item-has-children>a::after {
    content: '\f105' !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    font-size: 11px;
    color: #9ca3af;
    transition: transform 0.2s, color 0.2s;
    margin-left: auto;
}

.sidebar-category-list>li:hover>a::after {
    color: #FF7600;
    transform: translateX(2px);
}

/* Mega Menu Subpane của Left Sidebar: tự động tính vị trí top bằng JS để không bị che trên và không bị tràn dưới */
.sidebar-category-list>li>ul.sub-menu {
    position: absolute !important;
    left: 100% !important;
    top: 0;
    width: 780px;
    max-width: calc(100vw - 320px);
    max-height: calc(100vh - 145px);
    overflow-y: auto;
    background: #ffffff;
    box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    border-radius: 0 8px 8px 8px;
    padding: 20px;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    flex-wrap: wrap;
    align-content: flex-start;
    z-index: 1000;
}

.sidebar-category-list>li>ul.sub-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-category-list>li>ul.sub-menu::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 3px;
}

.sidebar-category-list>li>ul.sub-menu::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.sidebar-category-list>li:hover>ul.sub-menu {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.sidebar-category-list>li>ul.sub-menu>li {
    width: 33.333%;
    padding: 0 15px 18px;
    list-style: none;
}

.sidebar-category-list>li>ul.sub-menu>li>a {
    font-weight: 700;
    font-size: 14px;
    color: #1f2937;
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
}

.sidebar-category-list>li>ul.sub-menu>li>a:hover {
    color: #FF7600;
}

.sidebar-category-list>li>ul.sub-menu>li>ul.sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-list>li>ul.sub-menu>li>ul.sub-menu>li {
    margin-bottom: 6px;
}

.sidebar-category-list>li>ul.sub-menu>li>ul.sub-menu>li>a {
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-category-list>li>ul.sub-menu>li>ul.sub-menu>li>a:hover {
    color: #FF7600;
}

@media (max-width: 991px) {
    .site-left-sidebar {
        display: none !important;
    }

    .site-body-container.has-left-sidebar {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-top: 10px;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .has-left-sidebar .site-main-content-wrap {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        min-width: 0 !important;
    }

    .has-left-sidebar .site-main-content-wrap .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }
}

/* Primary Menu Trong Subbar */
.primary-navigation .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.primary-navigation .nav-menu li a {
    display: block;
    padding: 8px 12px;
    font-weight: 600;
    color: #4b5563;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    border-radius: 6px;
    transition: all 0.2s;
}

.primary-navigation .nav-menu li a:hover {
    color: #FF7600;
    background: #fff7ed;
}

/* --- MODALS (POPUP DIALOGS) --- */
.es-custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.es-custom-modal.active {
    display: flex;
}

.es-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.es-modal-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    max-width: 480px;
    width: 100%;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    z-index: 2;
    animation: esModalFadeIn 0.25s ease-out;
}

@keyframes esModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.es-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
}

.es-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.es-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.es-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.es-modal-desc {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

.es-form-group {
    margin-bottom: 16px;
}

.es-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.es-form-group input,
.es-form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.es-form-group input:focus,
.es-form-group select:focus {
    border-color: #FF7600;
    box-shadow: 0 0 0 3px rgba(255, 118, 0, 0.15);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 15px;
}

.input-with-icon input,
.input-with-icon select {
    padding-left: 40px !important;
}

.es-primary-btn {
    width: 100%;
    padding: 12px;
    background: #FF7600;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(255, 118, 0, 0.25);
}

.es-primary-btn:hover {
    background: #e56a00;
}

.es-primary-btn:active {
    transform: scale(0.99);
}

/* Tabs Delivery Method */
.delivery-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 18px;
    gap: 4px;
}

.delivery-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-tab-btn.active {
    background: #ffffff;
    color: #1a73e8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.delivery-tab-content {
    display: none;
}

.delivery-tab-content.active {
    display: block;
}

/* OneLife Card Modal Styling */
.onelife-modal-dialog {
    max-width: 440px;
    padding: 24px;
}

.card-visual {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #f97316 100%);
    border-radius: 14px;
    padding: 22px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.card-visual::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.card-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.card-chip {
    font-size: 20px;
    opacity: 0.8;
}

.card-number {
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 24px;
    opacity: 0.95;
}

.card-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 2px;
}

.card-holder,
.card-rank {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-benefits .benefits-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

.benefits-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #475569;
    margin-bottom: 10px;
    line-height: 1.4;
}

.benefits-list li i {
    color: #10b981;
    margin-top: 2px;
    flex-shrink: 0;
}

.modal-footer-text {
    text-align: center;
    margin-top: 14px;
    font-size: 13.5px;
    color: #64748b;
}

.modal-footer-text a {
    color: #1a73e8;
    font-weight: 600;
    text-decoration: none;
}

.modal-footer-text a:hover {
    text-decoration: underline;
}

.es-message-box {
    display: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 13.5px;
    text-align: center;
    margin-bottom: 14px;
}

/* ==========================================================================
   Mobile Header & Responsive Styles
   ========================================================================== */
@media (max-width: 1200px) {
    .header-quick-links {
        display: none;
    }

    .header-divider {
        display: none;
    }
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        font-size: 20px;
        color: #ffffff;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
    }

    .header-subbar {
        display: none !important;
    }

    .action-text-group,
    .cart-title,
    .wishlist-title {
        display: none !important;
    }

    .header-main-container {
        gap: 10px;
    }

    .header-logo {
        min-width: auto;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .header-logo img {
        height: 34px;
        width: auto;
        max-width: 150px;
        aspect-ratio: 2000 / 360;
        object-fit: contain;
    }

    .header-search {
        margin: 0 5px;
    }
}

@media (max-width: 768px) {
    .header-main {
        padding: 8px 0 10px;
    }

    .header-main-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px 10px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .mobile-menu-toggle {
        order: 1;
    }

    .header-logo {
        order: 2;
        margin-right: auto;
        display: flex;
        align-items: center;
    }

    .header-logo img {
        display: block;
        height: 30px;
        width: auto;
        max-width: 140px;
        aspect-ratio: 2000 / 360;
        object-fit: contain;
        background: #ffffff;
        padding: 3px 8px;
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    .header-actions {
        order: 3;
        gap: 12px;
        margin-left: auto;
    }

    .header-search {
        order: 4;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100%;
        margin: 4px 0 0 !important;
    }

    .header-search .wpes-advanced-search-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .header-search .wpes-advanced-search-wrapper .sc-search-form {
        width: 100% !important;
        height: 38px;
        padding: 0 14px;
    }

    .header-search .wpes-advanced-search-wrapper .sc-search-input {
        font-size: 13.5px !important;
    }

    .header-action-item .action-icon {
        font-size: 20px;
    }

    .orders-action {
        display: none !important;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .header-main-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .header-actions {
        gap: 10px;
    }

    .header-action-item .action-btn {
        padding: 2px;
    }
}

/* Mobile Drawer */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
}

.header-nav {
    display: none;
}

@media (max-width: 991px) {
    .header-nav {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        background: #ffffff;
        z-index: 999999;
        overflow-y: auto;
        transition: left 0.3s ease;
        display: block;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
    }

    .header-nav.active {
        left: 0;
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        background: #FF7600;
        color: #ffffff;
    }

    .mobile-menu-title {
        font-size: 16px;
        font-weight: 700;
    }

    .close-mobile-menu {
        background: transparent;
        border: none;
        color: #ffffff;
        font-size: 20px;
        cursor: pointer;
    }

    .mobile-menu-body {
        padding: 16px 0;
    }

    .mobile-user-box {
        padding: 0 16px 16px;
        border-bottom: 1px solid #f1f5f9;
    }

    .mobile-user-link {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 15px;
        font-weight: 600;
        color: #1f2937;
    }

    .mobile-user-link i {
        font-size: 24px;
        color: #FF7600;
    }

    .mobile-quick-list {
        list-style: none;
        margin: 0;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
    }

    .mobile-quick-list li a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 9px 0;
        color: #4b5563;
        font-size: 14px;
        font-weight: 500;
    }

    .mobile-quick-list li a i {
        width: 18px;
        color: #FF7600;
    }

    .mobile-departments-section {
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
    }

    .mobile-departments-section .departments-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: #fffaf5;
        border: 1px solid #fed7aa;
        border-radius: 8px;
        padding: 11px 14px;
        font-size: 15px;
        font-weight: 600;
        color: #1e293b;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-departments-section .departments-btn i.fa-th-large {
        color: #FF7600;
        font-size: 16px;
        margin-right: 8px;
    }

    .mobile-departments-section .departments-btn span {
        flex: 1;
        text-align: left;
    }

    .mobile-departments-section .departments-btn .arrow-down {
        color: #94a3b8;
        font-size: 13px;
        transition: transform 0.25s ease;
    }

    .mobile-departments-section.active .departments-btn .arrow-down {
        transform: rotate(180deg);
        color: #FF7600;
    }

    .mobile-departments-section .departments-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        padding-top: 10px;
    }

    /* Menu danh mục phong cách accordion hiện đại trên di động */
    .departments-menu-list,
    .departments-menu-list ul {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .departments-menu-list {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        overflow: hidden;
    }

    .departments-menu-list>li {
        position: relative;
        border-bottom: 1px solid #f1f5f9;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .departments-menu-list>li:last-child {
        border-bottom: none;
    }

    .departments-menu-list>li>a {
        display: flex;
        align-items: center;
        padding: 12px 14px;
        padding-right: 48px;
        font-size: 14px;
        font-weight: 500;
        color: #1e293b;
        text-decoration: none;
        line-height: 1.4;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .departments-menu-list>li:hover>a,
    .departments-menu-list>li.is-open>a {
        color: #FF7600;
        background: #fffaf5;
    }

    /* Nút mở rộng/thu gọn danh mục con */
    .departments-menu-list .cat-sub-toggle {
        position: absolute;
        right: 0;
        top: 0;
        width: 48px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #94a3b8;
        cursor: pointer;
        font-size: 13px;
        transition: transform 0.25s ease, color 0.2s ease;
        z-index: 2;
        padding: 0;
    }

    .departments-menu-list .cat-sub-toggle:hover {
        color: #FF7600;
    }

    .departments-menu-list li.is-open>.cat-sub-toggle {
        transform: rotate(180deg);
        color: #FF7600;
    }

    /* Menu con cấp 1 */
    .departments-menu-list .sub-menu {
        display: none;
        background: #f8fafc;
        border-top: 1px solid #f1f5f9;
        padding: 4px 0 !important;
        list-style: none !important;
        margin: 0 !important;
    }

    .departments-menu-list .sub-menu li {
        position: relative;
        border-bottom: 1px dashed #e2e8f0;
        list-style: none !important;
        margin: 0 !important;
    }

    .departments-menu-list .sub-menu li:last-child {
        border-bottom: none;
    }

    .departments-menu-list .sub-menu li a {
        display: flex;
        align-items: center;
        padding: 10px 14px 10px 24px;
        padding-right: 48px;
        font-size: 13.5px;
        font-weight: 400;
        color: #475569;
        text-decoration: none;
        line-height: 1.4;
        transition: all 0.15s ease;
    }

    .departments-menu-list .sub-menu li a::before {
        content: "•";
        color: #cbd5e1;
        font-size: 14px;
        margin-right: 8px;
    }

    .departments-menu-list .sub-menu li a:hover,
    .departments-menu-list .sub-menu li a:active,
    .departments-menu-list .sub-menu li.is-open>a {
        color: #FF7600;
        background: #f1f5f9;
        font-weight: 500;
    }

    .departments-menu-list .sub-menu li a:hover::before,
    .departments-menu-list .sub-menu li.is-open>a::before {
        color: #FF7600;
    }

    /* Menu con cấp 2 */
    .departments-menu-list .sub-menu .sub-menu {
        background: #f1f5f9;
        border-top: 1px solid #e2e8f0;
    }

    .departments-menu-list .sub-menu .sub-menu li a {
        padding-left: 36px;
        font-size: 13px;
        color: #64748b;
    }

    .mobile-primary-menu {
        padding: 8px 16px;
    }

    .mobile-primary-menu .nav-menu {
        flex-direction: column;
        gap: 0;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-primary-menu .nav-menu li {
        list-style: none !important;
        margin: 0;
    }

    .mobile-primary-menu .nav-menu li a {
        display: block;
        padding: 11px 0;
        border-bottom: 1px solid #f8fafc;
        font-size: 14px;
        color: #334155;
        font-weight: 500;
        text-decoration: none;
    }
}


/* Footer */
.site-footer {
    background-color: #fff;
    padding: 40px 0 0;
    border-top: 1px solid #eee;
    font-family: 'Inter', sans-serif;
    color: #333;
}

.footer-main .container {
    margin: 0 auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr 1.5fr 1.5fr 2fr;
    gap: 20px;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 10px;
}

.widget ul li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.widget ul li a:hover {
    color: var(--primary-color);
}

.widget p {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.company-info .logo {
    max-width: 320px;
    margin-bottom: 15px;
}

.company-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-icons a {
    font-size: 24px;
    color: #333;
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-methods img {
    height: 25px;
}

.app-downloads {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.app-downloads img {
    height: 35px;
}

.bct-logo {
    max-width: 120px;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding: 15px 0;
    margin-top: 30px;
}

.copyright {
    text-align: left;
    font-size: 13px;
    color: #666;
}

/* Common Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 390px;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.product-image {
    background: #fff;
    padding: 15px;
    /* border-bottom: 1px solid #f5f5f5; */
    flex-shrink: 0;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.product-image>a:not(.wn-trigger-add-wishlist) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.product-image>a:not(.wn-trigger-add-wishlist) img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.product-image .wn-trigger-add-wishlist {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 9 !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    color: #0073aa !important;
    font-size: 16px !important;
}

.product-image .product-origin-badge,
.woocommerce-product-gallery .product-origin-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 9 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #1e293b !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    pointer-events: none !important;
    text-transform: capitalize !important;
    letter-spacing: 0.1px !important;
    max-width: calc(100% - 60px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.product-image .product-origin-badge svg,
.woocommerce-product-gallery .product-origin-badge svg {
    flex-shrink: 0 !important;
    color: #0284c7 !important;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px 15px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-action {
    margin-top: auto;
    width: 100%;
}

.product-action .btn-buy,
.product-action .button {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 25px;
    /* Pill shape */
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
    border: none;
}

.product-action .btn-buy:hover,
.product-action .button:hover {
    background: #e53935;
    /* Red */
    color: #ffffff;
}

.product-action .btn-buy i,
.product-action .button i {
    margin-right: 6px;
}

.product-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    height: 44px;
    line-height: 1.4;
    color: #1e293b;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-title a:hover {
    color: #e53935;
    /* Hardcode red to prevent white text issue */
}

.product-price {
    color: #d32f2f;
    /* Premium red for price */
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
}

.add_to_cart_button,
.ajax_add_to_cart {
    display: block;
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 25px;
    /* Pill shape */
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
}

.add_to_cart_button:hover,
.ajax_add_to_cart:hover {
    background: #e53935;
    /* Red */
    box-shadow: 0 6px 15px rgba(229, 57, 53, 0.3);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Product Action Wrapper */
.product-action-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.product-action-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Hide default WooCommerce "View Cart" link after adding to cart */
a.added_to_cart {
    display: none !important;
}

/* Qty Selector */
.product-qty-selector {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color, #e53935);
    border-radius: 20px;
    overflow: hidden;
    height: 34px;
    border: none;
    width: 110px;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-qty-selector .qty-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    width: 34px;
    height: 100%;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-qty-selector .qty-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.product-qty-selector .qty-input {
    width: 42px;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    padding: 0;
    margin: 0;
    line-height: 34px;
    min-height: 0;
    outline: none;
    box-shadow: none;
}

.product-qty-selector .qty-input::-webkit-outer-spin-button,
.product-qty-selector .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-qty-selector .qty-input[type=number] {
    -moz-appearance: textfield;
}

/* Home custom sections */
.custom-deal-section {
    background-color: #dce7b5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.custom-deal-header {
    font-size: 24px;
    font-weight: 700;
    color: #633211;
    margin-bottom: 20px;
}

.deal-slider {
    position: relative;
    overflow: hidden;
}

.deal-product-item {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    position: relative;
}

.deal-product-item .discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f39c12;
    color: #fff;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.deal-product-item img {
    max-width: 100%;
    height: 250px;
    margin-bottom: 15px;
}

.deal-product-item .product-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.deal-product-item .product-price {
    font-size: 16px;
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 5px;
}

.deal-product-item .product-old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 15px;
}

.deal-product-item .btn-buy {
    display: inline-block;
    background: #dce7b5;
    color: #633211;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    width: 100%;
}

.deal-product-item .btn-buy i {
    margin-right: 5px;
}

.custom-banner-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
    width: 100%;
    aspect-ratio: 1200 / 465;
    max-height: 465px;
}

.custom-banner-grid>div {
    min-height: 0;
    overflow: hidden;
}

.custom-banner-grid .grid-col-1 a,
.custom-banner-grid .grid-col-3 a,
.custom-banner-grid .grid-col-2-top a,
.custom-banner-grid .grid-col-2-bottom a {
    display: block;
    height: 100%;
}

.custom-banner-grid img {
    width: 100%;
    height: 100%;
    max-height: 465px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.grid-col-2 {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.grid-col-2-top {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.grid-col-2-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 15px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.view-all-deals {
    text-align: center;
    margin-top: 20px;
}

.view-all-deals a {
    color: #633211;
    font-weight: bold;
    text-decoration: none;
}

/* Home Slider */
.home-slider {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.home-slider img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 1;
    object-fit: cover;
    border-radius: 8px;
}

/* Global Product Price Styling */
.product-price {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.product-price del,
.product-price del span {
    color: #999 !important;
    text-decoration: line-through;
    order: 2;
    font-size: 14px;
    font-weight: normal;
}

.product-price ins {
    text-decoration: none;
    order: 1;
}

.product-price ins span,
.product-price>span.amount,
.product-price>span.woocommerce-Price-amount,
.product-price {
    color: #d32f2f;
    font-weight: bold;
    font-size: 16px;
}

/* AJAX Tabs */
.es-ajax-tab-link {
    transition: color 0.3s;
}

.es-ajax-tab-link:hover {
    color: #e53935 !important;
}

.es-ajax-tab-link.active {
    color: #e53935 !important;
    position: relative;
}

.es-ajax-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e53935;
}

.es-ajax-target {
    transition: opacity 0.3s;
}

.es-ajax-target.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Remove border for product cards in banner top grid */
.layout-banner-top-grid .product-card {
    border: none;
    box-shadow: none;
}

.layout-banner-top-grid .product-card:hover {
    box-shadow: none;
}

/* QTY Selector removed duplicate block */
.product-action-wrapper {
    position: relative;
}

.product-action-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

.product-action-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #e53935;
    border-radius: 50%;
    animation: es-spin 0.8s linear infinite;
    z-index: 10;
}

.single_add_to_cart_button.loading,
.button.loading,
.btn-buy.loading,
.es_ajax_add_to_cart.loading {
    position: relative;
    opacity: 0.8;
    pointer-events: none;
    color: transparent !important;
}

.single_add_to_cart_button.loading::after,
.button.loading::after,
.btn-buy.loading::after,
.es_ajax_add_to_cart.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: es-spin 0.8s linear infinite;
}

@keyframes es-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .custom-banner-grid {
        display: none;
    }

    .custom-banner-grid img {
        max-height: none;
        height: auto;
    }

    .custom-banner-grid>div,
    .grid-col-2-top,
    .grid-col-2-bottom {
        min-height: auto;
    }

    .grid-col-2-bottom {
        grid-template-columns: 1fr;
    }

    /* Khối deal & Slider trên mobile */
    .custom-deal-section {
        padding: 14px;
        margin-bottom: 20px;
        max-width: 100%;
        overflow: hidden;
    }

    .custom-deal-header {
        font-size: 18px;
        margin-bottom: 12px;
    }

    /* Card sản phẩm trên mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .product-card {
        height: 100% !important;
        min-height: 0 !important;
    }

    .product-image {
        height: 165px !important;
        padding: 8px !important;
    }

    .product-image>a:not(.wn-trigger-add-wishlist) {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .product-title {
        font-size: 13.5px !important;
        height: 38px !important;
        line-height: 1.35 !important;
        margin-bottom: 6px !important;
    }

    .product-info {
        padding: 10px !important;
    }

    .product-action .btn-buy,
    .product-action .button {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    .deal-product-item {
        padding: 10px;
    }

    .deal-product-item img {
        height: 150px;
        object-fit: contain;
        margin-bottom: 10px;
    }

    .deal-product-item .product-title {
        font-size: 13px;
        height: 36px;
    }

    .deal-product-item .btn-buy {
        padding: 7px 12px;
        font-size: 12.5px;
    }

    .home-section {
        padding: 14px 12px;
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 17px;
    }

    /* Footer Responsive */
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .company-info .logo {
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        gap: 8px;
    }

    .product-card {
        height: 100% !important;
        min-height: 0 !important;
    }

    .product-image {
        height: 155px !important;
        padding: 6px !important;
    }

    .product-title {
        font-size: 12.5px !important;
        height: 34px !important;
    }

    .product-price {
        font-size: 13.5px !important;
        margin-bottom: 6px !important;
    }

    .product-action .btn-buy,
    .product-action .button {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }

    .deal-product-item img {
        height: 125px;
    }
}

/* Force FontAwesome for icons */
.fas {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

.far {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 400 !important;
}

.fab {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

/* ==========================================================================
   GIAO DIỆN TRANG DANH SÁCH YÊU THÍCH (SHORTCODE [wn_wishlist])
   THIẾT KẾ HIỆN ĐẠI, ĐỒNG BỘ NỀN TẢNG THEME ECOMMERCE & CART KINGFOODMART
   ========================================================================== */
.wn-wishlist-wrapper,
.entry-content .wn-wishlist-wrapper {
    font-family: inherit;
    width: 100%;
    max-width: none;
    margin: 25px 0 70px;
    padding: 0;
    box-sizing: border-box;
}

/* Ẩn triệt để text trợ thính của WooCommerce gây dính chữ giá */
.wn-wishlist-wrapper .screen-reader-text {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* Header ngoài cùng & nút Tạo danh sách mới */
.wn-wishlist-wrapper .wn-wishlist-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 24px;
}

.wn-wishlist-wrapper .wn-btn {
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    outline: none;
}

.wn-wishlist-wrapper .wn-create-list-btn {
    background: var(--primary-gradient, linear-gradient(135deg, #FF7600 0%, #F26522 100%));
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(255, 118, 0, 0.25);
}

.wn-wishlist-wrapper .wn-create-list-btn::before {
    content: "\f067";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 13px;
}

.wn-wishlist-wrapper .wn-create-list-btn:hover {
    background: linear-gradient(135deg, #F26522 0%, #e05312 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(255, 118, 0, 0.35);
    transform: translateY(-1px);
}

/* Form tạo danh sách mới */
.wn-wishlist-wrapper .wn-wishlist-create-form {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.wn-wishlist-wrapper .wn-wishlist-create-form input {
    flex: 1;
    height: 42px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
}

.wn-wishlist-wrapper .wn-wishlist-create-form input:focus {
    background: #ffffff;
    border-color: #FF7600;
    box-shadow: 0 0 0 3px rgba(255, 118, 0, 0.15);
}

.wn-wishlist-wrapper .wn-btn-success {
    background-color: #16a34a;
    color: #ffffff;
    height: 42px;
    padding: 0 20px;
}

.wn-wishlist-wrapper .wn-btn-success:hover {
    background-color: #15803d;
}

.wn-wishlist-wrapper .wn-btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
    height: 42px;
    padding: 0 18px;
    border: 1px solid #e2e8f0;
}

.wn-wishlist-wrapper .wn-btn-secondary:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

/* Khung từng danh sách yêu thích - Premium Card Layout */
.wn-wishlist-wrapper .wn-wishlist-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 35px;
    box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.wn-wishlist-wrapper .wn-wishlist-box:hover {
    box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.09);
}

.wn-wishlist-wrapper .wn-wishlist-box-header {
    background: #ffffff;
    padding: 20px 28px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.wn-wishlist-wrapper .wn-wishlist-box-header h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wn-wishlist-wrapper .wn-wishlist-box-header h3::before {
    content: "\f004";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 18px;
    color: #FF7600;
}

.wn-wishlist-wrapper .wn-count {
    color: #FF7600;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.wn-wishlist-wrapper .wn-wishlist-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Nút Thêm lựa chọn vào giỏ */
.wn-wishlist-wrapper .wn-add-selected-cart {
    background: var(--primary-gradient, linear-gradient(135deg, #FF7600 0%, #F26522 100%));
    color: #ffffff !important;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 118, 0, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.wn-wishlist-wrapper .wn-add-selected-cart:hover {
    background: linear-gradient(135deg, #F26522 0%, #e05312 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 118, 0, 0.35);
}

.wn-wishlist-wrapper .wn-add-selected-cart::before {
    content: "\f217";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
}

.wn-wishlist-wrapper .wn-add-selected-cart:hover {
    background: #004494;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.35);
}

/* Nút Xóa danh sách */
.wn-wishlist-wrapper .wn-delete-list {
    background: #ffffff;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.wn-wishlist-wrapper .wn-delete-list::before {
    content: "\f2ed";
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    font-size: 13px;
}

.wn-wishlist-wrapper .wn-delete-list:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
    transform: translateY(-1px);
}

/* Bảng sản phẩm */
.wn-wishlist-wrapper .wn-wishlist-items {
    padding: 0;
}

.wn-wishlist-wrapper .wn-wishlist-table {
    width: 100%;
    border-collapse: collapse;
}

.wn-wishlist-wrapper .wn-wishlist-table thead th {
    background: #f8fafc;
    padding: 14px 28px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: left;
}

.wn-wishlist-wrapper .wn-wishlist-table thead th:last-child {
    text-align: right;
}

.wn-wishlist-wrapper .wn-wishlist-table tbody tr {
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.wn-wishlist-wrapper .wn-wishlist-table tbody tr:hover {
    background-color: #f8fafc;
}

.wn-wishlist-wrapper .wn-wishlist-table tbody tr:last-child {
    border-bottom: none;
}

.wn-wishlist-wrapper .wn-wishlist-table tbody td {
    vertical-align: middle;
}

/* Cột Checkbox */
.wn-wishlist-wrapper .wn-checkbox-col {
    width: 54px;
    text-align: center;
    padding: 20px 0 20px 24px !important;
}

.wn-wishlist-wrapper .wn-select-all,
.wn-wishlist-wrapper .wn-item-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #FF7600;
    margin: 0 auto;
    display: block;
    border-radius: 5px;
    transition: transform 0.15s ease;
}

.wn-wishlist-wrapper .wn-select-all:hover,
.wn-wishlist-wrapper .wn-item-checkbox:hover {
    transform: scale(1.1);
}

/* Cột Sản phẩm - Grid hiện đại gắn kết Ảnh, Tên và Giá */
.wn-wishlist-wrapper .wn-product-info {
    display: grid !important;
    grid-template-columns: 76px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 6px;
    align-items: center;
    padding: 20px 20px 20px 14px !important;
}

.wn-wishlist-wrapper .wn-product-info a {
    display: contents !important;
    text-decoration: none;
}

.wn-wishlist-wrapper .wn-product-info a img {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 76px;
    height: 76px;
    min-width: 76px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wn-wishlist-wrapper .wn-product-info a:hover img {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.wn-wishlist-wrapper .wn-product-info a span {
    grid-column: 2;
    grid-row: 1;
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    transition: color 0.2s ease;
    cursor: pointer;
}

.wn-wishlist-wrapper .wn-product-info a:hover span {
    color: #FF7600;
}

/* Căn giá bên dưới tên sản phẩm - Đồng bộ phong cách giá cam (#FF7600) */
.wn-wishlist-wrapper .wn-product-info .wn-price {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #FF7600;
    line-height: 1.2;
}

.wn-wishlist-wrapper .wn-product-info .wn-price ins {
    text-decoration: none;
    color: #FF7600;
    font-weight: 700;
    font-size: 16px;
}

.wn-wishlist-wrapper .wn-product-info .wn-price del {
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 400;
    text-decoration: line-through;
}

/* Cột Thao tác */
.wn-wishlist-wrapper .wn-actions-col {
    width: 200px;
    text-align: right;
    padding: 20px 28px 20px 10px !important;
}

.wn-wishlist-wrapper .wn-actions-col .wn-add-single-cart {
    width: 100%;
    height: 38px;
    background: var(--primary-gradient, linear-gradient(135deg, #FF7600 0%, #F26522 100%));
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255, 118, 0, 0.2);
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.wn-wishlist-wrapper .wn-actions-col .wn-add-single-cart:hover {
    background: linear-gradient(135deg, #F26522 0%, #e05312 100%);
    box-shadow: 0 4px 10px rgba(255, 118, 0, 0.3);
    transform: translateY(-1px);
}

transition: all 0.2s ease;
cursor: pointer;
}

.wn-wishlist-wrapper .wn-actions-col .wn-add-single-cart::before {
    content: "\f217";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
}

.wn-wishlist-wrapper .wn-actions-col .wn-add-single-cart:hover {
    background: #004494;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.wn-wishlist-wrapper .wn-actions-col .wn-remove-item {
    width: 100%;
    height: 30px;
    background: transparent;
    color: #94a3b8;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.wn-wishlist-wrapper .wn-actions-col .wn-remove-item::before {
    content: "\f2ed";
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    font-size: 11px;
}

.wn-wishlist-wrapper .wn-actions-col .wn-remove-item:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Trạng thái trống */
.wn-wishlist-wrapper .wn-empty,
.wn-wishlist-wrapper .wn-no-lists p {
    text-align: center;
    color: #64748b;
    padding: 50px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    font-size: 15px;
    margin: 20px 0;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .wn-wishlist-wrapper .wn-wishlist-box-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        gap: 14px;
    }

    .wn-wishlist-wrapper .wn-wishlist-actions {
        width: 100%;
        justify-content: space-between;
    }

    .wn-wishlist-wrapper .wn-wishlist-table thead {
        display: none;
    }

    .wn-wishlist-wrapper .wn-wishlist-table,
    .wn-wishlist-wrapper .wn-wishlist-table tbody,
    .wn-wishlist-wrapper .wn-wishlist-table tr {
        display: block;
        width: 100%;
    }

    .wn-wishlist-wrapper .wn-wishlist-table tr {
        position: relative;
        padding: 18px 16px 18px 52px;
        border-bottom: 1px solid #e2e8f0;
    }

    .wn-wishlist-wrapper .wn-wishlist-table td {
        display: block;
        padding: 0 !important;
        border: none;
        width: 100% !important;
        text-align: left;
    }

    .wn-wishlist-wrapper .wn-checkbox-col {
        position: absolute;
        left: 16px;
        top: 22px;
        width: auto !important;
        padding: 0 !important;
    }

    .wn-wishlist-wrapper .wn-product-info {
        grid-template-columns: 65px 1fr !important;
        column-gap: 14px !important;
        row-gap: 4px !important;
    }

    .wn-wishlist-wrapper .wn-product-info a img {
        width: 65px;
        height: 65px;
        min-width: 65px;
    }

    .wn-wishlist-wrapper .wn-product-info a span {
        font-size: 14px;
    }

    .wn-wishlist-wrapper .wn-product-info .wn-price {
        font-size: 15px;
    }

    .wn-wishlist-wrapper .wn-actions-col {
        margin-top: 14px;
        display: flex !important;
        flex-direction: row;
        gap: 10px;
        width: 100% !important;
    }

    .wn-wishlist-wrapper .wn-actions-col .wn-add-single-cart,
    .wn-wishlist-wrapper .wn-actions-col .wn-remove-item {
        margin-bottom: 0;
        flex: 1;
        height: 38px;
    }
}

/* Thông báo Toast Danh sách yêu thích */
.wn-wishlist-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999999;
    display: none;
    max-width: 480px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
}

.wn-wishlist-toast.show {
    display: block !important;
    animation: wnToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wnToastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wn-wishlist-toast .wn-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wn-wishlist-toast .wn-toast-icon {
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wn-wishlist-toast.success .wn-toast-icon,
.wn-wishlist-toast.toast-success .wn-toast-icon {
    color: #16a34a;
}

.wn-wishlist-toast.error .wn-toast-icon,
.wn-wishlist-toast.toast-error .wn-toast-icon {
    color: #ef4444;
}

.wn-wishlist-toast .wn-toast-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
}

.wn-wishlist-toast .wn-toast-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: linear-gradient(135deg, #FF7600 0%, #F26522 100%);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
}

.wn-wishlist-toast .wn-toast-btn:hover {
    background: #004494;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.wn-wishlist-toast .wn-toast-close {
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.wn-wishlist-toast .wn-toast-close:hover {
    color: #0f172a;
}

/* Thông báo trực tiếp ngay trên trang danh sách yêu thích (Inline Notice) */
.wn-wishlist-inline-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 20px;
    color: #065f46;
    font-size: 14.5px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
    animation: wnNoticeFadeIn 0.3s ease;
}

@keyframes wnNoticeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wn-wishlist-inline-notice.error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.wn-wishlist-inline-notice .wn-notice-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wn-wishlist-inline-notice .wn-notice-content i {
    font-size: 18px;
}

.wn-wishlist-inline-notice .wn-notice-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #059669;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.wn-wishlist-inline-notice .wn-notice-btn:hover {
    background: #047857;
}

@media (max-width: 576px) {
    .wn-wishlist-toast {
        left: 15px;
        right: 15px;
        top: 20px;
        max-width: calc(100% - 30px);
    }

    .wn-wishlist-inline-notice {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Ẩn triệt để text trợ thính screen-reader-text toàn cầu */
.screen-reader-text,
label.screen-reader-text {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    word-wrap: normal !important;
    display: none !important;
    visibility: hidden !important;
}

.woocommerce-orders-table-wrapper td {
    padding: 12px 14px !important;
    font-size: 13.5px !important;
    vertical-align: middle !important;
    text-align: left !important;
}

.woocommerce-orders-table-wrapper td.woocommerce-orders-table__cell-order-actions .button {
    background: #0073aa !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    text-decoration: none !important;
}

/* --- POPUP LOGIN & CAPTCHA STYLES --- */
.es-captcha-group {
    position: relative;
}

.es-captcha-label-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.es-captcha-label-wrap label {
    margin-bottom: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.es-captcha-badge {
    display: inline-block;
    background: #fff7ed;
    color: #ea580c;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px dashed #fdba74;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 700;
}

.es-btn-refresh-captcha {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.es-btn-refresh-captcha:hover {
    color: #FF7600;
    transform: rotate(90deg);
}

.es-form-row-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 13px;
    color: #475569;
}

.es-remember-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    margin-bottom: 0 !important;
}

.es-remember-label input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: #FF7600;
    cursor: pointer;
    margin: 0 !important;
}

.es-lost-password-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.es-lost-password-link:hover {
    color: #FF7600;
    text-decoration: underline;
}

/* Back to Top */
.es-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary-color, #FF7600);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.es-back-to-top:hover {
    background: var(--secondary-color, #F26522);
    color: #fff;
    transform: translateY(15px);
}

.es-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.es-back-to-top.show:hover {
    transform: translateY(-5px);
}

.es-back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .es-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .es-back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Style cho sản phẩm giá liên hệ (0đ) */
.price-contact {
    color: #d32f2f;
    font-weight: 700;
}

.product-action .btn-contact-loop {
    background: var(--primary-color);
    color: #ffffff;
}

.product-action .btn-contact-loop:hover {
    background: #e53935;
    color: #ffffff;
}

.product-image .product-origin-badge,
.woocommerce-product-gallery .product-origin-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 9 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #1e293b !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    pointer-events: none !important;
    text-transform: capitalize !important;
    letter-spacing: 0.1px !important;
    max-width: calc(100% - 60px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.product-image .product-origin-badge svg,
.woocommerce-product-gallery .product-origin-badge svg {
    flex-shrink: 0 !important;
    color: #0284c7 !important;
}

.site-left-sidebar .sidebar-recent-posts {
    margin-top: 16px;
    padding: 12px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}

.sidebar-recent-posts__title {
    margin: 0 6px 12px;
    color: #243449;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.sidebar-recent-posts__list {
    display: grid;
    gap: 16px;
}

.sidebar-recent-posts__item {
    min-width: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9edf2;
}

.sidebar-recent-posts__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sidebar-recent-posts__link {
    display: block;
    text-decoration: none;
}

.sidebar-recent-posts__image {
    display: block;
    width: 100%;
    height: 165px;
    border-radius: 5px;
    object-fit: cover;
    transition: transform .25s ease;
}

.sidebar-recent-posts__link:hover .sidebar-recent-posts__image {
    transform: scale(.985);
}

.sidebar-recent-posts__name {
    margin: 12px 3px 7px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    transition: color .2s ease;
}

.sidebar-recent-posts__link:hover .sidebar-recent-posts__name,
.sidebar-recent-posts__link:focus-visible .sidebar-recent-posts__name {
    color: #c65b00;
}

.sidebar-recent-posts__excerpt {
    margin: 0 3px;
    color: #68717c;
    font-size: 12px;
    line-height: 1.6;
}