/*
Theme Name: Trần Hiệp Web
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Trần Hiệp Web 
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: tranhiepweb
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/


.max_line_1 {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
}

.max_line_2,
.max_line_2 a,
.max_line_2 p {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.max_line_3,
.max_line_3 a,
.max_line_3 p {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
}

.container-text-btn .content-about-jc {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}


.container-text-btn.active .content-about-jc {
    -webkit-line-clamp: unset;
    max-height: none;
}



.product-stock-status {
    padding: 4px 12px;
    font-family: "Roboto", "sans-serif";
    font-size: 16px;
    font-weight: 400;
    border-radius: 15px;
}

.product-stock-status.stock-in {
    color: rgb(68, 120, 42);
    background: rgb(226, 242, 218);
}

.product-stock-status.stock-out {
    color: #cc3333;
}

.product-stock-status.stock-backorder {
    color: #f39c12;
}

.rank-math-breadcrumb a,.rank-math-breadcrumb span.last {
    font-family: "Roboto", "sans-serif";
    font-size: 14px;
    font-weight: 400;
    color: rgb(108, 117, 125);
}

.rank-math-breadcrumb p {
    display: flex;
}

.rank-math-breadcrumb a,.rank-math-breadcrumb span.last {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    z-index: 0;
    padding: 0 16px;
    pointer-events: none;
}

.rank-math-breadcrumb .separator {
    display: none;
}

.rank-math-breadcrumb a:before,
.rank-math-breadcrumb a:after,
.rank-math-breadcrumb span.last:before{
    content: '';
    pointer-events: auto;
    position: absolute;
    background-color: #ebebeb;
    top: 0;
    bottom: 0;
    z-index: -1;
    border-radius: 3px;
    transition: background .1s;
}

.rank-math-breadcrumb a:before,.rank-math-breadcrumb span.last:before{
    left: 6px;
    right: 6px;
    -webkit-transform: skewX(-30deg);
    transform: skewX(-30deg);
}

.rank-math-breadcrumb a:after{
    left: 0;
    right: 12px;
}

.rank-math-breadcrumb a:nth-of-type(2) {
    margin-left: -5px;
}

.rank-math-breadcrumb a:nth-of-type(2):after {
    content: none;
}


.menu-container {
    position: relative;
}

.btn-menu {
    cursor: pointer;
    position: relative;
    z-index: 100;
}

.btn-menu .elementor-button {
    transition: all 0.3s ease;
    position: relative;
}

.btn-menu .elementor-button::before {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.3s ease;
}


.menu-container.menu-active .btn-menu .elementor-button::before {
    transform: translateY(-50%) rotate(180deg);
}


.btn-menu .elementor-button-text {
    padding-right: 25px;
}

.menu-container.menu-active .btn-menu .elementor-button {
    background-color: #f0f0f0; /* Tùy chỉnh màu khi active */
}

.vertical-menu {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99;
    border-radius: 4px;
}


.vertical-menu .elementor-nav-menu--main {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.menu-container.menu-active .vertical-menu .elementor-nav-menu--main {
    max-height: 600px;
    opacity: 1;
    overflow-x: hidden;
    overflow-y: auto;  
}


.vertical-menu .elementor-nav-menu {
    padding: 10px 0;
}

.vertical-menu .menu-item {
    transition: background-color 0.2s ease;
}

.vertical-menu .menu-item:hover {
    background-color: #f5f5f5;
}

.vertical-menu .elementor-nav-menu--dropdown,
.vertical-menu .sub-menu {
    background-color: #fafafa;
    position: static !important; 
    display: none; 
    opacity: 1 !important; 
    max-height: none !important; 
}


.vertical-menu .menu-item:hover > .sub-menu,
.vertical-menu .menu-item:hover > .elementor-nav-menu--dropdown {
    display: block;
}

.btn-menu .elementor-button::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}


.vertical-menu .menu-item {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInDown 0.3s ease forwards;
}

.vertical-menu .menu-item:nth-child(1) { animation-delay: 0.05s; }
.vertical-menu .menu-item:nth-child(2) { animation-delay: 0.1s; }
.vertical-menu .menu-item:nth-child(3) { animation-delay: 0.15s; }
.vertical-menu .menu-item:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.xoo-el-form-container button.btn.button.xoo-el-action-btn {
    border: none !important;
}
.xoo-el-username-menu img.avatar, .xoo-el-firstname-menu img.avatar {
    display: none !important;
}



/* Ẩn sidebar trên tablet và mobile */
@media (max-width: 1024px) {
    .product-filter-sidebar {
        display: none !important;
    }
    
    .product-filter-main {
        width: 100%;
        max-width: 100%;
    }
}
/* Style cho popup sidebar */
.product-filter-sidebar-popup {
    width: 100%;
    max-width: 100%;
}

.popup-sidebar-inner {
    padding: 20px;
}

.filter-popup-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.filter-popup-actions button {
    flex: 1 !important;
    width: 100% !important;
    padding: 10px !important;
    background: #099B1C !important;
    color: #fff !important;
    border: none !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: background 0.3s !important;
    font-family: "Roboto", sans-serif !important;
}

.btn-clear-filters {
    background: #f5f5f5 !important;
    color: #333 !important;
}

.btn-clear-filters:hover {
    background: #e5e5e5 !important;
}

.btn-apply-filters:hover {
    background: #077a16 !important;
}