@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Reset mặc định */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;

}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
}

/* Header Top */
.header-top {
    background-color: #37bef8;
    color: #ffffff;
    font-size: 14px;
    padding: 10px 20px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.header-top .contact-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.header-top .contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-top .contact-info i {
    color: #f51313;
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    .header-top {
        overflow: hidden;
        /* Ẩn nội dung tràn ra ngoài */
        white-space: nowrap;
        /* Ngăn nội dung xuống dòng */
        position: relative;
        padding: 10px 0;
        /* Giảm padding để phù hợp với màn hình nhỏ */
        text-align: left;
        /* Căn text về bên trái */
    }

    .header-top .contact-info {
        display: flex;
        align-items: center;
        gap: 50px;
        /* Khoảng cách giữa các phần tử */
        white-space: nowrap;
        flex-wrap: nowrap;
        /* Ngăn chặn xuống dòng */
        min-width: 100%;
        /* Đảm bảo nội dung không bị cắt */
        animation: marquee 15s linear infinite;
        /* Hiệu ứng chạy ngang */
    }

    .header-top .contact-info span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .header-top .contact-info i {
        color: #f51313;
        font-size: 16px;
    }
}

/* Animation chạy ngang */
@keyframes marquee {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    /* Căn giữa tất cả nội dung */
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    gap: 20px;
    /* Khoảng cách giữa logo và menu */
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Logo nằm giữa */
}

.navbar-logo {
    height: 50px;
    width: auto;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    /* Menu nằm giữa */
}

.nav-menu li {
    display: inline-block;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4caff7;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-menu a:hover {
    color: #000;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    /* Đặt vị trí tuyệt đối */
    top: 20px;
    /* Căn chỉnh vị trí trên cùng */
    right: 20px;
    /* Đưa sang phải */
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
}

/* Dropdown Container */
.dropdown {
    position: relative;
}

/* Nút Dropdown (Sản Phẩm) */
.dropbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Khoảng cách giữa chữ và mũi tên */
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 15px;
    text-transform: uppercase;
    background: none;
    border: none;
    outline: none;
    transition: color 0.3s ease;
}

/* Hiệu ứng hover nút Dropdown */
.dropbtn:hover {
    color: #007bff;
}

/* Mũi Tên SVG */
.dropbtn svg {
    transition: transform 0.3s ease;
    /* Hiệu ứng xoay */
}

/* Nội dung Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    /* Hiển thị ngay dưới nút "Sản Phẩm" */
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
}

/* Link bên trong Dropdown */
.dropdown-content a {
    color: #333;
    text-decoration: none;
    padding: 12px 16px;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #007bff;
}

/* Hover vào dropdown hiển thị nội dung */
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Mũi Tên Xoay Khi Hover */
.dropdown:hover .dropbtn svg {
    transform: rotate(180deg);
}


/* Mobile Menu */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: rgba(255, 255, 255, 0.9);
        width: 100%;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .nav-menu a {
        text-align: center;
    }

    .nav-menu a::after {
        display: none;
    }
}