/* =======================================================
   HEADER STICKY
   ======================================================= */

#app-header {
    width: 100%;
    margin: 0;
    padding: 0;

    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

    position: relative;
    z-index: 1000;
}   

.d-none {
    display: none !important;
}


/* =======================================================
   TOP HEADER
   ======================================================= */

.header-top {
    background-color: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}

.header-container {
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 1rem;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1280px) {
    .header-container {
        flex-direction: row;
    }
}


/* =======================================================
   LOGO
   ======================================================= */

.header-logo {
    display: block;
    flex-shrink: 0;
}

.header-logo img {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .header-logo img {
        height: 3rem;
    }
}


/* =======================================================
   SEARCH
   ======================================================= */

.header-search-wrapper {
    flex: 1;
    width: 100%;
    max-width: 48rem;
}

@media (min-width: 1280px) {
    .header-search-wrapper {
        margin: 0 2rem;
    }
}

.header-search-box {
    position: relative;
    display: flex;
    width: 100%;
    height: 2.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .header-search-box {
        height: 3rem;
    }
}

.search-input {
    width: 100%;
    border: 2px solid #00479b;
    border-radius: 0.375rem 0 0 0.375rem;
    padding: 0 1rem;
    font-size: 0.875rem;
    outline: none;
    font-family: inherit;
}

.search-input:focus {
    border-color: #ff5e00;
}

.search-btn {
    background-color: #00479b;
    color: #ffffff;
    padding: 0 1.5rem;
    border-radius: 0 0.375rem 0.375rem 0;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background-color: #003370;
}

@media (min-width: 768px) {
    .search-btn {
        padding: 0 2rem;
        font-size: 1rem;
    }
}


/* =======================================================
   ACCOUNT ACTIONS
   ======================================================= */

.header-account-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;

    font-size: 0.875rem;
    color: #4b5563;

    flex-shrink: 0;
    margin-top: 1rem;
}

@media (min-width: 1280px) {
    .header-account-wrapper {
        margin-top: 0;
    }
}

.btn-guest-login {
    color: #00479b;
    font-weight: 700;

    border: 2px solid #00479b;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;

    white-space: nowrap;
    text-decoration: none;
}

.btn-guest-login:hover {
    background-color: #00479b;
    color: #ffffff;
}

.btn-user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    color: #374151;
    font-weight: 700;
    text-decoration: none;

    transition: color 0.2s ease;
    white-space: nowrap;
}

.btn-user-profile:hover {
    color: #ff5e00;
}

.user-avatar {
    width: 2.25rem;
    height: 2.25rem;

    background-color: #003370;
    color: #ffffff;

    border-radius: 9999px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.75rem;
    font-weight: 900;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.user-text {
    display: none;
}

@media (min-width: 768px) {
    .user-text {
        display: inline-block;
    }
}


/* =======================================================
   MAIN NAVIGATION
   ======================================================= */

.header-nav {
    background-color: #00479b;
    color: #ffffff;
    position: relative;
}

.nav-container {
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* =======================================================
   MOBILE NAV HEADER
   ======================================================= */

.nav-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
}

@media (min-width: 768px) {
    .nav-mobile-header {
        display: none;
    }
}

.nav-mobile-toggle-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-toggle-btn {
    color: #ffffff;
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    outline: none;
}

.mobile-toggle-btn:hover {
    color: #ff5e00;
}

.mobile-toggle-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.nav-mobile-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.nav-mobile-cart {
    position: relative;

    display: flex;
    align-items: center;

    color: #ffffff;
    text-decoration: none;

    transition: color 0.2s ease;
}

.nav-mobile-cart:hover {
    color: #ff5e00;
}

.nav-mobile-cart svg {
    width: 1.5rem;
    height: 1.5rem;
}


/* =======================================================
   CART BADGE
   ======================================================= */

.cart-badge {
    position: absolute;

    top: -0.25rem;
    right: -0.25rem;

    background-color: #ff5e00;
    color: #ffffff;

    font-size: 10px;
    font-weight: 900;

    width: 1rem;
    height: 1rem;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9999px;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}


/* =======================================================
   CART ANIMATION
   ======================================================= */

.animate-header-bounce {
    animation: header-bounce 1s infinite;
}

@keyframes header-bounce {
    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}


/* =======================================================
   DESKTOP NAV
   ======================================================= */

.nav-desktop-wrapper {
    display: none;

    align-items: center;
    justify-content: space-between;

    min-height: 52px;
}

@media (min-width: 768px) {
    .nav-desktop-wrapper {
        display: flex;
    }
}


/* =======================================================
   MENU BÊN TRÁI
   ======================================================= */

.nav-menu-list {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;

    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-list > li {
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;

    min-height: 52px;
    padding: 0 0.6rem;

    color: #ffffff;
    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.nav-link:hover {
    color: #ff5e00;
    background-color: rgba(255, 255, 255, 0.04);
}


/* =======================================================
   DESKTOP ACTIONS - KHỐI BÊN PHẢI
   ======================================================= */

.nav-actions-right {
    display: flex;
    align-items: center;

    height: 52px;

    margin-left: 1.5rem;
    padding-left: 0;
}

.nav-action-item {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 0 0.8rem;

    color: #ffffff;
    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.nav-action-item:hover {
    color: #ff5e00;
    background-color: rgba(255, 255, 255, 0.04);
}

.nav-action-item svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.cart-action {
    position: relative;
    margin-left: 0.25rem;
}

.action-text {
    display: none;
    margin-left: 0.375rem;

    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
}

@media (min-width: 1280px) {
    .action-text {
        display: inline;
    }

    .nav-menu-list {
        gap: 1rem;
    }

    .nav-link {
        padding: 0 0.65rem;
    }

    .nav-action-item {
        padding: 0 1rem;
    }
}


/* =======================================================
   MOBILE DROPDOWN MENU
   ======================================================= */

.nav-mobile-dropdown {
    display: none;
    padding-bottom: 1rem;
}

.nav-mobile-dropdown.is-open {
    display: block;
}

@media (min-width: 768px) {
    .nav-mobile-dropdown {
        display: none !important;
    }
}

.nav-mobile-dropdown-inner {
    display: flex;
    flex-direction: column;

    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
}

.mobile-nav-link {
    color: #ffffff;
    text-decoration: none;

    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;

    padding: 0.65rem 0;
}

.mobile-nav-link:hover {
    color: #ff5e00;
}


/* =======================================================
   RESPONSIVE NAV
   ======================================================= */

@media (max-width: 1199px) {
    .nav-menu-list {
        gap: 0.55rem;
    }

    .nav-link {
        padding: 0 0.45rem;
        font-size: 0.82rem;
    }

    .nav-actions-right {
        margin-left: 0.75rem;
    }

    .nav-action-item {
        padding: 0 0.6rem;
        font-size: 0.82rem;
    }
}


/* =======================================================
   ẨN ELEMENT
   ======================================================= */

.is-hidden {
    display: none !important;
}