/*!
Theme Name: binhvu
Theme URI: http://truegrit.vn/
Author: Truegrit.vn
Author URI: http://truegrit.vn/
Description: Description
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: binhvu
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/
/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}
.reset_variations {display: none !important;}
.iconic-woothumbs-thumbnails__slide {
	opacity: 0.5;
}
.iconic-woothumbs-thumbnails__image-wrapper {
	border-radius: 4px;
}
.iconic-woothumbs-thumbnails__image-wrapper:before,
.iconic-woothumbs-thumbnails__image-wrapper:after {
	border: none !important;
}
@media (min-width: 1024px) {
	.iconic-woothumbs-thumbnails__image {
		height: 58px !important;
		object-fit: cover;
	}
}
.isures-sdc--wrap {
	padding: 0 !important;
}
.woocommerce-variation.single_variation {
	display: none !important;
}
table.variations, table.variations tbody > tr {
	display: flex;
	flex-direction: column;
}
table.variations tbody > tr:not(:first-child) {
    margin-top: calc(1rem * (1 - var(--tw-space-y-reverse, 0)));
}
table.variations tbody > tr td.label {
	margin-bottom: .5rem;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}
.thwvsf-wrapper-ul {
	gap: .75rem;
}
@media (min-width: 1024px) {
    .thwvsf-wrapper-ul {
        gap: 1rem;
        row-gap: .75rem;
    }
}
.thwvsf-wrapper-ul .thwvsf-wrapper-item-li.attr_swatch_design_default {
	border-radius: .75rem !important;
}
.thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-label-li.attr_swatch_design_default,
.thwvsf-wrapper-ul .thwvsf-wrapper-item-li.attr_swatch_design_1 {
	margin: 0 !important;
}
.iconic-woothumbs-all-images-wrap {
	margin-bottom: 0 !important;
}
#sliderproduct .owl-nav .owl-prev {
  position: absolute;
  top: 50%;
  left: -15px;
  width: 30px;
  background: #fff;
  height: 30px;
  border-radius: 50%;
  opacity: 0.5;
  text-align: center;
  padding: 5px; }
  @media (max-width: 991px) {
    #sliderproduct .owl-nav .owl-prev {
      left: 0; } }

#sliderproduct .owl-nav .owl-next {
  position: absolute;
  top: 50%;
  right: -15px;
  width: 30px;
  background: #fff;
  height: 30px;
  border-radius: 50%;
  opacity: 0.5;
  text-align: center;
  padding: 5px; }
  @media (max-width: 991px) {
    #sliderproduct .owl-nav .owl-next {
      right: 0px; } }

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
	position: absolute;
	top: 50%;
	display: inline-flex;
	height: 1.75rem;
	width: 1.75rem;
	--tw-translate-y: -100%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    align-items: center;
    justify-content: center;
    gap: .5rem;
    white-space: nowrap;
    border-radius: 9999px;
    background-color: hsl(var(--neutral-900));
    vertical-align: text-bottom;
    font-size: .875rem;
    line-height: 1.25rem;
}
.owl-carousel .owl-nav button.owl-prev {
	left: -1rem;
}
.owl-carousel .owl-nav button.owl-next {
	right: -1rem;
}
@media (min-width: 1024px) {
    .owl-carousel .owl-nav button.owl-prev {
        left: -2.5rem;
    }
    .owl-carousel .owl-nav button.owl-next {
		right: -2.5rem;
	}
}
.owl-carousel .owl-nav button svg {
    width: 1rem;
    height: 1rem;
}
.owl-carousel .owl-nav button svg path {
	color: #fff;
}
.custom-sort-options ul {
	padding: .25rem;
}
.custom-sort-options ul li a{
	border-radius: .75rem;
	padding-left: 1rem;
    padding-right: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    font-size: .875rem;
    line-height: 1rem;
    color: hsl(var(--neutral-500));
    outline-offset: 2px;
    outline: 2px solid #0000;
}

/*Checkout*/
#customer_address_details .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper > p,
#onepagecheckout-additional_fields {
    --tw-space-y-reverse: 0;
    margin-top: calc(.75rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(.75rem * var(--tw-space-y-reverse));
}
@media (min-width: 1024px) {
    #customer_address_details .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper > p,
    #onepagecheckout-additional_fields {
        --tw-space-y-reverse: 0;
        margin-top: calc(.625rem * calc(1 - var(--tw-space-y-reverse)));
        margin-bottom: calc(.625rem * var(--tw-space-y-reverse));
    }
}
#customer_address_details .woocommerce-billing-fields p label,
#onepagecheckout-additional_fields #order_comments_field label {
    display: block;
    margin-left: .75rem;
    font-family: var(--font-pangea), sans-serif;
    font-size: .875rem;
    line-height: 1rem;
    color: hsl(var(--neutral-600));
}
#customer_address_details .woocommerce-billing-fields p .woocommerce-input-wrapper,
#onepagecheckout-additional_fields .woocommerce-input-wrapper,
#customer_address_details #billing_city_field .select2-container--default {
    display: block;
    --tw-space-y-reverse: 0;
    margin-top: calc(.25rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(.25rem * var(--tw-space-y-reverse));
}
#customer_address_details .woocommerce-billing-fields p .woocommerce-input-wrapper input,
#onepagecheckout-additional_fields .woocommerce-input-wrapper textarea,
#customer_address_details .woocommerce-billing-fields p .select2-selection--single{
    display: flex;
    height: 2.75rem;
    width: 100%;
    border-radius: 9999px;
    border-width: 1px;
    border-color: hsl(var(--neutral-300));
    background-color: hsl(var(--background));
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: .625rem;
    padding-bottom: .625rem;
    line-height: 1.25rem;
    color: hsl(var(--neutral-800));
    transition-property: color, background-color, border-color, -webkit-text-decoration-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter, backdrop-filter;
    transition-duration: .15s;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    outline: none;
}
#customer_address_details .woocommerce-billing-fields p .woocommerce-input-wrapper input:hover:enabled,
#customer_address_details .woocommerce-billing-fields p .woocommerce-input-wrapper input:focus,
#onepagecheckout-additional_fields .woocommerce-input-wrapper textarea:hover:enabled,
#onepagecheckout-additional_fields .woocommerce-input-wrapper textarea:hover:focus,
#customer_address_details .woocommerce-billing-fields p .woocommerce-input-wrapper .select2-selection--single:hover:enabled {
    border-color: hsl(var(--neutral-500));
}
#onepagecheckout-additional_fields .border_html,
#payment_heading,
.page-template-template-tg-checkout footer {
    display: none !important;
}
#payment .wc_payment_method {
    cursor: pointer;
    border-radius: .75rem;
    border-width: 1px;
    border-color: hsl(var(--neutral-200));
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;

}
@media (min-width: 1024px) {
    #payment .wc_payment_method {
        gap: 1rem;
    }
}
#payment .wc_payment_methods>:not([hidden])~:not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(.5rem * var(--tw-space-y-reverse));
}
#payment .wc_payment_method label {
    font-family: var(--font-pangea), sans-serif;
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: hsl(var(--neutral-800));
    cursor: pointer;
}
#payment .wc_payment_method .payment_box {
    font-family: var(--font-pangea), sans-serif;
    color: hsl(var(--neutral-500));
}
@media (min-width: 1024px) {
    #payment .wc_payment_method .payment_box {
        font-size: .75rem;
        line-height: 1rem;
    }
}
#isures_notice_popup, #isures_conditions_popup {
    background-color: #fff;
    margin: 0px auto;
}
.isures-sdc__newv-wrap {
    flex-wrap: nowrap;
}
.isures-sdc__newv-wrap .isures-sdc--item {
    flex-shrink: 0;
}
.woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
#billing_email_field,
#billing_last_name_field,
#billing_phone_field,
#billing_state_field, 
#billing_city_field,
#billing_address_1_field {
    flex-basis: 100%;
}
@media (min-width: 1024px) {
    #billing_last_name_field {
        flex-basis: 60%;
    }
    #billing_phone_field {
        flex-basis: 40%;
        padding-left: .5rem !important;
    }
    #billing_state_field, #billing_city_field {
        flex-basis: 49.5%;
    }
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 10px !important;
    right: 10px !important;
}

/* =====================================================
   THANK YOU PAGE - MODERN CHECKOUT STYLE
   Trang đặt hàng thành công WooCommerce
===================================================== */

.woocommerce-order-received .woocommerce {
    max-width: 1280px;
    margin: 60px auto 100px;
    padding: 0 24px;
    color: #111;
}

/* Layout 2 cột */
.woocommerce-order-received .woocommerce-order {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 32px;
    align-items: flex-start;
}

/* =========================
   Cột trái - thông báo thành công
========================= */

.woocommerce-order-received .woocommerce-notice--success {
    position: relative;
    margin: 0 0 22px;
    padding: 34px 34px 34px 96px;
    border-radius: 28px;
    background: #111;
    color: #fff;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
    box-shadow: 0 20px 50px rgba(0,0,0,0.16);
}

.woocommerce-order-received .woocommerce-notice--success::before {
    content: "✓";
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
}

/* Box thông tin đơn */
.woocommerce-order-received .woocommerce-order-overview {
    margin: 0;
    padding: 8px;
    list-style: none;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.06);
}

.woocommerce-order-received .woocommerce-order-overview li {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    border: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
    color: #777;
    text-transform: none;
}

.woocommerce-order-received .woocommerce-order-overview li:last-child {
    border-bottom: 0 !important;
}

.woocommerce-order-received .woocommerce-order-overview strong {
    display: block;
    margin: 0;
    color: #111;
    font-size: 15px;
    font-weight: 800;
    text-align: right;
}

/* =========================
   Cột phải - chi tiết đơn hàng
========================= */

.woocommerce-order-received .woocommerce-order-details {
    grid-column: 2;
    grid-row: 1 / span 5;
    padding: 30px;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.06);
}

.woocommerce-order-received .woocommerce-order-details__title {
    margin: 0 0 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;
    color: #111;
}

/* Bảng đơn hàng */
.woocommerce-order-received table.shop_table {
    width: 100%;
    margin: 0;
    border: 0 !important;
    border-collapse: collapse;
    border-radius: 0;
    background: transparent;
}

.woocommerce-order-received table.shop_table thead {
    display: none;
}

.woocommerce-order-received table.shop_table tr {
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-order-received table.shop_table th,
.woocommerce-order-received table.shop_table td {
    border: 0 !important;
    padding: 16px 0;
    background: transparent !important;
    font-size: 15px;
    line-height: 1.5;
    color: #111;
}

.woocommerce-order-received table.shop_table td:last-child,
.woocommerce-order-received table.shop_table th:last-child {
    text-align: right;
}

/* Tên sản phẩm */
.woocommerce-order-received .woocommerce-table__product-name {
    font-weight: 700;
    color: #111;
}

.woocommerce-order-received .woocommerce-table__product-name a {
    color: #111;
    text-decoration: none;
}

.woocommerce-order-received .woocommerce-table__product-name strong {
    font-weight: 800;
}

/* Giá sản phẩm */
.woocommerce-order-received .woocommerce-table__product-total {
    font-weight: 800;
    color: #111;
}

/* Thuộc tính sản phẩm */
.woocommerce-order-received .wc-item-meta,
.woocommerce-order-received .woocommerce-table__product-name dl {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    color: #666;
    font-size: 14px;
}

.woocommerce-order-received .wc-item-meta li {
    display: flex;
    gap: 6px;
    margin: 6px 0;
}

.woocommerce-order-received .wc-item-meta-label {
    font-weight: 700;
    color: #111;
}

/* Tổng phụ, giảm giá, vận chuyển */
.woocommerce-order-received table.shop_table tfoot tr th {
    color: #555;
    font-weight: 500;
}

.woocommerce-order-received table.shop_table tfoot tr td {
    color: #111;
    font-weight: 700;
}

/* Tổng cộng nổi bật */
.woocommerce-order-received table.shop_table tfoot tr:last-child {
    border-bottom: 0;
}

.woocommerce-order-received table.shop_table tfoot tr:last-child th,
.woocommerce-order-received table.shop_table tfoot tr:last-child td {
    padding-top: 22px;
    font-size: 20px;
    font-weight: 900;
    color: #111;
}

.woocommerce-order-received table.shop_table tfoot tr:last-child td {
    color: #e53935;
}

/* Làm dòng tổng cộng như thanh toán */
.woocommerce-order-received table.shop_table tfoot tr:last-child th::before {
    content: "";
    display: block;
    height: 1px;
    background: #111;
    margin-bottom: 20px;
}

.woocommerce-order-received table.shop_table tfoot tr:last-child td::before {
    content: "";
    display: block;
    height: 1px;
    background: #111;
    margin-bottom: 20px;
}

/* =========================
   Phương thức thanh toán / ghi chú
========================= */

.woocommerce-order-received .woocommerce-order-details + p,
.woocommerce-order-received .woocommerce-bacs-bank-details {
    grid-column: 1;
    margin: 22px 0 0;
    padding: 22px 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    font-size: 15px;
    line-height: 1.7;
}

/* =========================
   Thông tin khách hàng
========================= */

.woocommerce-order-received .woocommerce-customer-details {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding: 30px;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.06);
}

.woocommerce-order-received .woocommerce-column__title {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 800;
    color: #111;
}

.woocommerce-order-received .woocommerce-customer-details address {
    margin: 0;
    padding: 22px;
    border: 1px solid #eee;
    border-radius: 22px;
    background: #fafafa;
    font-style: normal;
    line-height: 1.8;
    color: #222;
}

/* Xóa style mặc định WooCommerce */
.woocommerce-order-received ul.order_details::before,
.woocommerce-order-received ul.order_details::after {
    display: none !important;
}

.woocommerce-order-received ul.order_details li {
    border-right: 0 !important;
}

/* =========================
   Mobile
========================= */

@media (max-width: 900px) {
    .woocommerce-order-received .woocommerce {
        margin: 32px auto 70px;
        padding: 0 16px;
    }

    .woocommerce-order-received .woocommerce-order {
        display: block;
    }

    .woocommerce-order-received .woocommerce-notice--success {
        padding: 28px 24px 28px 84px;
        border-radius: 24px;
        font-size: 21px;
    }

    .woocommerce-order-received .woocommerce-notice--success::before {
        left: 24px;
        width: 42px;
        height: 42px;
        font-size: 23px;
    }

    .woocommerce-order-received .woocommerce-order-overview {
        margin-bottom: 24px;
        border-radius: 24px;
    }

    .woocommerce-order-received .woocommerce-order-overview li {
        display: block;
        padding: 16px !important;
    }

    .woocommerce-order-received .woocommerce-order-overview strong {
        margin-top: 6px;
        text-align: left;
    }

    .woocommerce-order-received .woocommerce-order-details,
    .woocommerce-order-received .woocommerce-customer-details {
        padding: 22px;
        border-radius: 24px;
    }

    .woocommerce-order-received .woocommerce-order-details__title {
        font-size: 23px;
    }

    .woocommerce-order-received table.shop_table th,
    .woocommerce-order-received table.shop_table td {
        font-size: 14px;
    }

    .woocommerce-order-received table.shop_table tfoot tr:last-child th,
    .woocommerce-order-received table.shop_table tfoot tr:last-child td {
        font-size: 18px;
    }
}

/*Trang Tài khoản*/

/* ================================
   Account - Order Detail
================================ */

.ts-account-order-detail {
    width: 100%;
    font-family: inherit;
    color: #171717;
}

/* Section card */
.ts-account-order-detail .woocommerce-order-details,
.ts-account-order-detail .woocommerce-customer-details {
    border-radius: 16px;
    background: #fff;
    margin-bottom: 32px;
}

/* Heading */
.ts-account-order-detail .woocommerce-order-details__title,
.ts-account-order-detail .woocommerce-column__title {
    margin: 0 0 24px;
    font-family: "CriteriaCF", sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
    color: #171717;
}

/* Table reset */
.ts-account-order-detail table.shop_table,
.ts-account-order-detail table.order_details {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
}

/* Table head */
.ts-account-order-detail table.shop_table thead th {
    background: #f5f5f5;
    padding: 18px 20px;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
    font-family: "CriteriaCF", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #171717;
    text-align: left;
}

.ts-account-order-detail table.shop_table thead th.product-total {
    text-align: right;
}

/* Product rows */
.ts-account-order-detail table.shop_table tbody td {
    padding: 22px 20px;
    border: 0;
    border-bottom: 1px solid #eeeeee;
    vertical-align: top;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(23, 23, 23, 0.75);
}

.ts-account-order-detail table.shop_table tbody tr:last-child td {
    border-bottom: 0;
}

.ts-account-order-detail table.shop_table td.product-name a {
    display: inline;
    color: #171717;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ts-account-order-detail table.shop_table td.product-name a:hover {
    color: #2f5acf;
}

.ts-account-order-detail table.shop_table .product-quantity {
    margin-left: 4px;
    font-weight: 500;
    color: rgba(23, 23, 23, 0.55);
}

.ts-account-order-detail table.shop_table td.product-total {
    text-align: right;
    white-space: nowrap;
    font-weight: 500;
    color: #171717;
}

/* Product meta */
.ts-account-order-detail .wc-item-meta {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.ts-account-order-detail .wc-item-meta li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(23, 23, 23, 0.55);
}

.ts-account-order-detail .wc-item-meta strong {
    font-weight: 500;
    color: rgba(23, 23, 23, 0.65);
}

.ts-account-order-detail .wc-item-meta p {
    margin: 0;
}

/* Table footer totals */
.ts-account-order-detail table.shop_table tfoot th,
.ts-account-order-detail table.shop_table tfoot td {
    padding: 16px 20px;
    border: 0;
    border-top: 1px solid #eeeeee;
    font-size: 16px;
    line-height: 1.5;
    background: #fff;
}

.ts-account-order-detail table.shop_table tfoot th {
    font-weight: 400;
    color: rgba(23, 23, 23, 0.6);
    text-align: left;
}

.ts-account-order-detail table.shop_table tfoot td {
    text-align: right;
    font-weight: 500;
    color: #171717;
}

.ts-account-order-detail table.shop_table tfoot tr:last-child th,
.ts-account-order-detail table.shop_table tfoot tr:last-child td {
    background: #f5f5f5;
    font-family: "CriteriaCF", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #171717;
}

/* Price */
.ts-account-order-detail .woocommerce-Price-amount {
    font-weight: 500;
    color: #171717;
}

.ts-account-order-detail .woocommerce-Price-currencySymbol {
    margin-left: 2px;
}

/* Customer detail card */
.ts-account-order-detail .woocommerce-customer-details address {
    display: block;
    margin: 0;
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #f8f8f8;
    font-style: normal;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(23, 23, 23, 0.75);
}

.ts-account-order-detail .woocommerce-customer-details--phone,
.ts-account-order-detail .woocommerce-customer-details--email {
    margin: 10px 0 0;
    color: #171717;
    font-weight: 500;
}

.ts-account-order-detail .woocommerce-customer-details--phone::before {
    content: "SĐT: ";
    color: rgba(23, 23, 23, 0.5);
    font-weight: 400;
}

.ts-account-order-detail .woocommerce-customer-details--email::before {
    content: "Email: ";
    color: rgba(23, 23, 23, 0.5);
    font-weight: 400;
}

/* Nếu WooCommerce in thêm text bên ngoài address */
.ts-account-order-detail .woocommerce-customer-details {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(23, 23, 23, 0.75);
}

/* Responsive */
@media (max-width: 991px) {
    .ts-account-order-detail .woocommerce-order-details__title,
    .ts-account-order-detail .woocommerce-column__title {
        font-size: 24px;
        line-height: 1.35;
        margin-bottom: 16px;
    }

    .ts-account-order-detail table.shop_table,
    .ts-account-order-detail table.shop_table thead,
    .ts-account-order-detail table.shop_table tbody,
    .ts-account-order-detail table.shop_table tfoot,
    .ts-account-order-detail table.shop_table tr,
    .ts-account-order-detail table.shop_table th,
    .ts-account-order-detail table.shop_table td {
        display: block;
        width: 100%;
    }

    .ts-account-order-detail table.shop_table thead {
        display: none;
    }

    .ts-account-order-detail table.shop_table tbody tr {
        padding: 18px 0;
        border-bottom: 1px solid #eeeeee;
    }

    .ts-account-order-detail table.shop_table tbody tr:last-child {
        border-bottom: 0;
    }

    .ts-account-order-detail table.shop_table tbody td {
        padding: 4px 16px;
        border-bottom: 0;
    }

    .ts-account-order-detail table.shop_table td.product-total {
        margin-top: 8px;
        text-align: left;
        font-size: 16px;
    }

    .ts-account-order-detail table.shop_table td.product-total::before {
        content: "Tổng: ";
        color: rgba(23, 23, 23, 0.5);
        font-weight: 400;
    }

    .ts-account-order-detail table.shop_table tfoot tr {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 14px 16px;
        border-top: 1px solid #eeeeee;
    }

    .ts-account-order-detail table.shop_table tfoot th,
    .ts-account-order-detail table.shop_table tfoot td {
        width: auto;
        padding: 0;
        border: 0;
        background: transparent;
        font-size: 15px;
    }

    .ts-account-order-detail table.shop_table tfoot td {
        text-align: right;
    }

    .ts-account-order-detail table.shop_table tfoot tr:last-child {
        margin-top: 8px;
        border-radius: 12px;
        background: #f5f5f5;
    }

    .ts-account-order-detail .woocommerce-customer-details address {
        padding: 18px;
        font-size: 15px;
    }
}

/* =====================================================
   Account Edit Address - theo đúng HTML WooCommerce của bạn
===================================================== */

.woocommerce-account .woocommerce-MyAccount-content .ts-address-edit-form {
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
    font-family: inherit;
}

/* Tiêu đề trang */
.woocommerce-account .woocommerce-MyAccount-content > h1,
.woocommerce-account .woocommerce-MyAccount-content > h2,
.woocommerce-account .woocommerce-MyAccount-content .ts-address-title {
    margin: 0 0 26px !important;
    text-align: center;
    color: #000;
    font-family: "CriteriaCF", sans-serif;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.25;
}

/* Grid chính đúng theo div.grid trong HTML */
.ts-address-edit-form > .grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
}

/* Reset div bọc field */
.ts-address-edit-form > .grid > div {
    grid-column: span 2 / span 2;
    min-width: 0;
}

/* Sắp xếp lại đúng layout mẫu */
.ts-address-edit-form > .grid > div:has(#billing_last_name_field) {
    order: 1;
    grid-column: span 1 / span 1;
}

.ts-address-edit-form > .grid > div:has(#billing_phone_field) {
    order: 2;
    grid-column: span 1 / span 1;
}

.ts-address-edit-form > .grid > div:has(#billing_address_1_field) {
    order: 3;
    grid-column: span 2 / span 2;
}

.ts-address-edit-form > .grid > div:has(#billing_state_field) {
    order: 4;
    grid-column: span 2 / span 2;
}

.ts-address-edit-form > .grid > div:has(#billing_city_field) {
    order: 5;
    grid-column: span 2 / span 2;
}

/* Ẩn các field không nằm trong mẫu */
.ts-address-edit-form > .grid > div:has(#billing_company_field),
.ts-address-edit-form > .grid > div:has(#billing_country_field),
.ts-address-edit-form > .grid > div:has(#billing_email_field) {
    display: none !important;
}

/* Reset p.form-row */
.ts-address-edit-form .form-row {
    position: relative;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* Label floating giống mẫu */
.ts-address-edit-form .form-row label {
    position: absolute;
    top: -6px;
    left: 18px;
    z-index: 5;
    display: inline-flex;
    width: auto;
    max-width: calc(100% - 36px);
    margin: 0 !important;
    padding: 0 6px;
    background: #fff;
    color: #7a7a7a;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    pointer-events: none;
}

/* Ẩn dấu * cho giống mẫu */
.ts-address-edit-form .form-row label .required,
.ts-address-edit-form .form-row label abbr.required,
.ts-address-edit-form .form-row label .optional {
    display: none !important;
}

/* Wrapper */
.ts-address-edit-form .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

/* Input */
.ts-address-edit-form input.input-text,
.ts-address-edit-form input[type="text"],
.ts-address-edit-form input[type="tel"],
.ts-address-edit-form input[type="email"],
.ts-address-edit-form select {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: 999px !important;
    background: #fff !important;
    padding: 0 22px !important;
    color: #111 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 40px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease;
}

.ts-address-edit-form input.input-text:hover,
.ts-address-edit-form input[type="text"]:hover,
.ts-address-edit-form input[type="tel"]:hover,
.ts-address-edit-form input[type="email"]:hover,
.ts-address-edit-form select:hover {
    border-color: #111 !important;
}

.ts-address-edit-form input.input-text:focus,
.ts-address-edit-form input[type="text"]:focus,
.ts-address-edit-form input[type="tel"]:focus,
.ts-address-edit-form input[type="email"]:focus,
.ts-address-edit-form select:focus {
    border-color: #111 !important;
}

.ts-address-edit-form input::placeholder {
    color: #cfcfcf !important;
    opacity: 1;
}

/* Select2 đúng theo HTML của bạn */
.ts-address-edit-form .select2-container {
    width: 100% !important;
}

.ts-address-edit-form .select2-container--default .select2-selection--single {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: 999px !important;
    background: #fff !important;
    padding: 0 42px 0 22px !important;
    outline: none !important;
    box-shadow: none !important;
}

.ts-address-edit-form .select2-container--default .select2-selection--single:hover,
.ts-address-edit-form .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #111 !important;
}

.ts-address-edit-form .select2-selection__rendered {
    height: 38px !important;
    padding: 0 !important;
    color: #111 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 38px !important;
}

.ts-address-edit-form .select2-selection__placeholder {
    color: #cfcfcf !important;
}

.ts-address-edit-form .select2-selection__arrow {
    top: 50% !important;
    right: 16px !important;
    width: 18px !important;
    height: 18px !important;
    transform: translateY(-50%);
}

/* Dropdown select2 */
.select2-container--default .select2-dropdown {
    overflow: hidden;
    border: 1px solid #ddd !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.select2-container--default .select2-results__option {
    padding: 10px 16px !important;
    font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #000 !important;
    color: #fff !important;
}

/* Button lưu */
.ts-address-edit-form button[name="save_address"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: calc(50% - 8px);
    height: 38px !important;
    min-height: 38px !important;
    margin-top: 18px !important;
    margin-left: auto;
    border: 1px solid #000 !important;
    border-radius: 999px !important;
    background: #000 !important;
    color: #fff !important;
    font-family: "CriteriaCF", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: uppercase;
    box-shadow: none !important;
    cursor: pointer;
}

.ts-address-edit-form button[name="save_address"]:hover {
    background: #222 !important;
    color: #fff !important;
}

/* Nếu có action wrapper */
.ts-address-edit-form .ts-address-actions {
    display: flex;
    grid-column: span 2 / span 2;
    gap: 16px;
    margin-top: 18px;
}

.ts-address-edit-form .ts-address-actions button[name="save_address"] {
    width: 50%;
    margin-top: 0 !important;
}

.ts-address-edit-form .ts-address-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 38px;
    border: 1px solid #000;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-family: "CriteriaCF", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

/* Woo hidden */
.ts-address-edit-form input[type="hidden"] {
    display: none !important;
}

/* Error Woo */
.ts-address-edit-form .woocommerce-invalid input,
.ts-address-edit-form .woocommerce-invalid select,
.ts-address-edit-form .woocommerce-invalid .select2-selection {
    border-color: #ef4444 !important;
}

/* Mobile */
@media (max-width: 640px) {
    .woocommerce-account .woocommerce-MyAccount-content .ts-address-edit-form {
        max-width: 100%;
    }

    .ts-address-edit-form > .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px 10px !important;
    }

    .ts-address-edit-form > .grid > div:has(#billing_last_name_field),
    .ts-address-edit-form > .grid > div:has(#billing_phone_field) {
        grid-column: span 1 / span 1;
    }

    .ts-address-edit-form input.input-text,
    .ts-address-edit-form input[type="text"],
    .ts-address-edit-form input[type="tel"],
    .ts-address-edit-form input[type="email"],
    .ts-address-edit-form select,
    .ts-address-edit-form .select2-container--default .select2-selection--single {
        height: 40px !important;
        min-height: 40px !important;
        font-size: 14px !important;
    }
}

.ts-owl-nav.hidden {
    display: none !important;
}

.ts-owl-nav .owl-nav {
    margin: 0;
}

.ts-owl-nav .owl-prev,
.ts-owl-nav .owl-next {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background: #171717 !important;
    color: #fff !important;
    transform: translateY(-100%);
    transition: all 0.2s ease;
}

.ts-owl-nav .owl-prev {
    left: -16px;
}

.ts-owl-nav .owl-next {
    right: -16px;
}

@media (min-width: 1024px) {
    .ts-owl-nav .owl-prev {
        left: -40px;
    }

    .ts-owl-nav .owl-next {
        right: -40px;
    }
}

.ts-owl-nav .owl-prev:hover,
.ts-owl-nav .owl-next:hover {
    background: #262626 !important;
}

.ts-owl-nav .owl-prev.disabled,
.ts-owl-nav .owl-next.disabled,
.ts-owl-nav .owl-prev:disabled,
.ts-owl-nav .owl-next:disabled {
    opacity: 0.35;
    pointer-events: none;
}

.ts-owl-nav svg {
    width: 16px;
    height: 16px;
}

.ts-wc-carousel .owl-stage,
.ts-product-category-owl .owl-stage {
    display: flex;
}

.ts-wc-carousel .owl-item,
.ts-product-category-owl .owl-item {
    min-width: 0;
}

.ts-wc-carousel .product,
.ts-product-category-owl .product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    list-style: none !important;
}

.ts-hero-banner-nav.hidden {
    display: none !important;
}

.ts-hero-banner-nav .owl-nav {
    margin: 0;
}

.ts-hero-banner-nav .owl-prev,
.ts-hero-banner-nav .owl-next {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 40px;
    height: 40px;
    border: none !important;
    border-radius: 9999px;
    background: transparent !important;
    color: #171717 !important;
    transform: translateY(-50%);
    filter: invert(1);
    transition: all 0.2s ease;
}

.ts-hero-banner-nav .owl-prev {
    left: 4px;
}

.ts-hero-banner-nav .owl-next {
    right: 4px;
}

.ts-hero-banner-nav .owl-prev:hover,
.ts-hero-banner-nav .owl-next:hover {
    background: #171717 !important;
    color: #fff !important;
}

.ts-hero-banner-nav .owl-prev.disabled,
.ts-hero-banner-nav .owl-next.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.ts-hero-banner-nav svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 1023px) {
    .ts-hero-banner-nav {
        display: none !important;
    }
}

.ts-hero-banner-owl .owl-stage {
    display: flex;
}

.ts-hero-banner-owl .owl-item {
    min-width: 0;
}

.ts-hero-banner-owl picture,
.ts-hero-banner-owl img {
    display: block;
}

.ts-topbar-item {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: inherit;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.ts-topbar-item.is-active {
    transform: translateY(0%);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ts-topbar-item.is-leaving {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .ts-topbar-item {
        white-space: nowrap;
        font-size: 14px;
        line-height: 18px;
    }
}

@media (max-width: 767px) {
    .ts-topbar-item {
        top: 0;
    }
}

.w-\[356px\] {
    width: 356px;
}

/* Fix header khi đăng nhập admin WordPress */
body.admin-bar header.js-site-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar header.js-site-header {
        top: 46px !important;
    }
}

.p68-voucher-item {
    position: relative;
}

.p68-voucher-popper {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    z-index: 50;
    display: none;
    min-width: max-content;
    max-width: min(420px, calc(100vw - 32px));
    transform: translateX(-50%);
}

.p68-voucher-item:hover .p68-voucher-popper,
.p68-voucher-item:focus-within .p68-voucher-popper {
    display: block;
}

.p68-voucher-popper .tooltip-content {
    position: relative;
    overflow: visible;
    border-radius: 6px;
    background: #fff;
    padding: 6px 12px;
    color: #171717;
    box-shadow:
        0 1px 4px 0 hsla(0, 0%, 0%, .08),
        0 0 24px 0 hsla(0, 0%, 0%, .06);
}

.p68-voucher-popper p {
    margin: 0;
}

.p68-voucher-arrow {
    position: absolute;
    top: -5px;
    left: 50%;
    display: block;
    width: 10px;
    height: 5px;
    transform: translateX(-50%) rotate(180deg);
}

.p68-voucher-arrow svg {
    display: block;
    fill: #fff;
    filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, .05));
}

.ts-category-tabs .overflow-x-auto {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ts-category-tabs .overflow-x-auto::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
