/*
Theme Name: Homefort Child Theme
Theme URI: http://homefort.like-themes.com/
Author: Like Themes
Author URI: http://like-themes.com/
Description: Blank Child Theme for Homefort
Template: homefort
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: four-columns, right-sidebar, full-width-template
Text Domain: homefort

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* Testimonial icon — đọc từ field Icon trong post edit */
.lte-testimonials-list .lte-inner .lte-descr.has-custom-icon:before {
    display: none !important;
}

.lte-testimonials-list .lte-inner .lte-descr .lte-descr-icon {
    display: block;
    font-size: 60px;
    color: var(--main);
    line-height: 1;
    margin-bottom: 8px;
}

.lte-testimonials-list .lte-inner .lte-descr .lte-descr-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* Floating buttons */
.lte-floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lte-floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lte-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.lte-floating-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.lte-floating-btn-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Single product: brand logo */
.lte-single-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.lte-single-brand-label {
    font-weight: 600;
    white-space: nowrap;
}

.lte-single-brand-logo {
    height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

/* Single product: giá liên hệ */
.lte-contact-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #f35d22;
}

/* Single product: liên hệ Zalo + hotline */
.lte-single-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.lte-single-contact-zalo,
.lte-single-contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.lte-single-contact-zalo {
    background: #0068ff;
    color: #fff;
}

.lte-single-contact-phone {
    background: #f35d22;
    color: #fff;
}

.lte-single-contact-zalo:hover,
.lte-single-contact-phone:hover { opacity: 0.85; color: #fff; }

/* Brand filter widget: căn trái */
.wc-brand-list-layered-nav-product_brand { 
    display: flex;
    flex-direction: column;
    align-items: baseline;
    align-items: flex-start;
 }

/* Brand badge góc sản phẩm */
ul.products li.product .lte-image { position: relative; }

ul.products li.product .lte-brand-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #fff;
    border-radius: 6px;
    padding: 4px 6px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.15);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

ul.products li.product .lte-brand-badge img {
    width: 48px;
    height: 30px;
    object-fit: contain;
    display: block;
}

/* WooCommerce product card: căn đều chiều cao */
ul.products li.product .lte-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

ul.products li.product .lte-item-descr {
    display: flex;
    flex-direction: column;
    flex: 1;
}

ul.products li.product .lte-excerpt {
    flex: 1;
}

ul.products li.product .price {
    margin-top: auto;
}

/* Product categories widget: ẩn sub-category, toggle bằng nút + */
.widget_product_categories .product-categories .children { display: none; }

.widget_product_categories .cat-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    background-color: #f35d22;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
    transition: opacity 0.2s;
}

.widget_product_categories .cat-toggle:hover { opacity: 0.85; }

/* Search box drop xuống dưới navbar thay vì chồng lên menu */
.lte-navbar-icons .lte-top-search-wrapper {
    position: relative;
}

.lte-navbar-icons .lte-top-search-wrapper input[type='text'] {
    top: 100%;
    right: -75px;
    -webkit-transform: none;
    -moz-transform: none;
    -ms-transform: none;
    -o-transform: none;
    transform: none;
    margin-top: 40px;
}

.lte-navbar-icons .lte-top-search-wrapper .lte-top-search-ico-close {
    top: 100%;
    right: -65px;
    -webkit-transform: none;
    -moz-transform: none;
    -ms-transform: none;
    -o-transform: none;
    transform: none;
    margin-top: 40px;
    height: 48px;
    line-height: 48px;
}
