/*
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.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

.header-search-form {
    display: flex;
    align-items: center;
    background: #fff7e6;
    border: 1px solid #e5d3b3;
    border-radius: 12px;
    padding: 4px 6px;
    max-width: 360px;
    transition: all 0.25s ease;
}
.header-search-form:focus-within {
    border-color: #f9b233;
    box-shadow: 0 2px 6px rgba(249, 178, 51, 0.25);
}

/* Dropdown */
.header-search-form select {
    background: transparent;
    border: none;
    color: #3a3a3a;
    font-weight: 500;
    padding: 8px 10px;
    border-right: 1px solid #e5d3b3;
    outline: none;
    cursor: pointer;
}

/* Ô nhập */
.header-search-form input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 10px;
    font-size: 14px;
    color: #3a3a3a;
    outline: none;
}

/* Nút tìm kiếm */
.header-search-form button {
    background: #f9b233;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}
.header-search-form button:hover {
    background: #f28c00;
    transform: translateY(-1px);
}

/* Bố cục chung của từng sản phẩm */
ul.products li.product {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Làm cho .box chiếm trọn chiều cao */
ul.products li.product .product-small.box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Chia layout trong phần text */
ul.products li.product .box-text.box-text-products {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Đẩy nút xuống đáy */
ul.products li.product .box-text.box-text-products .add-to-cart-button {
    margin-top: auto;
}

/* Giới hạn tên sản phẩm để card không bị dãn */
ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2em;
}

/* Cố định chiều cao tổng thể nếu cần */
ul.products li.product {
    min-height: 420px;
}