/* VGIFT header: scoped to Flatsome's existing header and controls. */
:root {
  --vgift-wine: #db070f;
  --vgift-cream: #fbf7ee;
  --vgift-gold: #d9bd7e;
}

#main,
#wrapper {
  background-color: var(--vgift-cream) !important;
}

.nav-column>li>a,
.nav-dropdown>li>a,
.nav-vertical-fly-out>li>a,
.nav>li>a {
  color: #000 !important;
}

#header .header-wrapper {
  background: var(--vgift-cream);
}

#header #masthead {
  display: block;
  position: relative;
  height: 100px;
  padding: 0 !important;
  background: var(--vgift-cream);
  border-bottom: 1px solid #e4d8c5;
}

#header #masthead::before,
#header #masthead::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(80px, 10vw, 170px);
  background: url('header-blossom.svg') left center / contain no-repeat;
  pointer-events: none;
  opacity: .85;
}

#header #masthead::after {
  left: auto;
  right: 0;
  transform: scaleX(-1);
}

#header #masthead .header-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  height: 100%;
  gap: 30px;
  padding: 0 24px;
}

#header #logo {
  width: 225px;
  margin: 0;
  flex: 0 0 225px;
}

#header .vgift-header-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--vgift-wine);
  white-space: nowrap;
}

#header .vgift-header-brand span {
  font: 700 51px/1 Georgia, 'Times New Roman', serif;
  letter-spacing: -2px;
}

#header .vgift-header-mark {
  flex: 0 0 52px;
  width: 52px;
  height: 56px;
}

#header #masthead .header-nav {
  flex-wrap: nowrap;
  gap: 0;
}

#header #masthead .html_topbar_right {
  display: none !important;
}

#header #masthead .header-search-form {
  width: 100%;
  margin: 0;
  padding: 0;
}

#header .header-search-form-wrapper {
  width: 100%;
}

#header .searchform {
  margin: 0;
}

#header .searchform>.flex-row {
  min-height: 48px;
  border: 1px solid #c7c0ae;
  border-radius: 9px;
  background: #fffdf6;
  box-shadow: 0 1px 3px #3c22100a;
}

#header .searchform .search-field {
  height: 48px;
  padding: 0 19px;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #342b28;
  font: 16px/1.4 Arial, sans-serif;
  border-radius: 9px 0 0 9px;
}

#header .searchform .search-field::placeholder {
  color: #625a50;
  opacity: 1;
}

#header .searchform .ux-search-submit {
  width: 66px;
  min-height: 48px;
  margin: 0;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--vgift-wine);
  color: #fff8e9;
  box-shadow: none;
}

#header .searchform>.flex-row:focus-within {
  outline: 2px solid var(--vgift-gold);
  outline-offset: 3px;
}

#header .searchform .ux-search-submit:hover {
  background: var(--vgift-wine);
}

#header #masthead .flex-right>.nav {
  gap: 22px;
}

#header #masthead .html_topbar_left {
  margin: 0;
  padding: 0;
}

#header #header-contact {
  margin: 0;
}

#header #header-contact a {
  display: grid;
  grid-template-columns: 24px auto;
  grid-template-rows: auto auto;
  column-gap: 5px;
  align-items: center;
  color: var(--vgift-wine);
  text-transform: none;
}

#header #header-contact a::before {
  content: 'Hotline';
  grid-column: 2;
  grid-row: 1;
  color: #29231f;
  font-size: 14px;
}

#header #header-contact i {
  grid-column: 1;
  grid-row: 1 / 3;
  margin: 0;
  color: var(--vgift-wine);
  font-size: 24px !important;
}

#header #header-contact span {
  display: block !important;
  grid-column: 2;
  grid-row: 2;
  color: var(--vgift-wine);
  font-size: 16px;
  white-space: nowrap;
  margin-left: 0;
}

#header #masthead .header-divider {
  height: 44px;
  border-color: #d4cabb;
  margin: 0;
}

#header .header-cart-link {
  color: var(--vgift-wine) !important;
}

#header .header-cart-link .header-cart-title {
  display: none;
}

#header #masthead .icon-shopping-cart {
  font-size: 24px;
}

#header [data-icon-label]::after {
  background: var(--vgift-wine) !important;
  color: #fff9e9;
  font-size: 11px;
  box-shadow: none;
}

#header #wide-nav {
  min-height: 56px;
  background: var(--vgift-wine);
  border-bottom: 2px solid #a97b40;
}

#header #wide-nav>.flex-row {
  max-width: 1320px;
  min-height: 56px;
  padding: 0 24px;
}

#header #wide-nav .header-bottom-nav {
  gap: 0;
}

#header #wide-nav>.flex-row>.flex-left {
  flex: 0 0 310px;
  margin: 0;
}

#header #wide-nav>.flex-row>.flex-center {
  flex: 1;
}

#header #wide-nav>.flex-row>.flex-right:has(ul:empty) {
  display: none;
}

#header #wide-nav .nav-center {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
}

#header #wide-nav .nav-center>.menu-item {
  margin: 0;
  flex: 1;
  text-align: center;
}

#header #wide-nav .nav-center>.menu-item>a {
  display: flex;
  justify-content: center;
  margin: 5px 10px;
  padding: 4px 16px;
  min-height: 42px;
  border-radius: 10px;
  color: #fff7e6 !important;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

#header #wide-nav .nav-center>.menu-item>a::before {
  display: none;
}

#header #wide-nav .nav-center>.menu-item:not(.member-menu)>a:hover,
#header #wide-nav .nav-center>.menu-item.current-menu-item>a,
#header #wide-nav .nav-center>.menu-item.active>a {
  background: linear-gradient(110deg, #fff9e5, #f0e0ac);
  color: var(--vgift-wine) !important;
  box-shadow: inset 0 0 0 1px #d4b97a;
}

#header .header-vertical-menu {
  width: 100%;
  margin: 0;
}

#header .header-vertical-menu__opener {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 36px;
  margin-right: 20px;
  padding: 0 22px 0 0;
  background: transparent;
  border-right: 1px solid #b98985;
  color: #fff7e6;
}

#header .header-vertical-menu__title {
  text-transform: none;
}

#header .header-vertical-menu__icon {
  margin: 0;
}

.header-vertical-menu__opener .icon-menu {
  margin: 0 !important;
}

#header .header-vertical-menu__opener>.icon-angle-down {
  margin-left: auto;
}

#header .header-vertical-menu__fly-out {
  top: 100%;
  border: 1px solid #e5d4b7;
  border-top: 0;
  background: #fffdf7;
}

#header a:focus-visible,
#header button:focus-visible {
  outline: 2px solid #d5ab57;
  outline-offset: 3px;
}

/* Retain account access without crowding the main row. */
#header #masthead .html_top_right_text {
  position: absolute;
  right: 112px;
  bottom: 3px;
  margin: 0;
  padding: 0;
  line-height: 1;
}

#header #masthead .html_top_right_text .account-item {
  font-size: 10px;
  color: #6c4b3c;
}

@media (min-width: 850px) {
  #header #wide-nav>.flex-row>.flex-right {
    flex-grow: 0;
  }

  #header .stuck #masthead {
    height: 80px !important;
  }

  #header .stuck #masthead.hide-for-sticky {
    display: block !important;
  }
}

@media (min-width: 850px) and (max-width: 1150px) {
  #header #masthead .header-inner {
    gap: 20px;
  }

  #header #logo {
    flex-basis: 180px;
    width: 180px;
  }

  #header .vgift-header-brand span {
    font-size: 42px;
  }

  #header .vgift-header-mark {
    width: 40px;
    flex-basis: 40px;
  }

  #header #header-contact span {
    font-size: 18px;
  }

  #header #masthead .flex-right>.nav {
    gap: 14px;
  }

  #header #wide-nav>.flex-row>.flex-left {
    flex-basis: 260px;
  }

  #header .header-vertical-menu__title,
  #header #wide-nav .nav-center>.menu-item>a {
    font-size: 18px;
  }

  #header #wide-nav .nav-center>.menu-item>a {
    margin-inline: 4px;
    padding-inline: 10px;
  }
}

@media (max-width: 849px) {
  #header #masthead {
    height: 76px;
  }

  #header #masthead .header-inner {
    justify-content: center;
    padding: 0 16px;
    gap: 0;
  }

  #header #logo {
    order: 0;
    flex: 0 0 auto;
    width: auto;
    margin: 0 !important;
  }

  #header .vgift-header-brand {
    gap: 7px;
  }

  #header .vgift-header-brand span {
    font-size: 40px;
  }

  #header .vgift-header-mark {
    width: 40px;
    height: 44px;
    flex-basis: 40px;
  }

  #header #masthead .show-for-medium {
    display: none !important;
  }

  #header #masthead::before,
  #header #masthead::after {
    width: 100px;
    opacity: .7;
  }

  #header #wide-nav,
  #header #wide-nav>.flex-row {
    min-height: 52px;
  }

  #header #wide-nav>.flex-row {
    padding: 0 16px;
  }

  #header #wide-nav .mobile-nav {
    position: relative;
    justify-content: flex-start;
    gap: 18px;
    min-height: 52px;
  }

  #header #wide-nav .mobile-nav>.nav-icon.has-icon,
  #header #wide-nav .mobile-nav>.header-search-dropdown,
  #header #wide-nav .mobile-nav>.cart-item.has-icon,
  #header #wide-nav .mobile-nav>.html_nav_position_text_top,
  #header #wide-nav .mobile-nav>.html_top_right_text {
    position: static;
    inset: auto;
    margin: 0;
  }

  #header #wide-nav .mobile-nav>.html_topbar_right {
    display: none !important;
  }

  #header #wide-nav .mobile-nav>.cart-item {
    margin-left: auto;
  }

  #header #wide-nav .mobile-nav>.nav-icon>a,
  #header #wide-nav .mobile-nav>.cart-item>a,
  #header #wide-nav .mobile-nav>.header-search-dropdown .header-button>a {
    color: #fff7e6;
    font-size: 23px;
    margin: 0;
  }

  #header #wide-nav .mobile-nav>.header-search-dropdown .header-button>a {
    width: 34px;
    height: 40px;
    padding: 0;
    background: transparent;
  }

  #header #wide-nav .mobile-nav .icon-shopping-cart {
    font-size: 28px;
  }

  #header #wide-nav .mobile-nav .header-search-dropdown .nav-dropdown {
    left: -50px !important;
    right: auto;
    min-width: 0;
    width: min(360px, calc(100vw - 32px));
    padding: 15px;
    border-color: #e1d1b2;
    background: #fffaf0;
  }

  #header #wide-nav .mobile-nav .nav-dropdown .header-search-form {
    width: 100%;
  }

  #header .stuck #masthead.hide-for-sticky {
    display: block !important;
    height: 64px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #header * {
    scroll-behavior: auto;
    transition: none !important;
  }
}

/* Keep guest navigation compact and the category label on one line. */
body:not(.user-logged-in):not(.logged-in) #header .member-menu {
  display: none !important;
}

#header #wide-nav>.flex-row>.flex-left {
  flex-basis: 350px;
}

#header .header-vertical-menu__opener {
  gap: 12px;
  margin-right: 20px;
  padding-right: 18px;
}

#header .header-vertical-menu__title {
  white-space: nowrap;
}

#header #wide-nav .nav-center>.menu-item>a:hover {
  background: #f5e8bf;
  color: var(--vgift-wine) !important;
}

#header [data-icon-label]::after {
  content: attr(data-icon-label);
  display: block !important;
  top: -8px;
  right: -11px;
  min-width: 19px;
  height: 19px;
  line-height: 19px;
}

#header #masthead .html_top_right_text .account-item:not(.has-icon) {
  display: none;
}

@media (min-width: 850px) and (max-width: 1150px) {
  #header #wide-nav>.flex-row>.flex-left {
    flex-basis: 290px;
  }

  #header .header-vertical-menu__opener {
    gap: 8px;
    margin-right: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 849px) {
  #header #wide-nav .mobile-nav {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 18px;
  }

  #header #wide-nav .mobile-nav>li {
    flex: 0 0 auto;
  }

  #header #wide-nav .mobile-nav>.cart-item {
    margin-left: auto !important;
  }

  #header #wide-nav .mobile-nav>.html_top_right_text {
    order: 5;
    line-height: 1;
  }

  #header #wide-nav .mobile-nav .html_top_right_text .account-item:not(.has-icon) {
    display: none;
  }

  #header #wide-nav .mobile-nav .html_top_right_text .account-item.has-icon {
    position: static;
    display: block;
    font-size: 0;
    width: 25px;
    height: 28px;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='28' viewBox='0 0 25 28' fill='none' stroke='%23fff7e6' stroke-width='1.8'%3E%3Ccircle cx='12.5' cy='8' r='5'/%3E%3Cpath d='M3 26v-3a9.5 9.5 0 0 1 19 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  #header #wide-nav .mobile-nav .header-search-dropdown .header-button>a {
    border: 0;
    box-shadow: none;
  }
}

/* Compact price picker inside the desktop category fly-out. */
@media (min-width: 850px) {
  #header .header-vertical-menu .san-pham-combo-gia>.nav-dropdown {
    width: min(640px, calc(100vw - 340px)) !important;
    min-width: 0;
    min-height: 0 !important;
    max-height: min(650px, calc(100dvh - 190px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px !important;
    background: #fffaf1;
    border: 1px solid #e9d7b8;
    border-top: 3px solid var(--vgift-wine);
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 12px 30px #54220c1c;
    scrollbar-width: thin;
    scrollbar-color: #d5b88c #fffaf1;
  }

  #header .header-vertical-menu .san-pham-combo-gia>.nav-dropdown::before {
    content: 'Chọn khoảng giá';
    display: block;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eadcc4;
    color: var(--vgift-wine);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
  }

  #header .san-pham-combo-gia>.nav-dropdown .row,
  #header .san-pham-combo-gia>.nav-dropdown .col,
  #header .san-pham-combo-gia>.nav-dropdown .col-inner {
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  #header .san-pham-combo-gia>.nav-dropdown p:empty {
    display: none;
  }

  #header .san-pham-combo-gia>.nav-dropdown ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #header .san-pham-combo-gia>.nav-dropdown ul>li {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
  }

  #header .san-pham-combo-gia>.nav-dropdown ul>li>a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
    padding: 8px 6px;
    border: 1px solid #e8dcc9;
    border-radius: 7px;
    background: #fff;
    color: #544134;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
  }

  #header .san-pham-combo-gia>.nav-dropdown ul>li>a:hover,
  #header .san-pham-combo-gia>.nav-dropdown ul>li>a:focus-visible {
    background: var(--vgift-wine);
    border-color: var(--vgift-wine);
    color: #fff;
  }

  #header .san-pham-combo-gia>.nav-dropdown ul>li>a[aria-current="page"] {
    background: #f7e8ca;
    border-color: #cba76c;
    color: #80211d;
    font-weight: 700;
  }

  #header .san-pham-combo-gia:hover>.nav-top-link,
  #header .san-pham-combo-gia:focus-within>.nav-top-link {
    background: #faeed9;
    color: var(--vgift-wine);
  }

  #header .san-pham-combo-gia:focus-within>.nav-dropdown {
    opacity: 1;
    visibility: visible;
    left: 100%;
  }
}

@media (min-width: 1200px) {
  #header .san-pham-combo-gia>.nav-dropdown ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Match category submenus to the cream background of their parent panel. */
#header .header-vertical-menu__fly-out .nav-dropdown {
  background-color: #fffdf7;
}

/* Mobile toolbar: even touch targets and readable white icons. */
@media (max-width: 849px) {

  #header #wide-nav,
  #header #wide-nav>.flex-row {
    min-height: 58px;
  }

  #header #wide-nav .mobile-nav {
    min-height: 58px;
    gap: 12px;
  }

  #header #wide-nav .mobile-nav>.nav-icon>a,
  #header #wide-nav .mobile-nav>.cart-item>a,
  #header #wide-nav .mobile-nav>.header-search-dropdown .header-button>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 46px;
    min-height: 44px;
    padding: 0;
    color: #fff7e6;
  }

  #header #wide-nav .mobile-nav .icon-menu,
  #header #wide-nav .mobile-nav .icon-search,
  #header #wide-nav .mobile-nav .icon-shopping-cart {
    color: #fff7e6;
    font-size: 25px !important;
  }

  #header #wide-nav .mobile-nav .cart-item .icon-shopping-cart {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
  }

  #header #wide-nav .mobile-nav .cart-item .icon-shopping-cart::before {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%23fff7e6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h3l3 15h14l3-11H6'/%3E%3Ccircle cx='10' cy='24' r='1.4'/%3E%3Ccircle cx='21' cy='24' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  #header #wide-nav .mobile-nav [data-icon-label]::after {
    top: -7px;
    right: -8px;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    border: 1px solid #fff7e6;
    font-size: 10px;
  }

  #header #wide-nav .mobile-nav .html_top_right_text .account-item.has-icon {
    width: 38px;
    height: 44px;
    background-size: 23px 27px;
  }
}

@media (max-width: 649px) {
  body:has(.vgift-tet-banner) .cpanel-action.social-pin {
    display: none !important;
  }
}

@media (max-width: 849px) {

  /* One 24px icon size inside matching 44px touch targets. */
  #header #wide-nav .mobile-nav>.nav-icon>a,
  #header #wide-nav .mobile-nav>.cart-item>a,
  #header #wide-nav .mobile-nav>.header-search-dropdown .header-button>a,
  #header #wide-nav .mobile-nav .html_top_right_text .account-item.has-icon {
    width: 35px;
    height: 35px;
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
  }

  #header #wide-nav .mobile-nav .icon-menu,
  #header #wide-nav .mobile-nav .icon-search,
  #header #wide-nav .mobile-nav .cart-item .icon-shopping-cart {
    display: inline-block;
    width: 24px;
    height: 24px;
    font-size: 24px !important;
    line-height: 24px;
    margin: 0;
  }

  #header #wide-nav .mobile-nav .icon-menu::before,
  #header #wide-nav .mobile-nav .icon-search::before,
  #header #wide-nav .mobile-nav .cart-item .icon-shopping-cart::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-position: center;
    background-size: 24px 24px;
    background-repeat: no-repeat;
  }

  #header #wide-nav .mobile-nav .icon-menu::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff7e6' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 5h18M3 12h18M3 19h18'/%3E%3C/svg%3E");
  }

  #header #wide-nav .mobile-nav .icon-search::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff7e6' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");
  }

  #header #wide-nav .mobile-nav .html_top_right_text .account-item.has-icon {
    background-size: 24px 24px;
  }

  /* Anchor the search panel to the toolbar, rather than the search icon. */
  #header #wide-nav .mobile-nav {
    position: relative;
  }

  #header #wide-nav .mobile-nav>.header-search-dropdown {
    position: static !important;
  }

  #header #wide-nav .mobile-nav .header-search-dropdown .nav-dropdown {
    left: 0 !important;
    right: 0 !important;
    top: 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #e7d8bd;
    border-radius: 0 0 12px 12px;
    background: #fffaf0;
    box-shadow: 0 10px 22px #4d140c26;
  }

  #header #wide-nav .mobile-nav>.header-search-dropdown::before,
  #header #wide-nav .mobile-nav>.header-search-dropdown::after {
    display: none;
  }

  #header #wide-nav .mobile-nav .header-search-dropdown .nav-dropdown>li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  #header #wide-nav .mobile-nav .header-search-dropdown .searchform>.flex-row {
    width: 100%;
    min-height: 44px;
  }

  #header #wide-nav .mobile-nav .header-search-dropdown .search-field {
    height: 44px;
    padding-inline: 12px;
    font-size: 16px;
  }

  #header #wide-nav .mobile-nav .header-search-dropdown .ux-search-submit {
    width: 48px;
    min-height: 44px;
    height: 44px;
    padding: 0;
  }
}

@media (max-width: 849px) {
  #header #wide-nav:has(.mobile-nav > .header-search-dropdown.current-dropdown) {
    padding-bottom: 72px;
  }
}

/* Equal spacing within both mobile toolbar groups. */
@media (max-width: 849px) {
  #header #wide-nav .mobile-nav {
    gap: 12px;
  }

  #header #wide-nav .mobile-nav>.nav-icon,
  #header #wide-nav .mobile-nav>.header-search-dropdown,
  #header #wide-nav .mobile-nav>.cart-item,
  #header #wide-nav .mobile-nav>.html_top_right_text {
    flex: 0 0 44px;
    width: 44px;
    margin: 0;
    padding: 0;
  }

  #header #wide-nav .mobile-nav>.cart-item {
    margin-left: auto !important;
  }

  #header #wide-nav .mobile-nav>.html_top_right_text {
    margin-left: 0 !important;
  }

  #header #wide-nav .mobile-nav>.header-search-dropdown>.header-button {
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 849px) {

  #header #wide-nav .mobile-nav>.nav-icon>a,
  #header #wide-nav .mobile-nav>.header-search-dropdown .header-button>a,
  #header #wide-nav .mobile-nav>.cart-item>a,
  #header #wide-nav .mobile-nav .html_top_right_text .account-item.has-icon {
    box-sizing: border-box;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .off-canvas-left .mfp-content,
  .off-canvas-right .mfp-content {
    width: 100% !important;
  }
}

/* Shared desktop category panel styling. */
@media (min-width: 850px) {
  #header .header-vertical-menu__fly-out {
    background: #fffaf1;
    border-color: #e9d7b8;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 25px #54220c18;
  }

  #header .header-vertical-menu__fly-out .nav-vertical-fly-out>li>a {
    min-height: 44px;
    padding: 12px 16px;
    color: #544134;
    font-size: 14px;
    font-weight: 500;
  }

  #header .header-vertical-menu__fly-out .nav-vertical-fly-out>li:hover>a,
  #header .header-vertical-menu__fly-out .nav-vertical-fly-out>li:focus-within>a {
    background: #f8ecd8;
    color: #b51e1e;
  }

  #header .header-vertical-menu__fly-out .nav-vertical-fly-out>li>.nav-dropdown {
    background: #fffaf1;
    border: 1px solid #e9d7b8;
    border-top: 3px solid var(--vgift-wine);
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 12px 30px #54220c1c;
    min-height: 0 !important;
    max-height: min(650px, calc(100dvh - 190px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d5b88c #fffaf1;
  }

  #header .header-vertical-menu__fly-out .nav-vertical-fly-out>li:not(.san-pham-combo-gia)>ul.nav-dropdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 8px;
    width: min(440px, calc(100vw - 340px));
    min-width: 0;
    padding: 20px;
  }

  #header .header-vertical-menu__fly-out .nav-vertical-fly-out>li>ul.nav-dropdown>li {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
  }

  #header .header-vertical-menu__fly-out .nav-vertical-fly-out>li>ul.nav-dropdown>li>a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    height: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e8dcc9 !important;
    border-radius: 7px;
    background: #fff;
    color: #544134;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
    text-transform: none;
    transition: background-color .15s, color .15s, border-color .15s;
  }

  #header .header-vertical-menu__fly-out .nav-vertical-fly-out>li>ul.nav-dropdown>li>a:hover,
  #header .header-vertical-menu__fly-out .nav-vertical-fly-out>li>ul.nav-dropdown>li>a:focus-visible {
    background: var(--vgift-wine);
    border-color: var(--vgift-wine);
    color: #fff;
  }

  #header .header-vertical-menu__fly-out .nav-vertical-fly-out>li:focus-within>.nav-dropdown {
    opacity: 1;
    visibility: visible;
    left: 100%;
  }
}

/* Extend desktop submenu panels to the bottom of the category list. */
@media (min-width: 850px) {
  #header .header-vertical-menu__fly-out .nav-vertical-fly-out>li>.nav-dropdown {
    min-height: 100% !important;
  }
}

/* Keep submenu labels white in their red hover/focus state. */
@media (min-width: 850px) {

  #header .header-vertical-menu__fly-out .nav-vertical-fly-out>li>ul.nav-dropdown>li:hover>a,
  #header .header-vertical-menu__fly-out .nav-vertical-fly-out>li>ul.nav-dropdown>li>a:hover,
  #header .header-vertical-menu__fly-out .nav-vertical-fly-out>li>ul.nav-dropdown>li>a:focus-visible,
  #header .san-pham-combo-gia>.nav-dropdown ul>li:hover>a {
    background: var(--vgift-wine);
    border-color: var(--vgift-wine);
    color: #fff !important;
  }
}
/* Keep the two-line hotline compact when Flatsome shrinks the sticky header. */
#header #masthead #header-contact a {
  grid-template-rows:20px 22px;
  row-gap:0;
  height:auto; min-height:0; padding-block:0;
  line-height:1.25 !important;
}
#header #masthead #header-contact a::before { line-height:20px; align-self:end; }
#header #masthead #header-contact span { line-height:22px; align-self:start; }
#header #masthead #header-contact i { line-height:24px; align-self:center; }
