/*
 Theme Name:   Flatsome Child
 Template:     flatsome
 Description:  Bepxinhonline.com Clone
 Version:      1.0.0
*/

/* ============================================================
   BEPXINHONLINE.COM CLONE - Custom Styles
   Primary Color: #00a651 (Green)
   ============================================================ */

/* ---- GLOBAL ---- */
:root {
    --bx-green: #00a651;
    --bx-green-dark: #008c44;
    --bx-red: #e30613;
    --bx-dark: #222222;
    --bx-gray: #333333;
}

body {
    font-family: 'Roboto', sans-serif;
}

a:hover { color: var(--bx-green); }

/* ---- PRIMARY COLOR OVERRIDES ---- */
.button.primary,
button.primary,
input[type="submit"].primary,
.primary.is-outline:hover,
.primary.is-outline:focus {
    background-color: var(--bx-green) !important;
    border-color: var(--bx-green) !important;
}

.badge-outline .badge {
    border-color: var(--bx-green) !important;
    color: var(--bx-green) !important;
}

/* ---- TOP BAR ---- */
.header-top {
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

/* ---- HEADER MAIN ---- */
.header-main {
    padding: 10px 0;
}

.header-logo img {
    max-height: 60px;
}

/* Search bar styling */
.header-search .search-field {
    border: 2px solid var(--bx-green) !important;
    border-radius: 4px 0 0 4px;
}

.header-search .ux-search-submit {
    background-color: var(--bx-green) !important;
    border-color: var(--bx-green) !important;
    color: #fff !important;
    border-radius: 0 4px 4px 0;
}

/* Hotline styling */
.header-contact-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hotline-item {
    text-align: center;
}

.hotline-label {
    display: block;
    color: var(--bx-green);
    font-size: 12px;
    font-weight: 500;
}

.hotline-number {
    display: block;
    color: var(--bx-red) !important;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hotline-number:hover {
    color: var(--bx-green) !important;
}

/* Showroom button */
.btn-showroom {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: var(--bx-green);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-showroom:hover {
    background-color: var(--bx-green-dark);
    color: #fff !important;
}

/* ---- NAVIGATION ---- */
.header-bottom {
    background-color: var(--bx-green) !important;
}

.header-bottom .nav > li > a {
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.header-bottom .nav > li > a:hover,
.header-bottom .nav > li.active > a,
.header-bottom .nav > li.current-menu-item > a {
    background-color: var(--bx-green-dark) !important;
    color: #fff !important;
}

.header-bottom .nav > li > a::after {
    color: #fff !important;
}

/* Hide cart from header */
.header-cart-link,
.cart-icon {
    /* display: none !important; */ /* Uncomment to hide cart */
}

/* ---- HERO SLIDER ---- */
.home-slider .flickity-page-dots .dot {
    background: var(--bx-green);
}

.home-slider .flickity-prev-next-button {
    background: rgba(0,166,81,0.7);
    color: #fff;
}

/* ---- SẢN PHẨM CHÍNH Section ---- */
.section-san-pham-chinh h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.product-cat-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-cat-box:hover {
    transform: translateY(-5px);
}

.product-cat-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-cat-box .cat-label {
    display: block;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border: 2px solid var(--bx-green);
    color: var(--bx-green);
    border-radius: 4px;
    margin: 10px;
    transition: all 0.3s;
}

.product-cat-box:hover .cat-label {
    background-color: var(--bx-green);
    color: #fff;
}

/* ---- USP Section (4 commitments) ---- */
.section-usp {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 50px 0;
}

.section-usp::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
}

.section-usp .container {
    position: relative;
    z-index: 1;
}

.usp-item {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.usp-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bx-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
}

.usp-item h4 {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.usp-item p {
    color: #ccc;
    font-size: 13px;
}

/* ---- CÔNG TRÌNH THI CÔNG Section ---- */
.section-cong-trinh h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.section-cong-trinh .tabbed-content .nav-tabs {
    justify-content: center;
    border-bottom: 2px solid #eee;
}

.section-cong-trinh .tabbed-content .nav-tabs li a {
    color: #666;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.3s;
}

.section-cong-trinh .tabbed-content .nav-tabs li.active a,
.section-cong-trinh .tabbed-content .nav-tabs li a:hover {
    color: var(--bx-green);
    border-color: var(--bx-green);
}

/* ---- TIN TỨC Section ---- */
.section-tin-tuc h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.section-tin-tuc .post-item {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.section-tin-tuc .post-item:hover {
    transform: translateY(-5px);
}

/* ---- ĐỐI TÁC Section ---- */
.section-doi-tac {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.section-doi-tac h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    filter: grayscale(0.3);
    transition: filter 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0);
}

/* ---- FOOTER ---- */
.bx-footer-content {
    background-color: var(--bx-dark);
    color: #ccc;
    padding: 40px 0;
}

.bx-footer-content .widget-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bx-green);
}

.bx-footer-content p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.8;
}

.bx-footer-content a {
    color: #ccc;
    transition: color 0.3s;
}

.bx-footer-content a:hover {
    color: var(--bx-green);
}

.bx-footer-content ul {
    list-style: none;
    padding: 0;
}

.bx-footer-content ul li {
    padding: 5px 0;
    border-bottom: 1px dashed #444;
}

.bx-footer-content ul li a::before {
    content: '› ';
    color: var(--bx-green);
}

/* Footer bottom bar */
.absolute-footer {
    background-color: #111 !important;
    color: #888;
    font-size: 12px;
}

/* Override Flatsome default footer */
#footer {
    background-color: var(--bx-dark) !important;
}

.footer-widgets {
    background-color: var(--bx-dark) !important;
}

/* ---- FLOATING BUTTONS ---- */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    animation: bx-pulse 2s infinite;
}

.floating-btn:hover {
    transform: scale(1.05);
    color: #fff !important;
}

.floating-btn-phone {
    background: linear-gradient(135deg, #00a651, #008c44);
}

.floating-btn-zalo {
    background: linear-gradient(135deg, #0068ff, #0050cc);
}

.floating-btn-icon {
    font-size: 18px;
}

@keyframes bx-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,166,81,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0,166,81,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,166,81,0); }
}

/* ---- FLATSOME OVERRIDES ---- */
.badge-inner {
    background-color: var(--bx-green) !important;
}

.star-rating span::before {
    color: #f5a623 !important;
}

.price ins {
    color: var(--bx-red);
}

.button.checkout,
.button.alt {
    background-color: var(--bx-green) !important;
}

/* Tabs on homepage */
.tabbed-content .nav-tabs li.active a {
    color: var(--bx-green) !important;
    border-color: var(--bx-green) !important;
}

/* Back to top button */
.back-to-top {
    background-color: var(--bx-green) !important;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 849px) {
    .header-contact-wrapper {
        flex-direction: column;
        gap: 5px;
    }
    
    .hotline-number {
        font-size: 15px;
    }
    
    .btn-showroom {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .usp-item {
        margin-bottom: 20px;
    }
    
    .product-cat-box img {
        height: 180px;
    }
}

@media (max-width: 549px) {
    .floating-btn span:not(.floating-btn-icon) {
        display: none;
    }
    
    .floating-btn {
        padding: 12px;
        border-radius: 50%;
    }
}