/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.2.0
 Text Domain:  woodmart
*/

.woocommerce-store-notice{
	display: none;
	z-index: 0;
}
.social-login-title {
    display: none;
}
.wd-social-login{
    display: none ;
}

/* ==========================================================================
   MOBILE-FIRST SEO & RESPONSIVE PRODUCT TABS FIX
   Guarantees product description and tabs are 100% visible and accessible
   on mobile devices and for Googlebot Smartphone indexing.
   ========================================================================== */
@media (max-width: 1024px) {
    .product-tabs-wrapper .tabs-layout-tabs {
        display: block !important;
        margin-top: 25px;
    }
    .product-tabs-wrapper .tabs-layout-tabs > .wd-nav-tabs-wrapper {
        display: none !important;
    }
    .product-tabs-wrapper .tabs-layout-tabs .wd-accordion-title {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        border: 1px solid rgba(0,0,0,0.08);
        background: #fbfbfb;
        border-radius: 6px;
        margin-bottom: 10px;
    }
    .product-tabs-wrapper .tabs-layout-tabs .wd-accordion-title .wd-accordion-opener {
        display: inline-block !important;
        margin-left: auto;
    }
    .product-tabs-wrapper .tabs-layout-tabs .wd-accordion-title.wd-active {
        color: #d28c00;
        background: #fffdf8;
        border-color: #e8b24b;
    }
    /* First tab (Description) is open by default on mobile for SEO parity */
    .product-tabs-wrapper .tabs-layout-tabs .wd-accordion-item:first-child .entry-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 15px 5px;
        margin-bottom: 25px;
    }
    /* Other tabs stay collapsed unless opened */
    .product-tabs-wrapper .tabs-layout-tabs .wd-accordion-item:not(:first-child) .entry-content:not(.wd-active) {
        display: none;
    }
}


/* ==========================================================================
   MOBILE SEARCH BAR & HEADER-BOTTOM ENHANCEMENT
   Positions a prominent, user-friendly search bar directly below the header
   ========================================================================== */
@media (max-width: 1024px) {
    .whb-header-bottom {
        display: block !important;
        background: #ffffff !important;
        padding: 8px 12px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.03) !important;
    }
    .whb-header-bottom .whb-column {
        width: 100% !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    .whb-header-bottom .wd-search-form {
        width: 100% !important;
        max-width: 100% !important;
    }
    .whb-header-bottom form.searchform {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        border: 1.5px solid #ff9900 !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        overflow: hidden !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    }
    .whb-header-bottom form.searchform input.s {
        flex: 1 !important;
        width: 100% !important;
        height: 40px !important;
        line-height: 40px !important;
        padding: 0 14px !important;
        font-size: 14px !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        color: #333333 !important;
    }
    .whb-header-bottom form.searchform input.s::placeholder {
        color: #888888 !important;
        font-size: 13.5px !important;
    }
    .whb-header-bottom form.searchform button.searchsubmit {
        height: 40px !important;
        min-width: 46px !important;
        background: #ff9900 !important;
        color: #ffffff !important;
        border: none !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: background 0.2s ease !important;
    }
    .whb-header-bottom form.searchform button.searchsubmit:hover {
        background: #e68a00 !important;
    }
    .whb-header-bottom form.searchform button.searchsubmit::after {
        font-size: 16px !important;
    }
}

/* TVF_HIDE_LISTING_PRICE_A2_START */
/* Option A2 + Clickable View Detail Link: Hide prices & .onsale badges on all product listings/cards/widgets;
   keep numeric price visible only on Single Product detail (+ Cart / Checkout / Header Subtotal). */
.product-grid-item .product-labels .onsale,
.wd-product .product-labels .onsale,
ul.products li.product .onsale,
.product-quick-view .product-labels .onsale {
    display: none !important;
}

.product-grid-item .price,
.wd-product .price,
ul.products li.product .price,
.product-grid-item .woocommerce-variation-price,
.wd-product .woocommerce-variation-price,
ul.product_list_widget:not(.woocommerce-mini-cart):not(.cart_list) .price,
.autocomplete-suggestion .price,
.wd-dropdown-results .price,
.wd-products-nav .wd-product-nav-desc .price,
.product-quick-view .price {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}

.product-grid-item .price > *:not(.tvf-detail-link),
.wd-product .price > *:not(.tvf-detail-link),
ul.products li.product .price > *:not(.tvf-detail-link),
.product-grid-item .price .woocommerce-Price-amount,
.wd-product .price .woocommerce-Price-amount,
ul.products li.product .price .woocommerce-Price-amount,
.product-grid-item .price .tvf-raw-price,
.wd-product .price .tvf-raw-price,
ul.products li.product .price .tvf-raw-price,
.product-grid-item .price del,
.product-grid-item .price ins,
.product-grid-item .price bdi,
.product-grid-item .woocommerce-variation-price > *,
.wd-product .woocommerce-variation-price > *,
ul.product_list_widget:not(.woocommerce-mini-cart):not(.cart_list) .price > *:not(.tvf-detail-link),
ul.product_list_widget:not(.woocommerce-mini-cart):not(.cart_list) .price .woocommerce-Price-amount,
ul.product_list_widget:not(.woocommerce-mini-cart):not(.cart_list) .price .tvf-raw-price,
ul.product_list_widget:not(.woocommerce-mini-cart):not(.cart_list) .price del,
ul.product_list_widget:not(.woocommerce-mini-cart):not(.cart_list) .price ins,
.autocomplete-suggestion .price > *,
.wd-dropdown-results .price > *,
.wd-products-nav .wd-product-nav-desc .price > *,
.product-quick-view .price > * {
    display: none !important;
}

a.tvf-detail-link {
    display: inline-block !important;
    font-size: 12.5px !important;
    line-height: 18px !important;
    padding: 1px 10px !important;
    margin-top: 1px !important;
    border: 1px solid #f4b538 !important;
    border-radius: 4px !important;
    background-color: #fffaf0 !important;
    color: #c77700 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    letter-spacing: 0.1px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a.tvf-detail-link:hover {
    background-color: #f4b538 !important;
    border-color: #f4b538 !important;
    color: #ffffff !important;
}

ul.product_list_widget:not(.woocommerce-mini-cart):not(.cart_list) a.tvf-detail-link {
    font-size: 11.5px !important;
    line-height: 16px !important;
    padding: 1px 8px !important;
    margin-top: 3px !important;
}

/* Fallback CSS label only for secondary popups without PHP loop template */
.autocomplete-suggestion .price::after,
.wd-dropdown-results .price::after,
.wd-products-nav .wd-product-nav-desc .price::after,
.product-quick-view .price::after {
    content: "Xem chi tiết";
    display: inline-block !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    color: #d48806 !important;
}

/* Preserve em-based hover slot height inside Woodmart .has-stars cards when .price font-size is 0 */
.wd-hover-base.has-stars.purchasable .wrapp-product-price .price,
.wd-hover-base.has-stars.product-type-external .wrapp-product-price .price {
    height: calc(var(--wd-text-line-height, 1.6) * 14px) !important;
    min-height: 22.4px !important;
}
/* TVF_HIDE_LISTING_PRICE_A2_END */
/* TVF_CACHE_BUST_20261113 */


/* TVF_HIDE_CART_AND_DIRECT_CHECKOUT_START */
/* 1. An nut "Them vao gio hang" va bo dem so luong tren trang chi tiet san pham */
.single-product .entry-summary form.cart .quantity,
.single-product .entry-summary form.cart .single_add_to_cart_button,
form.cart .quantity,
form.cart .single_add_to_cart_button {
    display: none !important;
}

/* 2. Nut "Tai File Co Phi" noi bat, ro rang */
a.buy-now.button {
    display: block !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 12px 0 !important;
    padding: 13px 20px !important;
    background: #ffcc00 !important;
    color: #cc0000 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: 2px solid #e6b800 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    transition: all 0.25s ease-in-out !important;
    line-height: 1.4 !important;
}
a.buy-now.button:hover {
    background: #ffe033 !important;
    color: #990000 !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* 3. An toan bo bieu tuong, so luong va widget gio hang tren Header, Mobile & Footer */
.wd-header-cart,
.woodmart-shopping-cart,
.cart-widget-opener,
.whb-cart,
.woodmart-toolbar-cart,
.wd-toolbar-cart,
.cart-widget-side,
.dropdown-cart,
.widget_shopping_cart {
    display: none !important;
}
/* TVF_HIDE_CART_AND_DIRECT_CHECKOUT_END */


/* 4. An tinh nang Tai khoan / Login / Register tren Header & Mobile */
.wd-header-my-account,
.woodmart-header-links,
.menu-item-my-account,
.wd-tools-element.wd-header-my-account,
.whb-col-right .wd-header-my-account,
.woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce-info {
    display: none !important;
}

/* 5. An login / account tren mobile drawer menu */
.mobile-nav .menu-item-account,
li.menu-item-account,
a[href*=tai-khoan-thu-vien-file] {
    display: none !important;
}



/* 6. An Shopping cart steps & thong bao them vao gio hang */
.wd-checkout-steps,
.woodmart-checkout-steps,
ul.wd-checkout-steps,
ul.woodmart-checkout-steps,
.page-title .step-cart,
.page-title .step-checkout,
.page-title .step-complete,
.woocommerce-checkout .woocommerce-message,
.woocommerce-message:has(.wc-forward),
.woocommerce-message .wc-forward,
.footer-column-4 {
    display: none !important;
}

/* Dam bao 3 cot footer can doi 33.33% */
@media (min-width: 992px) {
    .footer-sidebar .footer-column-1,
    .footer-sidebar .footer-column-2,
    .footer-sidebar .footer-column-3 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

/* ==========================================================================
   TVF HIDE PROMO HEADER & PROMO LINKS
   ========================================================================== */
a[href*="khuyen-mai"],
li:has(> a[href*="khuyen-mai"]) {
    display: none !important;
}

/* Ẩn link Tải Xuống trên header & toàn trang */
a[href*="tai-khoan/downloads"],
.whb-text-element:has(a[href*="tai-khoan/downloads"]) {
    display: none !important;
}


/* ==========================================================================
   ẨN WIDGET "FILE MỚI NHẤT" TRÊN DI ĐỘNG (MOBILE & TABLET <= 1024PX)
   ========================================================================== */
@media (max-width: 1024px) {
    #woocommerce_products-8,
    .tvf-hide-mobile-widget {
        display: none !important;
    }
}


/* ==========================================================================
   ẨN WIDGET "BÀI VIẾT MỚI NHẤT" (BLOG MỚI NHẤT) TRÊN DESKTOP (> 1024PX)
   ========================================================================== */
@media (min-width: 1025px) {
    #woodmart-recent-posts-13,
    .area-sidebar-1 .woodmart-recent-posts,
    .tvf-hide-desktop-recent-posts {
        display: none !important;
    }
}
