/* Tối ưu tổng thể Layout Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    position: relative;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Khu vực Logo */
.logo-area {
    display: flex;
    align-items: center;
}
.shop-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 1px solid #e2e8f0;
}
.shop-name {
    font-size: 18px;
    font-weight: bold;
    color: #1a202c;
    text-transform: capitalize;
}

/* Khu vực Menu Điều hướng trên Desktop */
.main-navigation {
    text-align: center;
}
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}
.nav-link {
    display: block;
    padding: 8px 16px;
    color: #4a5568;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    border-radius: 4px;
    text-transform: lowercase;
    transition: all 0.2s ease;
}
.nav-link.active, .nav-link:hover {
    background-color: #1552a3;
    color: #ffffff;
}

/* Nút Toggle Mobile (Mặc định ẩn ở PC) */
.mobile-menu-btn {
    display: none;
    background: #1552a3;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    align-items: center;
    gap: 6px;
}
.hamburger-icon {
    font-size: 16px;
}

/* Khu vực Tìm Kiếm */
.search-area {
    text-align: right;
}
.search-input {
    width: 200px;
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

/* Banner */
#shop-banner-container {
    width: 100%;
    padding: 15px 24px 5px 24px;
    box-sizing: border-box;
}

/* ======================================================
   CẤU HÌNH RESPONSIVE CHO GIAO DIỆN DI ĐỘNG (< 768px)
   ====================================================== */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 15px;
    }

    .header-container {
        flex-wrap: wrap;
    }

    /* Hiển thị nút Nút Danh Mục 3 gạch */
    .mobile-menu-btn {
        display: inline-flex;
    }

    /* Ẩn thanh tìm kiếm trên header di động hoặc thu nhỏ gọn */
    .search-area {
        width: 100%;
        margin-top: 10px;
    }
    .search-input {
        width: 100%;
        box-sizing: border-box;
    }

    /* Menu xổ xuống dạng thả trượt */
    .main-navigation {
        display: none; /* Mặc định ẩn trên Mobile */
        width: 100%;
        background: #ffffff;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-top: 1px solid #e2e8f0;
        z-index: 999;
    }

    /* Hiển thị danh sách khi click vào Danh mục */
    .main-navigation.show {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        padding: 10px 0;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        padding: 12px 20px;
        text-align: left;
        border-radius: 0;
        border-bottom: 1px solid #f1f5f9;
    }
}