/* ============================================================
   Viet Mountain Honey — Custom CSS
   Tailwind v4 CDN xử lý @theme và @apply trong file này
   ============================================================ */

/* Google Fonts được nhúng trong header.php */

/* ============================================================
   CSS VARIABLES — Khai báo cho trình duyệt
   ============================================================ */
:root {
    --color-primary: #D97706;
    /* Amber 600 — Vàng mật ong */
    --color-primary-light: #F59E0B;
    /* Amber 500 */
    --color-primary-hover: #B45309;
    /* Amber 700 */
    --color-dark: #1C1917;
    /* Stone 900 */
    --color-dark-mid: #292524;
    /* Stone 800 */
    --color-cream: #FDFBF7;
    /* Nền kem ấm */
    --color-cream-alt: #F9F6F0;
    /* Nền phụ */
    --color-success: #166534;
    /* Green 800 */
    --color-error: #991B1B;
    /* Red 800 */
    --font-heading: 'Playfair Display', 'Outfit', serif;
    --font-body: 'Inter', sans-serif;
}

/* ============================================================
   @theme — Khai báo biến màu sắc thương hiệu (Tailwind v4)
   ============================================================ */
@theme {
    --color-primary: #D97706;
    --color-primary-light: #F59E0B;
    --color-primary-hover: #B45309;
    --color-dark: #1C1917;
    --color-dark-mid: #292524;
    --color-cream: #FDFBF7;
    --color-cream-alt: #F9F6F0;
    --color-success: #166534;
    --color-error: #991B1B;
    --font-heading: 'Playfair Display', 'Outfit', serif;
    --font-body: 'Inter', sans-serif;
}

/* ============================================================
   BASE STYLES
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

/* ============================================================
   WORDPRESS ADMIN BAR OFFSET
   ============================================================ */
body.admin-bar #masthead {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #masthead {
        top: 46px;
    }
}

/* ============================================================
   HEADER — Glassmorphism Navbar
   ============================================================ */
#masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.3s ease;
    background-color: transparent;
}

#masthead.scrolled {
    background-color: rgba(28, 25, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#masthead.scrolled-light {
    background-color: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   NAVIGATION MENU
   ============================================================ */
#site-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

#site-navigation>ul>li {
    position: relative;
}

#site-navigation>ul>li>a {
    display: block;
    padding: 0.5rem 1rem;
    color: #fff;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 9999px;
    border: 1px solid transparent;
    background-color: transparent;
}

#site-navigation>ul>li>a:hover,
#site-navigation>ul>li.current-menu-item>a {
    color: var(--color-primary-light);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Dark header variant (on light pages) */
.vmh-header-dark #site-navigation>ul>li>a {
    color: var(--color-dark);
    border-color: transparent;
}

.vmh-header-dark #site-navigation>ul>li>a:hover,
.vmh-header-dark #site-navigation>ul>li.current-menu-item>a {
    color: var(--color-primary);
    background-color: rgba(217, 119, 6, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(217, 119, 6, 0.15);
}

/* Dropdown */
#site-navigation ul.sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 14rem;
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.5rem;
    z-index: 100;
}

#site-navigation>ul>li.menu-item-has-children:hover>ul.sub-menu {
    display: block;
}

#site-navigation ul.sub-menu li a {
    display: block;
    padding: 0.625rem 0.875rem;
    color: var(--color-dark);
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.15s, color 0.15s;
}

#site-navigation ul.sub-menu li a:hover {
    background-color: #FEF3C7;
    color: var(--color-primary);
}

/* Mobile menu */
#mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(28, 25, 23, 0.85); /* Nền tối mờ */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99990;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* WordPress Admin Bar offset cho Mobile Menu */
body.admin-bar #mobile-menu {
    top: 32px;
    height: calc(100vh - 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar #mobile-menu {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

#mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

#mobile-menu ul li,
#mobile-menu > a {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.active ul li,
#mobile-menu.active > a {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active ul li:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active ul li:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active ul li:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active ul li:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active ul li:nth-child(5) { transition-delay: 0.3s; }
#mobile-menu.active ul li:nth-child(6) { transition-delay: 0.35s; }
#mobile-menu.active > a { transition-delay: 0.45s; } /* Hotline delay */

#mobile-menu ul a {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: color 0.3s ease;
}

#mobile-menu ul a:hover,
#mobile-menu ul li.current-menu-item > a,
#mobile-menu ul li.current-menu-parent > a {
    color: var(--color-primary-light);
}

#vmh-menu-close svg {
    transition: transform 0.3s ease;
}
#vmh-menu-close:hover svg {
    transform: rotate(90deg) scale(1.1);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    @apply inline-flex items-center justify-center gap-2 px-8 py-3.5 rounded-full font-semibold text-white transition-all duration-300;
    background-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.35);
}

.btn-outline {
    @apply inline-flex items-center justify-center gap-2 px-8 py-3.5 rounded-full font-semibold transition-all duration-300;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    @apply inline-flex items-center justify-center gap-2 px-8 py-3.5 rounded-full font-semibold transition-all duration-300;
    background-color: #fff;
    color: var(--color-primary);
}

.btn-white:hover {
    background-color: #FEF3C7;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.vmh-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 1024px) {
    .vmh-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.vmh-container {
    width: 100%;
    max-width: 80rem;
    /* 1280px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .vmh-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .vmh-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.vmh-section-title {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    /* 3xl */
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .vmh-section-title {
        font-size: 2.25rem;
        /* 4xl */
    }
}

@media (min-width: 1024px) {
    .vmh-section-title {
        font-size: 3rem;
        /* 5xl */
    }
}

.vmh-section-sub {
    font-size: 1rem;
    opacity: 0.7;
    max-width: 42rem;
    /* max-w-2xl */
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .vmh-section-sub {
        font-size: 1.125rem;
        /* lg */
    }
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.vmh-product-card {
    @apply bg-white rounded-2xl overflow-hidden transition-all duration-300;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.vmh-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.vmh-product-card .vmh-product-img-wrap {
    @apply relative overflow-hidden;
    aspect-ratio: 1 / 1;
}

.vmh-product-card img {
    @apply w-full h-full object-cover transition-transform duration-500;
}

.vmh-product-card:hover img {
    transform: scale(1.05);
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce span.onsale {
    @apply bg-[#D97706] text-white font-semibold text-xs px-2 py-1 rounded-full !important;
    background-color: var(--color-primary) !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.5 !important;
    border-radius: 9999px !important;
}

.woocommerce-price-amount,
.woocommerce-Price-amount {
    color: var(--color-primary-hover) !important;
    font-weight: 700 !important;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
    border-top-color: var(--color-primary) !important;
}

.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    padding: 12px 32px !important;
    border: none !important;
    transition: all 0.3s !important;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: var(--color-primary-hover) !important;
}

/* WooCommerce Star Ratings */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
    color: var(--color-primary-light) !important;
}
.woocommerce p.stars a::before {
    color: var(--color-primary-light) !important;
}

/* WooCommerce Review Form Styles */
#respond input[type="text"],
#respond input[type="email"],
#respond textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #374151;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-top: 6px;
    margin-bottom: 16px;
}
#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15); /* Tailwind Orange-600 with 15% opacity */
}
#respond label {
    font-weight: 500;
    color: #374151;
}

/* WooCommerce Single Product Layout Fix (Robust Grid Implementation) */
.woocommerce div.product {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.25rem; /* Thêm padding trái phải cho mobile/tablet */
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.woocommerce div.product>* {
    min-width: 0;
    /* Ngăn content phá vỡ grid */
}

@media (min-width: 768px) {
    .woocommerce div.product {
        padding: 5rem 2rem;
        grid-template-columns: 45% 55%;
        /* Ép cứng 2 cột không bao giờ rớt */
        gap: 0;
    }

    /* Ép tất cả các biến thể class ảnh vào cột 1 */
    .woocommerce div.product>.images,
    .woocommerce div.product>.woocommerce-product-gallery {
        grid-column: 1 / 2;
        padding-right: 3rem !important;
        border-right: 2px dashed rgba(217, 119, 6, 0.2);
        width: 100% !important;
        max-width: none !important;
        float: none !important;
        margin-bottom: 0 !important;
    }

    /* Ép tất cả các biến thể class nội dung vào cột 2 */
    .woocommerce div.product>.summary,
    .woocommerce div.product>.entry-summary {
        grid-column: 2 / 3;
        padding-left: 3rem !important;
        width: 100% !important;
        max-width: none !important;
        float: none !important;
        margin-bottom: 0 !important;
    }

    /* Các thành phần còn lại (Tabs, Related Products) nằm dưới chiếm cả 2 cột */
    .woocommerce div.product>.woocommerce-tabs,
    .woocommerce div.product>.related.products,
    .woocommerce div.product>.upsells.products {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin-top: 4rem !important;
    }
}

.woocommerce div.product div.images .woocommerce-product-gallery__image {
    border-radius: 1.5rem;
    overflow: hidden;
    transform: translateZ(0); /* Force GPU clipping in webkit */
}

.woocommerce div.product div.images img {
    border-radius: 1.5rem;
    /* Bo góc mạnh */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
    height: auto;
}

/* Thư viện ảnh (Gallery Thumbnails) */
.woocommerce div.product div.images .flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0;
    list-style: none;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    width: calc(25% - 0.75rem);
    cursor: pointer;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    border-radius: 0.75rem;
    border: 2px solid transparent;
    transition: all 0.3s;
    width: 100%;
    height: auto;
    opacity: 0.6;
    box-shadow: none;
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
    border-color: var(--color-primary);
    opacity: 1;
}

/* Tiêu đề */
.woocommerce div.product .product_title {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    color: var(--color-dark) !important;
    margin-bottom: 1.5rem !important;
    margin-top: 0 !important;
    font-family: var(--font-heading);
    line-height: 1.2 !important;
}

/* Giá tiền & Đường Zigzag */
.woocommerce div.product p.price {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--color-dark) !important;
    margin-bottom: 2rem !important;
    padding-bottom: 2rem !important;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="12" xmlns="http://www.w3.org/2000/svg"><path d="M0 6 L6 0 L18 12 L24 6" fill="none" stroke="%23D97706" stroke-width="1.5" stroke-opacity="0.4"/></svg>');
    background-repeat: repeat-x;
    background-position: bottom left;
}

/* Mô tả ngắn: Khối kem nhạt */
.woocommerce div.product .woocommerce-product-details__short-description {
    background-color: #FFF9F2 !important;
    padding: 1.5rem 2rem !important;
    border-radius: 1rem;
    color: #57534E !important;
    margin-bottom: 2rem !important;
    line-height: 1.625 !important;
}

/* Form giỏ hàng & Biến thể */
.woocommerce div.product form.cart {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem !important;
    padding-bottom: 2.5rem !important;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="12" xmlns="http://www.w3.org/2000/svg"><path d="M0 6 L6 0 L18 12 L24 6" fill="none" stroke="%23D97706" stroke-width="1.5" stroke-opacity="0.4"/></svg>');
    background-repeat: repeat-x;
    background-position: bottom left;
    border: none !important;
}

/* Biến tấu Quantity Input đồng bộ theme (rounded-md) */
.woocommerce div.product form.cart div.quantity {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid #d6d3d1 !important;
    border-radius: 0.375rem !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    height: 3rem !important;
}

.woocommerce div.product form.cart div.quantity:focus-within {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2) !important;
}

.woocommerce div.product form.cart div.quantity .vmh-qty-minus,
.woocommerce div.product form.cart div.quantity .vmh-qty-plus {
    width: 2.5rem !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    color: var(--color-dark) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.woocommerce div.product form.cart div.quantity .vmh-qty-minus:hover,
.woocommerce div.product form.cart div.quantity .vmh-qty-plus:hover {
    background-color: #f3f4f6 !important;
    color: var(--color-primary) !important;
}

.woocommerce div.product form.cart div.quantity .qty {
    width: 3rem !important;
    height: 100% !important;
    border: none !important;
    border-left: 1px solid #f3f4f6 !important;
    border-right: 1px solid #f3f4f6 !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-weight: 600 !important;
    color: var(--color-dark) !important;
    font-size: 1.05rem !important;
    background-color: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    -moz-appearance: textfield !important;
}

/* Ẩn mũi tên mặc định của input type number */
.woocommerce div.product form.cart div.quantity .qty::-webkit-inner-spin-button,
.woocommerce div.product form.cart div.quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Nút thêm vào giỏ hàng đồng bộ theme */
.woocommerce div.product form.cart .button {
    background-color: var(--color-primary) !important;
    background-image: none !important;
    color: #ffffff !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
    height: 3rem !important;
    padding: 0 2.5rem !important;
    margin: 0 !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.woocommerce div.product form.cart .button:hover {
    background-color: var(--color-primary-hover) !important;
    transform: translateY(-2px);
}

/* Meta Data (SKU, Categories) */
.woocommerce div.product .product_meta {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 0.95rem;
    color: var(--color-dark);
    padding-bottom: 2rem;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="12" xmlns="http://www.w3.org/2000/svg"><path d="M0 6 L6 0 L18 12 L24 6" fill="none" stroke="%23D97706" stroke-width="1.5" stroke-opacity="0.4"/></svg>');
    background-repeat: repeat-x;
    background-position: bottom left;
}

.woocommerce div.product .product_meta>span {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-weight: 600;
}

/* Icon thoi phía trước nhãn */
.woocommerce div.product .product_meta>span::before {
    content: "❖";
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* Badges cho Category/Tag */
.woocommerce div.product .product_meta a,
.woocommerce div.product .product_meta .sku {
    background-color: #FFF9F2;
    color: var(--color-primary);
    padding: 0.35rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.woocommerce div.product .product_meta a:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* ============================================================
   WOOCOMMERCE TABS STYLING (NATIVE CSS)
   ============================================================ */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products {
    width: 100% !important;
    margin-top: 4rem !important;
    clear: both !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    border-bottom: 2px solid #E5E7EB !important;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
    list-style: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    padding: 0 0 1rem 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #6B7280 !important;
    font-weight: 600 !important;
    font-size: 1.15rem !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    font-family: var(--font-heading) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li:hover a {
    color: var(--color-primary) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom: 2px solid var(--color-primary) !important;
    margin-bottom: -2px !important;
}

/* Tab Content Typography */
.woocommerce div.product .woocommerce-Tabs-panel {
    color: #4B5563 !important;
    line-height: 1.8 !important;
    font-size: 1.05rem !important;
}

.woocommerce div.product .woocommerce-Tabs-panel h2,
.woocommerce div.product .woocommerce-Tabs-panel h3,
.woocommerce div.product .woocommerce-Tabs-panel h4 {
    color: var(--color-dark) !important;
    font-weight: 700 !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.25rem !important;
    font-family: var(--font-heading) !important;
}

.woocommerce div.product .woocommerce-Tabs-panel h2 {
    font-size: 1.75rem !important;
}

.woocommerce div.product .woocommerce-Tabs-panel h3 {
    font-size: 1.5rem !important;
}

.woocommerce div.product .woocommerce-Tabs-panel p {
    margin-bottom: 1.25rem !important;
}

.woocommerce div.product .woocommerce-Tabs-panel ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1.25rem !important;
}

/* ============================================================
   RELATED PRODUCTS STYLING
   ============================================================ */
.woocommerce div.product .related.products>h2,
.woocommerce div.product .upsells.products>h2 {
    color: var(--color-dark) !important;
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 2rem !important;
    font-family: var(--font-heading) !important;
    text-align: center !important;
}

/* Đảm bảo nội dung bên trong các card sản phẩm luôn căn trái (tránh bị Woo mặc định ép căn giữa) */
.woocommerce ul.products li.product {
    text-align: left !important;
}

/* ============================================================
   WOOCOMMERCE MESSAGES (ALERTS)
   ============================================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background-color: #FFF9F2 !important;
    /* Màu kem nhạt */
    border-top: 3px solid var(--color-primary) !important;
    border-radius: 0.5rem !important;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem !important;
    color: var(--color-dark) !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 2rem !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--color-primary) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 1.25rem !important;
    font-size: 1.25rem !important;
}

/* Nút Xem giỏ hàng trong thông báo */
.woocommerce-message .button.wc-forward {
    background-color: var(--color-dark) !important;
    color: #ffffff !important;
    border-radius: 0.375rem !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
    float: none !important;
    /* Xóa float mặc định */
    margin: 0 !important;
}

.woocommerce-message .button.wc-forward:hover {
    background-color: var(--color-primary) !important;
    transform: translateY(-2px) !important;
}

/* ============================================================
   FLUENTFORM OVERRIDES
   ============================================================ */
.fluentform.ff-default .ff-el-form-control {
    @apply border border-stone-200 rounded-lg px-4 py-3 w-full bg-white transition-all duration-200 !important;
    font-family: var(--font-body) !important;
}

.fluentform.ff-default .ff-el-form-control:focus {
    border-color: var(--color-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15) !important;
}

.fluentform.ff-default .ff-btn-submit {
    @apply w-full font-semibold rounded-full py-4 text-white transition-all duration-300 !important;
    background-color: var(--color-primary) !important;
}

.fluentform.ff-default .ff-btn-submit:hover {
    background-color: var(--color-primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.3) !important;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes honeyDrip {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-honey-drip {
    animation: honeyDrip 3s ease-in-out infinite;
}

/* Custom Animations cho Thiết kế mới */
@keyframes blobBounce {

    0%,
    100% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    }

    34% {
        border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
    }

    67% {
        border-radius: 50% 60% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes beeFly {

    0%,
    100% {
        transform: translate(0, 0) rotate(12deg);
    }

    25% {
        transform: translate(6px, -18px) rotate(8deg);
    }

    50% {
        transform: translate(-8px, -6px) rotate(15deg);
    }

    75% {
        transform: translate(4px, -24px) rotate(10deg);
    }
}

.animate-blob-bounce {
    animation: blobBounce 8s ease-in-out infinite alternate;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-badge-float {
    animation: badgeFloat 4s ease-in-out infinite;
}

.animate-badge-float-delayed {
    animation: badgeFloat 4.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

.animate-bee-fly {
    animation: beeFly 7s ease-in-out infinite;
}

/* Scroll reveal utility */
.vmh-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.vmh-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   HERO BADGE
   ============================================================ */
.vmh-badge {
    @apply inline-flex items-center gap-2 px-4 py-2 rounded-full text-sm font-semibold mb-6;
    background-color: rgba(217, 119, 6, 0.15);
    color: var(--color-primary-light);
    border: 1px solid rgba(217, 119, 6, 0.3);
}

/* ============================================================
   FEATURE CARDS (Why Choose Us)
   ============================================================ */
.vmh-feature-card {
    @apply p-8 rounded-2xl transition-all duration-300;
    background-color: var(--color-cream);
    border: 1px solid rgba(217, 119, 6, 0.1);
}

.vmh-feature-card:hover {
    border-color: rgba(217, 119, 6, 0.3);
    box-shadow: 0 12px 40px rgba(217, 119, 6, 0.08);
    transform: translateY(-4px);
}

.vmh-feature-icon {
    @apply w-14 h-14 rounded-2xl flex items-center justify-center mb-5;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(245, 158, 11, 0.1));
}

/* ============================================================
   COMMITMENT CARDS
   ============================================================ */
.vmh-commit-card {
    @apply flex gap-5 p-6 rounded-2xl transition-all duration-300;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.vmh-commit-card:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.vmh-footer {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.75);
}

.vmh-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.vmh-footer a:hover {
    color: var(--color-primary-light);
}

.vmh-footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.vmh-blog-card {
    @apply bg-white rounded-2xl overflow-hidden transition-all duration-300;
    background-color: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.vmh-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.vmh-page-hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 6rem;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-mid) 60%, #3D2C1A 100%);
}

@media (min-width: 768px) {
    .vmh-page-hero {
        padding-top: 10rem;
        padding-bottom: 8rem;
    }
}

/* Optimize hero banner height for WooCommerce pages (Cart, Checkout) */
body.woocommerce-page .vmh-page-hero {
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    body.woocommerce-page .vmh-page-hero {
        padding-bottom: 5rem;
    }
}

body.woocommerce-page .vmh-section {
    padding-top: 3rem !important;
}

.vmh-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(217, 119, 6, 0.15) 0%, transparent 60%);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.vmh-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    /* text-sm */
    color: rgba(255, 255, 255, 0.6);
}

.vmh-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.vmh-breadcrumb a:hover {
    color: var(--color-primary-light);
}

/* ============================================================
   SCROLLBAR CUSTOM
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-hover);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-gradient-amber {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-amber-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
}

.shadow-amber {
    box-shadow: 0 8px 32px rgba(217, 119, 6, 0.25);
}

.border-amber {
    border-color: rgba(217, 119, 6, 0.3);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination,
.navigation,
.woocommerce-pagination {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.pagination .nav-links,
.navigation .nav-links,
.woocommerce-pagination ul.page-numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
}

.woocommerce-pagination ul.page-numbers li {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.pagination .nav-links .page-numbers,
.navigation .nav-links .page-numbers,
.woocommerce-pagination ul.page-numbers li .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #57534E;
    transition: all 0.3s;
    border: 1px solid #E5E7EB;
    text-decoration: none;
    background: #fff;
}

.pagination .nav-links .page-numbers:hover,
.navigation .nav-links .page-numbers:hover,
.woocommerce-pagination ul.page-numbers li .page-numbers:hover {
    color: #ea580c;
    border-color: #fdba74;
    background-color: #fff7ed;
    transform: translateY(-2px);
}

.pagination .nav-links .page-numbers.current,
.navigation .nav-links .page-numbers.current,
.woocommerce-pagination ul.page-numbers li .page-numbers.current {
    background: linear-gradient(to bottom right, #f97316, #ea580c);
    color: #fff;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(234, 88, 12, 0.3), 0 4px 6px -4px rgba(234, 88, 12, 0.3);
    transform: none;
}

.pagination .nav-links .page-numbers.dots,
.navigation .nav-links .page-numbers.dots,
.woocommerce-pagination ul.page-numbers li .page-numbers.dots {
    background-color: transparent;
    color: #a8a29e;
    border-color: transparent;
    box-shadow: none;
    cursor: default;
}

.pagination .nav-links .page-numbers.dots:hover,
.navigation .nav-links .page-numbers.dots:hover,
.woocommerce-pagination ul.page-numbers li .page-numbers.dots:hover {
    background-color: transparent;
    border-color: transparent;
    transform: none;
}

/* ============================================================
   FIX NÚT ADD TO CART TRÊN MOBILE (CHỐNG RỚT DÒNG, BỂ GIAO DIỆN)
   ============================================================ */
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce-page ul.products li.product .add_to_cart_button {
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.5rem 0.5rem !important;
}

@media screen and (max-width: 768px) {

    .woocommerce ul.products li.product .add_to_cart_button,
    .woocommerce-page ul.products li.product .add_to_cart_button {
        font-size: 0.7rem !important;
        /* Thu nhỏ font trên 2 cột mobile */
        padding: 0.4rem 0.25rem !important;
    }
}

/* ============================================================
   AJAX ADD TO CART LINK (HIDE & REPLACE)
   ============================================================ */
/* 1. Ẩn hoàn toàn nút "Xem giỏ hàng" mặc định của WooCommerce */
.woocommerce ul.products li.product .added_to_cart,
.woocommerce-page ul.products li.product .added_to_cart {
    display: none !important;
}

/* 2. Style đè cho nút "Thêm vào giỏ" khi có class .added */
.woocommerce ul.products li.product .add_to_cart_button.added,
.woocommerce-page ul.products li.product .add_to_cart_button.added {
    background-color: var(--color-success) !important;
    /* Dùng màu success của theme */
    border: none !important;
    /* Xóa viền đen/viền dư thừa */
    box-shadow: none !important;
    color: transparent !important;
    /* Ẩn chữ và icon cũ */
    pointer-events: none !important;
    /* Không cho bấm lại */
    position: relative !important;
    overflow: hidden !important;
}

/* 3. Thêm chữ "✓ Đã thêm" đè lên nút bằng ::after */
.woocommerce ul.products li.product .add_to_cart_button.added::after,
.woocommerce-page ul.products li.product .add_to_cart_button.added::after {
    content: '✓ Đã thêm' !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    animation: fadeInAdded 0.3s ease forwards;
}

/* Responsive cho Tablet và Mobile */
@media screen and (max-width: 1024px) {

    .woocommerce ul.products li.product .add_to_cart_button.added::after,
    .woocommerce-page ul.products li.product .add_to_cart_button.added::after {
        font-size: 0.75rem !important;
        /* Chữ nhỏ hơn trên mobile để không bị vỡ */
    }
}

@keyframes fadeInAdded {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Nút Thêm vào giỏ khi đang loading */
.woocommerce ul.products li.product .add_to_cart_button.loading,
.woocommerce-page ul.products li.product .add_to_cart_button.loading {
    opacity: 0.75 !important;
    pointer-events: none !important;
}

.woocommerce ul.products li.product .add_to_cart_button.loading::after,
.woocommerce-page ul.products li.product .add_to_cart_button.loading::after {
    content: '' !important;
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    margin-left: 6px !important;
    border: 2px solid #fff !important;
    border-top-color: transparent !important;
    border-radius: 50% !important;
    animation: spin 0.8s linear infinite !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   FIX WOOCOMMERCE GRID CLEARFIX BUG
   ============================================================ */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    display: none !important;
}

/* Custom styles cho Hero trang chủ */
#main-content h1 em {
    font-style: normal;
    color: var(--color-primary);
    font-weight: 800;
}

/* ============================================================
   FIX WOOCOMMERCE CATALOG HEADER (SẮP XẾP LẠI KẾT QUẢ & DROP-DOWN)
   ============================================================ */
.woocommerce .woocommerce-products-header__title.page-title {
    font-size: 1.25rem;
    /* Giảm size để đồng bộ hơn với nội dung */
    margin-bottom: 0.5rem;
    text-align: left;
}

/* Sắp xếp text hiển thị kết quả */
.woocommerce .woocommerce-result-count {
    float: none !important;
    margin-bottom: 0.5rem !important;
    color: #6B7280;
    font-size: 0.95rem;
    /* Tăng size để đồng bộ */
    text-align: right;
    /* Đẩy text sang phải trên mobile cho gọn */
}

/* Form sắp xếp */
.woocommerce .woocommerce-ordering {
    float: none !important;
    margin-bottom: 1.5rem !important;
    width: 100%;
}

/* Box select (Xóa viền đen dày, làm mịn đẹp) */
.woocommerce .woocommerce-ordering select {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #D1D5DB !important;
    border-radius: 0.5rem !important;
    background-color: #F9FAFB;
    color: #374151;
    font-size: 0.95rem;
    /* Tăng size để đồng bộ */
    outline: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    appearance: auto;
}

.woocommerce .woocommerce-ordering select:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2) !important;
    background-color: #fff;
}

/* Dàn hàng ngang trên PC/Tablet */
@media screen and (min-width: 768px) {
    .woocommerce .woocommerce-result-count {
        float: left !important;
        margin-bottom: 0 !important;
        margin-top: 0.5rem;
        line-height: 40px;
        text-align: left;
    }

    .woocommerce .woocommerce-ordering {
        float: right !important;
        margin-bottom: 0 !important;
        width: auto;
    }

    .woocommerce .woocommerce-ordering select {
        min-width: 220px;
    }
}

/* ============================================================
   FIX WOOCOMMERCE PRODUCT TITLE SIZE (GRID)
   ============================================================ */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title a,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h2 a,
.woocommerce ul.products li.product h3,
.woocommerce ul.products li.product .product-title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title a {
    font-size: 1.25rem !important;
    /* Ép cứng size lớn cho mọi cấp độ thẻ tiêu đề */
    font-weight: 700 !important;
    color: var(--color-dark) !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

@media screen and (max-width: 768px) {

    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product .woocommerce-loop-product__title a,
    .woocommerce ul.products li.product h2,
    .woocommerce ul.products li.product h2 a,
    .woocommerce ul.products li.product h3,
    .woocommerce ul.products li.product .product-title,
    .woocommerce-page ul.products li.product .woocommerce-loop-product__title,
    .woocommerce-page ul.products li.product .woocommerce-loop-product__title a {
        font-size: 0.9rem !important;
        font-family: var(--font-sans), sans-serif !important;
        line-height: 1.3 !important;
        margin-bottom: 0.25rem !important;
    }

    /* Giảm size tiêu đề chi tiết sản phẩm trên mobile */
    .woocommerce div.product .product_title {
        font-size: 1.65rem !important;
        margin-bottom: 1rem !important;
    }

    /* Giảm size giá trên mobile */
    .woocommerce div.product p.price {
        font-size: 1.4rem !important;
        margin-bottom: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Sửa lỗi cộng dồn padding khiến nội dung bị đẩy lùi vào quá sâu */
    body.single-product .vmh-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ============================================================
   SINGLE POST CONTENT TYPOGRAPHY
   ============================================================ */
.vmh-post-content {
    max-width: 900px;
    margin: 0 auto;
    color: #44403C;
    line-height: 1.8;
    font-size: 1.125rem;
}

.vmh-post-content p {
    margin-bottom: 1.5rem;
}

.vmh-post-content h2,
.vmh-post-content h3,
.vmh-post-content h4 {
    color: #1C1917;
    font-family: var(--font-heading), serif;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.vmh-post-content h2 {
    font-size: 2rem;
}

.vmh-post-content h3 {
    font-size: 1.5rem;
}

.vmh-post-content h4 {
    font-size: 1.25rem;
}

.vmh-post-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.vmh-post-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.vmh-post-content li {
    margin-bottom: 0.5rem;
}

.vmh-post-content a {
    color: #D97706;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.vmh-post-content a:hover {
    text-decoration: underline;
    color: #B45309;
}

.vmh-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.vmh-post-content blockquote {
    border-left: 4px solid #D97706;
    font-style: italic;
    color: #57534E;
    margin: 2rem 0;
    background: #FFF7ED;
    padding: 1.5rem;
    border-radius: 0 1rem 1rem 0;
}

/* ============================================================
   WOOCOMMERCE CART PAGE BEAUTIFICATION (STANDARD LAYOUT)
   ============================================================ */
/* Main Wrapper */
.woocommerce-cart .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
    width: 100%;
}

.woocommerce-cart .woocommerce-notices-wrapper {
    flex: 1 1 100%;
    width: 100%;
}

.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-info {
    background: #fff7ed;
    color: #c2410c;
    border-top: 3px solid #ea580c;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    width: 100%;
}

.woocommerce-cart .woocommerce-cart-form {
    flex: 1 1 60%;
}

/* Cart Table */
.woocommerce-cart table.shop_table.cart {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    margin-bottom: 2.5rem;
    border-radius: 0;
}

/* Table Headers */
.woocommerce-cart table.shop_table.cart thead th {
    background: transparent;
    color: #6b7280;
    /* text-gray-500 */
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 0.5rem;
    border-bottom: 2px solid #f3f4f6;
    /* border-gray-100 */
    border-top: none;
    border-left: none;
    border-right: none;
}

.woocommerce-cart table.shop_table.cart thead th {
    white-space: nowrap;
}

.woocommerce-cart table.shop_table.cart thead th.product-name {
    text-align: left;
}

.woocommerce-cart table.shop_table.cart thead th.product-price,
.woocommerce-cart table.shop_table.cart thead th.product-subtotal {
    text-align: right;
}

.woocommerce-cart table.shop_table.cart thead th.product-quantity {
    text-align: center;
}

/* Table Rows & Cells */
.woocommerce-cart table.shop_table.cart tbody tr {
    border-bottom: 1px solid #f3f4f6;
}

.woocommerce-cart table.shop_table.cart tbody tr:last-child {
    border-bottom: none;
}

.woocommerce-cart table.shop_table.cart tbody td {
    padding: 1.5rem 0.5rem;
    vertical-align: middle;
    border: none;
    background: transparent;
}

/* Product Thumbnail */
.woocommerce-cart table.shop_table.cart td.product-thumbnail {
    width: 100px;
}

.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Product Name */
.woocommerce-cart table.shop_table.cart td.product-name a {
    color: #111827;
    /* text-gray-900 */
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.woocommerce-cart table.shop_table.cart td.product-name a:hover {
    color: #ea580c;
    /* text-orange-600 */
}

/* Price & Subtotal */
.woocommerce-cart table.shop_table.cart td.product-price,
.woocommerce-cart table.shop_table.cart td.product-subtotal {
    text-align: right;
    font-weight: 600;
    color: #4b5563;
}

.woocommerce-cart table.shop_table.cart td.product-subtotal {
    color: #ea580c;
    font-size: 1.125rem;
}

/* Quantity Input */
.woocommerce-cart table.shop_table.cart td.product-quantity {
    text-align: center;
}

.woocommerce-cart table.shop_table.cart td.product-quantity .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
    margin: 0 auto;
}

.woocommerce-cart table.shop_table.cart td.product-quantity .qty {
    width: 3rem;
    height: 2.5rem;
    text-align: center;
    border: none;
    font-weight: 600;
    color: #111827;
    background: transparent;
    padding: 0;
}

.woocommerce-cart table.shop_table.cart td.product-quantity .qty:focus {
    outline: none;
}

.woocommerce-cart table.shop_table.cart td.product-quantity .vmh-qty-minus,
.woocommerce-cart table.shop_table.cart td.product-quantity .vmh-qty-plus {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.woocommerce-cart table.shop_table.cart td.product-quantity .vmh-qty-minus:hover,
.woocommerce-cart table.shop_table.cart td.product-quantity .vmh-qty-plus:hover {
    background: #fff7ed;
    color: #ea580c;
}

/* Remove Button */
.woocommerce-cart table.shop_table.cart td.product-remove {
    text-align: center;
    width: 50px;
}

.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #fef2f2;
    color: #ef4444;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
}

.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover {
    background: #ef4444;
    color: #fff !important;
}

/* Actions Row (Coupon & Update Cart) */
.woocommerce-cart table.shop_table.cart td.actions {
    padding: 2rem 0 1rem;
    border-top: 2px solid #f3f4f6;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon {
    display: flex;
    gap: 0.75rem;
    float: left;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon input.input-text {
    height: 3rem;
    padding: 0 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    min-width: 200px;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon input.input-text:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
}

.woocommerce-cart table.shop_table.cart td.actions button.button {
    height: 3rem;
    padding: 0 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon button.button {
    background: #111827;
    color: #fff;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon button.button:hover {
    background: #000;
}

.woocommerce-cart table.shop_table.cart td.actions>button.button {
    float: right;
    background: #f3f4f6;
    color: #374151;
}

.woocommerce-cart table.shop_table.cart td.actions>button.button:hover {
    background: #e5e7eb;
}

/* Cart Collaterals (Right side bottom) */
.woocommerce-cart .cart-collaterals {
    flex: 1 1 30%;
    min-width: 350px;
    margin-top: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100%;
    background: #fafafa;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 2rem;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-transform: uppercase;
}

/* Totals Table */
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table {
    width: 100%;
    border: none;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr {
    border-bottom: 1px dashed #e5e7eb;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr:last-child {
    border-bottom: none;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th {
    padding: 1rem 0;
    text-align: left;
    font-weight: 600;
    color: #4b5563;
    border: none;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
    padding: 1rem 0;
    text-align: right;
    font-weight: 700;
    color: #111827;
    border: none;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr.order-total th {
    font-size: 1.125rem;
    color: #111827;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr.order-total td {
    font-size: 1.5rem;
    color: #ea580c;
}

/* Shipping Methods */
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr.woocommerce-shipping-totals td {
    text-align: left;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr.woocommerce-shipping-totals ul#shipping_method {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr.woocommerce-shipping-totals ul#shipping_method li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr.woocommerce-shipping-totals ul#shipping_method li input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: #ea580c;
}

.woocommerce-cart .cart-collaterals .cart_totals .woocommerce-shipping-calculator {
    margin-top: 1rem;
}

/* Proceed to Checkout Button */
.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout {
    padding: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1.25rem;
    background: #ea580c;
    color: #fff;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.25);
    text-decoration: none;
}

.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
    background: #c2410c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .woocommerce-cart .woocommerce {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    /* Force table to behave like blocks on mobile */
    .woocommerce-cart table.shop_table.cart thead {
        display: none;
    }

    .woocommerce-cart table.shop_table.cart tbody tr {
        display: flex;
        flex-wrap: wrap;
        position: relative;
        padding: 1.5rem 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .woocommerce-cart table.shop_table.cart td {
        display: block;
        padding: 0;
        border: none;
    }

    .woocommerce-cart table.shop_table.cart td.product-remove {
        position: absolute;
        top: 1.5rem;
        right: 0;
        width: auto;
    }

    .woocommerce-cart table.shop_table.cart td.product-thumbnail {
        width: 80px;
        margin-right: 1rem;
    }

    .woocommerce-cart table.shop_table.cart td.product-name {
        width: calc(100% - 100px - 2rem);
        /* minus thumbnail and remove button */
    }

    .woocommerce-cart table.shop_table.cart td.product-price {
        display: none;
        /* Hide individual price on mobile to save space */
    }

    .woocommerce-cart table.shop_table.cart td.product-quantity {
        width: 100%;
        text-align: left;
        margin-top: 1rem;
        padding-left: 95px;
        /* align with text */
    }

    .woocommerce-cart table.shop_table.cart td.product-quantity .quantity {
        margin: 0;
    }

    .woocommerce-cart table.shop_table.cart td.product-subtotal {
        width: 100%;
        text-align: left;
        margin-top: 0.5rem;
        padding-left: 95px;
    }

    .woocommerce-cart table.shop_table.cart td.product-subtotal::before {
        content: "Thành tiền: ";
        font-weight: 500;
        color: #6b7280;
        font-size: 0.875rem;
    }

    /* Actions Row */
    .woocommerce-cart table.shop_table.cart td.actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .woocommerce-cart table.shop_table.cart td.actions .coupon {
        width: 100%;
        float: none;
        flex-direction: column;
    }

    .woocommerce-cart table.shop_table.cart td.actions .coupon input.input-text,
    .woocommerce-cart table.shop_table.cart td.actions .coupon button.button,
    .woocommerce-cart table.shop_table.cart td.actions>button.button {
        width: 100%;
        float: none;
    }

    /* Collaterals */
    .woocommerce-cart .cart-collaterals .cart_totals {
        width: 100%;
        float: none;
        min-width: 0;
        padding: 1.5rem;
    }
}


/* ============================================================
   WOOCOMMERCE CHECKOUT PAGE BEAUTIFICATION
   ============================================================ */

/* Main Checkout Layout */
.woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 3rem auto;
    display: flex;
    flex-wrap: wrap;
}

/* Coupon Notice & Login Notice */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce-notices-wrapper {
    width: 100%;
}

.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message {
    background: #fff7ed !important;
    color: #c2410c;
    border: none !important;
    border-left: 4px solid #ea580c !important;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.woocommerce-checkout .woocommerce-info a {
    color: #ea580c;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Coupon Form Dropdown */
.woocommerce-checkout form.checkout_coupon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fafafa;
    border: 1px dashed #d1d5db;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.woocommerce-checkout form.checkout_coupon p {
    margin: 0;
}

.woocommerce-checkout form.checkout_coupon>p:not(.form-row) {
    display: none;
}

.woocommerce-checkout form.checkout_coupon p.form-row {
    flex: 1 1 200px;
    width: auto;
}

.woocommerce-checkout form.checkout_coupon p.form-row:last-of-type {
    flex: 0 0 auto;
}

.woocommerce-checkout form.checkout_coupon input.input-text {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #111827;
    background: #fff;
}

.woocommerce-checkout form.checkout_coupon input.input-text:focus {
    border-color: #ea580c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.woocommerce-checkout form.checkout_coupon button.button {
    padding: 0.875rem 1.5rem;
    background: #ea580c;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce-checkout form.checkout_coupon button.button:hover {
    background: #c2410c;
}

/* Billing Form & Order Review Columns */
.woocommerce-checkout form.checkout.woocommerce-checkout {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    width: 100%;
}

.woocommerce-checkout form.checkout.woocommerce-checkout > ul.woocommerce-error,
.woocommerce-checkout form.checkout.woocommerce-checkout > .woocommerce-NoticeGroup,
.woocommerce-checkout form.checkout.woocommerce-checkout > .woocommerce-message,
.woocommerce-checkout form.checkout.woocommerce-checkout > .woocommerce-info {
    flex: 1 1 100%;
    width: 100%;
    margin-bottom: 0;
}

#customer_details {
    flex: 1 1 60%;
    background: #fff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

#order_review_heading,
#order_review {
    flex: 1 1 30%;
    min-width: 350px;
}

/* Headings */
.woocommerce-checkout form.checkout.woocommerce-checkout h3,
#order_review_heading {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 1.5rem;
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Form Fields */
.woocommerce-checkout .form-row {
    margin-bottom: 1.5rem;
}

.woocommerce-checkout .form-row label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: #f9fafb;
    color: #111827;
    transition: all 0.2s;
    font-size: 1rem;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    outline: none;
    border-color: #ea580c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.woocommerce-checkout .form-row textarea {
    min-height: 120px;
}

/* Woo Vietnam Checkout Plugin - Select2 Styling */
.woocommerce-checkout .select2-container .select2-selection--single {
    height: auto !important;
    padding: 0.875rem 1rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.75rem !important;
    background: #f9fafb !important;
    display: flex;
    align-items: center;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 1rem !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #111827 !important;
    padding: 0 !important;
    line-height: normal !important;
}

.woocommerce-checkout .select2-container--open .select2-selection--single {
    border-color: #ea580c !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15) !important;
}

/* Order Review Section (Right Side) */
#order_review_heading {
    display: none;
    /* We can hide the default heading and add it inside the box if we want, or style it */
}

#order_review {
    background: #fafafa;
    border: 1px solid #f3f4f6;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    align-self: flex-start;
}

#order_review::before {
    content: "Đơn hàng của bạn";
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-transform: uppercase;
}

/* Order Table */
.woocommerce-checkout table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    border: none;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    padding: 1rem 0;
    border: none;
    border-bottom: 1px dashed #e5e7eb;
}

.woocommerce-checkout table.shop_table th {
    text-align: left;
    font-weight: 600;
    color: #4b5563;
}

.woocommerce-checkout table.shop_table td {
    text-align: right;
    font-weight: 700;
    color: #111827;
}

.woocommerce-checkout table.shop_table td.product-name {
    text-align: left;
    font-weight: 600;
}

.woocommerce-checkout table.shop_table td.product-name .product-quantity {
    font-weight: 700;
    color: #ea580c;
    margin-left: 0.25rem;
}

.woocommerce-checkout table.shop_table tr.order-total th {
    font-size: 1.125rem;
    color: #111827;
    padding-top: 1.5rem;
}

.woocommerce-checkout table.shop_table tr.order-total td {
    font-size: 1.5rem;
    color: #ea580c;
    padding-top: 1.5rem;
}

/* Payment Methods */
#payment {
    background: transparent;
    border-radius: 0;
    padding: 1.5rem 0 0 0;
    border: none;
    border-top: 1px dashed #e5e7eb;
    margin-top: 1.5rem;
}

#payment ul.payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

#payment ul.payment_methods li {
    margin-bottom: 1rem;
}

#payment ul.payment_methods li input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: #ea580c;
}

#payment ul.payment_methods li label {
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

#payment div.payment_box {
    background: #fff7ed;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #9a3412;
    position: relative;
    border: none;
    border-left: 4px solid #ea580c;
}

#payment div.payment_box::before {
    display: none;
}

.woocommerce-privacy-policy-text {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 1rem;
    line-height: 1.5;
    text-align: center;
}

/* Place Order Button */
#payment .place-order {
    margin-top: 2rem;
    padding: 0;
}

#payment .place-order button#place_order {
    width: 100%;
    padding: 1.25rem;
    background: #ea580c;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.25);
}

#payment .place-order button#place_order:hover {
    background: #c2410c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}

/* Responsive Checkout */
@media screen and (max-width: 992px) {
    .woocommerce-checkout form.checkout.woocommerce-checkout {
        flex-direction: column;
        gap: 2rem;
    }

    #customer_details,
    #order_review_heading,
    #order_review {
        flex: 1 1 auto;
        min-width: 0 !important;
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    #customer_details {
        padding: 1.25rem;
    }

    #order_review {
        padding: 1.25rem;
    }
}

/* Make page.php wrapper transparent on WooCommerce pages */
body.woocommerce-cart #vmh-page-card,
body.woocommerce-checkout #vmh-page-card {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Re-add white card background to the form */
.woocommerce-cart .woocommerce-cart-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* Responsive Cart */
@media screen and (max-width: 992px) {

    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .woocommerce-cart .woocommerce-cart-form {
        padding: 1.5rem;
    }

    /* Header row: Show SẢN PHẨM and SỐ LƯỢNG */
    .woocommerce-cart table.shop_table.cart thead {
        display: block;
    }

    .woocommerce-cart table.shop_table.cart thead tr {
        display: flex;
        justify-content: space-between;
        border-bottom: 2px solid #e5e7eb;
        padding-bottom: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .woocommerce-cart table.shop_table.cart thead th {
        display: none;
        border: none;
        padding: 0;
        text-transform: uppercase;
        font-size: 0.9rem;
        color: #111;
    }

    .woocommerce-cart table.shop_table.cart thead th.product-name,
    .woocommerce-cart table.shop_table.cart thead th.product-quantity {
        display: block;
    }

    /* Body rows (Grid layout) */
    .woocommerce-cart table.shop_table.cart tbody tr {
        display: grid;
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px 15px;
        align-items: center;
        padding: 1.25rem 0;
        border-bottom: 1px solid #f3f4f6;
        position: relative;
    }

    .woocommerce-cart table.shop_table.cart tbody tr:last-child {
        border-bottom: none;
    }

    /* Override and hide all td labels */
    .woocommerce-cart table.shop_table.cart tbody td {
        display: block !important;
        padding: 0;
        border: none;
        text-align: left !important;
    }

    .woocommerce-cart table.shop_table.cart tbody td::before {
        display: none !important;
    }

    /* Product Thumbnail */
    .woocommerce-cart table.shop_table.cart td.product-thumbnail {
        grid-column: 1;
        grid-row: 1 / span 3;
        align-self: start;
        text-align: center !important;
    }

    .woocommerce-cart table.shop_table.cart td.product-thumbnail img {
        width: 100%;
        max-width: 80px;
        height: auto;
        border-radius: 0.5rem;
        margin: 0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    /* Product Remove */
    .woocommerce-cart table.shop_table.cart td.product-remove {
        position: absolute;
        top: 1rem;
        left: -10px;
        z-index: 10;
        grid-column: auto;
        grid-row: auto;
    }

    .woocommerce-cart table.shop_table.cart td.product-remove a.remove {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        background: #fff;
        border: 1px solid #e5e7eb;
        color: #9ca3af !important;
        border-radius: 50%;
        font-size: 16px;
        text-decoration: none;
        line-height: 1;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    /* Product Name */
    .woocommerce-cart table.shop_table.cart td.product-name {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        padding-bottom: 0 !important;
        width: 100% !important;
        /* Gỡ lỗi bóp hẹp do CSS cũ */
    }

    .woocommerce-cart table.shop_table.cart td.product-name a {
        font-size: 0.95rem;
        color: var(--color-dark);
        font-weight: 600;
        text-decoration: none;
        display: block;
        line-height: 1.3;
    }

    .woocommerce-cart table.shop_table.cart td.product-name dl.variation {
        margin-top: 0.25rem;
        font-size: 0.8rem;
        color: #6b7280;
    }

    /* Product Quantity */
    .woocommerce-cart table.shop_table.cart td.product-quantity {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
        justify-self: end;
        text-align: right !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .woocommerce-cart table.shop_table.cart td.product-quantity .quantity {
        margin: 0;
    }

    /* Product Price */
    .woocommerce-cart table.shop_table.cart td.product-price {
        grid-column: 2;
        grid-row: 3;
        align-self: center;
        justify-self: end;
        color: var(--color-primary-hover);
        font-weight: 700;
        font-size: 1.05rem;
        padding: 0 !important;
        margin: 0 !important;
        text-align: right !important;
        width: auto !important;
    }

    .woocommerce-cart table.shop_table.cart td.product-quantity .quantity {
        margin: 0;
    }

    /* Product Subtotal (Hide on mobile to save space like Image 2) */
    .woocommerce-cart table.shop_table.cart td.product-subtotal {
        display: none !important;
    }

    /* Actions row (Coupon + Update cart) */
    .woocommerce-cart table.shop_table.cart td.actions {
        grid-column: 1 / -1;
        text-align: center !important;
        padding-top: 1.5rem;
    }

    .woocommerce-cart table.shop_table.cart td.actions .coupon {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .woocommerce-cart table.shop_table.cart td.actions .coupon input.input-text {
        width: 100%;
    }

    .woocommerce-cart table.shop_table.cart td.actions>button.button {
        width: 100%;
    }
}

/* ============================================================
   WOOCOMMERCE CART & CHECKOUT MOBILE FULL WIDTH
   ============================================================ */
@media screen and (max-width: 1023px) {
    .woocommerce-cart .vmh-section,
    .woocommerce-checkout .vmh-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .woocommerce-cart .vmh-container,
    .woocommerce-checkout .vmh-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .woocommerce-cart #vmh-page-card,
    .woocommerce-checkout #vmh-page-card {
        border-radius: 0 !important;
        box-shadow: none !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* ============================================================
   ORDER RECEIVED (THANK YOU) PAGE
   ============================================================ */
/* Main wrapper */
.woocommerce-order {
    background: #fff;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
    width: 100%;
}

/* Thank you notice */
.woocommerce-order p.woocommerce-thankyou-order-received {
    font-size: 1.25rem;
    color: #065f46;
    background: #ecfdf5;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    border-left: 4px solid #10b981;
    font-weight: 600;
}

/* Order overview list */
.woocommerce-order ul.woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    list-style: none;
    margin: 0 0 3rem;
    padding: 2rem;
    background: #fafafa;
    border-radius: 1rem;
    border: 1px dashed #d1d5db;
}
.woocommerce-order ul.woocommerce-order-overview li {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0;
    border-right: 1px solid #e5e7eb;
    word-break: break-word;
}
.woocommerce-order ul.woocommerce-order-overview li:last-child {
    border-right: none;
}
.woocommerce-order ul.woocommerce-order-overview li strong {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.125rem;
    color: #111827;
    text-transform: none;
}

/* Headings */
.woocommerce-order h2 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 1.5rem;
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Order details table */
.woocommerce-order table.order_details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
}
.woocommerce-order table.order_details th,
.woocommerce-order table.order_details td {
    padding: 1rem 0;
    border-bottom: 1px dashed #e5e7eb;
}
.woocommerce-order table.order_details thead th {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    border-bottom: 2px solid #e5e7eb;
}
.woocommerce-order table.order_details td.woocommerce-table__product-name {
    font-weight: 600;
    color: #111827;
}
.woocommerce-order table.order_details td.woocommerce-table__product-name .product-quantity {
    color: #ea580c;
    font-weight: 700;
}
.woocommerce-order table.order_details tfoot th {
    text-align: left;
    font-weight: 600;
    color: #4b5563;
}
.woocommerce-order table.order_details tfoot td {
    font-weight: 700;
    color: #111827;
    text-align: right;
}
.woocommerce-order table.order_details tfoot tr:last-child th,
.woocommerce-order table.order_details tfoot tr:last-child td {
    font-size: 1.25rem;
    color: #111827;
    border-bottom: none;
}
.woocommerce-order table.order_details tfoot tr:last-child td {
    color: #ea580c;
}

/* Customer details address box */
.woocommerce-order .woocommerce-customer-details address {
    background: #fafafa;
    border: 1px solid #f3f4f6;
    padding: 1.5rem;
    border-radius: 1rem;
    font-style: normal;
    color: #374151;
    line-height: 1.6;
}

@media screen and (max-width: 1023px) {
    .woocommerce-order {
        padding: 1.5rem;
    }
    .woocommerce-order ul.woocommerce-order-overview {
        display: block;
    }
    .woocommerce-order ul.woocommerce-order-overview li {
        border-right: none;
        border-bottom: 1px dashed #e5e7eb;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    .woocommerce-order ul.woocommerce-order-overview li:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

/* ============================================================
   SINGLE PRODUCT GALLERY LIGHTBOX TRIGGER
   ============================================================ */
.woocommerce-product-gallery {
    position: relative;
}

/* Tăng specificity để đè lên woocommerce-layout.css mặc định */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 99;
    background: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    color: transparent;
    font-size: 0 !important;
    transition: all 0.3s ease;
    overflow: hidden;
    text-indent: -9999px;
    text-decoration: none;
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger img {
    display: none !important;
}

/* Xoá cái vạch ngang (stick) của kính lúp mặc định do Woo vẽ bằng ::after */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::after {
    display: none !important;
}

/* Custom Expand Icon (Lucide Maximize) */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border: none !important;
    border-radius: 0 !important;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMzNzQxNTEiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNOCAzaC0zYTIgMiAwIDAwLTIgMnYzIi8+PHBhdGggZD0iTTIxIDh2LTNhMiAyIDAgMDAtMi0yaC0zIi8+PHBhdGggZD0iTTMgMTZ2M2EyIDIgMCAwMDIgMmgzIi8+PHBhdGggZD0iTTE2IDIxaDNhMiAyIDAgMDAyLTJ2LTMiLz48L3N2Zz4=');
    background-color: transparent !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger:hover {
    background: #ea580c;
    transform: scale(1.1);
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger:hover::before {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNOCAzaC0zYTIgMiAwIDAwLTIgMnYzIi8+PHBhdGggZD0iTTIxIDh2LTNhMiAyIDAgMDAtMi0yaC0zIi8+PHBhdGggZD0iTTMgMTZ2M2EyIDIgMCAwMDIgMmgzIi8+PHBhdGggZD0iTTE2IDIxaDNhMiAyIDAgMDAyLTJ2LTMiLz48L3N2Zz4=');
}

/* ============================================================
   PHOTOSWIPE LIGHTBOX CUSTOMIZATION (PREMIUM)
   ============================================================ */
/* Lightbox Background */
.pswp__bg {
    background: rgba(15, 23, 42, 0.98) !important; /* Xanh đen sâu hơn */
}

/* Ẩn toàn bộ UI mặc định của PhotoSwipe vì sẽ dùng Custom UI (JS) */
.pswp__ui .pswp__top-bar,
.pswp__ui .pswp__button--arrow--left,
.pswp__ui .pswp__button--arrow--right,
.pswp__ui .pswp__caption {
    display: none !important;
}

/* Đảm bảo custom UI luôn nổi lên trên cùng */
.vmh-custom-pswp-ui {
    z-index: 999999 !important;
}