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

/*************** ADD CUSTOM CSS HERE.   ***************/
.product-gallery-slider img, .product-thumbnails img{
	border-radius: 10px;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
.wpg-fomo-popup-content {
    display: flex;
    align-items: center;
    padding: 15px;
    position: relative;
    zoom: 0.7;
}

}
.logged-in .g_id_signin {
    display: none !important;
}
a.nav-top-link.nav-top-not-logged-in.is-small {
    DISPLAY: NONE;
}
.g_id_signin {
    min-width: 227px;
}
ul.header-nav.header-nav-main.nav.nav-right {
    justify-content: flex-start;
}
ul.header-nav.header-nav-main.nav.nav-left {
    justify-content: flex-end;
}
.ux-maintenance-mode .overlay {
    background-color: #bca083;
}
a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    color: rgb(229, 231, 235);
    font-size: 16px;
    font-weight: 700;
}
.woocommerce-shop .price-wrapper{
	display: none;
}
.archive .box-text {
    padding-bottom: 0;
}
.category-page-row .col.large-2.hide-for-medium {
    background: #000;
    padding: 10px 15px;
    border-radius: 5px;
}
span.wcfa_color_item {
    border: 0.5px solid;
}
span.wcfa_color_item {
    height: 0;
    padding-top: 26px;
    max-width: 28px;
}
body.woocommerce .devvn_wcfa_widget_layered_nav ul li a:active::before, body.woocommerce .devvn_wcfa_widget_layered_nav ul li a:focus::before, body.woocommerce .devvn_wcfa_widget_layered_nav ul li a:hover::before, body.woocommerce .devvn_wcfa_widget_layered_nav ul li.chosen a::before {
    content: '\f00c';
    color: #fff;
    font-size: 12px;
    border-color: rgb(77 100 41);
    line-height: 15px;
    text-align: center;
    font-family: FontAwesome;
    background: rgb(77 100 41);
    opacity: 1;
}
body.woocommerce .devvn_wcfa_widget_layered_nav ul li.chosen a {
    color: #fff;
}
.box-image img {
    border-radius: 5px;
}
ul.product_list_widget.purchased li{
	padding: 0;
}
ul.product_list_widget.purchased li img {
    position: relative;
	width: 100%;
	height: 100%;
	border-radius: 5px;
	top: auto;
}
button#goto-page-button,input#goto-page-input {
    margin: 0;
}
button#goto-page-button {
    background: green;
}
.nav-pagination>li>a, .nav-pagination>li>span{
	border-radius: 5px;
	border: 1px solid rgb(75, 75, 75)
}
body.woocommerce .devvn_wcfa_widget_layered_nav ul li a::before {
    background: #fff;
}
body.woocommerce .devvn_wcfa_widget_layered_nav ul li a:active, body.woocommerce .devvn_wcfa_widget_layered_nav ul li a:focus, body.woocommerce .devvn_wcfa_widget_layered_nav ul li a:hover {
    color: #bfffc5;
    opacity: 1;
}
.archive .price-wrapper {
    /*display: none;*/
}
div#shop-sidebar * {
    color: #fff;
}
div#shop-sidebar {
    background: #000;
    color: #fff;
}
.mfp-content{
	background: #000 !important;
}/*
 * CSS cho Bảng thuộc tính sản phẩm - Cập nhật ngày 05-09-2025
 */
.wpdevgem-attributes-table {
    background-color: #3a3a3a;
    color: #dcdcdc;
    padding: 20px;
    border-radius: 5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    margin: 1em 0;
}

.wpdevgem-attribute-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #505050;
}

.wpdevgem-attributes-table .wpdevgem-attribute-row:last-child {
    border-bottom: none;
}

.wpdevgem-attribute-label {
    font-weight: 600;
    color: #ffffff;
    margin-right: 15px;
    flex-shrink: 0;
}

.wpdevgem-attribute-value {
    text-align: right;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

/* ===== PHẦN CẬP NHẬT CSS QUAN TRỌNG ===== */

/* 1. Style cho các thuộc tính cần hiển thị dạng TAG */
.wpdevgem-term-as-tag {
    display: inline-block;
    background-color: #555;
    color: #fff !important;
    padding: 4px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.5;
    transition: background-color 0.3s ease;
}

.wpdevgem-term-as-tag:hover {
    background-color: #666;
}

/* 2. Style cho các thuộc tính hiển thị dạng TEXT MẶC ĐỊNH */
.wpdevgem-attribute-term {
    color: #dcdcdc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wpdevgem-attribute-term:hover {
    color: #ffffff;
}
/* ===== KẾT THÚC PHẦN CẬP NHẬT CSS ===== */


/* Styling cho các loại thuộc tính đặc biệt (màu sắc, hình ảnh) */
.wpdevgem-color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #505050;
}

.wpdevgem-image-swatch {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    border: 2px solid #505050;
}
.wpdevgem-download-wrapper {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1.5em;
    text-align: left;
    margin: 1em 0;
}

.wpdevgem-download-wrapper h4 {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.1em;
}

.wpdevgem-download-list {
    display: flex;
    flex-direction: column;
    gap: 10px; 
}

.wpdevgem-direct-download-button {
    width: 100%;
    display: flex; /* Căn chỉnh icon và text */
    align-items: center;
    justify-content: center;
}

.wpdevgem-direct-download-button .icon-download {
    margin-right: 10px;
}
.cart button {
    border-radius: 5px !important;
    flex: auto;
}

.single-product .single_add_to_cart_button {
    font-size: 0;
    line-height: 1;
    
    min-width: 45px;
    padding: 12px;
        position: relative; 
}

.single-product .single_add_to_cart_button::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-2z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path></svg>');
        font-size: 1rem; 
        position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.single-product .add_to_cart_button .qty {
    display: none;
}
button.ux-buy-now-button.button.primary.ml-half {
    background: #008058;
}
/*
 * CSS cho khối "Tải tất cả"
 */
.wpdevgem-download-all-container {
    padding: 20px;
    border: 2px solid #446084;
    border-radius: 5px;
    margin-bottom: 2em;
    text-align: center;
}

.wpdevgem-download-all-container h3 {
    margin-top: 0;
}

.wpdevgem-download-all-button {
    margin-top: 1em;
    width: 100%;
    max-width: 300px;
}
/*
 * CSS cho tag "Purchased" trong vòng lặp sản phẩm.
 */
.product-small .box-image {
    /* Đảm bảo thẻ cha có position relative để thẻ con có thể định vị tuyệt đối */
    position: relative;
}

.wpdevgem-purchased-tag {
    /* Định vị tuyệt đối ở góc trên bên trái */
    position: absolute;
    top: -30px;
    left: 10px;
    z-index: 10; /* Đảm bảo tag nổi lên trên ảnh */

    /* Tạo kiểu cho tag */
    background-color: #fff;
    color: #d9534f; /* Màu đỏ */
    border: 1px solid #d9534f; /* Border đỏ */
    border-radius: 10px; /* Bo góc 10px */
    padding: 3px 8px;

    /* Tùy chỉnh chữ */
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.05em;
}
.product-small button.wishlist-button.button.is-outline.circle.icon {
    background-color: #ff9f9fde;
}
.product-small button.wishlist-button.button.is-outline.circle.icon.wishlist-added {
    background: red;
}
.cart-icon:hover strong, .current-dropdown .cart-icon strong {
    background-color: red;
    color: #fff;
}
.product-small .cart-icon strong {
	background-color: #ff000094;
    border: 2px solid #fff;
    border-radius: 0;
    color: #fff;
    font-family: Helvetica, Arial, Sans-serif;
    font-size: 1em;
    font-weight: 700;
    height: 2.2em;
    line-height: 1.9em;
    margin: .3em 0;
    position: relative;
    text-align: center;
    vertical-align: middle;
    width: 2.2em;
}
.product-small .cart-icon strong:after {
    border: 2px solid #fff;
}
.product-small .image-tools .cart-icon {
    bottom: 100%;
    right: 10px;left: auto;
    margin: 5px;
    position: absolute;
}
.sum-wish .yith-wcwl-add-to-wishlist svg.yith-wcwl-icon-svg, .sum-wish .yith-wcwl-add-to-wishlist .add_to_wishlist img{
	color: #fff !important
}
.sum-wish span{
	display: none;
}
.sum-wish .yith-wcwl-add-to-wishlist {
    margin-top: 0px !important;
}
.sum-wish span.feedback {
    display: flex !important;
    align-content: center;
    align-items: center;
    flex-direction: row;
}
.longnh-product-item-container {
    display: flex;
}
.cart_item td.product-name {
    display: flex
;
    align-content: center;
    align-items: center;
    gap: 5px;
}
#loginform .googlesitekit-sign-in-with-google__frontend-output-button, #loginform .googlesitekit-sign-in-with-google__frontend-output-button * {
    display: block !important;
}
.lnh-top-login-form form#loginform * {
    display: none;
}
.lnh-top-login-form iframe{
    min-width: 251px;
}
li.wc_payment_method.payment_method_payos img {
    width: 49px;
}
.yith-wcwl-wishlistaddedbrowse:not(.wishlist-popup .yith-wcwl-wishlistaddedbrowse) {
    display: flex;
    flex-direction: row;
    gap: 5px;
}
.wishlist_table.mobile li .item-wrapper {
    display: inline-block;
    width: calc(100% - 25px);
    vertical-align: top;
    display: flex;
    left: 20px;
    padding-left: 20px;
}

.back-to-top.active {
    background: #fff;
}
/* Styling for Purchased Products List */
.purchased-product-item {
    display: flex;
    align-items: center;
    padding: 15px 0px;
    border-bottom: 1px solid #444; /* Adjust color for your theme */
    gap: 20px;
}

.purchased-product-item:last-child {
    border-bottom: none;
}

.purchased-product-item .product-thumbnail {
    flex-shrink: 0;
    width: 100px; /* Fixed width for thumbnail */
}

.purchased-product-item .product-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.purchased-product-item .product-details {
    flex-grow: 1;
}

.purchased-product-item .product-name {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.purchased-product-item .product-name a {
    text-decoration: none;
    color: inherit; 
}

.purchased-product-item .product-downloads {
    display: flex
;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.purchased-product-item .btn-download {
    padding: 8px 15px;
    font-size: 0.9em;
}

.menu-item a.nav-top-link {
  position: relative;
  text-decoration: none; 
  display: inline-block;
  padding-bottom: 8px; 
}

.menu-item a.nav-top-link::after {
  content: '';
  position: absolute;
  bottom: 0; 
  left: 0; 
  width: 0; 
  height: 2px; 
  background-color: #c3b5a6; 
  transition: width 0.3s ease-in-out; 
}

.menu-item a.nav-top-link:hover::after {
  width: 100%;
}
.purchased-products-search-form form * {
    flex: 1 1 auto;
    margin: 0;
}
.purchased-products-search-form form {
	display: flex;
}
@media (max-width: 849px) {
	.purchased-products-search-form form .search-field {
	max-width: 60%;
	}
	.purchased-product-item .btn-download {
    padding: 4px 5px;
    font-size: 0.7em;
    margin: 0;
}
}
.dark .widget a, .dark a {
    color: rgb(229 161 92);
}
.nav-dark .nav>li>a:hover{
	color: #b19777;
}
.dark .widget a:hover, .dark a:hover {
    color: #ffd0bf;
    text-decoration: underline;
}
div#payos-checkout-container {
    max-height: 600px !important;
}
iframe#payos-checkout {
    zoom: 1.1;
    height: 340px;
}
a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    color: rgb(229, 231, 235);
    font-size: 16px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-small .box-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;   
}

.product-small .box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
}
div#payos-checkout-container:empty {
    display: none;
}
.checkout .row.pt-0 {
    flex-direction: row-reverse;
}
