/* Header like the reference layout */
:root {
    --cvn-header-orange: #ff7800;
    --cvn-header-orange-dark: #f16900;
    --cvn-header-text: #263348;
    --cvn-header-muted: #667085;
    --cvn-header-line: #edf0f5;
    --cvn-header-soft: #fff5ec;
}

.header-wrapper {
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06);
}

#header .header-top {
    min-height: 46px;
    border-bottom: 1px solid var(--cvn-header-line);
    background: rgba(255, 255, 255, 0.96) !important;
}


#header .header-top .nav-small a {
    color: #667085;
    font-size: 14px;
    font-weight: 600;
}

#header .cvn-top-contact,
#header .cvn-top-links,
#header .cvn-header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

#header .flex-left .header-address {
    display: flex;
    align-items: center;
    gap: 8px;
}

#header .flex-left .header-address i {
    color: var(--cvn-header-muted);
    font-size: 15px;
}

#header .flex-left .header-address span {
    color: #263348;
    font-size: 13px;
}

/*  */

#header .header-main {
    min-height: 102px;
    background: #fff !important;
}

/* Header search: cho item/form cha duoc gian het vung trong, input 100% moi co tac dung. */
#header .header-main .flex-left {
    flex: 1;
    min-width: 0;
}

#header .header-main .flex-left .header-nav {
    flex: 1;
    min-width: 0;
}

#header .header-main .searchform-wrapper,
#header .header-main .header-search-form {
    flex: 1;
    width: 100%;
    min-width: 0;
}

#header .header-main .searchform {
    width: 90%;
    max-width: none;
    border: 1px solid var(--primary);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(34, 48, 73, 0.06);
}

#header .header-main .searchform input.search-field {
    height: 48px;
    border: 0;
    padding-left: 22px;
    color: var(--cvn-header-text);
    font-size: 15px;
    box-shadow: none;
}

#header .header-main .searchform .ux-search-submit {
    min-width: 58px;
    min-height: 48px;
    border-radius: 0;
    background: var(--cvn-header-orange);
    color: #fff;
}

#header .header-main .html_topbar_left {
    margin: 0;
}

#header .header-main .html_top_right_text .has-dropdown,
#header .header-main .html_topbar_left .cvn-top-contact,
#header .header-main .html_top_right_text .cvn-header-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 12px 16px;
    border: 1px solid #ffe0c2;
    border-radius: 16px;
    background: var(--cvn-header-soft);
    color: var(--cvn-header-text);
    white-space: nowrap;
}

#header .header-main .html_top_right_text .has-dropdown .header-cart-link {}

#header .header-main .html_topbar_left .cvn-top-contact p {
    display: flex;
    flex-direction: column;
}


#header .header-main .html_topbar_left .cvn-header-card__icon,
#header .header-main .html_top_right_text .cvn-header-card__icon,
#header .header-main .cart-item i[class*="icon-shopping"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--primary);
    margin: 0;
}

#header .header-main .html_topbar_left .cvn-top-contact i,
#header .header-main .html_top_right_text .cvn-header-card__icon i,
#header .header-main .cart-item i[class*="icon-shopping"] {
    color: #667085;
    font-size: 17px;
    color: #fff;
}

#header .header-main .html_topbar_left .cvn-top-contact p {
    color: var(--primary);
    font-weight: 700;
}

#header .header-main .html_top_right_text .cvn-header-card__body {
    display: block;
    margin: 0;
}

#header .header-main .html_top_right_text .cvn-header-card strong {
    display: block;
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

#header .header-main .html_top_right_text .cvn-header-card__body>span {
    display: block;
    margin-top: 6px;
    color: var(--primary);
    font-size: 15px;
    line-height: 1.2;
}

#header .header-main .cart-item {
    margin: 0;
}

#header .header-main .cart-item>a.header-cart-link {
    display: inline-flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 12px;
    min-height: 68px;
    padding: 12px 16px;
    border: 1px solid #ffe0c2;
    border-radius: 16px;
    background: var(--cvn-header-soft);
    color: var(--cvn-header-text);
    line-height: 1.2;
    white-space: nowrap;
}

#header .header-main .cart-item>a.header-cart-link:hover {
    color: var(--cvn-header-text);
}

#header .header-main .cart-item .header-cart-title {
    display: block;
    color: var(--cvn-header-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

#header .header-main .cart-item .cart-price {
    display: block;
    color: #667085;
    font-size: 15px;
    font-weight: 500;
}

#header .header-main .cart-item .cart-icon strong {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--cvn-header-orange);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
}

/* ------ */

#header .header-bottom {
    min-height: 62px;
    background: var(--primary) !important;
}

#header .header-bottom .header-vertical-menu__opener {
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}



#header .header-bottom .flex-center .nav>li>a {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

#header .header-bottom .flex-center .nav>li>a:hover {
    color: #fff4e8;
}

#header .header-bottom .cvn-quote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-dark);
    padding: 0 20px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(31, 41, 55, 0.08);
}

#header .header-bottom .cvn-quote-button:hover {
    color: var(--cvn-header-orange-dark);
}





@media (max-width: 1099px) {

    .cvn-header-actions,
    .cvn-top-links {
        display: none;
    }

    .header-main .searchform-wrapper {
        width: min(460px, 48vw);
    }
}

@media (max-width: 849px) {
    #header .header-top {
        display: none;
    }

    #header .header-main {
        min-height: 76px;
    }

    #header .header-main .logo,
    #header .header-main .logo img {
        max-height: 52px;
    }

    #header .header-main .searchform-wrapper {
        display: none;
    }

    /* Mobile cart: rut gon nut gio hang, chi giu icon trong o vuong nho. */
    #header .header-main .cart-item>a.header-cart-link {
        width: 52px;
        height: 52px;
        min-height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 14px;
        gap: 0;
    }

    #header .header-main .cart-item .header-cart-title,
    #header .header-main .cart-item .cart-price {
        display: none;
    }

    #header .header-main .cart-item .cart-icon,
    #header .header-main .cart-item .header-cart-icon,
    #header .header-main .cart-item i[class*="icon-shopping"] {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 17px;
    }


    /* Mobile search bar: nam trong header-bottom nen style rieng de khong bi an/bi ngat. */
    #header .header-bottom {
        display: block;
        min-height: auto;
        padding: 10px 14px;
    }

    #header .header-bottom .container {
        padding-left: 0;
        padding-right: 0;
    }

    #header .header-bottom .flex-row {
        min-height: auto;
    }

    #header .header-bottom .flex-left,
    #header .header-bottom .flex-center,
    #header .header-bottom .flex-right {
        width: 100%;
        max-width: 100%;
    }

    #header .header-bottom .nav,
    #header .header-bottom .nav>li,
    #header .header-bottom .searchform-wrapper,
    #header .header-bottom .searchform {
        width: 100%;
    }

    #header .header-bottom .searchform {
        display: flex;
        height: 48px;
        margin: 0;
        border: 0;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
        box-shadow: none;
    }

    #header .header-bottom .searchform input.search-field {
        flex: 1;
        height: 48px;
        padding: 0 14px;
        border: 0;
        background: #fff;
        color: var(--cvn-header-text);
        font-size: 15px;
        box-shadow: none;
    }

    #header .header-bottom .searchform .ux-search-submit {
        flex: 0 0 52px;
        min-width: 52px;
        min-height: 48px;
        border-radius: 0;
        background: var(--cvn-header-orange-dark);
        color: #fff;
    }
}