/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.single-product .ppc-button-wrapper {
    display: none !important;
    pointer-events: none !important;
}

.woocommerce-table__line-item.order_item .wc-item-meta>li {
    display: flex;
    align-items: center;
    gap: 5px;
}

.amlab-top-rating {
    display: flex;
    gap: 5px;
    align-items: center;
}

#customer_login.row-divided>.col+.col:not(.large-12) {
    border-left: none !important;
}

h1.term-title {
    text-align: center;
    font-size: 46px;
    font-weight: bold;
}

.mb-0,
.mb-0>* {
    margin-bottom: 0 !important;
}

.return-to-shop .button.wc-backward {
    border-radius: 8px !important;
}

.shop-container .woocommerce-pagination .page-numbers.nav-pagination li a.prev.page-number i.icon-angle-left::before {
    content: "« Previous" !important;
    font-family: "Nunito" !important;
}

.shop-container .woocommerce-pagination .page-numbers.nav-pagination li a.next.page-number i.icon-angle-right::before {
    content: "Next »" !important;
    font-family: "Nunito" !important;
}

.shop-container .woocommerce-pagination .page-numbers.nav-pagination>li>span.page-number.current {
    font-size: 18px !important;
    background-color: transparent !important;
    color: #000 !important;
    text-decoration: underline;
    text-underline-offset: 5px;
    font-weight: 400;
    border: none !important;
}

.shop-container .woocommerce-pagination .page-numbers.nav-pagination>li>a {
    font-weight: 400;
    border: none !important;
    font-size: 18px !important;
}

.shop-container .woocommerce-pagination .page-numbers.nav-pagination>li>a:hover {
    background-color: transparent !important;
    color: #000 !important;
}

.dn_col_about_us {
    background-color: #ecf1f2;
    color: #333;
    border-radius: 20px;
    padding: 60px;
}

.dn_col_about_us>.col-inner {
    max-width: 860px !important;
    margin: 0 auto !important;
}

.product-small.box .box-image {
    border-radius: 20px;
}

.product-small.box .box-text {
    padding: 10px 0 20px !important;
}

.product-small.box .box-text .title-wrapper .product-title {
    height: fit-content !important;
}

.product-small.box .box-text .title-wrapper .product-title>a {
    font-size: 18px;
    color: #000 !important;
}

.product-small.box .box-text .title-wrapper .product-title>a:hover {
    color: #1c5352 !important;
}

.product-small.box .box-text .price-wrapper {
    margin: 20px 0 !important;
}

.product-small.box .box-text .price-wrapper .price {
    font-size: 18px;
    color: #000 !important;
}

.product-small.box .box-text .price-wrapper .price .amount {
    color: #000 !important;
    font-size: 22.5px;
    font-weight: 400 !important;
}

.btn_shopnow_simple>span {
    text-decoration: underline;
    color: #47c1bf;
    transition: color .15s;
    font-weight: 400;
}

.btn_shopnow_simple>span:hover {
    color: #1c5352;
}

.row_center {
    margin: 0 auto !important;
}

.title_img_menu>p {
    margin: .5em 0 .25em;
    font-size: 17px;
    color: #000;
    font-weight: 700;
}

.dn_mega_menu .ux-menu-title {
    margin: 0 0 .25em;
    font-size: 17px;
    color: #000;
    font-weight: 700;
    text-transform: none !important;
    line-height: 1;
    min-height: 0;
}

.dn_mega_menu .ux-menu-link .ux-menu-link__link {
    margin: .25em 0;
    color: #000000b3;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    min-height: 0;
}

.dn_mega_menu .ux-menu-link .ux-menu-link__link:hover {
    color: #000;
}

#header .header-nav.header-nav-main .account-item .icon-user::before {
    content: "";
    background-image: url(./assets/images/icon_account.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    display: block;
    position: relative;
}

#masthead {
    height: fit-content !important;
}

#masthead>.header-inner {
    padding: 15px !important;
}

#header .announcement-bar {
    display: block;
    padding: 8px 0;
    font-size: 16px;
}

#wide-nav>.flex-row.container {
    padding-top: 12px;
}

#wide-nav .nav>li.menu-item {
    margin: 0 !important;
}

#wide-nav .nav>li.menu-item>.nav-top-link {
    font-size: 17px;
    color: #000000 !important;
    padding: 0 15px 12px;
}

#wide-nav .nav>li.menu-item>.nav-top-link::before {
    background-color: #000000 !important;
}

.absolute-footer {
    display: none !important;
}

.payment-icons {
    margin: 0 !important;
}

.payment-icons .payment-icon {
    padding: 0 !important;
    opacity: 1 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
}

.payment-icon-svg {
    width: 38px !important;
    height: 24px !important;
}

.absolute_footer_text>* {
    font-size: 13.5px;
}

.text_logo_footer>h6 {
    font-size: 28px;
    font-weight: bolder;
    opacity: 1 !important;
    text-transform: none !important;
    line-height: 1.2em;
    margin: 30px 0 15px;
}

.email_footer>p {
    font-size: 18px;
}

.email_footer a {
    text-decoration: underline;
    color: #47c1bf;
    transition: color .15s;
}

.email_footer a:hover {
    color: #1c5352;
}

.footer_desc>* {
    font-size: 18px;
    color: white !important;
}

.dn_menu_footer .ux-menu-title {
    margin: 0 0 15px;
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    text-transform: none;
}

.dn_menu_footer .ux-menu-link__link {
    color: #fffc;
    font-size: 18px;
    font-weight: 400;
    display: flex;
    align-items: center;
    min-height: unset;
}

.img_br_20 {
    border-radius: 20px;
    overflow: hidden;
}

.img_br_left_20 {
    border-radius: 20px 0 0 20px;
    overflow: hidden;
}

.img_br_right_20 {
    border-radius: 0 20px 20px 0;
    overflow: hidden;
}

.bg_gradient_home::after {
    position: absolute;
    content: "";
    width: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, #c4ecec, #fff 98%);
    min-height: 277px;
}

.dn_title_xlarge,
.dn_title_xlarge>* {
    font-size: 57px;
    line-height: normal;
    font-weight: 700;
    color: #333;
}

.dn_title_large,
.dn_title_large>* {
    font-size: 46px;
    font-weight: 700;
    color: #333;
    line-height: normal;
}

.dn_title_medium,
.dn_title_medium>* {
    font-size: 18px;
    line-height: normal;
    font-weight: normal;
}

.dn_title_small,
.dn_title_small>* {
    font-size: 16px;
    line-height: normal;
    font-weight: normal;
}

.dn_prd_cat .box-text .header-title {
    font-size: 18px !important;
    text-transform: none !important;
    color: black !important;
}

.dn_prd_cat .box-image {
    border-radius: 20px !important;
}

.dn_important_text {
    max-width: 70% !important;
    margin: 0 auto !important;
}

.dn_important_text>* {
    font-size: 18px;
}

.icb_hiw .icb_hiw_text h3 {
    font-size: 33px !important;
    font-weight: 800;
    font-style: normal;
    line-height: 1.2em;
    letter-spacing: 0em;
    text-transform: none;
    word-break: break-word;
    color: #000000;
}

.icb_hiw .icb_hiw_text p {
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5em;
    letter-spacing: 0em;
    text-transform: none;
    word-break: break-word;
    color: #000000;
}


.amlab_cf7_float {
    position: relative;
    display: block;
    margin-bottom: 20px;
}

.amlab_cf7_float input,
.amlab_cf7_float textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 26px 15px 10px;
    font-size: 16px;
    color: #333;
    box-shadow: none !important;
    background-color: transparent;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 0;
}

.amlab_cf7_float input {
    height: 60px;
}

.amlab_cf7_float input:focus,
.amlab_cf7_float textarea:focus {
    border-color: #999;
}

.amlab_cf7_float textarea {
    min-height: 150px;
    resize: vertical;
}

.amlab_cf7_float .amlab_cf7_label {
    position: absolute;
    top: 30px;
    left: 17px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #777;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
}

.amlab_cf7_float br {
    display: none;
}

.amlab_cf7_float:has(textarea) .amlab_cf7_label {
    top: 30px;
    transform: translateY(-50%);
}

.amlab_cf7_float:has(input:focus) .amlab_cf7_label,
.amlab_cf7_float:has(input:not(:placeholder-shown)) .amlab_cf7_label,
.amlab_cf7_float:has(textarea:focus) .amlab_cf7_label,
.amlab_cf7_float:has(textarea:not(:placeholder-shown)) .amlab_cf7_label {
    top: 10px;
    transform: none;
    font-size: 12px;
    color: #777;
}

.wpcf7-submit.amlab_cf7_submit {
    width: 100%;
    background-color: #48784d;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 5px;
    height: 60px;
}

.wpcf7-submit.amlab_cf7_submit:hover {
    background-color: #3c6340;
}

.header-nav.header-nav-main .header-search-form .searchform-wrapper .searchform>.flex-row {
    flex-direction: row-reverse;
}

.searchform-wrapper.form-flat .flex-col:last-of-type {
    margin-left: 0 !important;
}

#woocommerce-product-search-field-0 {
    border: none;
    outline: none;
    box-shadow: none;
    background-color: transparent;
    font-size: 18px;
    color: #000;
    margin: 0;
    padding: 10px 15px;
    width: 100%;
    border: 0;
    border-radius: 0;
}

#woocommerce-product-search-field-0::placeholder {
    color: #000;
}


body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    z-index: -1;
    pointer-events: none;
    transition: background-color 0.3s ease, z-index 0s 0.3s;
}

body:has(#woocommerce-product-search-field-0:focus)::after {
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1110;
    pointer-events: auto;
    transition: background-color 0.3s ease, z-index 0s;
}

body:has(#woocommerce-product-search-field-0:focus) #header,
body:has(#woocommerce-product-search-field-0:focus) #masthead {
    position: relative;
    z-index: 1111 !important;
}

body:has(#woocommerce-product-search-field-0:focus) .live-search-results {
    z-index: 1112;
    pointer-events: auto;
    background-color: white !important;
}

body:has(#woocommerce-product-search-field-0:focus) .live-search-results .autocomplete-suggestions {
    pointer-events: auto;
}



.amlab-main-image-wrap {
    width: 100%;
    display: block;
}


#amlab-main-product-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
    border-radius: 20px !important;
    overflow: hidden;
}


.amlab-product-gallery-wrap .flex-control-thumbs {
    display: none !important;
}


.amlab-thumbnail-row-wrap {
    margin-top: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}


.amlab-thumbnail-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    justify-content: space-between;
}


.amlab-thumbnail-row::-webkit-scrollbar {
    display: none;
}


.amlab-thumbnail-item {
    flex: 0 0 auto;
    width: calc(20% - 8px);
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}


.amlab-thumbnail-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: opacity 0.2s ease;
}


.amlab-thumbnail-item:hover img {
    opacity: 0.85;
}


.amlab-thumbnail-item.is-active {
    box-shadow: 0px 3px 0 0px #000000;
}

.single-product .product-main>.row.content-row {
    margin: 0 auto;
    max-width: 1100px !important;
}

.single-product .product-gallery {
    flex-basis: 56% !important;
    max-width: 56% !important;
}

.single-product .product-info.summary {
    padding-left: 60px !important;
    max-width: 580px !important;
}

.single-product .product-info.summary .ux-quantity.quantity.form-minimal>input.button {
    border-radius: 8px;
}

.single-product .product-info.summary .single_add_to_cart_button {
    border-radius: 8px !important;
    background-color: #38a867;
    flex: 1;
}

.woocommerce-product-rating .star-rating span:before {
    color: #ffb04f !important;
}

.cart-item.current-dropdown::before {
    border: none !important;
}

.cart-item .nav-dropdown {
    border-radius: 10px;
    border: none !important;
}

ul.product_list_widget li a:not(.remove) {
    color: #000 !important;
}

ul.product_list_widget li a:not(.remove) img {
    border-radius: 8px;
}

.widget_shopping_cart .woocommerce-mini-cart__buttons .button {
    border-radius: 8px !important;
    text-transform: none !important;
}

.widget_shopping_cart .woocommerce-mini-cart__buttons .button.checkout {
    background-color: #000 !important;
}

.woocommerce-cart-form__cart-item.cart_item .product-thumbnail img {
    border-radius: 8px !important;
}

.woocommerce-cart-form__cart-item.cart_item .product-name a {
    color: #000 !important;
}

.woocommerce-cart-form__cart-item.cart_item .product-quantity .ux-quantity input.button {
    border-radius: 8px;
}

.wc-proceed-to-checkout a.checkout-button {
    border-radius: 8px !important;
    text-transform: none !important;
    background-color: #3c6340 !important;
}

.ux-cart-coupon button[name="apply_coupon"],
.ux-cart-coupon input[name="coupon_code"] {
    border-radius: 8px !important;
}

#customer_details input,
#customer_details select#billing_country,
#customer_details select#billing_state,
#customer_details select#shipping_country,
#customer_details select#shipping_state,
#customer_details textarea {
    border-radius: 8px !important;
    box-shadow: none !important;
}

button#place_order {
    border-radius: 8px !important;
    text-transform: none !important;
    background-color: #3c6340 !important;
}

form.woocommerce-checkout .row>.large-5.col .col-inner {
    border-radius: 8px !important;
}

.continue-shopping .button-continue-shopping {
    border-radius: 8px !important;
    text-transform: none !important;
}

.single-product .product-info.summary .woocommerce-breadcrumb {
    display: none !important;
}

.single-product .product-info.summary h1.product-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.2em !important;
    word-break: break-word !important;
    letter-spacing: 0em !important;
    color: #000 !important;
}

.single-product .product-info.summary .price-wrapper .product-page-price,
.single-product .product-info.summary .price-wrapper .product-page-price span.amount,
.single-product .product-info.summary .price-wrapper .product-page-price span.amount .woocommerce-Price-currencySymbol {
    font-size: 46px;
    color: green;
}

.single-product .product-info.summary .price-wrapper .product-page-price del,
.single-product .product-info.summary .price-wrapper .product-page-price del span,
.single-product .product-info.summary .price-wrapper .product-page-price del span.amount {
    font-size: 32px !important;
    color: #333 !important;
    vertical-align: baseline;
}

.single-product .single_variation_wrap .woocommerce-variation-price {
    display: none !important;
}

/* Float Label cho Chọn biến thể sản phẩm */
table.variations {
    border: none;
}

table.variations .amlab-variation-row {
    display: block;
    margin-bottom: 0px;
}

.amlab-float-select-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.amlab-float-select-wrap .amlab-float-label {
    position: absolute;
    top: 8px;
    left: 17px;
    font-size: 12px;
    text-transform: uppercase;
    color: #777;
    pointer-events: none;
    z-index: 10;
    margin: 0;
    line-height: 1;
}

.amlab-float-select-wrap select {
    width: 100%;
    min-height: 60px;
    padding: 24px 35px 8px 15px;
    border-radius: 15px;
    border: 1px solid #ccc;
    font-size: 16px;
    color: #000;
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none;
    cursor: pointer;
    margin-bottom: 0;
}

.amlab-float-select-wrap select:focus {
    border-color: #999;
}

.amlab-float-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 17px;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: 9;
}

.amlab-reset-btn {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    text-decoration: underline;
    color: #2b593a;
}

/* Các trường do người dùng nhập thêm (Name, Date, Personalization) */
.amlab-custom-fields-container {
    margin: 0;
    width: 100%;
}

.amlab-custom-fields-container .amlab-field-row {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Đưa nhãn lên phía trên */
}

.amlab-custom-fields-container .amlab-field-row label {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: none;
    /* Khớp với hình ảnh mẫu */
}

.amlab-custom-fields-container .amlab-field-row input[type="text"],
.amlab-custom-fields-container .amlab-field-row input[type="date"],
.amlab-custom-fields-container .amlab-field-row textarea {
    width: 100%;
    border: 1px solid #777;
    border-radius: 8px;
    /* Bo góc như hình ảnh */
    padding: 10px 15px;
    font-size: 16px;
    color: #333;
    background-color: transparent;
    box-shadow: none !important;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    margin-bottom: 0;
}

.amlab-custom-fields-container .amlab-field-row input[type="text"]::placeholder,
.amlab-custom-fields-container .amlab-field-row input[type="date"]::placeholder,
.amlab-custom-fields-container .amlab-field-row textarea::placeholder {
    color: #999;
}

.amlab-custom-fields-container .amlab-field-row input[type="text"]:focus,
.amlab-custom-fields-container .amlab-field-row input[type="date"]:focus,
.amlab-custom-fields-container .amlab-field-row textarea:focus {
    border-color: #333;
}

.amlab-custom-fields-container .amlab-field-row input[type="text"],
.amlab-custom-fields-container .amlab-field-row input[type="date"] {
    min-height: 48px;
}

.amlab-custom-fields-container .amlab-field-row textarea {
    min-height: 100px;
    resize: vertical;
}

.row_reel_slider .col {
    flex-basis: 17% !important;
    max-width: 17% !important;
    padding: 0 5px !important;
    border-radius: 15px !important;
    overflow: hidden !important;
}

/* --- Amlab Reels Custom Styles --- */
.amlab-reels-container {
    margin: 20px 0;
    width: 100%;
}

.amlab-reels-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 10px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.amlab-reels-scroll::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.amlab-reel-item {
    position: relative;
    flex: 0 0 auto;
    width: calc(100% / 6 - 12px);
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
}

.amlab-reel-video,
.amlab-reel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amlab-reel-play-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

/* Modal Styling */
.amlab-reel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.amlab-reel-modal.active {
    display: flex;
}

.amlab-reel-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.amlab-reel-modal-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 90vh;
    background: transparent;
    z-index: 100000;
}

.amlab-reel-modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.amlab-reel-modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 36px !important;
    height: 36px !important;
    background: transparent !important;
    color: white !important;
    border: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.amlab-reel-modal-actions {
    position: absolute;
    right: -20%;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
    transform: translateY(-50%);
    align-items: center;
}

.amlab-reel-modal-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin: 0 !important;
}

.amlab-reel-modal-btn svg {
    fill: #333;
}

.amlab-reel-unmute-btn {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: transparent;
    box-shadow: none;
    color: white;
}

.amlab-reel-unmute-btn svg {
    fill: white;
    width: 24px !important;
    height: 24px !important;
}

.amlab-unmute-label {
    font-size: 11px;
    margin-top: 2px;
    font-weight: 600;
}

.real_sgp_title>* {
    font-size: 46px;
    font-weight: 700;
    margin: 0 !important;
}

.real_sgp_title .alt-font {
    font-size: 72px;
    color: #008000;
}

.sgp_faqs .accordion-item:first-child .accordion-title {
    border-top: unset !important;
}

.sgp_faqs .accordion-item .accordion-title {
    font-size: 24px;
    padding-left: 0;
    color: #333 !important;
    font-weight: 400 !important;
    background-color: transparent !important;
}

.sgp_faqs .accordion-item .accordion-title button.toggle {
    left: unset;
    right: 0;
}

.sgp_faqs .accordion-item .accordion-inner {
    padding: 0;
    font-size: 18px;
}

.header-cart-icon[data-icon-label]:after {
    font-weight: 400 !important;
    background: #000 !important;
}

/* === Amlab Shop Filter Bar (Sort by + SIZE) === */

/* Wrapper ngoài cùng của filter bar */
.amlab-shop-filter-bar {
    padding: 20px 0 10px;
    background: #fff;
}

/* Row chứa các dropdown */
.amlab-filter-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Sort by đẩy sang phải */
.amlab-sortby-dropdown {
    margin-left: auto;
}

/* === Active Filters Row (Clear all + filter tags) === */

/* Row chứa "Clear all" và các filter tag */
.amlab-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0 4px;
}

/* Nút "Clear all" */
.amlab-clear-all-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.amlab-clear-all-btn:hover {
    border-color: #999;
    background: #f5f5f5;
    color: #111;
}

/* Mỗi filter tag (ví dụ: "4 INCHES ×") */
.amlab-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #f0f0f0;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.amlab-filter-tag:hover {
    border-color: #999;
    background: #e5e5e5;
    color: #111;
}

/* Dấu × xóa filter */
.amlab-filter-tag-remove {
    font-size: 16px;
    line-height: 1;
    color: #555;
}

/* === Dropdown wrapper chung === */
.amlab-filter-dropdown {
    position: relative;
    display: inline-block;
}

/* Button kích hoạt dropdown */
.amlab-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    padding: 10px 16px;
    min-width: 150px;
    min-height: 60px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
    transition: border-color 0.2s ease;
    line-height: 1;
    flex-wrap: wrap;
    justify-content: space-between;
}

.amlab-filter-btn:hover {
    border-color: #999;
}

/* Trạng thái active (đang có filter được chọn) */
.amlab-filter-btn.is-active {
    border-color: #111;
    font-weight: 700;
}

/* Icon mũi tên trong button */
.amlab-filter-btn-icon {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

/* Xoay mũi tên khi mở */
.amlab-filter-dropdown.is-open .amlab-filter-btn-icon {
    transform: rotate(180deg);
}

/* === Panel dropdown === */
.amlab-filter-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    display: none;
    overflow: hidden;
}

/* Panel của Sort by: align phải */
.amlab-sortby-panel {
    left: auto;
    right: 0;
    min-width: 200px;
}

/* Hiện panel khi is-open */
.amlab-filter-dropdown.is-open .amlab-filter-panel {
    display: block;
}

/* === Panel SIZE: header (tổng kết quả) === */
.amlab-filter-panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
}

.amlab-filter-result-count {
    font-size: 14px;
    color: #555;
    font-weight: 400;
}

/* === Panel SIZE: body (danh sách checkbox) === */
.amlab-filter-panel-body {
    max-height: 220px;
    overflow-y: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.amlab-filter-panel-body::-webkit-scrollbar {
    width: 5px;
}

.amlab-filter-panel-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Mỗi option SIZE */
.amlab-size-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #222;
    transition: background 0.15s ease;
    margin: 0;
    font-weight: 400;
    min-width: 250px;
}

.amlab-size-option:hover {
    background: #f5f5f5;
}

/* Ẩn checkbox mặc định, tự render ô vuông */
.amlab-size-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #bbb;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    margin: 0 !important;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.amlab-size-checkbox:checked {
    background: #111;
    border-color: #111;
}

.amlab-size-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Tên size */
.amlab-size-name {
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Số đếm sản phẩm */
.amlab-size-count {
    color: #888;
    font-size: 13px;
    min-width: 24px;
    text-align: right;
}

/* === Sort by button: prefix nhỏ + value lớn hơn === */
.amlab-sortby-btn {
    gap: 4px;
}

.amlab-sortby-label-prefix {
    font-size: 13px;
    color: #888;
    font-weight: 400;
    flex: 100%;
    text-align: left;
}

.amlab-sortby-label-value {
    font-size: 15px;
    font-weight: 500;
    color: #111;
}

/* Mỗi option Sort by */
.amlab-sortby-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #222;
    transition: background 0.15s ease;
    margin: 0;
    font-weight: 400;
}

.amlab-sortby-option:hover {
    background: #f5f5f5;
}

.amlab-sortby-option.is-selected {
    font-weight: 600;
}

/* Ẩn radio mặc định, tự vẽ dot tròn */
.amlab-sortby-radio {
    margin: 0 !important;

}

.amlab-sortby-radio-dot {
    width: 16px;
    height: 16px;
    border: 2px solid #bbb;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s ease;
}

.amlab-sortby-option.is-selected .amlab-sortby-radio-dot,
.amlab-sortby-radio:checked+.amlab-sortby-radio-dot {
    border-color: #111;
    background: #111;
    box-shadow: inset 0 0 0 3px #fff;
}

.amlab-sortby-name {
    flex: 1;
}

/* ======= Amlab Login & Register Form Styling ======= */
.amlab-login-container,
.amlab-register-container,
.amlab-reset-password-container {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Đổ bóng nhẹ cao cấp */
    border: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.amlab-reset-password-container {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.amlab-login-container h2,
.amlab-register-container h2,
.amlab-reset-password-container .woocommerce-ResetPassword>p:first-child {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #111;
    text-transform: none !important;
}

/* Các trường nhập liệu */
.amlab-login-container .woocommerce-form-row input.input-text,
.amlab-register-container .woocommerce-form-row input.input-text,
.amlab-reset-password-container .woocommerce-form-row input.input-text {
    border-radius: 12px;
    padding: 15px 20px;
    border: 1px solid #ccc;
    font-size: 16px;
    min-height: 50px;
    box-shadow: none !important;
    background-color: transparent;
    transition: all 0.3s ease;
}

.amlab-login-container .woocommerce-form-row input.input-text:focus,
.amlab-register-container .woocommerce-form-row input.input-text:focus,
.amlab-reset-password-container .woocommerce-form-row input.input-text:focus {
    border-color: #333;
}

.amlab-reset-password-container .form-row-first,
.amlab-reset-password-container .form-row-last {
    width: 100% !important;
}

.amlab-reset-password-container form.lost_reset_password {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

.product-summary .woocommerce-Price-currencySymbol {
    vertical-align: baseline !important;
}

/* Nút Submit */
.amlab-login-container button[type="submit"],
.amlab-register-container button[type="submit"],
.amlab-reset-password-container button[type="submit"] {
    width: 100%;
    border-radius: 12px !important;
    font-size: 18px;
    padding: 15px;
    background-color: #3c6340 !important;
    color: #fff;
    font-weight: 600;
    text-transform: none !important;
    transition: background-color 0.3s ease;
    min-height: 55px;
}

.amlab-login-container button[type="submit"]:hover,
.amlab-register-container button[type="submit"]:hover,
.amlab-reset-password-container button[type="submit"]:hover {
    background-color: #2b593a !important;
}

/* Link quên mật khẩu */
.amlab-login-container .woocommerce-LostPassword a {
    color: #555;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.2s ease;
}

.amlab-login-container .woocommerce-LostPassword a:hover {
    color: #111;
}

/* Label mô tả */
.amlab-login-container .woocommerce-form-row label,
.amlab-register-container .woocommerce-form-row label,
.amlab-reset-password-container .woocommerce-form-row label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    text-transform: none !important;
}

/* Checkbox remember me */
.amlab-login-container .woocommerce-form-login__rememberme {
    font-weight: 400;
    font-size: 14px;
}


/* === Checkout: Note hướng dẫn gửi ảnh thay thế "Ship to a different address" === */
.amlab-checkout-doll-note {
    background-color: #f0f9f8;
    border-left: 4px solid #3c6340;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    margin-top: 24px;
}

.amlab-checkout-doll-note p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.amlab-checkout-doll-note a {
    color: #3c6340;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.15s;
}

.amlab-checkout-doll-note a:hover {
    color: #2b593a;
}

@media only screen and (max-width: 48em) {

    .cart-popup-inner--sticky {
        min-height: 100vh !important;
    }

    .amlab-filter-dropdown {
        width: 100% !important;
    }

    h1.term-title {
        font-size: 28px;
    }

    #masthead>.header-inner {
        padding: 15px !important;
    }

    .related-products-wrapper.product-section,
    div#reviews.woocommerce-Reviews {
        padding: 0 20px !important;
    }

    .related-products-wrapper.product-section .row .product-small.col {
        max-width: 75% !important;
    }

    .related-products-wrapper.product-section .flickity-prev-next-button {
        display: none !important;
    }

    .icb_hiw .icon-box-text {
        padding: 0 40px;
    }

    .amlab-reel-modal-actions {
        left: 0;
        right: 0;
        bottom: 10px;
        top: unset;
        flex-direction: row;
        justify-content: center;
    }

    .amlab-reel-modal-close {
        top: 7%;
    }

    .amlab-reel-modal-video {
        width: 90%;
        height: 90vh;
        margin: 10% auto 0;
    }

    .amlab-reel-item {
        width: calc(100% / 2 - 12px);
    }

    .amlab-reel-item:first-child {
        margin-left: 12px;
    }

    .amlab-reel-item:last-child {
        margin-right: 12px;
    }

    .real_sgp_title>* {
        line-height: 1 !important;
    }

    .single-product .product-gallery {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }

    .single-product .product-info.summary {
        flex-basis: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
    }

    .img_no_br_mobi {
        border-radius: 0 !important;
    }

    .single-product .product-footer .section {
        padding: 15px 0 !important;
    }

    .single-product .product-footer>.container {
        padding: 0 !important;
    }

    .column_no_br_mobile {
        padding: 0 !important;
    }

    .column_no_br_mobile>.col-inner {
        border-radius: 0 !important;
    }

    .dn_title_xlarge,
    .dn_title_xlarge>* {
        font-size: 46px;
    }

    .dn_title_large,
    .dn_title_large>* {
        font-size: 38px;
    }

    .dn_col_about_us {
        padding: 50px;
        border-radius: 0;
    }

    .row_about_us>.col {
        padding: 0 !important;
    }

    .row_about_us>.col>.col-inner {
        border-radius: 0 !important;
        padding: 30px !important;
    }

    .amlab-reel-modal-content {
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
    }

    /* Filter bar mobile: stack theo chiều dọc cột, sort by về đúng chỗ */
    .amlab-filter-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .amlab-filter-bar-inner::-webkit-scrollbar {
        display: none;
    }

    /* Sort by không push sang phải trên mobile, để tự nhiên theo flow */
    .amlab-sortby-dropdown {
        margin-left: 0 !important;
        flex-shrink: 100%;
    }

    .amlab-filter-btn {
        font-size: 14px;
        padding: 9px 12px;
        width: 100%;
        margin: 0 !important;
    }

    /* Panel size mở xuống trên mobile không bị tràn màn hình bên phải */
    .amlab-filter-panel {
        min-width: 100%;
    }

    /* Panel sort by căn phải để không tràn trái */
    .amlab-sortby-panel {
        min-width: 100%;
        right: 0;
        left: auto;
    }

    /* Thumbnail gallery trên mobile: scroll ngang thay vì xuống hàng */
    .amlab-thumbnail-row-wrap {
        overflow: visible;
    }

    .amlab-thumbnail-row {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Mỗi thumbnail cố định chiều rộng phù hợp mobile */
    .amlab-thumbnail-item {
        width: calc(25% - 6px);
        flex-shrink: 0;
    }

    .amlab-login-container,
    .amlab-register-container,
    .amlab-reset-password-container {
        padding: 25px;
        border-radius: 15px;
    }

    .header-wrapper.stuck #masthead {
        display: block !important;
    }
}