@media (min-width: 1200px) {
    .block-header-middle .container {
        max-width: 1320px;
    }
}

/* Header */
.navbar.navbar-header {
    /* box-shadow: 0 1px 4px 0 rgba(102, 98, 98, .4); */
    font-weight: bold;
    background-color: #fff;
    box-shadow: 0 3px 7px 0 rgba(0, 0, 0, .05);
    z-index: 12;
    padding: 0 20px;
}

#main-navbar {
    height: 70px;
    background: #1b74e4;
}

#main-navbar .ml-auto {
    margin-left: auto;
}


@media (max-width:991.98px) {
    .navbar.navbar-header .navbar-collapse {
        background: white;
        margin-top: 0 !important;
    }

    .navbar.navbar-header .navbar-header-list .navbar-nav {
        padding-left: 0 !important;
    }
}

.navbar.navbar-header .navbar-header-list .navbar-nav {
    padding-left: 15px;
    padding-top: 5px;
}

.navbar.navbar-header .navbar-header-list .navbar-nav .nav-item .nav-link {
    font-size: 16px;
}

.navbar.navbar-header .navbar-nav .nav-link {
    color: #fff;
}

@media (min-width:992.98px) {
    .navbar.navbar-header .dropdown-carret {
        transform: rotate(0deg);
        transition: all 300ms linear;
    }

    .navbar.navbar-header .nav-item:hover .dropdown-carret {
        transform: rotate(180deg);
    }
}

.dropdown-carret i {
    font-size: 1rem !important;
    font-weight: 300 !important;
}

.carret i {
    position: relative;
    left: 0;
    transition: .6s ease-out;
    font-size: 1rem !important;
    font-weight: 300 !important;
}

.carret:hover i {
    left: 5px;
}

@media (min-width:992px) {
    .navbar.navbar-header .navbar-header-list {
        height: 70px !important;
        padding: 0 0rem !important;
    }

    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .navbar.navbar-header .navbar-nav .dropdown-menu::before {
        display: none !important;
    }

    .menu-container {
        position: absolute;
        left: -193px;
        width: 1140px;
        top: 53px;
    }

    .navbar.navbar-header .navbar-header-list .navbar-nav .nav-item .nav-link {
        display: flex;
        align-items: center;
        height: 100%;
        gap: 10px;
    }
}

.navbar.navbar-header .navbar-nav .dropdown-menu {
    border-radius: 0.75rem !important;
    padding: 1.5rem 1rem !important;
    border: none;
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
    z-index: 122;
}

.navbar.navbar-header .navbar-nav .dropdown-menu .dropdown-item a {
    color: #273444;
    border-bottom: none;
}

.navbar.navbar-header .navbar-nav .dropdown-menu .dropdown-item:hover a {
    color: #273444;
    background-color: transparent;
}

.navbar.navbar-header .navbar-nav .dropdown-menu.show {
    transform: translateY(0px);
    opacity: 1;
}

.oneColIcon {
    white-space: normal !important;
    width: 280px;
    padding: 0.5rem 0 !important;
    border-radius: 16px;
    cursor: pointer;
}

.oneColIcon a {
    padding: 0 !important;
    font-size: 16px;
    color: #273444;
}

.oneColIcon p {
    font-size: 13px;
    color: #676767;
}

.name-column {
    font-size: 1rem;
    color: #676767;
}

.navbar.navbar-header .navbar-nav .dropdown-menu .dropdown-item {
    white-space: normal;
    padding: 0.5rem 0.5rem;
    border-radius: 1rem;
    cursor: pointer;
}

.dropdown-item .item-icon {
    height: auto;
    width: 1.5rem;
}

.navbar.navbar-header .navbar-nav .dropdown-menu .dropdown-item a {
    padding: 0 !important;
    font-size: 16px;
}

.dropdown-item .item-content p {
    font-size: 14px;
    margin-bottom: 0;
    white-space: normal;
}

.navbar.navbar-header .navbar-nav .dropdown-menu .dropdown-item a.dropdown-link-icon {
    padding: 0.5rem 0rem !important;
    align-items: normal;
    margin: 0 !important;
}

.navbar.navbar-header .navbar-nav .dropdown-menu .dropdown-item a.dropdown-link-icon .dropdown-icon {
    padding: 5px 0 0 0.5rem;
}

.navbar.navbar-header .navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: #f0f2f5;
}

.navbar.navbar-header .navbar-nav .dropdown-menu .dropdown-item.:hover a.dropdown-link-icon {
    background-color: #f0f2f5 !important;
}

.navbar .dropdown-full .dropdown-full-wrap {
    min-height: auto;
}

.nav-full .nav-item-full {
    font-weight: 400;
    font-size: 15px;
}

.nav-full.active .nav-item-full {
    color: #273444;
    background-color: #f0f2f5;
    font-weight: bold;
}

.nav-full .nav-item-full .carret i {
    font-size: 1rem;
    font-weight: 400;
}

.nav-item-full:hover {
    color: #273444 !important;
    background-color: #f0f2f5 !important;
}

.last-item {
    position: absolute !important;
    left: auto !important;
    right: -10px !important;
}

.menu-tag {
    font-size: 10px;
    text-transform: uppercase;
    border-radius: 5px;
    font-weight: bold;
    vertical-align: top;
    padding: 2px;
}

.navbar .dropdown-full {
    border-radius: 16px !important;
}

.url-submenu {
    background: #f0f2f5;
    border-radius: 0.5rem;
    font-weight: normal !important;
    font-size: 14px;
}

.card-menu-link i {
    position: relative;
    left: 0;
    transition: 0.6s ease-out;
}

.card-menu-link:hover i {
    left: 5px;
}

@media (max-width:991.98px) {
    .navbar.navbar-header .navbar-collapse {
        background: white;
    }

    .dropdown-menu .row {
        width: auto !important;
    }

    .oneColIcon {
        width: 100%;
    }

    .last-item {
        position: static !important;
    }

    .last-item .col-md-6 {
        margin-bottom: 1rem !important;
    }

    .last-item .col-md-6 p {
        padding-left: 1rem !important;
    }

    .dropdownItem {
        position: unset !important;
        display: block;
    }

    .navbar .dropdown-full {
        border-radius: 0 !important;
    }

    .dropdown-item {
        padding: 0 0 0.5rem 5px !important;
    }

    .col-menu {
        width: 100%;
    }

    .col-menu .dropdown-item {
        max-width: 100% !important;
    }

    .onelColWhiteSpace {
        white-space: normal !important;
    }
}

@media only screen and (max-width:768px) {
    .menu-container li {
        max-width: none !important;
        width: 100% !important;
    }

    .dropdown-menu.dropdown-menu-small li .promo-pined:hover {
        width: 100%;
    }
}

@media only screen and (max-width:330px) {
    .header-logo img {
        max-width: 85%;
    }

    .button-group-mobile {
        margin-right: 5px;
    }

    .button-group-mobile button {
        font-size: 12px;
    }

    .btn-trial-header-home {
        font-size: 18px;
    }

    .btn-product-item a {
        font-size: 12px;
    }
}

.dropdown-menu.dropdown-menu-small li .promo-width__no-hover {
    pointer-events: none;
}

.dropdown-menu.dropdown-menu-small li .promo-width__hover:hover {
    background-color: #fff;
    box-shadow: rgb(14 30 37 / 5%) 0 2px 4px 0, rgb(14 30 37 / 12%) 0 0 10px 0;
    border-radius: 1rem;
}

.dropdown-menu.dropdown-menu-small li .promo-CloudX {
    padding: 10px .5rem;
    border: 2px solid #1b74e4;
    border-radius: 1rem;
}

@media (max-width:991.98px) {
    .container-menu-top {
        display: contents;
    }
}

.menu-container .promo-pined .single-feature-promo .feature-info-wrap h3>.tag {
    white-space: nowrap;
    top: -5px;
}

.menu-container .promo-pined .single-feature-promo .feature-info-wrap h3>.tag>i {
    margin-right: 5px;
}

.block-logo {
    border-radius: 50px;
    background: #FFF;
}

.logo-navbar-brand {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    display: inline-block;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.block-button-login {
    height: 52px;
    padding: 20px 30px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
}

.block-button-login .btn-login {
    color: #1b74e4;
    font-weight: 500;
    background-color: #fff;
    padding: 10px 15px 10px 15px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-items: center;
    justify-content: center;
    gap: 10px;
}

.block-button-login .btn-register-vendor {
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 105, 0, 1);
    color: #fff;
    font-weight: 500;
    border-radius: 0.25rem;
}

@media (min-width: 992px) {
    .menu-container {
        left: -250px;
    }

    .nav-item-solution .menu-container {
        left: -375px;
    }

}

/* Dropdown menu */
.name-column {
    background: #1b74e4;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.dropdown-menu-small li {
    max-width: 288px;
    width: 260px;
    min-height: 86.4px;
    display: flex;
    align-items: flex-start;
    margin: 2px;
}

.promo-pined {
    padding: 10px .5rem;
}

.promo-pined a {
    color: inherit;
    display: flex;
    align-items: center;
}

.single-feature-promo {
    display: flex;
    align-items: flex-start;
}

.feature-info__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: #fff;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    text-align: center;
    font-size: 1.25rem;
    background: #1b74e4;
}

.nav-item-solution .feature-info__icon {
    background: linear-gradient(90deg, hsla(25, 92%, 49%, 1) 1%, hsla(25, 92%, 63%, 1) 100%);
}

.feature-info-wrap {
    margin-left: 15px;
}

.feature-info-wrap h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.single-feature-promo .feature-info-wrap p {
    margin-top: 5px;
    font-size: 14px;
    margin: 0;
    line-height: 1.2;
    font-weight: 400;
    color: #676767;
}

.feature-info-wrap span.tag {
    font-size: 10px;
    background: #cb21341a;
    color: #cb2134;
    margin-bottom: .25rem;
    margin-right: .25rem;
    padding: 2px 6px;
    border-radius: 27px;
    position: relative;
    top: -10px;
    display: inline;
    border-left: none;
}

.menu-container .row-width {
    width: fit-content;
    max-width: 100%;
}

/* Menu danh mục */
.block-header-middle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.block-header-middle .flex-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-flow: row;
    gap: 10px;
}

.block-header-middle .block-categories .block-first {
    border-radius: 10px;
    background: #1b74e4;
    width: 168px;
    flex-shrink: 0;
    padding: 10px;
    gap: 10px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.block-header-middle .block-categories .block-first .title {
    font-size: 18px;
    margin-bottom: 0;
}

.block-header-middle .title {
    color: #fff;
}

.block-header-middle .block-orders .block-item .icon {
    border-radius: 10px;
    border: 1px solid #1B74E4;
    background: rgba(58, 159, 254, 1);
    width: 40px;
    height: 40px;
    padding: 7px;
    position: relative;
}

.block-header-middle .block-orders .block-item .text {
    color: #fff;
    text-align: center;
    font-weight: 700;
    line-height: 22px;
    width: 50%;
}

.block-header-middle .block-orders .item-cart .text {
    width: 100%;
}

.search-form-wrapper {
    margin-bottom: 0;
}

.t-text-field__wrapper {
    align-items: center;
    display: inline-flex;
    position: relative;
}

.block-header-middle .block-orders .item-cart .nav-dropdown {
    position: absolute;
    min-width: 260px;
    max-height: 0;
    z-index: 9;
    padding: 20px 0 10px;
    opacity: 0;
    margin: 0;
    -webkit-transition: opacity .25s;
    -o-transition: opacity .25s;
    transition: opacity .25s;
    color: #777;
    background-color: #fff;
    text-align: left;
    display: table;
    left: -99999px;
}

.block-header-middle .block-orders .item-cart:hover .nav-dropdown {
    left: auto;
    right: 0;
    opacity: 1;
    box-shadow: 1px 1px 15px rgba(0, 0, 0, .15);
    border-radius: 10px;
    top: 100%;
    max-height: 100%;
    list-style: none;
    margin-top: 25px;
    width: 100%;
    min-width: 581px;
}

.block-header-middle .block-orders .block-item .header-cart-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* .block-header-middle .block-orders .item-cart .nav-dropdown li.html {
    padding: 0 20px 10px;
} */

@media (min-width: 1200px) {
    .t-text-field__wrapper .form-group {
        width: 640px;
        margin-bottom: 0;
    }
}

.t-text-field__wrapper #search_input {
    border-radius: 42px;
    border: 1px solid #1B74E4;
    height: 45px;
    background: #1b74e4;
    background-clip: text;
}

.t-text-field__wrapper #search_input:focus {
    box-shadow: none;
}

.t-text-field__wrapper button {
    background: #1b74e4;
    padding: 11px;
    border-radius: 24px;
    position: absolute;
    right: 10px;
    border-color: #1b74e4;
    box-shadow: none;
}

.t-text-field__wrapper button:hover {
    background: #1b74e4;
    box-shadow: none;
}

.t-text-field__wrapper .btn-success:not(:disabled):not(.disabled):active {
    background-color: #1b74e4;
    border-color: #1b74e4;
}

.block-header-middle .block-orders {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0 24px;
}

.block-header-middle .block-orders .block-item {
    display: flex;
    gap: 4px;
    align-items: center;
    position: relative;
}

.item-cart .total-item {
    top: -8px;
    right: -8px;
    position: absolute;
    color: #fff;
    background-color: #ff5722;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    z-index: 1;
}

/* Sub menu danh mục */
.block-categories .nav-dropdown {
    display: flex;
    flex-wrap: wrap;
    height: 500px;
    overflow-y: auto;
}

.block-categories .sub-menu {
    background-color: #fff;
    color: #777;
    display: table;
    left: -99999px;
    margin: 0;
    max-height: 0;
    min-width: 260px;
    opacity: 0;
    padding: 20px 0;
    position: absolute;
    text-align: left;
    transition: opacity .25s, visibility .25s;
    visibility: hidden;
    z-index: 9;
}

.block-categories .open_mega_menu {
    min-width: 1320px;
    max-width: 100%;
    opacity: 1;
    visibility: visible;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 1px 1px 15px rgba(0, 0, 0, .15);
    margin-top: 30px;
    border-radius: 15px;
    padding-top: 0;
}

.nav-dropdown>li.nav-dropdown-col {
    width: 20%;
    margin-bottom: 20px;
}

.nav-dropdown>li.nav-dropdown-col {
    display: table-cell;
    min-width: 160px;
    text-align: left;
    white-space: nowrap;
    width: 160px;
    padding: 20px
}

.nav-dropdown>li.nav-dropdown-col>a {
    margin-bottom: 10px;
    color: #1b74e4;
    position: relative;
    border-radius: unset;
    font-size: 18px;
    display: flex;
}

.nav-dropdown>li.nav-dropdown-col>a:before {
    content: "";
    position: absolute;
    left: 0px;
    right: 5px;
    bottom: 0px;
    display: block;
    width: 60px;
    height: 5px;
    border-radius: 10px;
    background: #1b74e4;
    top: 25px;
}

.map-product-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.map-product-item .map-product-name {
    color: #000;
}

.map-product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: #fff;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    text-align: center;
    font-size: 1.25rem;
    background: #1b74e4;
}

.block-col-2 .map-product-icon {
    background: linear-gradient(90deg, #E4E41B 0%, #EB7610 100%);
}

.map-product-icon svg {
    width: 28px;
    height: 28px;
    padding: 5px;
}

.nav-dropdown>li.nav-dropdown-col ul.sub-children {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.nav-dropdown>li.nav-dropdown-col ul.sub-children li.menu-item {
    margin-bottom: 10px;
}

.nav-dropdown>li.nav-dropdown-col a:hover {
    text-decoration: none;
}


/* Banner */
.block-banner {
    margin-bottom: 30px;
}

.block-banner img {
    width: 100%;
    border-radius: 10px;
}

.block-button-login ul.account-options {
    display: flex;
    gap: 10px;
    color: #fff;
    margin-bottom: 0;
    list-style: none;
    padding-left: 0;
}

.block-button-login ul.account-options li.user_logut a {
    color: #fff;
}

.order-lookup-link,
.order-history-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* User Dropdown Menu Styles */
.user-menu-wrapper {
    position: relative;
}

.user-dropdown {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-dropdown:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.user-name {
    color: #fff;
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-arrow {
    font-size: 10px;
    color: #fff;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.user-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    margin-top: 8px;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 2px;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: none;
    gap: 5px;
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    color: #1b74e4;
    text-decoration: none;
}

.dropdown-link i {
    font-size: 14px;
    width: 16px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.dropdown-link:hover i {
    color: #1b74e4;
}

.logout-link:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

.logout-link:hover i {
    color: #dc3545;
}

.dropdown-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 4px 0;
    list-style: none;
}

/* Responsive Design for User Menu */
@media (max-width: 768px) {
    .user-greeting {
        font-size: 13px;
    }

    .user-name {
        max-width: 80px;
    }

    .user-dropdown-menu {
        min-width: 180px;
        right: -10px;
    }

    .user-dropdown-menu::before {
        right: 25px;
    }

    .t-text-field__wrapper button {
        padding: 13px;
        right: 0;
    }

    .t-text-field__wrapper .form-group {
        margin-bottom: 0;
    }

    .category-trigger-content {
        white-space: nowrap;
    }

    .cart-header .item-cart {
        display: flex;
        gap: 4px;
        align-items: center;
        position: relative;
    }
}

@media (max-width: 480px) {
    .user-greeting {
        gap: 4px;
    }

    .user-name {
        max-width: 60px;
    }

    .dropdown-link {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Animation for smooth dropdown */
.user-dropdown-menu .dropdown-item {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.3s ease forwards;
}

.user-dropdown-menu .dropdown-item:nth-child(1) {
    animation-delay: 0.1s;
}

.user-dropdown-menu .dropdown-item:nth-child(2) {
    animation-delay: 0.15s;
}

.user-dropdown-menu .dropdown-item:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover state for better UX */
.user-dropdown {
    position: relative;
}

.user-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

/* Enhanced hover area for better UX */
.user-menu-wrapper:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Active state styling */
.dropdown-link:active {
    background-color: #e9ecef;
    transform: translateY(1px);
}

/* Focus states for accessibility */
.dropdown-link:focus {
    outline: 2px solid #1b74e4;
    outline-offset: -2px;
    background-color: #f8f9fa;
}

.user-dropdown:focus-within .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Improved contrast for better readability */
.dropdown-link span {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Subtle shadow for menu separation */
.user-dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Loading state for logout link */
.logout-link.loading {
    pointer-events: none;
    opacity: 0.7;
}

.logout-link.loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #dc3545;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Full-width search box on homepage */
.block-search.full-width {
    width: 100%;
    max-width: 100%;
}

.block-search.full-width .search-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Adjust flex-row when search is full-width */
.block-header-middle .flex-row:has(.block-search.full-width) {
    justify-content: center;
}

/* Hide categories block on homepage */
.block-header-middle .flex-row .block-categories {
    flex: 0 0 auto;
    margin-right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .block-search.full-width .search-form-wrapper {
        max-width: 100%;
    }
}