.mmtl-icon {
    display: block;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-header .site-shell {
    width: min(1500px, calc(100vw - 40px));
}

.site-header {
    background: #fffdfa;
    box-shadow: 0 2px 12px rgba(83, 10, 5, .14);
}

.topbar {
    background: linear-gradient(100deg, #a60008 0%, #c00008 55%, #a90007 100%);
    color: #ffe4a2;
    font-size: 14px;
}

.topbar__inner {
    display: grid;
    grid-template-columns: minmax(0, 760px) auto;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 58px;
    padding-block: 6px;
}

.topbar .topbar__inner {
    width: min(1640px, calc(100vw - 96px));
}

.topbar-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 760px;
}

/* Ban Tai khoan/Yeu thich/Gio hang chi thay the topbar tren mobile (xem
   @media max-width:700px ben duoi); tren desktop van la chinh sach mua hang. */
.topbar-quick-actions {
    display: none;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.topbar-item > .mmtl-icon {
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    color: #ffd462;
    stroke-width: 1.65;
}

.topbar-item span,
.header-action > span:last-child {
    display: grid;
    line-height: 1.25;
}

.topbar-item strong {
    color: #fff3d0;
    font-size: 14px;
}

.topbar-item small {
    margin-top: 3px;
    color: #f6c987;
    font-size: 12px;
}

.topbar-contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    white-space: nowrap;
}

.topbar-contact > span {
    color: #fff0c5;
    font-weight: 700;
}

.topbar-contact a {
    text-decoration: none;
}

.topbar-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-social,
.topbar-cart {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 218, 111, .42);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(118, 0, 5, .16));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 11px rgba(92, 0, 4, .2);
    color: #ffe69a;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.topbar-social::after,
.topbar-cart::after {
    position: absolute;
    top: -45%;
    left: -80%;
    width: 50%;
    height: 190%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .62), transparent);
    content: "";
    transform: rotate(22deg);
    transition: left .42s ease;
}

.topbar-social:hover,
.topbar-cart:hover {
    background: linear-gradient(145deg, #ffe38a, #eeb238);
    color: #98040b;
    box-shadow: 0 6px 16px rgba(77, 0, 4, .3), 0 0 0 3px rgba(255, 209, 86, .14);
    transform: translateY(-2px) scale(1.04);
}

.topbar-social:focus-visible,
.topbar-cart:focus-visible {
    outline: 2px solid #fff2b2;
    outline-offset: 3px;
}

.topbar-social:hover::after,
.topbar-cart:hover::after {
    left: 130%;
}

.topbar-social .mmtl-icon {
    position: relative;
    z-index: 1;
    width: 19px;
    height: 19px;
}

.topbar-social .mmtl-icon--tiktok {
    width: 23px;
    height: 23px;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .12));
}

.topbar-social .mmtl-icon--tiktok path {
    stroke: none;
}

.topbar-social:hover .mmtl-icon--tiktok {
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .24));
}

.topbar-social .mmtl-icon--zalo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: contain;
}

.topbar-cart {
    width: 40px;
    height: 40px;
    border-color: rgba(255, 218, 111, .6);
    background: linear-gradient(145deg, rgba(255, 226, 127, .18), rgba(118, 0, 5, .15));
}

.topbar-cart .mmtl-icon {
    position: relative;
    z-index: 1;
    width: 27px;
    height: 27px;
}

.header-main-wrap {
    background: #fffdfa;
    border-bottom: 1px solid #ead6c1;
}

.header-main {
    display: grid;
    grid-template-columns: minmax(325px, 420px) minmax(300px, 1fr) auto;
    align-items: center;
    gap: clamp(24px, 3vw, 52px);
    min-height: 112px;
    padding-block: 18px;
}

.site-brand {
    gap: 13px;
    margin-left: 16px;
    min-width: 0;
}

.site-brand img,
.site-brand__mark {
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
}

.site-brand__mark {
    position: relative;
    display: grid;
    place-items: center;
    overflow: visible;
    border: 3px solid #ae0710;
    background: radial-gradient(circle at 34% 27%, #fff8bc 0 7%, #ffd84f 27%, #f4b716 65%, #d98b00 100%);
    box-shadow: 0 0 0 3px rgba(238, 173, 22, .34), 0 7px 20px rgba(169, 7, 15, .24), inset 0 1px 8px rgba(255, 255, 255, .78);
    color: #ae0710;
    transition: transform .22s ease, box-shadow .22s ease;
}

.site-brand:hover .site-brand__mark {
    transform: translateY(-1px) rotate(-2deg);
    box-shadow: 0 0 0 3px rgba(238, 173, 22, .48), 0 8px 26px rgba(169, 7, 15, .34), inset 0 1px 8px rgba(255, 255, 255, .82);
}

.site-brand__copy {
    display: block;
    min-width: 0;
}

.site-brand strong {
    display: flex;
    align-items: baseline;
    gap: .24em;
    color: #ad070c;
    font-size: clamp(23px, 1.75vw, 30px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.05;
    text-transform: none;
    white-space: nowrap;
}

.brand-word {
    display: inline;
}

.site-brand .brand-word--red {
    color: #b30710;
}

.site-brand .brand-word--gold {
    color: #b97708;
    text-shadow: 0 1px 0 #fff2bd;
}

.site-brand small {
    margin-top: 6px;
    color: #ad1e11;
    font-size: 15px;
    letter-spacing: .015em;
    line-height: 1.2;
}

.brand-mark,
.brand-mark__svg {
    display: block;
    width: 100%;
    height: 100%;
}

.brand-mark {
    padding: 7px;
}

.brand-mark__svg {
    overflow: visible;
}

.brand-mark__branch {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 3.2;
}

.brand-mark__leaf,
.brand-mark__flower ellipse,
.brand-mark__bud {
    fill: #b30710;
    stroke: #82030a;
    stroke-width: 1.2;
}

.brand-mark__center {
    fill: #fff0a0;
    stroke: #92050b;
    stroke-width: 1.4;
}

.brand-mark__stamen {
    fill: #b30710;
}

.header-search {
    position: relative;
    height: 52px;
    border: 1px solid #e5d5c8;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(80, 30, 12, .03);
    overflow: visible;
}

.header-search:focus-within {
    border-color: #b70710;
    box-shadow: 0 0 0 3px rgba(183, 7, 16, .09);
}

.header-search input {
    color: #3c2c25;
    font-size: 15px;
    outline: 0;
}

.header-search button {
    display: grid;
    place-items: center;
    width: 66px;
    background: linear-gradient(180deg, #c20b12, #a80008);
}

.header-search button .mmtl-icon {
    width: 27px;
    height: 27px;
    stroke-width: 2;
}

.header-search__suggest {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 90;
    overflow: hidden;
    border: 1px solid #e5c89f;
    border-radius: 12px;
    background: #fffdf8;
    box-shadow: 0 22px 55px rgba(70, 20, 9, .22);
}

.header-search__suggest[hidden] {
    display: none;
}

.search-suggest__inner {
    max-height: min(70vh, 560px);
    overflow-y: auto;
    padding: 10px;
}

.search-suggest__group + .search-suggest__group {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1dcc0;
}

.search-suggest__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 6px;
    padding-inline: 6px;
    color: #9b0710;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.search-suggest__item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 9px;
    color: #4d281b;
    text-decoration: none;
}

.search-suggest__item:hover,
.search-suggest__item:focus {
    background: #fff3df;
    outline: 0;
}

.search-suggest__thumb {
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8ead2;
}

.search-suggest__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-suggest__thumb span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #b70710;
    font-weight: 900;
}

.search-suggest__body {
    min-width: 0;
}

.search-suggest__body strong {
    display: block;
    overflow: hidden;
    color: #4d2418;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggest__body small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #866b5b;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggest__price {
    color: #b70710;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.search-suggest__term {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 4px;
    padding: 8px 11px;
    border: 1px solid #eed4a8;
    border-radius: 999px;
    background: #fff8ec;
    color: #6d3b20;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.search-suggest__term:hover {
    border-color: #b70710;
    color: #b70710;
}

.search-suggest__all {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 8px;
    border-radius: 9px;
    background: #b70710;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.search-suggest__empty {
    padding: 18px;
    color: #6f5345;
    text-align: center;
}

.search-suggest__empty strong {
    display: block;
    margin-bottom: 5px;
    color: #4d2418;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2vw, 34px);
}

.header-action {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: max-content;
    color: #a90a0f;
    text-decoration: none;
}

.header-action > .mmtl-icon,
.header-action__icon > .mmtl-icon {
    width: 39px;
    height: 39px;
    stroke-width: 1.55;
}

.header-action__icon {
    position: relative;
    flex: 0 0 auto;
}

.header-action strong {
    font-size: 14px;
    line-height: 1.2;
}

.header-action small {
    margin-top: 5px;
    color: #66544c;
    font-size: 13px;
}

.header-action:hover strong {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.header-count {
    position: absolute;
    top: -5px;
    right: -7px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding-inline: 4px;
    border: 2px solid #ae070d;
    border-radius: 999px;
    background: #ffd44f;
    color: #92030a;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.header-action .header-count {
    top: -6px;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    padding: 10px;
}

.menu-toggle .mmtl-icon {
    width: 24px;
    height: 24px;
}

.menu-toggle__close {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__open {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
    display: block;
}

.main-nav {
    background: linear-gradient(90deg, #a5060d, #c30a11 48%, #a3050c);
}

.main-nav__inner {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 58px;
}

.main-nav .primary-menu {
    display: flex;
    justify-content: center;
    width: 100%;
}

.main-nav .menu > .menu-item {
    position: relative;
}

.main-nav .menu > .menu-item > a,
.main-nav .menu > .menu-item > .menu-link-row > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 58px;
    padding: 0 clamp(15px, 1.7vw, 27px);
    border-inline-start: 1px solid rgba(255, 255, 255, .04);
    color: #fff7dc;
    font-size: 14px;
    letter-spacing: .15px;
}

.main-nav .menu > .menu-item > a:hover,
.main-nav .menu > .menu-item > .menu-link-row > a:hover,
.main-nav .menu > .current-menu-item > a,
.main-nav .menu > .current-menu-item > .menu-link-row > a,
.main-nav .menu > .current-menu-ancestor > a,
.main-nav .menu > .current-menu-ancestor > .menu-link-row > a {
    background: linear-gradient(180deg, #d31319, #ae060d);
    box-shadow: inset 0 -3px #efb22e;
}

.main-nav a .mmtl-icon--chevron {
    width: 15px;
    height: 15px;
    stroke-width: 2.1;
}

.main-nav .menu-link-row {
    display: flex;
}

.main-nav .menu-link-row > a {
    flex: 1;
}

.submenu-toggle {
    display: none;
}

.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    display: none;
    width: 250px;
    padding: 7px 0;
    border: 1px solid #ebcfaa;
    border-top: 3px solid #d29a22;
    border-radius: 0 0 6px 6px;
    background: #fffdf8;
    box-shadow: 0 15px 35px rgba(77, 15, 8, .18);
    color: #4b261b;
}

.main-nav .menu-item:hover > .sub-menu,
.main-nav .menu-item:focus-within > .sub-menu {
    display: block;
}

.main-nav .sub-menu .menu-item {
    position: relative;
    width: 100%;
}

.main-nav .sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    color: #633023;
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
}

.main-nav .sub-menu a:hover {
    background: #fff1df;
    color: #ae070d;
}

.main-nav .sub-menu .sub-menu {
    top: -10px;
    left: calc(100% - 2px);
}

.nav-ornament {
    position: absolute;
    left: 8px;
    top: 50%;
    z-index: 1;
    color: rgba(234, 173, 46, .6);
    font-size: 43px;
    line-height: 1;
    transform: translateY(-52%);
    pointer-events: none;
}

.nav-ornament--right {
    right: 8px;
    left: auto;
    transform: translateY(-52%) scaleX(-1);
}

@media (max-width: 1280px) {
    .site-header .site-shell {
        width: min(1180px, calc(100vw - 32px));
    }

    .topbar-benefits {
        gap: 24px;
    }

    .topbar .topbar__inner {
        width: min(1180px, calc(100vw - 40px));
        grid-template-columns: minmax(0, 700px) auto;
    }

    .topbar-contact {
        gap: 12px;
    }

    .header-main {
        grid-template-columns: minmax(280px, 350px) minmax(260px, 1fr) auto;
        gap: 24px;
    }

    .header-actions {
        gap: 16px;
    }

    .header-action {
        gap: 7px;
    }

    .header-action > .mmtl-icon,
    .header-action__icon > .mmtl-icon {
        width: 32px;
        height: 32px;
    }

    .main-nav .menu > .menu-item > a {
        padding-inline: 15px;
    }
}

@media (max-width: 1050px) {
    .topbar-benefits {
        grid-template-columns: repeat(2, minmax(170px, 1fr));
    }

    .topbar-item:nth-child(3) {
        display: none;
    }

    .header-main {
        grid-template-columns: 1fr auto;
        min-height: auto;
        padding-block: 14px;
    }

    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .header-actions {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-content: space-between;
        padding-top: 3px;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .main-nav {
        display: none;
        max-height: calc(100vh - 190px);
        overflow-y: auto;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav__inner,
    .main-nav .primary-menu {
        display: block;
    }

    .main-nav .menu > .menu-item > a,
    .main-nav .menu > .menu-item > .menu-link-row > a {
        justify-content: space-between;
        min-height: 48px;
        padding: 11px 16px;
    }

    .main-nav .sub-menu,
    .main-nav .sub-menu .sub-menu {
        position: static;
        display: none;
        width: 100%;
        padding: 0 0 4px 16px;
        border: 0;
        border-radius: 0;
        background: rgba(79, 0, 4, .18);
        box-shadow: none;
    }

    .main-nav .menu-item.is-submenu-open > .sub-menu {
        display: block;
    }

    .main-nav .menu-link-row {
        display: flex;
        align-items: stretch;
    }

    .main-nav .menu-link-row > a > .mmtl-icon--chevron {
        display: none;
    }

    .submenu-toggle {
        display: grid;
        place-items: center;
        flex: 0 0 48px;
        border: 0;
        border-left: 1px solid rgba(255, 255, 255, .08);
        background: transparent;
        color: #fff1ca;
        cursor: pointer;
    }

    .submenu-toggle .mmtl-icon {
        width: 18px;
        height: 18px;
        transition: transform .18s ease;
    }

    .submenu-toggle[aria-expanded="true"] .mmtl-icon {
        transform: rotate(180deg);
    }

    .main-nav .sub-menu a {
        color: #fff3d0;
    }

    .nav-ornament {
        display: none;
    }
}

@media (max-width: 700px) {
    .site-header {
        position: relative;
    }

    .site-header .site-shell {
        width: min(100% - 24px, 620px);
    }

    .topbar__inner {
        grid-template-columns: 1fr;
        gap: 8px;
        min-height: auto;
        padding-block: 8px;
    }

    .topbar .topbar__inner {
        width: min(100% - 24px, 620px);
    }

    /* Tren mobile, topbar chi con Tai khoan/Yeu thich/Gio hang thay cho
       chinh sach mua hang + hotline; ban .header-actions o header-main
       (duoi thanh tim kiem) bi an de khong lap lai. */
    .topbar-benefits,
    .topbar-contact {
        display: none;
    }

    .topbar-quick-actions {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
    }

    .topbar-quick-actions .header-action {
        color: #fff3d0;
    }

    .topbar-quick-actions .header-action strong {
        color: #fff3d0;
    }

    .topbar-quick-actions .header-action small {
        display: none;
    }

    .topbar-quick-actions .mmtl-icon {
        width: 26px;
        height: 26px;
        color: #ffd462;
    }

    .header-actions {
        display: none;
    }

    .topbar-item > .mmtl-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .topbar-socials {
        margin-left: auto;
    }

    .topbar-social {
        width: 28px;
        height: 28px;
    }

    .topbar-cart {
        display: none;
    }

    .header-main {
        gap: 12px;
    }

    .site-brand {
        margin-left: 0;
    }

    .site-brand img,
    .site-brand__mark {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .site-brand strong {
        font-size: 19px;
    }

    .site-brand small {
        margin-top: 3px;
        font-size: 12px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-action {
        min-width: 0;
    }

    .header-action > .mmtl-icon,
    .header-action__icon > .mmtl-icon {
        width: 28px;
        height: 28px;
    }

    .header-action strong {
        font-size: 12px;
    }

    .header-action small {
        display: none;
    }
}

@media (max-width: 420px) {
    .topbar-socials {
        display: none;
    }

    .site-brand strong {
        font-size: 17px;
    }

    .header-action {
        flex-direction: column;
        gap: 3px;
        text-align: center;
    }
}
