.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--color-gray-100);
    width: 100%;
    transition: .4s padding cubic-bezier(.55, 0, .1, 1);
    z-index: 98;
    box-shadow: 0 20px 40px rgba(21, 66, 18, 0.06);
    backdrop-filter: blur(12px);
}

.header-inner {
    position: relative;
    z-index:10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(8px, 1vw, 10px) 0;
    transition: 1s all cubic-bezier(.55, 0, .1, 1);
    gap: 16px;
}

/* LEFT */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo a {
    display: flex;
    align-items: center;
}

/* LOGO */
.header-logo img {
    width: auto;
    height: clamp(60px, 8vw, var(--logo-height));
}

/* RIGHT */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* MENU */
.main-menu .menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.main-menu .menu li a {
    font-size: clamp(13px, 1.2vw, 16px);
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: 0.3s;
    color: var(--color-gray-900);
}

.main-menu .menu li.current-menu-item a,
.main-menu .menu li a:hover {
    color: var(--color-secondary);
}

.main-menu .menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--color-secondary);
    transition: 0.5s all cubic-bezier(.55, 0, .1, 1);
}
.main-menu .menu li.current-menu-item a::after,
.main-menu .menu li a:hover::after {
    width: 100%;
}

/* ICON */
.header-action {
    display: flex;
    gap: 10px;
}

.header-action button.search {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-action .icon {
    width: 32px;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    color: var(--color-gray-900);
}

.header-action .icon svg{
    width: 60%;
    height: auto;
}

.header-action .icon:hover{
    color: var(--color-secondary);
}

/* MOBILE */
.menu-btn {
    display: none;
}

/* OVERLAY */
.mobile-menu__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    right: -100%;
    top: 0;
    width: 60vw;
    max-width: 800px;
    height: 100%;
    background: var(--color-secondary);
    transition: 0.3s;
    z-index: 999;

}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__overlay.active {
    display: block;
}

.mobile-menu__inner{
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

/* MOBILE NAV */

.mobile-menu-list {
    list-style: none;
}

.mobile-menu-list li a {
    display: block;
    padding: clamp(10px, 1.5vw, 15px) clamp(15px, 3vw, 30px);
    font-size: clamp(16px, 3.2vw, 36px);
    font-weight: 500;
    color: var(--color-yellow);
}

.mobile-menu__close {
    position: absolute;
    top: clamp(16px, 3vw, 40px);
    right: clamp(16px, 3vw, 40px);
    z-index: 2;
    width: clamp(24px, 4vw, 46px);
    height: clamp(24px, 4vw, 46px);
    border-radius: 50%;
    background: var(--white-10);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: .45s padding cubic-bezier(.55, 0, .1, 1), .4s opacity cubic-bezier(.55, 0, .1, 1);
}

.mobile-menu__close:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    height: 2px;
    width: 60%;
    background-color: var(--color-white);
    display: block;
    transition: .45s transform cubic-bezier(.55, 0, .1, 1);
    transform: translate(-50%, -50%) rotate(-45deg) scaleX(1);
}

.mobile-menu__close:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    height: 2px;
    width: 60%;
    background-color: var(--color-white);
    display: block;
    transition: .45s transform cubic-bezier(.55, 0, .1, 1);
    transform: translate(-50%, -50%) rotate(45deg) scaleX(1);
}

.header-toggle {
    display: none;
    transition: 1s all cubic-bezier(.55, 0, .1, 1);
    width: clamp(1.6rem, 2vw, 2rem);
    aspect-ratio: 1;
}

.header-toggle__icon {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
}

.header-toggle .o {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    height: 100%;
    gap: 4px;
}

.header-toggle .o span {
    display: flex;
    height: clamp(2px, 0.2vw, 4px);
    align-items: stretch;
    justify-content: center;
    background: var(--color-gray-900);
    transition: .45s transform .2s cubic-bezier(.55, 0, .1, 1);
}


/* ===== SEARCH OVERLAY (NEW) ===== */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9;

    /* animation */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;

    transition:
            transform 0.5s cubic-bezier(.55, 0, .1, 1),
            opacity 0.3s ease;
}

/* ACTIVE */
.search-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* ===== INNER ===== */
.search-inner {
    margin: 0 auto;
    position: relative;

    padding-top: clamp(80px, 12vh, 140px);
    background: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
    padding-inline: 20px;
}

.search-inner .dgwt-wcas-search-wrapp{
    width: auto;
    margin: 0;
    flex: 1;
}

/* INPUT (fibosearch sẽ override nhưng mình fix base) */
.search-inner input,
.search-inner .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
    width: 100%;
    background: #f5f5f4;
    font-size: clamp(14px, 1vw, 16px);
    border-radius: 0;
    letter-spacing: 1px;
    font-family: inherit;
}

.search-inner .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit{
    border-radius: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* CLOSE BUTTON */
.close-search {
    position: relative;
    width: clamp(20px, 3vw, 36px);
    height: clamp(20px, 3vw, 36px);
    background: var(--white-10);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: .45s padding cubic-bezier(.55, 0, .1, 1), .4s opacity cubic-bezier(.55, 0, .1, 1);
}

.close-search:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    height: 2px;
    width: 90%;
    background-color: var(--color-secondary);
    display: block;
    transition: .45s transform cubic-bezier(.55, 0, .1, 1);
    transform: translate(-50%, -50%) rotate(-45deg) scaleX(1);
}

.close-search:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    height: 2px;
    width: 90%;
    background-color: var(--color-secondary);
    display: block;
    transition: .45s transform cubic-bezier(.55, 0, .1, 1);
    transform: translate(-50%, -50%) rotate(45deg) scaleX(1);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .desktop-xl {
        display: none;
    }
    .header-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }


}