﻿/*==================================================
HỆ MÀU PHONG THỦY MỆNH KIM 1985 (THỔ SINH KIM)
==================================================*/
:root {
    --primary: #ffaa00; /* Vàng Gold đậm - Sinh tài lộc (Hành Thổ) */
    --primary-hover: #e69900; /* Vàng sậm khi di chuột */
    --dark-bg: #1e293b; /* Xanh Slate tối sang trọng thay cho đen tuyền (Hành Thổ/Kim) */
    --light-bg: #f8fafc; /* Nền xám trắng ánh kim nhẹ nhàng (Hành Kim) */
    --text-main: #0f172a; /* Màu chữ chính */
    --text-muted: #64748b; /* Màu chữ phụ */
    --border-color: #e2e8f0; /* Đường kẻ mảnh tinh tế */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }


/* Topbar */
.topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 500;
}

.top-info, .top-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    padding: 0;
}

    .top-info i {
        color: var(--primary);
    }

    .top-menu a {
        color: var(--text-muted);
        text-decoration: none;
        transition: var(--transition);
    }

        .top-menu a:hover {
            color: var(--primary);
        }

/* Header & Logo */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffaa00, #fcd34d);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(255, 170, 0, 0.2);
}

.logo-text h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-bg);
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--text-muted);
    font-size: 12px;
}

/* Ô tìm kiếm nâng cấp */
.search-area .input-group {
    border: 2px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.search-area input {
    border: none;
    height: 46px;
    font-size: 14px;
}

    .search-area input:focus {
        box-shadow: none;
    }

.search-keyword a {
    color: var(--text-muted);
    background: #f1f5f9;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    text-decoration: none;
    transition: var(--transition);
}

    .search-keyword a:hover {
        background: var(--primary);
        color: #fff;
    }

/* Khối Hotline & Zalo Header tinh gọn */
.header-right {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.header-item {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 14px;
    transition: var(--transition);
}

    .header-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    }

.header-icon {
    font-size: 18px;
    color: var(--primary);
    margin-right: 10px;
}

.zalo-btn {
    background: #0068ff;
    border: none;
}

    .zalo-btn .header-icon, .zalo-btn small, .zalo-btn strong {
        color: #fff !important;
    }

    .zalo-btn:hover {
        background: #0056d6;
    }

/* Menu ngang (Navbar) */
.menu-wrapper {
    background: #ffffff !important;
    border-bottom: 2px solid var(--border-color);
}

    .menu-wrapper .nav-link {
        padding: 14px 16px !important;
        font-weight: 600;
        color: var(--text-main) !important;
        font-size: 14px;
        transition: var(--transition);
        position: relative;
    }

        .menu-wrapper .nav-link i {
            color: var(--text-muted);
            margin-right: 4px;
            transition: var(--transition);
        }

        .menu-wrapper .nav-link::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: 0;
            width: 0;
            height: 3px;
            background: var(--primary);
            transform: translateX(-50%);
            transition: var(--transition);
        }

        .menu-wrapper .nav-link:hover, .menu-wrapper .nav-item.active .nav-link {
            color: var(--primary) !important;
        }

            .menu-wrapper .nav-link:hover i, .menu-wrapper .nav-item.active .nav-link i {
                color: var(--primary);
            }

            .menu-wrapper .nav-link:hover::after, .menu-wrapper .nav-item.active .nav-link::after {
                width: 70%;
            }

/* Khuyến mãi nổi bật (Flash sale) */
.sale-link {
    color: #ef4444 !important;
    font-weight: 700 !important;
}

    .sale-link i {
        color: #ef4444 !important;
        animation: pulse 1.5s infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}
/* Custom CSS bổ trợ cho Nội dung chính */
.fs-7 {
    font-size: 0.8rem !important;
}

.fs-6-5 {
    font-size: 0.92rem !important;
}

.title-line::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #ffaa00; /* Màu vàng thương hiệu Mệnh Kim */
}

.hover-warning:hover {
    color: #ffaa00 !important;
}

.product-card {
    transition: all 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
        border-color: #ffaa00 !important;
    }

.combo-card img {
    transition: transform 0.5s ease;
}

.combo-card:hover img {
    transform: scale(1.05);
}
/* Custom CSS cho Cột Trái Sidebar mới */
.sidebar-title {
    font-size: 14px;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--dark-bg);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-product-item img {
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.side-product-item:hover img {
    border-color: var(--primary);
    transform: scale(1.05);
}

.side-news-item a:hover {
    color: var(--primary) !important;
}

.sidebar-video iframe {
    border-radius: 8px;
    border: none;
}
/* Hero Banner & Service Cards */
.hero img {
    transition: var(--transition);
}

    .hero img:hover {
        transform: scale(1.01);
    }

.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

    .service-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.05);
        border-color: var(--primary);
    }

    .service-card i {
        font-size: 26px;
        color: var(--primary);
        display: block;
        margin-bottom: 8px;
    }

    .service-card h6 {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .service-card p {
        font-size: 12px;
        color: var(--text-muted);
        margin: 0;
    }

/* Flash Sale Badge */
.flash-wrapper {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    padding: 20px;
}

.flash-header h3 {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.countdown span {
    background: var(--dark-bg);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    margin: 0 2px;
}

/* Newsletter */
.newsletter-box {
    background: var(--dark-bg);
    color: #fff;
    border-radius: 16px;
    padding: 30px;
}

.newsletter h3 {
    font-weight: 700;
    font-size: 20px;
}

/* Footer */
.footer {
    background: #ffffff;
    color: var(--text-main);
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
    font-size: 14px;
}

    .footer h5 {
        font-weight: 700;
        font-size: 15px;
        text-transform: uppercase;
        margin-bottom: 20px;
        color: var(--dark-bg);
        position: relative;
        padding-bottom: 8px;
    }

        .footer h5::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 35px;
            height: 3px;
            background: var(--primary);
        }

.footer-menu {
    list-style: none;
    padding: 0;
}

    .footer-menu li {
        margin-bottom: 10px;
    }

    .footer-menu a {
        color: var(--text-muted);
        text-decoration: none;
        transition: var(--transition);
    }

        .footer-menu a:hover {
            color: var(--primary);
            padding-left: 4px;
        }

.social-icon a {
    font-size: 18px;
    color: var(--text-muted);
    margin-right: 12px;
    transition: var(--transition);
}

    .social-icon a:hover {
        color: var(--primary);
    }

/* NÚT ZALO HOÀN TOÀN MỚI: Thu gọn, thẩm mỹ, đặt góc phải phía trên nút Back To Top */
.floating-zalo {
    position: fixed;
    right: 25px;
    bottom: 95px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    background: #0068ff;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(0, 104, 255, 0.4);
    transition: var(--transition);
    text-decoration: none;
}

    .floating-zalo:hover {
        transform: scale(1.1) rotate(8deg);
        background: #0056d6;
    }

/* Nút cuộn lên đầu trang */
.back-top {
    position: fixed;
    right: 25px;
    bottom: 35px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    background: var(--dark-bg);
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

    .back-top.show {
        opacity: 1;
        visibility: visible;
    }

    .back-top:hover {
        background: var(--primary);
        transform: translateY(-3px);
    }

/* Responsive Mobile cực mượt */
@media(max-width: 991px) {
    .logo {
        justify-content: center;
        margin-bottom: 15px;
    }

    .header-right {
        justify-content: center;
        margin-top: 15px;
    }

    .service-card {
        padding: 12px;
    }

    .floating-zalo {
        right: 15px;
        bottom: 85px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .back-top {
        right: 15px;
        bottom: 30px;
        width: 44px;
        height: 44px;
    }
}
