/* Custom CSS for Hằng Thông WordPress Theme */

/* --- WordPress Admin Bar offsets --- */
body.admin-bar #masthead {
    top: 32px;
}

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

/* Force WP admin bar to be fixed on mobile to prevent sticky header offset gap on scroll */
@media screen and (max-width: 600px) {
    #wpadminbar {
        position: fixed !important;
    }
}

/* --- WordPress Navigation Menu styling --- */
#site-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#site-navigation>ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#site-navigation>ul>li {
    position: relative;
    padding: 1.5rem 0;
}

#site-navigation>ul>li>a {
    color: #475569;
    /* slate-600 */
    font-weight: 400;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

#site-navigation>ul>li>a:hover,
#site-navigation>ul>li.current-menu-item>a {
    color: #ea580c;
    /* orange-600 */
}

/* Dropdown Sub-Menu */
#site-navigation ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -1rem;
    width: 15rem;
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    z-index: 50;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s;
}

#site-navigation>ul>li.menu-item-has-children:hover>ul.sub-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#site-navigation ul.sub-menu li {
    width: 100%;
}

#site-navigation ul.sub-menu a {
    display: block;
    padding: 0.625rem 1rem;
    color: #475569;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

#site-navigation ul.sub-menu a:hover {
    background-color: #fff7ed;
    color: #ea580c;
}

/* --- Mobile Menu Navigation --- */
#primary-menu-mobile li {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
}

#primary-menu-mobile li:last-child {
    border-bottom: none;
}

#primary-menu-mobile a {
    display: block;
    padding: 0.5rem 0;
    color: #334155;
    font-weight: 600;
}

#primary-menu-mobile a:hover {
    color: #ea580c;
}

#primary-menu-mobile ul.sub-menu {
    padding-left: 1rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-col: true;
    gap: 0.25rem;
    border-left: 2px border-orange-100;
}

#primary-menu-mobile ul.sub-menu a {
    font-weight: 500;
    font-size: 0.875rem;
    color: #64748b;
}

/* --- Fluent Forms Custom Overrides --- */
.fluentform.ff-default .ff-el-form-control {
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    width: 100% !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
}

.fluentform.ff-default .ff-el-form-control:focus {
    border-color: #ea580c !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1) !important;
}

.fluentform.ff-default .ff-btn-submit {
    background-color: #ea580c !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 2rem !important;
    font-weight: 700 !important;
    transition: all 0.3s !important;
    border: none !important;
    cursor: pointer !important;
}

.fluentform.ff-default .ff-btn-submit:hover {
    background-color: #c2410c !important;
}

.fluentform.ff-default .ff-el-input--label {
    font-weight: 600 !important;
    color: #0f172a !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    font-size: 0.875rem !important;
}

.fluentform.ff-default .ff-el-group {
    margin-bottom: 1.25rem !important;
}

.fluentform.ff-default textarea.ff-el-form-control {
    min-height: 120px !important;
}

/* --- WooCommerce Archive Styles --- */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 0 2rem 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
    clear: both !important;
}

/* Hide clear-fix pseudo elements that break grid layout */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    display: none !important;
}

@media (min-width: 640px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (min-width: 1024px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: relative !important;
    box-shadow: none !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    box-shadow: none !important;
    transform: none !important;
}

.woocommerce ul.products li.product a,
.woocommerce-page ul.products li.product a {
    text-decoration: none !important;
    color: inherit !important;
}

.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
    max-height: none !important;
    width: auto !important;
    object-fit: contain !important;
    margin-bottom: 0 !important;
    display: inline-block !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.25rem !important;
    min-height: 2.5rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    font-size: 1rem !important;
    color: #ef4444 !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
    display: block !important;
}

.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    font-size: 0.75rem !important;
    margin-right: 0.5rem !important;
    display: inline-block !important;
}

.woocommerce ul.products li.product .price ins,
.woocommerce-page ul.products li.product .price ins {
    background: transparent !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    background-color: #022A5B !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 0.5rem !important;
    text-align: center !important;
    display: block !important;
    transition: all 0.2s !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: auto !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover {
    background-color: #FF6B00 !important;
}

/* --- WooCommerce Breadcrumbs & Page Header --- */
.woocommerce-breadcrumb {
    font-size: 0.875rem !important;
    color: #64748b !important;
    margin-bottom: 1.5rem !important;
    font-family: 'Roboto', sans-serif !important;
}

.woocommerce-breadcrumb a {
    color: #475569 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.woocommerce-breadcrumb a:hover {
    color: #FF6B00 !important;
}

h1.page-title,
.woocommerce-products-header__title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 2rem !important;
    letter-spacing: -0.025em !important;
    text-transform: uppercase !important;
}

/* --- WooCommerce Result Count and Sorting --- */
.woocommerce-result-count {
    font-size: 0.875rem !important;
    color: #64748b !important;
    margin-bottom: 2rem !important;
    float: left !important;
    line-height: 2.25rem !important;
}

.woocommerce-ordering {
    margin-bottom: 2rem !important;
    float: right !important;
}

.woocommerce-ordering select.orderby {
    padding: 0.5rem 2rem 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    background-color: #ffffff !important;
    outline: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.woocommerce-ordering select.orderby:focus {
    border-color: #FF6B00 !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1) !important;
}

/* Clear floats after count/ordering */
.woocommerce-products-header::after,
.woocommerce-notices-wrapper::after,
.woocommerce-ordering::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* --- WooCommerce Pagination --- */
body.woocommerce nav.woocommerce-pagination,
body.woocommerce-page nav.woocommerce-pagination,
.woocommerce-pagination {
    margin-top: 3rem !important;
    display: flex !important;
    justify-content: center !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    border: none !important;
    padding: 0 !important;
}

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

body.woocommerce nav.woocommerce-pagination ul li,
body.woocommerce-page nav.woocommerce-pagination ul li,
.woocommerce-pagination ul.page-numbers li {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}

body.woocommerce nav.woocommerce-pagination ul li a,
body.woocommerce nav.woocommerce-pagination ul li span,
body.woocommerce-page nav.woocommerce-pagination ul li a,
body.woocommerce-page nav.woocommerce-pagination ul li span,
.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    min-width: 2.5rem !important;
    min-height: 2.5rem !important;
    border-radius: 0.75rem !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    padding: 0 !important;
    margin: 0 0.25rem !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

body.woocommerce nav.woocommerce-pagination ul li a:hover,
body.woocommerce nav.woocommerce-pagination ul li a:focus,
body.woocommerce-page nav.woocommerce-pagination ul li a:hover,
body.woocommerce-page nav.woocommerce-pagination ul li a:focus,
.woocommerce-pagination a.page-numbers:hover,
.woocommerce-pagination a.page-numbers:focus {
    border-color: #FF6B00 !important;
    color: #FF6B00 !important;
    background: #fff7ed !important;
}

body.woocommerce nav.woocommerce-pagination ul li span.current,
body.woocommerce nav.woocommerce-pagination ul li a.current,
body.woocommerce-page nav.woocommerce-pagination ul li span.current,
body.woocommerce-page nav.woocommerce-pagination ul li a.current,
.woocommerce-pagination span.page-numbers.current,
.woocommerce-pagination a.page-numbers.current {
    background: #FF6B00 !important;
    border-color: #FF6B00 !important;
    color: #ffffff !important;
}

/* Fix logo image being stretched on WooCommerce category/product pages */
body.woocommerce-page #masthead .flex-shrink-0 a img,
body.woocommerce #masthead .flex-shrink-0 a img,
#masthead .flex-shrink-0 img,
#masthead img {
    height: 48px !important;
    width: auto !important;
    max-height: 48px !important;
}

/* --- Force standard pagination and hide infinite scroll loaders --- */
.woocommerce-pagination {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.alm-reveal,
.alm-load-more-btn,
.ajax-load-more-loader,
#infinite-handle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* --- WooCommerce Premium Cart Page Layout --- */

/* 1. Columns Layout */
.woocommerce-cart .cart-collaterals {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-top: 2rem !important;
}

@media (min-width: 1024px) {
    .woocommerce-cart .woocommerce {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 2.5rem !important;
    }
    .woocommerce-cart .woocommerce-notices-wrapper {
        width: 100% !important;
    }
    .woocommerce-cart .woocommerce-cart-form {
        flex: 1 !important;
        min-width: 0 !important;
        float: none !important;
        width: auto !important;
    }
    .woocommerce-cart .cart-collaterals {
        width: 380px !important;
        flex-shrink: 0 !important;
        float: none !important;
        margin: 0 !important;
    }
}

/* 2. Cart Table Styling */
.woocommerce-cart table.cart {
    border-collapse: collapse !important;
    border: none !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
}

.woocommerce-cart table.cart thead {
    background-color: transparent !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.woocommerce-cart table.cart thead th {
    padding: 1.25rem 0.75rem !important;
    font-weight: 700 !important;
    font-size: 0.9375rem !important;
    color: #0f172a !important;
    text-transform: capitalize !important;
    border: none !important;
}

.woocommerce-cart table.cart tbody tr {
    border-bottom: 1px solid #f1f5f9 !important;
}

.woocommerce-cart table.cart tbody td {
    padding: 1.5rem 0.75rem !important;
    border: none !important;
    vertical-align: middle !important;
    color: #334155 !important;
}

/* Delete Button */
.woocommerce-cart table.cart a.remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    border-radius: 50% !important;
    color: #94a3b8 !important;
    font-size: 1.25rem !important;
    font-weight: 300 !important;
    transition: all 0.2s ease !important;
}

.woocommerce-cart table.cart a.remove:hover {
    background-color: #fee2e2 !important;
    color: #ef4444 !important;
}

/* Product Thumbnail */
.woocommerce-cart table.cart .product-thumbnail img {
    width: 70px !important;
    height: 70px !important;
    max-width: 70px !important;
    object-fit: cover !important;
    border-radius: 0.75rem !important;
    border: 1px solid #e2e8f0 !important;
}

/* Product Name */
.woocommerce-cart table.cart .product-name a {
    font-weight: 600 !important;
    color: #0f172a !important;
    font-size: 0.9375rem !important;
    line-height: 1.4 !important;
    transition: color 0.15s ease !important;
}

.woocommerce-cart table.cart .product-name a:hover {
    color: #FF6B00 !important;
}

/* Price & Subtotal */
.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-subtotal {
    font-weight: 600 !important;
    color: #0f172a !important;
    font-size: 0.9375rem !important;
}

.woocommerce-cart table.cart .product-price {
    color: #475569 !important;
}

/* Quantity Input */
.woocommerce-cart .quantity {
    display: inline-block !important;
}

.woocommerce-cart .quantity .qty {
    width: 3.75rem !important;
    height: 2.25rem !important;
    padding: 0 !important;
    text-align: center !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    outline: none !important;
    font-size: 0.875rem !important;
    -moz-appearance: textfield !important;
}

.woocommerce-cart .quantity .qty::-webkit-outer-spin-button,
.woocommerce-cart .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* 3. Actions Area (Coupon + Update) */
.woocommerce-cart table.cart td.actions {
    padding: 1.5rem 0 !important;
    border: none !important;
}

.woocommerce-cart table.cart td.actions .coupon {
    display: inline-flex !important;
    align-items: center !important;
    float: left !important;
}

.woocommerce-cart table.cart td.actions .coupon label {
    display: none !important;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
    width: 180px !important;
    height: 44px !important;
    border: 1px solid #cbd5e1 !important;
    border-right: none !important;
    border-radius: 0.5rem 0 0 0.5rem !important;
    padding: 0 1rem !important;
    font-size: 0.875rem !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    outline: none !important;
    margin: 0 !important;
}

.woocommerce-cart table.cart td.actions .coupon .input-text::placeholder {
    color: #94a3b8 !important;
}

.woocommerce-cart table.cart td.actions .coupon .button {
    height: 44px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 0.5rem 0.5rem 0 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0 1.5rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

.woocommerce-cart table.cart td.actions .coupon .button:hover {
    background-color: #f8fafc !important;
    color: #FF6B00 !important;
    border-color: #cbd5e1 !important;
}

/* Actions right side buttons (Update Cart, etc) */
.woocommerce-cart table.cart td.actions > .button {
    height: 44px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    background-color: #ffffff !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0 1.5rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    float: right !important;
    margin: 0 !important;
}

.woocommerce-cart table.cart td.actions > .button:hover:not([disabled]) {
    background-color: #f8fafc !important;
    color: #FF6B00 !important;
    border-color: #cbd5e1 !important;
}

/* 4. Cart Totals Styling (Premium card style with Theme Blue border) */
.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
    border: 2px solid #022A5B !important;
    border-radius: 1rem !important;
    padding: 1.75rem !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02) !important;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
    font-size: 1.125rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table {
    border: none !important;
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 1.5rem !important;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr {
    border-bottom: 1px solid #f1f5f9 !important;
}

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

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
    padding: 1rem 0 !important;
    border: none !important;
    background: transparent !important;
    vertical-align: top !important;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th {
    font-weight: 500 !important;
    color: #475569 !important;
    font-size: 0.875rem !important;
    text-align: left !important;
    width: 35% !important;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
    font-weight: 600 !important;
    color: #0f172a !important;
    font-size: 0.875rem !important;
    text-align: right !important;
}

/* Subtotal row formatting */
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr.cart-subtotal td {
    font-weight: 700 !important;
}

/* Shipping options */
.woocommerce-cart .cart-collaterals .cart_totals #shipping_method {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: right !important;
}

.woocommerce-cart .cart-collaterals .cart_totals #shipping_method li {
    margin-bottom: 0.5rem !important;
}

.woocommerce-cart .cart-collaterals .cart_totals #shipping_method li:last-child {
    margin-bottom: 0 !important;
}

.woocommerce-cart .cart-collaterals .cart_totals #shipping_method input[type="radio"] {
    margin-right: 0.375rem !important;
}

.woocommerce-cart .cart-collaterals .cart_totals .woocommerce-shipping-destination {
    font-size: 0.75rem !important;
    color: #64748b !important;
    font-weight: 400 !important;
    margin-top: 0.5rem !important;
}

.woocommerce-cart .cart-collaterals .cart_totals .shipping-calculator-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    color: #022A5B !important;
    text-decoration: none !important;
    margin-top: 0.75rem !important;
    transition: color 0.15s ease !important;
}

.woocommerce-cart .cart-collaterals .cart_totals .shipping-calculator-button::before {
    content: "🚚" !important;
    font-size: 0.875rem !important;
}

.woocommerce-cart .cart-collaterals .cart_totals .shipping-calculator-button:hover {
    color: #FF6B00 !important;
}

/* Order Total Row */
.woocommerce-cart .cart-collaterals .cart_totals tr.order-total th {
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 0.9375rem !important;
    vertical-align: middle !important;
}

.woocommerce-cart .cart-collaterals .cart_totals tr.order-total td {
    font-size: 1.125rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    vertical-align: middle !important;
}

/* Checkout Button */
.woocommerce-cart .cart-collaterals .cart_totals .checkout-button {
    display: block !important;
    width: 100% !important;
    background-color: #022A5B !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.9375rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-align: center !important;
    padding: 0.9375rem !important;
    border-radius: 0.5rem !important;
    transition: all 0.25s ease !important;
    margin-top: 1.25rem !important;
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(2, 42, 91, 0.15) !important;
    cursor: pointer !important;
}

.woocommerce-cart .cart-collaterals .cart_totals .checkout-button:hover {
    background-color: #FF6B00 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 15px -3px rgba(255, 107, 0, 0.25) !important;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 1023px) {
    .woocommerce-cart table.cart td.actions .coupon {
        display: flex !important;
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    .woocommerce-cart table.cart td.actions .coupon .input-text {
        flex: 1 !important;
        width: auto !important;
    }
    .woocommerce-cart table.cart td.actions > .button {
        display: block !important;
        width: 100% !important;
        float: none !important;
    }
}

/* --- WooCommerce Checkout Premium Layout --- */

.woocommerce-checkout .checkout-layout-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
}

@media (min-width: 1024px) {
    .woocommerce-checkout .checkout-layout-grid {
        display: grid !important;
        grid-template-columns: 1fr 420px !important;
        gap: 2.5rem !important;
        align-items: flex-start !important;
    }
}

.woocommerce-checkout .checkout-column-left {
    min-width: 0 !important;
}

.woocommerce-checkout .checkout-column-right {
    position: relative !important;
}

@media (min-width: 1024px) {
    .woocommerce-checkout .checkout-column-right {
        position: sticky !important;
        top: 100px !important;
    }
}

/* Order Review Wrapper Card style */
.woocommerce-checkout .checkout-order-review-wrap {
    border: 2px solid #022A5B !important;
    border-radius: 1rem !important;
    padding: 1.75rem !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02) !important;
}

.woocommerce-checkout #order_review_heading {
    font-size: 1.125rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-top: 0 !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-family: 'Roboto', sans-serif !important;
}

/* Billing & Shipping Forms */
.woocommerce-checkout .col2-set {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout h3 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
    margin-bottom: 1.5rem !important;
    font-family: 'Roboto', sans-serif !important;
}

/* Input Fields styling */
.woocommerce-checkout .form-row {
    margin-bottom: 1.25rem !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    display: block !important;
}

@media (min-width: 640px) {
    .woocommerce-checkout .form-row-first {
        width: 48% !important;
        float: left !important;
        clear: both !important;
    }
    
    .woocommerce-checkout .form-row-last {
        width: 48% !important;
        float: right !important;
        clear: none !important;
    }
    
    .woocommerce-checkout .form-row-wide {
        width: 100% !important;
        clear: both !important;
    }
    
    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper::after,
    .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper::after {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }
}

.woocommerce-checkout .form-row label {
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    font-size: 0.875rem !important;
}

.woocommerce-checkout .form-row label .required {
    color: #ef4444 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    width: 100% !important;
    font-size: 0.9375rem !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: #022A5B !important;
    box-shadow: 0 0 0 3px rgba(2, 42, 91, 0.1) !important;
}

.woocommerce-checkout .form-row select {
    height: 46px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 1rem !important;
    padding-right: 2.5rem !important;
    line-height: 44px !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.25rem !important;
}

/* Select2 dropdown overrides */
.woocommerce-checkout .select2-container--default .select2-selection--single {
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    height: 46px !important;
    background-color: #ffffff !important;
    outline: none !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
    color: #0f172a !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 1rem !important;
    padding-right: 2.5rem !important;
    font-size: 0.9375rem !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    width: 2.5rem !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #64748b transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
}

.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #022A5B !important;
    box-shadow: 0 0 0 3px rgba(2, 42, 91, 0.1) !important;
}

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

.woocommerce-checkout table.shop_table thead {
    border-bottom: 1px solid #f1f5f9 !important;
}

.woocommerce-checkout table.shop_table thead th {
    padding: 0.75rem 0 !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border: none !important;
}

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

.woocommerce-checkout table.shop_table thead th.product-total {
    text-align: right !important;
}

.woocommerce-checkout table.shop_table tbody tr {
    border-bottom: 1px solid #f1f5f9 !important;
}

.woocommerce-checkout table.shop_table tbody td {
    padding: 1rem 0 !important;
    border: none !important;
    vertical-align: middle !important;
}

.woocommerce-checkout table.shop_table tbody td.product-name {
    text-align: left !important;
    font-size: 0.9375rem !important;
    color: #334155 !important;
    line-height: 1.4 !important;
}

.woocommerce-checkout table.shop_table tbody td.product-total {
    text-align: right !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    font-size: 0.9375rem !important;
}

.woocommerce-checkout table.shop_table tfoot th,
.woocommerce-checkout table.shop_table tfoot td {
    padding: 1rem 0 !important;
    border: none !important;
    background: transparent !important;
}

.woocommerce-checkout table.shop_table tfoot tr {
    border-bottom: 1px solid #f1f5f9 !important;
}

.woocommerce-checkout table.shop_table tfoot tr:last-child {
    border-bottom: none !important;
}

.woocommerce-checkout table.shop_table tfoot th {
    font-weight: 500 !important;
    color: #475569 !important;
    font-size: 0.875rem !important;
    text-align: left !important;
}

.woocommerce-checkout table.shop_table tfoot td {
    font-weight: 600 !important;
    color: #0f172a !important;
    font-size: 0.875rem !important;
    text-align: right !important;
}

.woocommerce-checkout table.shop_table tfoot tr.order-total th {
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 0.9375rem !important;
}

.woocommerce-checkout table.shop_table tfoot tr.order-total td {
    font-size: 1.125rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

/* Shipping Method Selection */
.woocommerce-checkout #shipping_method {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout #shipping_method li {
    margin-bottom: 0.375rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    justify-content: flex-end !important;
}

.woocommerce-checkout #shipping_method li input[type="radio"] {
    margin: 0 !important;
}

.woocommerce-checkout #shipping_method li label {
    font-weight: 600 !important;
    color: #334155 !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* Payment Methods */
.woocommerce-checkout #payment {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1.5rem 0 !important;
    border: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 0.75rem !important;
    line-height: 1.5 !important;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    margin-right: 0.5rem !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    font-weight: 600 !important;
    color: #334155 !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.woocommerce-checkout #payment ul.payment_methods li label img {
    max-height: 24px !important;
    width: auto !important;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    padding: 1rem !important;
    margin: 0.75rem 0 !important;
    font-size: 0.8125rem !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    position: relative !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}

/* Place Order Button and Terms */
.woocommerce-checkout #payment div.place-order {
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
}

.woocommerce-checkout #payment .place-order .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 1.25rem !important;
    padding: 0 !important;
}

.woocommerce-checkout #payment .place-order .woocommerce-form__label-for-checkbox {
    display: inline-flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
}

.woocommerce-checkout #payment .place-order .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    margin-top: 0.2rem !important;
}

.woocommerce-checkout #payment .place-order .woocommerce-form__label-for-checkbox span.required {
    color: #ef4444 !important;
}

.woocommerce-checkout #payment #place_order {
    display: block !important;
    width: 100% !important;
    background-color: #022A5B !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.9375rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-align: center !important;
    padding: 0.9375rem !important;
    border-radius: 0.5rem !important;
    transition: all 0.25s ease !important;
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(2, 42, 91, 0.15) !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.woocommerce-checkout #payment #place_order:hover {
    background-color: #FF6B00 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 15px -3px rgba(255, 107, 0, 0.25) !important;
}

.woocommerce-checkout #payment #place_order:disabled {
    background-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* ==========================================
   WOOCOMMERCE THANK YOU PAGE CUSTOM STYLES
   ========================================== */

/* Custom styling for BACS / Bank Details layout card */
.bacs-card-override {
    font-family: 'Roboto', sans-serif !important;
}

.bacs-card-override h2,
.bacs-card-override h2.wc-bacs-bank-details-heading {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin: 1.5rem 0 1rem 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border: none !important;
    padding: 0 !important;
}

.bacs-card-override h2.wc-bacs-bank-details-heading:first-of-type {
    margin-top: 0.5rem !important;
}

.bacs-card-override ul.wc-bacs-bank-details {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    list-style: none !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
}

@media (min-width: 640px) {
    .bacs-card-override ul.wc-bacs-bank-details {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.bacs-card-override ul.wc-bacs-bank-details li {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 1.25rem !important;
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02) !important;
    display: block !important;
}

.bacs-card-override ul.wc-bacs-bank-details li strong {
    display: block !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #022A5B !important;
    margin-top: 0.25rem !important;
}

.bacs-card-override p {
    font-size: 14px !important;
    color: #475569 !important;
    margin-bottom: 1rem !important;
    line-height: 1.6 !important;
}

.bacs-card-override section.woocommerce-bacs-bank-details {
    margin-bottom: 1.5rem !important;
}

/* --- Giảm khoảng cách padding của các vùng (section) trên trang chủ xuống còn 10px --- */
.home section,
.home-page section,
body.home section {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}