/* ============ Reset ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Poppins", sans-serif;
    background-color: #fff;
    color: #333;
}

/* ============ Top Bar ============ */
.top-bar {
    background: #111;
    color: #fff;
    font-size: 0.9rem;
    height: 40px;
}
.top-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.top-link:hover {
    color: #f5b400;
}

/* ============ Header ============ */
.main-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
}
.logo-img {
    height: 60px;
    border-radius: 10px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}
.nav-list a {
    color: #000;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
}
.nav-list a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -5px;
    background: #000;
    transition: width 0.3s;
}
.nav-list a:hover::after {
    width: 100%;
}

/* ============ Search Box ============ */
.search-box {
    position: relative;
}
.btn-search {
    background: none;
    border: none;
    font-size: 1.2rem;
}
.search-input {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 10px;
    width: 250px;
    animation: fadeIn 0.3s;
}
.search-box:hover .search-input {
    display: block;
    z-index: 1056;
}

/* ============ Dropdown Menu ============ */
.dropdown-menu {
    animation: fadeDown 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 2000 !important;
}

/* fix bị che */
.header-icons,
.main-header .container {
    overflow: visible !important;
}

.user-menu {
    position: relative !important;
    z-index: 1055 !important;
}

/* Hiệu ứng khi mở dropdown */
.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.25s ease;
}

/* ============ Mobile Nav ============ */
.mobile-nav {
    background: #000;
    color: #fff;
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 250px;
    transition: right 0.4s ease;
    padding: 60px 20px;
}
.mobile-nav.open {
    right: 0;
}
.mobile-nav ul {
    list-style: none;
    padding: 0;
}
.mobile-nav li a {
    display: block;
    color: #fff;
    padding: 10px 0;
    text-decoration: none;
    transition: 0.3s;
}
.mobile-nav li a:hover {
    color: #f5b400;
}

/* ============ Cart ============ */
.cart-link {
    color: #000;
    position: relative;
}
.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #f00;
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    padding: 2px 6px;
}

/* ============ Footer ============ */
.footer {
    background: #111;
    color: #ddd;
}
.footer h5,
.footer h6 {
    color: #fff;
    margin-bottom: 15px;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li a {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
}
.footer-links li a:hover {
    color: #f5b400;
}
.footer h5, .footer h6 {
  color: #fff;
}

.footer .border-top {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ============ Animations ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ Responsive ============ */
@media (max-width: 992px) {
    .nav-list {
        display: none;
    }
    .logo-img {
        height: 50px;
    }
}
