/*
 * Modern interface layer for module-miniz templates.
 *
 * This file is intentionally scoped to existing theme classes so it upgrades
 * the UI without changing the PHP rendering contract.
 */

:root {
  --tvdm-surface: rgba(255, 255, 255, 0.86);
  --tvdm-surface-strong: #ffffff;
  --tvdm-surface-soft: rgba(248, 250, 252, 0.86);
  --tvdm-text: #111827;
  --tvdm-text-muted: #64748b;
  --tvdm-border: rgba(15, 23, 42, 0.1);
  --tvdm-border-strong: rgba(15, 23, 42, 0.16);
  --tvdm-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --tvdm-shadow-md: 0 18px 48px rgba(15, 23, 42, 0.12);
  --tvdm-shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.16);
  --tvdm-radius-sm: 10px;
  --tvdm-radius-md: 14px;
  --tvdm-radius-lg: 22px;
  --tvdm-radius-xl: 28px;
  --tvdm-gradient: linear-gradient(
    135deg,
    #2563eb 0%,
    #0ea5e9 55%,
    #22c55e 120%
  );
  --tvdm-gradient-soft: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.13),
    rgba(14, 165, 233, 0.1),
    rgba(34, 197, 94, 0.1)
  );
  --tvdm-transition: 180ms cubic-bezier(0.2, 0, 0, 1);
  --tvdm-container: min(100% - 32px, 1480px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tvdm-surface: rgba(15, 23, 42, 0.78);
    --tvdm-surface-strong: #111827;
    --tvdm-surface-soft: rgba(30, 41, 59, 0.82);
    --tvdm-text: #f8fafc;
    --tvdm-text-muted: #aeb8c7;
    --tvdm-border: rgba(226, 232, 240, 0.13);
    --tvdm-border-strong: rgba(226, 232, 240, 0.22);
    --tvdm-shadow-sm: 0 8px 26px rgba(0, 0, 0, 0.24);
    --tvdm-shadow-md: 0 18px 54px rgba(0, 0, 0, 0.32);
    --tvdm-shadow-lg: 0 28px 88px rgba(0, 0, 0, 0.42);
    color-scheme: dark;
  }
}

body.dark,
body.nav-dark,
[data-theme="dark"] {
  --tvdm-surface: rgba(15, 23, 42, 0.78);
  --tvdm-surface-strong: #111827;
  --tvdm-surface-soft: rgba(30, 41, 59, 0.82);
  --tvdm-text: #f8fafc;
  --tvdm-text-muted: #aeb8c7;
  --tvdm-border: rgba(226, 232, 240, 0.13);
  --tvdm-border-strong: rgba(226, 232, 240, 0.22);
  --tvdm-shadow-sm: 0 8px 26px rgba(0, 0, 0, 0.24);
  --tvdm-shadow-md: 0 18px 54px rgba(0, 0, 0, 0.32);
  --tvdm-shadow-lg: 0 28px 88px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.container,
.tvd-grid.container,
.header-inner.container,
.page-title-inner.container,
.absolute-footer .container {
  width: var(--tvdm-container);
  max-width: var(--tvdm-container);
}

/* Header */

/*
 * Menu contract:
 * .tvd-menu is the component wrapper; list, item, dropdown and sidebar are
 * its structural parts. Alignment remains a component modifier.
 */
.tvd-menu {
  color: var(--tvdm-text);
}

.tvd-menu-list,
.tvd-sidebar-menu,
.tvd-menu-dropdown {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tvd-menu-item {
  position: relative;
  margin: 0;
  list-style: none;
}

.tvd-menu--left {
  justify-content: flex-start;
}

.tvd-menu--right {
  justify-content: flex-end;
}

.header-wrapper,
#tvd-header-1,
#tvd-header-2.header-main,
#tvd-header-3.header-bottom {
  position: relative;
}

#tvd-header-1,
#tvd-header-2.header-main,
#tvd-header-3.header-bottom {
  background: var(--tvdm-surface);
  border-bottom: 1px solid var(--tvdm-border);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  transition:
    background var(--tvdm-transition),
    border-color var(--tvdm-transition),
    box-shadow var(--tvdm-transition);
}

#tvd-header-1 {
  z-index: 22;
}

/* Custom top-bar content may carry its own full-viewport background inside
 * the padded header container, which leaves a visible strip at the edge.
 * Keep the background on the actual header bar instead. */
#tvd-header-1.header-top {
  background: linear-gradient(90deg, #1e5631 0%, #4c9a2a 100%) !important;
}

#tvd-header-1 .top-header {
  width: 100%;
  max-width: 100%;
  background: transparent;
  box-shadow: none;
}

#tvd-header-1 .container,
#tvd-header-3 .container {
  min-height: 42px;
  padding-right: 12px;
  padding-left: 12px;
}

#tvd-header-2 .header-inner {
  min-height: 70px;
  max-height: 70px;
  gap: clamp(10px, 1.5vw, 22px);
  align-items: center;
}

#tvd-header-1 .tvd-layout-line,
#tvd-header-3 .tvd-layout-line,
#tvd-header-2 .header-inner {
  align-items: center;
}

#tvd-header-1 .tvd-flex-item,
#tvd-header-3 .tvd-flex-item,
#tvd-header-2 .tvd-flex-item {
  min-width: 0;
}

#tvd-header-1 .tvd-menu-list,
#tvd-header-3 .tvd-menu-list,
#tvd-header-2 .header-nav,
#tvd-header-2 .mobile-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--tvdm-text);
}

#tvd-header-2 .header-nav {
  flex-wrap: nowrap;
  min-width: 0;
}

/* Let the search column consume only the space left by the logo and actions. */
#tvd-header-2 .header-inner > .hide-for-medium:has(.header-search-form) {
  flex: 1 1 320px;
  min-width: 0;
}

#tvd-header-2 .header-inner > .hide-for-medium:has(#logo):not(:has(.header-search-form)) {
  flex: 0 0 auto;
}

#tvd-header-2 .header-inner > .hide-for-medium.tvd-flex-end:not(:has(.header-search-form)) {
  flex: 0 0 auto;
}

#tvd-header-2 .header-inner > .hide-for-medium:has(.header-search-form) > .header-nav {
  width: 100%;
  min-width: 0;
}

#tvd-header-1 .tvd-menu-list > .tvd-menu-item,
#tvd-header-3 .tvd-menu-list > .tvd-menu-item,
#tvd-header-2 .header-nav > .tvd-menu-item,
#tvd-header-2 .mobile-nav > .tvd-menu-item {
  margin: 0;
}

#tvd-header-2 .header-nav > .tvd-menu-item {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

#tvd-header-2 .header-nav > .tvd-menu-item.search-form {
  flex: 1 1 320px;
  width: auto !important;
  min-width: 0;
  max-width: 420px;
}

#tvd-header-2 .header-nav > .tvd-menu-item.header-block {
  --tvdm-header-block-height: clamp(36px, 4.2vw, 58px);
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

#tvd-header-2 .header-nav > .tvd-menu-item.header-block > [class^="header-block-"] {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tvd-header-2
  .header-nav
  > .tvd-menu-item.header-block
  > [class^="header-block-"]
  > * {
  min-width: 0;
  max-width: 100%;
}

#tvd-header-2 .header-nav > .tvd-menu-item.header-block .tvd-content-band,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .section-content,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .container,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .container-width,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .tvd-grid,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .tvd-grid__item,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .tvd-grid__content {
  margin: 0;
  padding: 0;
  min-height: 0;
  max-height: var(--tvdm-header-block-height);
}

#tvd-header-2 .header-nav > .tvd-menu-item.header-block .tvd-content-band {
  display: block;
  width: 100%;
  overflow: hidden;
}

#tvd-header-2 .header-nav > .tvd-menu-item.header-block .section-content,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .container,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .container-width {
  width: 100%;
  max-width: 100%;
}

#tvd-header-2 .header-nav > .tvd-menu-item.header-block .tvd-grid,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .tvd-layout-line {
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
  width: auto;
}

#tvd-header-2 .header-nav > .tvd-menu-item.header-block .tvd-grid__item,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .tvd-flex-item {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

#tvd-header-2 .header-nav > .tvd-menu-item.header-block .tvd-grid__content,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .img,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .img-inner,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .tvd-icon-card,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .tvd-surface-unit,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .box-image,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .tvd-hero-panel,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .banner-inner,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .button,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block a {
  min-width: 0;
  max-width: 100%;
  max-height: var(--tvdm-header-block-height);
  overflow: hidden;
}

#tvd-header-2 .header-nav > .tvd-menu-item.header-block img,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block svg,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block picture,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block video {
  max-width: 100%;
  max-height: var(--tvdm-header-block-height);
  width: auto;
  height: auto;
  object-fit: contain;
}

#tvd-header-2 .header-nav > .tvd-menu-item.header-block .icon-box-text,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block .tvd-surface-copy,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block p,
#tvd-header-2 .header-nav > .tvd-menu-item.header-block span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tvd-header-1 .tvd-menu-list > .tvd-menu-item > a,
#tvd-header-1 .tvd-menu-list > .tvd-menu-item > span,
#tvd-header-3 .tvd-menu-list > .tvd-menu-item > a,
#tvd-header-2 .header-nav > .tvd-menu-item > a,
#tvd-header-2 .mobile-nav > .tvd-menu-item > a,
.header-button > a,
.account-item > a,
.account-item .account-link,
.cart-item .header-cart-link,
.header-wishlist-icon .wishlist-link,
.header-newsletter-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: var(--tvdm-radius-md);
  color: inherit;
  text-decoration: none;
  transition:
    transform var(--tvdm-transition),
    background var(--tvdm-transition),
    color var(--tvdm-transition),
    box-shadow var(--tvdm-transition),
    border-color var(--tvdm-transition);
}

#tvd-header-1 .tvd-menu-list > .tvd-menu-item > a:hover,
#tvd-header-3 .tvd-menu-list > .tvd-menu-item > a:hover,
#tvd-header-2 .header-nav > .tvd-menu-item > a:hover,
#tvd-header-2 .mobile-nav > .tvd-menu-item > a:hover,
.header-button > a:hover,
.account-item > a:hover,
.account-item .account-link:hover,
.cart-item .header-cart-link:hover,
.header-wishlist-icon .wishlist-link:hover,
.header-newsletter-item > a:hover {
  background: var(--tvdm-gradient-soft);
  box-shadow: var(--tvdm-shadow-sm);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Preserve contrast for labels shown over the site's colored header bars. */
#tvd-header-3 .tvd-menu-list > li > a,
#tvd-header-2 .cart-item > .header-cart-link,
#tvd-header-2 .account-item > a,
#tvd-header-2 .account-item > .account-link,
#tvd-header-2 .header-button > .nav-top-not-logged-in,
#tvd-header-2 .cart-item > .header-cart-link :is(span, i),
#tvd-header-2 .account-item > a :is(span, i),
#tvd-header-2 .account-item > .account-link :is(span, i),
#tvd-header-2 .header-button > .nav-top-not-logged-in :is(span, i) {
  color: #fff !important;
}

#tvd-header-2 #logo,
#tvd-header-2 #logo-mobile {
  display: flex;
  align-items: center;
  transition: transform var(--tvdm-transition);
}

#tvd-header-2 #logo:hover,
#tvd-header-2 #logo-mobile:hover {
  transform: translateY(-1px);
}

#logo a,
#logo-mobile a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

#logo img,
#logo-mobile img {
  display: block;
  max-height: clamp(40px, 4.5vw, 55px);
  width: auto;
  object-fit: contain;
}

#logo .logo-tagline,
#logo-mobile .logo-tagline {
  margin: 4px 0 0;
  color: var(--tvdm-text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

#tvd-header-2 .top-divider {
  height: 1px;
  opacity: 1;
  background: linear-gradient(
    90deg,
    transparent,
    var(--tvdm-border-strong),
    transparent
  );
}

/* Dropdowns and panels */

.tvd-menu-dropdown,
.nav-dropdown,
.nav-dropdown .children,
.cart-popup-inner,
#departments-overlay {
  border: 1px solid var(--tvdm-border);
  border-radius: var(--tvdm-radius-lg);
  background: var(--tvdm-surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--tvdm-shadow-md);
  overflow: hidden;
}

.tvd-menu-dropdown {
  position: absolute;
  left: -99999px;
  max-height: 0;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  z-index: 9;
  margin-top: 12px;
  padding: 10px;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}

.tvd-menu-item.tvd-test-dropdown > .tvd-menu-dropdown,
.tvd-menu-item.is-submenu-open > .tvd-menu-dropdown,
.no-js .tvd-menu-item.has-dropdown:hover > .tvd-menu-dropdown {
  left: -15px;
  max-height: inherit;
  opacity: 1;
  visibility: visible;
}

.tvd-menu--right .tvd-menu-item:last-child > .tvd-menu-dropdown {
  left: auto;
  right: -15px;
}

/* Keep multi-level header menus in one readable vertical flow.
 * Flatsome's default dropdown styles turn a parent item into a table column,
 * which squeezes its following sibling into a very narrow second column. */
#tvd-header-3 .header-nav > .tvd-menu-item > .tvd-menu-dropdown {
  display: block;
  width: max-content;
  min-width: 280px;
  max-width: min(360px, calc(100vw - 24px));
  overflow: visible;
}

#tvd-header-3 .header-nav > .tvd-menu-item > .tvd-menu-dropdown > .tvd-menu-item {
  display: block;
  width: 100%;
}

#tvd-header-3 .header-nav > .tvd-menu-item > .tvd-menu-dropdown a {
  white-space: normal;
}

/* Third-level items open as a flyout beside their parent. */
#tvd-header-3
  .header-nav
  > .tvd-menu-item
  > .tvd-menu-dropdown
  > .menu-item-has-children
  > a {
  position: relative;
  padding-right: 32px;
}

#tvd-header-3
  .header-nav
  > .tvd-menu-item
  > .tvd-menu-dropdown
  > .menu-item-has-children::after {
  position: absolute;
  top: 0;
  left: 100%;
  width: 10px;
  height: 100%;
  content: "";
}

#tvd-header-3
  .header-nav
  > .tvd-menu-item
  > .tvd-menu-dropdown
  > .menu-item-has-children
  > a::before {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

#tvd-header-3
  .header-nav
  > .tvd-menu-item
  > .tvd-menu-dropdown
  > .menu-item-has-children
  > .sub-menu {
  position: absolute;
  top: -10px;
  left: calc(100% + 8px);
  display: block;
  width: max-content;
  min-width: 250px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--tvdm-border);
  border-radius: var(--tvdm-radius-lg);
  background: var(--tvdm-surface);
  box-shadow: var(--tvdm-shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  visibility: hidden;
  z-index: 10;
}

#tvd-header-3
  .header-nav
  > .tvd-menu-item
  > .tvd-menu-dropdown
  > .menu-item-has-children:hover
  > .sub-menu,
#tvd-header-3
  .header-nav
  > .tvd-menu-item
  > .tvd-menu-dropdown
  > .menu-item-has-children:focus-within
  > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
}

.tvd-menu-dropdown > .tvd-menu-item > a,
.nav-dropdown .children > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--tvdm-radius-sm);
  padding: 10px 12px;
  color: inherit;
  transition:
    background var(--tvdm-transition),
    transform var(--tvdm-transition),
    padding-left var(--tvdm-transition);
}

.tvd-menu-dropdown > .tvd-menu-item > a:hover,
.nav-dropdown .children > li > a:hover {
  background: var(--tvdm-gradient-soft);
  padding-left: 16px;
  text-decoration: none;
}

.header-language-dropdown .image-icon,
.header-language-dropdown .icon-image,
.mobile-sidebar .image-icon,
.mobile-sidebar .icon-image {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
}

.header-language-dropdown img,
.mobile-sidebar .image-icon img,
.mobile-sidebar .icon-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Header elements */

.account-item {
  position: relative;
}

.account-item .header-button {
  display: flex;
}

/* Desktop account dropdown */
.account-item .nav-dropdown,
.account-item ul.children {
  min-width: 220px;
  padding: 8px !important;
  list-style: none !important;
}

.account-item .nav-dropdown li,
.account-item ul.children li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.account-item .nav-dropdown a,
.account-item ul.children > li > a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--tvdm-text, #1e293b) !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.16s ease !important;
  line-height: 1.4 !important;
}

.account-item .nav-dropdown a span,
.account-item ul.children > li > a span {
  color: var(--tvdm-text, #1e293b) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.account-item .nav-dropdown a svg,
.account-item ul.children > li > a svg {
  color: #16a34a !important;
  stroke: #16a34a !important;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.account-item .nav-dropdown a:hover,
.account-item ul.children > li > a:hover {
  background: rgba(34, 197, 94, 0.08) !important;
  color: #15803d !important;
}

.account-item .nav-dropdown a:hover span,
.account-item ul.children > li > a:hover span {
  color: #15803d !important;
}

.account-item .woocommerce-MyAccount-navigation-link--customer-logout a,
.account-item .woocommerce-MyAccount-navigation-link--customer-logout a span {
  color: #dc2626 !important;
}

.account-item .woocommerce-MyAccount-navigation-link--customer-logout a svg {
  color: #dc2626 !important;
  stroke: #dc2626 !important;
}

.account-item .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: rgba(220, 38, 38, 0.08) !important;
}

/* The legacy `circle` utility removes horizontal padding and offsets icon
 * children. A cart with its title and price needs the regular button layout. */
@media (min-width: 850px) {
  #tvd-header-2 .header-nav .cart-item .header-cart-link {
    display: inline-flex;
    gap: 8px;
    padding-inline: 14px;
    white-space: nowrap;
  }

  #tvd-header-2 .header-nav .cart-item .header-cart-link > :is(span, i) {
    margin: 0;
  }
}

.account-item .header-account-title,
.header-cart-title,
.header-wishlist-title,
.header-newsletter-title {
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.account-item .image-icon,
.header-cart-icon,
.cart-icon,
.wishlist-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-item .image-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--tvdm-shadow-sm);
}

.account-item .image-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-price {
  color: var(--tvdm-text-muted);
  font-size: 0.9em;
}

.cart-icon strong,
.header-cart-icon[data-icon-label]::after,
.icon-shopping-basket[data-icon-label]::after,
.icon-shopping-cart[data-icon-label]::after,
.icon-shopping-bag[data-icon-label]::after,
.wishlist-icon[data-icon-label]::after {
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border: 2px solid var(--tvdm-surface-strong);
  border-radius: 999px;
  background: var(--tvdm-gradient);
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.26);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  line-height: 15px;
  text-align: center;
}

.header-cart-icon[data-icon-label]::after,
.icon-shopping-basket[data-icon-label]::after,
.icon-shopping-cart[data-icon-label]::after,
.icon-shopping-bag[data-icon-label]::after,
.wishlist-icon[data-icon-label]::after {
  content: attr(data-icon-label);
  position: absolute;
  top: -10px;
  right: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-img-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.header-contact {
  gap: 6px;
}

.header-contact a {
  color: inherit;
}

.header-contact svg,
.header-contact i,
.header-newsletter-item i,
.header-wishlist-icon i,
.nav-icon i {
  transition:
    transform var(--tvdm-transition),
    color var(--tvdm-transition);
}

.header-contact a:hover svg,
.header-contact a:hover i,
.header-newsletter-item a:hover i,
.header-wishlist-icon a:hover i,
.nav-icon a:hover i {
  transform: scale(1.06);
}

.header-search-form {
  display: flex;
  align-items: center;
  padding: 4px;
}

.header-search-form-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 420px;
  border: 1px solid var(--tvdm-border);
  border-radius: 999px;
  background: var(--tvdm-surface-strong);
  box-shadow: var(--tvdm-shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition:
    border-color var(--tvdm-transition),
    box-shadow var(--tvdm-transition),
    transform var(--tvdm-transition);
}

.header-search-form-wrapper:hover {
  box-shadow: var(--tvdm-shadow-md);
  transform: translateY(-1px);
}

.header-search-form-wrapper:focus-within {
  border-color: rgba(37, 99, 235, 0.52);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.14),
    var(--tvdm-shadow-sm);
}

.header-search-form-wrapper form {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  gap: 0;
}

/* Keep the field and submit button adjacent in the legacy search template. */
.header-search-form-wrapper .searchform .tvd-layout-line {
  display: flex;
  align-items: center;
  width: 100%;
}

.header-search-form-wrapper .searchform .searchform__field {
  flex: 1 1 auto;
  min-width: 0;
}

.header-search-form-wrapper .searchform .search-form-categories {
  flex: 0 0 auto;
}

.header-search-form-wrapper .searchform .searchform__submit {
  flex: 0 0 auto;
  display: flex;
}
@media (max-width: 849px) {
  .searchform-wrapper form {
    width: 70%;
  }
}
.header-search-form-wrapper input[type="search"],
.header-search-form-wrapper input[type="text"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 44px !important;
  padding: 0 16px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--tvdm-text);
  font-size: 15px;
}

.header-search-form-wrapper select,
.header-search-form-wrapper .search_categories {
  flex: 0 0 auto;
  width: auto;
  max-width: 118px;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 28px 0 14px !important;
  border: 0 !important;
  border-right: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 999px 0 0 999px !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
  color: var(--tvdm-text);
  font-size: 14px;
  line-height: 44px !important;
  text-transform: none;
}

.header-search-form-wrapper select:focus,
.header-search-form-wrapper .search_categories:focus {
  outline: 0;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.header-search-form-wrapper select option {
  color: #111827;
  background: #fff;
}

.header-search-form-wrapper input::placeholder {
  color: var(--tvdm-text-muted);
}

.header-search-form-wrapper button,
.header-search-form-wrapper .search-submit,
.header-search-form-wrapper .searchform .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 1px 1px 1px 3px;
  border: 0;
  border-radius: 999px;
  background: var(--tvdm-gradient);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  color: #fff;
  cursor: pointer;
  transition:
    transform var(--tvdm-transition),
    box-shadow var(--tvdm-transition),
    filter var(--tvdm-transition);
}

.header-search-form-wrapper button:hover,
.header-search-form-wrapper .search-submit:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.34);
}

/* Vertical menu */

:is(.tvd-header-navigation, .menuzheader-dung) {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(.tvd-header-navigation__trigger, .menuzheader-dung__opener) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--tvdm-border);
  border-radius: var(--tvdm-radius-md);
  background: var(--tvdm-surface-strong);
  box-shadow: var(--tvdm-shadow-sm);
  color: var(--tvdm-text);
  cursor: pointer;
  user-select: none;
  transition:
    transform var(--tvdm-transition),
    box-shadow var(--tvdm-transition),
    background var(--tvdm-transition),
    border-color var(--tvdm-transition);
}

:is(.tvd-header-navigation__trigger, .menuzheader-dung__opener):hover,
:is(.tvd-header-navigation__trigger, .menuzheader-dung__opener):focus-visible {
  border-color: var(--tvdm-border-strong);
  box-shadow: var(--tvdm-shadow-md);
  transform: translateY(-1px);
  outline: none;
}

:is(.tvd-header-navigation__trigger, .menuzheader-dung__opener).dark {
  background: #111827;
  color: #f8fafc;
}

:is(.tvd-header-navigation__icon, .menuzheader-dung__icon),
:is(.tvd-header-navigation__icon, .menuzheader-dung__icon) svg {
  display: inline-flex;
  align-items: center;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

:is(.tvd-header-navigation__label, .menuzheader-dung__title) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

:is(.tvd-header-navigation__tagline, .menuzheader-dung__tagline) {
  margin-bottom: 2px;
  color: var(--tvdm-text-muted);
  font-size: 12px;
  font-weight: 500;
}

:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out) {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 999;
  width: min(320px, calc(100vw - 32px));
  border: 1px solid var(--tvdm-border);
  border-radius: var(--tvdm-radius-lg);
  background: var(--tvdm-surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--tvdm-transition),
    transform var(--tvdm-transition),
    visibility var(--tvdm-transition);
}

:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out).has-shadow {
  box-shadow: var(--tvdm-shadow-md);
}

:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)--open,
:is(.tvd-header-navigation, .menuzheader-dung)…27 tokens truncated…: var(--tvdm-shadow-sm);
}

/* ==========================================================================
   Mobile Sidebar & Main Menu Modern Architecture (Mobile & Tablet)
   ========================================================================== */

/* 1. Backdrop Overlay */
.mfp-bg.main-menu-overlay {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mfp-ready .mfp-bg.main-menu-overlay {
  opacity: 1 !important;
}

.mfp-removing .mfp-bg.main-menu-overlay {
  opacity: 0 !important;
}

/* 2. Off-Canvas Drawer Container */
.off-canvas.off-canvas-left .mfp-content,
.off-canvas.off-canvas-right .mfp-content {
  width: min(88vw, 360px);
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: var(--tvdm-surface-strong, #ffffff) !important;
  box-shadow: 12px 0 45px rgba(15, 23, 42, 0.18) !important;
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.off-canvas.off-canvas-left .mfp-content {
  border-radius: 0 24px 24px 0 !important;
}

.off-canvas.off-canvas-right .mfp-content {
  border-radius: 24px 0 0 24px !important;
  box-shadow: -12px 0 45px rgba(15, 23, 42, 0.18) !important;
}

/* Hide default external Magnific close button */
.off-canvas .mfp-close,
.has-off-canvas .mfp-close,
.mfp-wrap.off-canvas .mfp-close,
.off-canvas .mfp-content > .mfp-close {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 3. Mobile Sidebar Main Wrapper */
#main-menu.mobile-sidebar.mfp-hide,
.mobile-sidebar.mfp-hide {
  display: none !important;
}

.mfp-content #main-menu.mobile-sidebar,
#main-menu.mobile-sidebar:not(.mfp-hide) {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100dvh !important;
  background: var(--tvdm-surface-strong, #ffffff) !important;
  color: var(--tvdm-text, #111827) !important;
  position: relative;
  overflow: hidden;
}

/* 4. Mobile Sidebar Header (Logo + Close Button) */
.mobile-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  padding-top: max(16px, env(safe-area-inset-top));
  background: var(--tvdm-surface-strong, #ffffff);
  border-bottom: 1px solid var(--tvdm-border, rgba(15, 23, 42, 0.08));
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.mobile-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 48px);
}

.mobile-sidebar__brand a {
  display: inline-flex;
  align-items: center;
}

.mobile-sidebar__brand img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.mobile-sidebar__close {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--tvdm-border, rgba(15, 23, 42, 0.08));
  color: var(--tvdm-text, #111827);
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-sidebar__close:hover,
.mobile-sidebar__close:active {
  background: rgba(15, 23, 42, 0.1);
  transform: scale(1.06);
  color: #15803d;
}

.mobile-sidebar__close svg {
  display: block;
  stroke: currentColor;
}

/* 5. Scrollable Body Area */
.mobile-sidebar .sidebar-menu {
  flex: 1 1 auto;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 24px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.15) transparent;
}

.mobile-sidebar .sidebar-menu::-webkit-scrollbar {
  width: 4px;
}

.mobile-sidebar .sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
  border-radius: 99px;
}

/* 6. Sidebar Search Form */
.mobile-sidebar .searchform-wrapper,
.mobile-sidebar .search-form,
.mobile-sidebar .header-search-form {
  width: 100% !important;
  margin-bottom: 16px;
  padding: 0 !important;
}

.mobile-sidebar .searchform {
  position: relative;
  width: 100%;
}

.mobile-sidebar .searchform input[type="search"],
.mobile-sidebar .searchform input[type="text"],
.mobile-sidebar .search-field {
  width: 100% !important;
  height: 44px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid var(--tvdm-border, rgba(15, 23, 42, 0.1)) !important;
  padding: 0 16px 0 42px !important;
  font-size: 14px !important;
  color: var(--tvdm-text, #111827) !important;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.mobile-sidebar .searchform input:focus {
  background: #ffffff !important;
  border-color: #16a34a !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14) !important;
}

.mobile-sidebar .searchform .icon-search,
.mobile-sidebar .searchform button[type="submit"] {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tvdm-text-muted, #64748b);
  background: transparent;
  border: none;
  padding: 0;
  font-size: 16px;
  cursor: pointer;
}

/* 7. Sidebar Tabs Switcher */
.sidebar-menu-tabs {
  display: flex !important;
  gap: 6px !important;
  padding: 4px !important;
  border-radius: 14px !important;
  background: rgba(15, 23, 42, 0.05) !important;
  margin: 0 0 16px 0 !important;
  list-style: none !important;
  border: none !important;
}

.sidebar-menu-tabs__tab {
  flex: 1 1 0% !important;
  margin: 0 !important;
  list-style: none !important;
  text-align: center;
}

.sidebar-menu-tabs__tab-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  color: var(--tvdm-text-muted, #64748b) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  border: none !important;
}

.sidebar-menu-tabs__tab.active .sidebar-menu-tabs__tab-link {
  background: var(--tvdm-surface-strong, #ffffff) !important;
  color: #15803d !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08) !important;
}

/* 8. Main Navigation List Reset & Modern Structure */
.mobile-sidebar ul,
.mobile-sidebar ol,
.mobile-sidebar li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}

.mobile-sidebar .tvd-sidebar-menu,
.mobile-sidebar .sidebar-nava {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* 9. Top-Level Menu Items */
.mobile-sidebar .tvd-sidebar-menu > li,
.mobile-sidebar .sidebar-nava > li {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-radius: 12px !important;
  position: relative !important;
  margin: 0 !important;
  border: none !important;
  transition: background 0.18s ease;
}

.mobile-sidebar .tvd-sidebar-menu > li > a,
.mobile-sidebar .sidebar-nava > li > a {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  min-height: 48px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--tvdm-text, #1e293b) !important;
  text-decoration: none !important;
  border-radius: 10px !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: none !important;
}

.mobile-sidebar .tvd-sidebar-menu > li:hover > a,
.mobile-sidebar .sidebar-nava > li:hover > a,
.mobile-sidebar .tvd-sidebar-menu > li > a:hover,
.mobile-sidebar .sidebar-nava > li > a:hover {
  color: #15803d !important;
  background: rgba(79, 70, 229, 0.08) !important;
}

.mobile-sidebar .tvd-sidebar-menu > li.current-menu-item > a,
.mobile-sidebar .tvd-sidebar-menu > li.current_page_item > a,
.mobile-sidebar .tvd-sidebar-menu > li.active > a {
  color: #4f46e5 !important;
  background: rgba(79, 70, 229, 0.1) !important;
  font-weight: 700 !important;
}

/* 10. Menu Icons (Left Icons) */
.mobile-sidebar .tvd-sidebar-menu i,
.mobile-sidebar .sidebar-nava i {
  font-size: 18px;
  min-width: 22px;
  text-align: center;
  color: #4f46e5;
  opacity: 0.92;
  transition: transform 0.2s ease;
}

.mobile-sidebar .image-icon,
.mobile-sidebar .icon-image {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  flex: 0 0 22px !important;
}

.mobile-sidebar .image-icon img,
.mobile-sidebar .icon-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* 11. Toggle Button for Submenus */
.mobile-sidebar .toggle {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  color: var(--tvdm-text-muted, #64748b) !important;
  border-radius: 10px !important;
  margin: 0 2px 0 0 !important;
  padding: 0 !important;
  transition: all 0.22s ease !important;
  z-index: 2;
}

.mobile-sidebar .toggle:hover,
.mobile-sidebar .toggle:active {
  background: rgba(15, 23, 42, 0.06) !important;
  color: var(--tvdm-text, #111827) !important;
}

.mobile-sidebar .toggle i,
.mobile-sidebar .toggle svg,
.mobile-sidebar .toggle [class*="icon-"] {
  display: inline-block !important;
  font-size: 14px !important;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mobile-sidebar li.active > .toggle i,
.mobile-sidebar li.active > .toggle svg,
.mobile-sidebar li.active > .toggle [class*="icon-"],
.mobile-sidebar li[aria-expanded="true"] > .toggle i {
  transform: rotate(180deg) !important;
  color: #15803d !important;
}

/* 12. Submenu & Nested Tree (Accordion Inline Hierarchy) */
.mobile-sidebar .sub-menu,
.mobile-sidebar ul.children,
.mobile-sidebar .sidebar-nava-ul,
.mobile-sidebar .tvd-menu-dropdown {
  position: static !important;
  float: none !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  padding: 4px 0 6px 14px !important;
  margin: 2px 0 6px 14px !important;
  border-left: 2px solid rgba(15, 23, 42, 0.08) !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  list-style: none !important;
}

/* Accordion display state */
.mobile-sidebar li:not(.active) > .sub-menu,
.mobile-sidebar li:not(.active) > ul.children,
.mobile-sidebar li:not(.active) > .tvd-menu-dropdown {
  display: none !important;
}

.mobile-sidebar li.active > .sub-menu,
.mobile-sidebar li.active > ul.children,
.mobile-sidebar li.active > .tvd-menu-dropdown {
  display: block !important;
  animation: tvdmMenuFadeDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tvdmMenuFadeDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Submenu Items & Links */
.mobile-sidebar .sub-menu > li,
.mobile-sidebar ul.children > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mobile-sidebar .sub-menu > li > a,
.mobile-sidebar ul.children > li > a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 12px !important;
  min-height: 40px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--tvdm-text-muted, #475569) !important;
  text-transform: none !important;
  border-radius: 8px !important;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  border: none !important;
  line-height: 1.4 !important;
}

.mobile-sidebar .sub-menu > li > a::before,
.mobile-sidebar ul.children > li > a::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  min-width: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  transition: all 0.16s ease;
}

.mobile-sidebar .sub-menu > li:hover > a,
.mobile-sidebar ul.children > li:hover > a,
.mobile-sidebar .sub-menu > li.current-menu-item > a,
.mobile-sidebar ul.children > li.current-menu-item > a {
  color: #15803d !important;
  background: rgba(34, 197, 94, 0.08) !important;
  padding-left: 14px !important;
}

.mobile-sidebar .sub-menu > li:hover > a::before,
.mobile-sidebar ul.children > li:hover > a::before,
.mobile-sidebar .sub-menu > li.current-menu-item > a::before,
.mobile-sidebar ul.children > li.current-menu-item > a::before {
  opacity: 1;
  background: #16a34a;
  transform: scale(1.3);
}

/* Deep Nested Level 2+ Submenus */
.mobile-sidebar .sub-menu .sub-menu,
.mobile-sidebar ul.children ul.children {
  margin-left: 8px !important;
  padding-left: 10px !important;
  border-left: 1.5px dashed rgba(15, 23, 42, 0.12) !important;
}

.mobile-sidebar .sub-menu .sub-menu > li > a,
.mobile-sidebar ul.children ul.children > li > a {
  font-size: 13.5px !important;
  padding: 8px 10px !important;
}

/* 13. WooCommerce Account Section */
.mobile-sidebar .account-item {
  border-top: 1px solid var(--tvdm-border, rgba(15, 23, 42, 0.08)) !important;
  margin-top: 10px !important;
  padding-top: 8px !important;
  width: 100% !important;
}

.mobile-sidebar .account-item .header-account-title {
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 13.5px !important;
  letter-spacing: 0.04em !important;
  color: var(--tvdm-text-muted, #64748b) !important;
}

.mobile-sidebar .account-item > ul.children,
.mobile-sidebar .account-item > .sub-menu {
  display: block !important;
  margin: 6px 0 0 0 !important;
  padding: 0 !important;
  border-left: none !important;
}

.mobile-sidebar .account-item .woocommerce-MyAccount-navigation-link a,
.mobile-sidebar .account-item > ul.children > li > a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 12px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--tvdm-text, #334155) !important;
  border-radius: 8px !important;
  transition: all 0.16s ease !important;
}

.mobile-sidebar .account-item .woocommerce-MyAccount-navigation-link a::before,
.mobile-sidebar .account-item > ul.children > li > a::before {
  display: none !important;
}

.mobile-sidebar .account-item .woocommerce-MyAccount-navigation-link a:hover,
.mobile-sidebar .account-item > ul.children > li > a:hover {
  background: rgba(34, 197, 94, 0.08) !important;
  color: #15803d !important;
}

.mobile-sidebar .account-item .woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #dc2626 !important;
  font-weight: 600 !important;
}

.mobile-sidebar .account-item .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: rgba(220, 38, 38, 0.08) !important;
}

/* 14. Mobile Sidebar Footer */
.mobile-sidebar__footer {
  margin-top: auto;
  padding: 16px 20px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--tvdm-border, rgba(15, 23, 42, 0.08));
  background: var(--tvdm-surface-soft, rgba(248, 250, 252, 0.95));
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.mobile-sidebar__hotline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.24);
  transition: all 0.2s ease;
}

.mobile-sidebar__hotline:hover,
.mobile-sidebar__hotline:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.36);
  color: #ffffff !important;
}

.mobile-sidebar__hotline svg {
  stroke: #ffffff;
}

.mobile-sidebar__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-sidebar__social .social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 !important;
}

.mobile-sidebar__social .social-icons a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.05) !important;
  border: 1px solid var(--tvdm-border, rgba(15, 23, 42, 0.08)) !important;
  color: var(--tvdm-text, #475569) !important;
  font-size: 14px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mobile-sidebar__social .social-icons a:hover {
  background: #15803d !important;
  color: #ffffff !important;
  border-color: #15803d !important;
  transform: translateY(-2px);
}

/* 15. Dark Mode Compatibility */
body.dark #main-menu.mobile-sidebar,
[data-theme="dark"] #main-menu.mobile-sidebar,
.off-canvas-left.dark .mfp-content,
.off-canvas-right.dark .mfp-content {
  background: #0f172a !important;
  color: #f8fafc !important;
}

body.dark .mobile-sidebar__header,
[data-theme="dark"] .mobile-sidebar__header {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark .mobile-sidebar__close,
[data-theme="dark"] .mobile-sidebar__close {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}

body.dark .mobile-sidebar__close:hover,
[data-theme="dark"] .mobile-sidebar__close:hover {
  background: rgba(255, 255, 255, 0.16) !important;
}

body.dark .mobile-sidebar .tvd-sidebar-menu > li > a,
[data-theme="dark"] .mobile-sidebar .tvd-sidebar-menu > li > a {
  color: #f1f5f9 !important;
}

body.dark .mobile-sidebar .tvd-sidebar-menu > li:hover > a,
[data-theme="dark"] .mobile-sidebar .tvd-sidebar-menu > li:hover > a {
  color: #4ade80 !important;
  background: rgba(34, 197, 94, 0.14) !important;
}

body.dark .mobile-sidebar .sub-menu,
body.dark .mobile-sidebar ul.children,
[data-theme="dark"] .mobile-sidebar .sub-menu,
[data-theme="dark"] .mobile-sidebar ul.children {
  border-left-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark .mobile-sidebar .sub-menu > li > a,
body.dark .mobile-sidebar ul.children > li > a,
[data-theme="dark"] .mobile-sidebar .sub-menu > li > a,
[data-theme="dark"] .mobile-sidebar ul.children > li > a {
  color: #94a3b8 !important;
}

body.dark .mobile-sidebar .sub-menu > li:hover > a,
body.dark .mobile-sidebar ul.children > li:hover > a,
[data-theme="dark"] .mobile-sidebar .sub-menu > li:hover > a,
[data-theme="dark"] .mobile-sidebar ul.children > li:hover > a {
  color: #4ade80 !important;
  background: rgba(34, 197, 94, 0.14) !important;
}

body.dark .mobile-sidebar .sidebar-menu-tabs,
[data-theme="dark"] .mobile-sidebar .sidebar-menu-tabs {
  background: rgba(255, 255, 255, 0.06) !important;
}

body.dark .sidebar-menu-tabs__tab.active .sidebar-menu-tabs__tab-link,
[data-theme="dark"] .sidebar-menu-tabs__tab.active .sidebar-menu-tabs__tab-link {
  background: #1e293b !important;
  color: #4ade80 !important;
}

body.dark .mobile-sidebar__footer,
[data-theme="dark"] .mobile-sidebar__footer {
  background: #0b1120 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark .mobile-sidebar__social .social-icons a,
[data-theme="dark"] .mobile-sidebar__social .social-icons a {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}

/* 16. Multi-Device & Tablet Responsiveness */
@media (min-width: 481px) and (max-width: 1024px) {
  .off-canvas.off-canvas-left .mfp-content,
  .off-canvas.off-canvas-right .mfp-content {
    width: min(74vw, 420px) !important;
  }

  .mobile-sidebar .tvd-sidebar-menu > li > a {
    font-size: 15.5px !important;
    padding: 13px 16px !important;
  }

  .mobile-sidebar .sub-menu > li > a,
  .mobile-sidebar ul.children > li > a {
    font-size: 14.5px !important;
    padding: 10px 14px !important;
  }

  .mobile-sidebar__header {
    padding: 18px 24px !important;
  }

  .mobile-sidebar .sidebar-menu {
    padding: 20px 20px 28px !important;
  }

  .mobile-sidebar__footer {
    padding: 18px 24px !important;
  }
}

@media (max-width: 375px) {
  .off-canvas.off-canvas-left .mfp-content,
  .off-canvas.off-canvas-right .mfp-content {
    width: 90vw !important;
  }

  .mobile-sidebar .tvd-sidebar-menu > li > a {
    font-size: 14.5px !important;
    padding: 11px 12px !important;
  }

  .mobile-sidebar .sub-menu > li > a,
  .mobile-sidebar ul.children > li > a {
    font-size: 13.5px !important;
    padding: 8px 10px !important;
  }

  .mobile-sidebar__header {
    padding: 14px 16px !important;
  }

  .mobile-sidebar .sidebar-menu {
    padding: 12px 12px 20px !important;
  }
}

/* Page loader */

.page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.12),
      transparent 70%
    ),
    var(--tvdm-loader-bg, #fff);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 350ms ease,
    visibility 350ms ease;
  will-change: opacity;
}

.loading-site .page-loader {
  opacity: 0.995;
  visibility: visible;
}

.page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.page-loader-logo {
  max-width: var(--tvdm-loader-logo-width, 200px);
  margin-bottom: 28px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.12))
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
  animation: tvdmPageLoaderLogo 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-loader-logo img,
.page-loader-logo svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-loader-spin {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tvdmPageLoaderSpin 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-loader-spin .loading-spin {
  width: 44px;
  height: 44px;
  border-width: 3px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 0 0 6px rgba(255, 255, 255, 0.06);
}

@keyframes tvdmPageLoaderLogo {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tvdmPageLoaderSpin {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Page titles */

.page-title {
  position: relative;
  overflow: hidden;
}

.page-title .page-title-bg-overlay,
.page-title .title-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.62),
    rgba(15, 23, 42, 0.28)
  );
}

.title-bg[style*="--tvdm-title-bg"] {
  background-image: var(--tvdm-title-bg);
}

.page-title-inner {
  min-height: clamp(150px, 18vw, 320px);
  padding-top: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(28px, 4vw, 64px);
}

.page-title h1,
.page-title .entry-title {
  max-width: min(980px, 100%);
  margin-bottom: 0;
  letter-spacing: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.02;
  text-wrap: balance;
}

.page-breadcrumbs,
.breadcrumbs,
.featured_item_cats {
  color: var(--tvdm-text-muted);
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  font-weight: 650;
}

.page-breadcrumbs a,
.breadcrumbs a,
.featured_item_cats a {
  color: inherit;
  text-decoration: none;
}

.page-breadcrumbs a:hover,
.breadcrumbs a:hover,
.featured_item_cats a:hover {
  color: var(--tvdm-text);
}

/* Posts */

#post-list {
  display: grid;
  gap: clamp(18px, 2vw, 30px);
}

.article-inner,
.no-results.not-found,
.entry-author.author-box,
.collection-summary.entry-summary,
.collection-inner,
.collection-related,
.next-prev-nav,
.archive-page-header {
  border: 1px solid var(--tvdm-border);
  border-radius: var(--tvdm-radius-xl);
  box-shadow: var(--tvdm-shadow-sm);
  overflow: hidden;
}

.article-inner {
  transition:
    transform var(--tvdm-transition),
    box-shadow var(--tvdm-transition),
    border-color var(--tvdm-transition);
}

#post-list article:hover .article-inner {
  border-color: var(--tvdm-border-strong);
  box-shadow: var(--tvdm-shadow-md);
  transform: translateY(-2px);
}

.entry-header-text,
.entry-content,
.entry-meta,
.entry-author.author-box,
.no-results .page-content {
  padding: clamp(18px, 2.4vw, 34px);
}

.entry-header-text + .entry-image,
.entry-image + .entry-header-text {
  margin-top: 0;
}

.entry-image {
  overflow: hidden;
}

.entry-image a,
.entry-image-attachment {
  display: block;
  overflow: hidden;
}

.entry-image img,
.entry-image-attachment img,
.tvdcssz-img-pub img,
.collection-inner img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 420ms cubic-bezier(0.2, 0, 0, 1);
}

#post-list article:hover .entry-image img,
#post-list article:hover .tvdcssz-img-pub img {
  transform: scale(1.025);
}

.entry-image-attachment[style*="--tvdm-image-height"] {
  max-height: var(--tvdm-image-height);
}

.entry-title {
  letter-spacing: 0;
  text-wrap: balance;
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover {
  color: #2563eb;
}

.entry-category,
.entry-meta,
.from_the_blog_comments,
.item-tags {
  color: var(--tvdm-text-muted);
  font-weight: 650;
}

.more-link.button,
.header-button .button,
.cart-checkout-button .button,
.pagination a,
.pagination span {
  border-radius: 999px;
  transition:
    transform var(--tvdm-transition),
    box-shadow var(--tvdm-transition),
    background var(--tvdm-transition),
    color var(--tvdm-transition);
}

.more-link.button:hover,
.header-button .button:hover,
.cart-checkout-button .button:hover,
.pagination a:hover {
  box-shadow: var(--tvdm-shadow-sm);
  transform: translateY(-1px);
}

.tvd-status-mark.post-date {
  top: 14px;
  left: 14px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tvd-status-mark.post-date .badge-inner {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--tvdm-shadow-sm);
  color: #fff;
}

.blog-share,
.collection-share {
  margin-top: clamp(18px, 2vw, 28px);
}

.entry-author.author-box {
  margin-top: clamp(22px, 3vw, 42px);
}

.blog-author-image img {
  border-radius: 999px;
  box-shadow: var(--tvdm-shadow-sm);
}

/* Collection */

.collection-top,
.collection-bottom {
  width: 100%;
}

.collection-top .tvd-grid,
.collection-bottom .tvd-grid,
.collection-top .page-wrap {
  width: var(--tvdm-container);
  max-width: var(--tvdm-container);
  margin-right: auto;
  margin-left: auto;
}

.collection-summary.entry-summary,
.collection-inner {
  padding: clamp(18px, 2.5vw, 36px);
}

.collection-inner {
  min-height: 120px;
}

.collection-title-ft .page-title-inner {
  min-height: clamp(280px, 34vw, 560px);
}

.blog-ctitle-ft .page-title-inner {
  min-height: clamp(260px, 30vw, 460px);
}

.next-prev-nav {
  align-items: center;
  gap: 16px;
  padding: clamp(14px, 2vw, 22px);
}

.next-prev-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.collection-related {
  margin-top: clamp(24px, 4vw, 54px);
  padding: clamp(18px, 2.5vw, 34px);
}

/* Footer */

.footer-widgets,
.absolute-footer {
  background: var(--tvdm-surface-strong);
  color: var(--tvdm-text);
  border-top: 1px solid var(--tvdm-border);
}

.footer-widgets {
  padding: clamp(42px, 6vw, 88px) max(16px, calc((100vw - 1480px) / 2));
}

.footer-widgets.dark,
.absolute-footer.dark,
.absolute-footer.nav-dark {
  background: #0f172a;
  color: #e5e7eb;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-widgets a,
.absolute-footer a {
  color: inherit;
  text-decoration: none;
  transition:
    opacity var(--tvdm-transition),
    color var(--tvdm-transition);
}

.footer-widgets a:hover,
.absolute-footer a:hover {
  opacity: 0.72;
}

.footer-widgets ul {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

.footer-widgets li + li {
  margin-top: 0.65rem;
}

.absolute-footer {
  padding: 18px 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.absolute-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.absolute-footer.txt-center .container,
.absolute-footer.sizets-txt-center .container {
  justify-content: center;
  text-align: center;
}

.footer-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 8px;
}

.copyright-footer,
.footer-text {
  color: var(--tvdm-text-muted);
  font-size: 0.92rem;
}

.tvdtheme-credit {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 99999;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--tvdm-shadow-md);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translate(-50%, 20px);
  transition:
    opacity 350ms ease,
    transform 350ms ease,
    visibility 350ms ease;
}

.tvdtheme-credit a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.tvdtheme-credit.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.tvd-back-top {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--tvdm-border);
  border-radius: 999px;
  background: var(--tvdm-surface);
  box-shadow: var(--tvdm-shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform var(--tvdm-transition),
    box-shadow var(--tvdm-transition),
    background var(--tvdm-transition);
}

.tvd-back-top:hover {
  box-shadow: var(--tvdm-shadow-md);
  transform: translateY(-2px);
}

/* Responsive */

@media (max-width: 991px) {
  :root {
    --tvdm-container: min(100% - 24px, 920px);
  }

  #tvd-header-1 .container,
  #tvd-header-3 .container {
    min-height: 46px;
    padding-right: 10px;
    padding-left: 10px;
  }

  #tvd-header-2 .header-inner {
    min-height: 66px;
  }

  #tvd-header-2 .mobile-nav,
  #tvd-header-1 .mobile-nav,
  #tvd-header-3 .mobile-nav {
    justify-content: center;
    gap: 6px;
  }

  /* Preserve the intended hamburger/logo and action alignment on mobile. */
  #tvd-header-2 .mobile-nav.tvd-menu--left {
    justify-content: flex-start;
  }

  #tvd-header-2 .mobile-nav.tvd-menu--right {
    justify-content: flex-end;
  }

  .mobile-sidebar .header-search-form-wrapper {
    width: min(100vw - 36px, 360px);
  }

  .page-title-inner {
    min-height: clamp(130px, 24vw, 240px);
  }

  .absolute-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-secondary,
  .footer-primary {
    float: none !important;
  }
}

@media (max-width: 849px) {
  .tvd-wc-single-product-layout .product-main > .tvd-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tvd-wc-single-product-layout .product-main > .tvd-grid > .tvd-grid__item {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 575px) {
  :root {
    --tvdm-container: min(100% - 20px, 540px);
  }

  #tvd-header-1 .tvd-menu-list > .tvd-menu-item > a,
  #tvd-header-3 .tvd-menu-list > .tvd-menu-item > a,
  #tvd-header-2 .mobile-nav > .tvd-menu-item > a,
  .header-button > a,
  .account-item > a,
  .cart-item .header-cart-link,
  .header-wishlist-icon .wishlist-link {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  #logo img,
  #logo-mobile img {
    max-height: 48px;
  }

  .mobile-sidebar .header-search-form-wrapper {
    width: calc(100vw - 28px);
  }

  .page-title h1,
  .page-title .entry-title {
    font-size: clamp(1.75rem, 11vw, 2.75rem);
  }

  .entry-header-text,
  .entry-content,
  .entry-meta,
  .entry-author.author-box,
  .no-results .page-content,
  .collection-summary.entry-summary,
  .collection-inner,
  .collection-related {
    padding: 18px;
  }

  .next-prev-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .tvdtheme-credit {
    width: calc(100vw - 32px);
    text-align: center;
  }
}

@media (min-width: 1800px) {
  :root {
    --tvdm-container: min(100% - 72px, 1720px);
  }

  body {
    font-size: clamp(16px, 0.86vw, 18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* Header Builder vertical menu */
:is(.tvd-header-navigation, .menuzheader-dung) {
  position: relative;
  z-index: 80;
  list-style: none;
}

:is(.tvd-header-navigation__trigger, .menuzheader-dung__opener) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 250px;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: #15732f;
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

:is(.tvd-header-navigation__trigger, .menuzheader-dung__opener):hover,
:is(.tvd-header-navigation__trigger, .menuzheader-dung__opener):focus-visible,
:is(.tvd-header-navigation, .menuzheader-dung).is-open
  > :is(.tvd-header-navigation__trigger, .menuzheader-dung__opener) {
  background: #0f6328;
  color: #fff;
  outline: none;
}

:is(.tvd-header-navigation__trigger, .menuzheader-dung__opener) svg,
:is(.tvd-header-navigation__trigger, .menuzheader-dung__opener) i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: currentColor;
}

:is(.tvd-header-navigation__label, .menuzheader-dung__title) {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(.tvd-header-navigation__tagline, .menuzheader-dung__tagline) {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  opacity: 0.85;
}

:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out) {
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  min-width: 250px;
  margin-top: 0;
  padding: 10px 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 35, 25, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;
  z-index: 10010;
}

:is(.tvd-header-navigation, .menuzheader-dung):hover
  > :is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out),
:is(.tvd-header-navigation, .menuzheader-dung).is-open
  > :is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out),
:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
  .tvd-sidebar-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
  .tvd-sidebar-menu
  > .tvd-menu-item {
  position: relative;
  display: block;
  margin: 0;
  border-top: 0;
}

:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
  .tvd-sidebar-menu
  > .tvd-menu-item
  + .tvd-menu-item {
  border-top: 1px solid #edf2ee;
}

:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
  .tvd-sidebar-menu
  .tvd-menu-item
  > a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  color: #24352a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    padding-left 0.18s ease;
}

:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
  .tvd-sidebar-menu
  .tvd-menu-item
  > a:hover,
:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
  .tvd-sidebar-menu
  .tvd-menu-item.tvd-test-dropdown
  > a,
:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
  .tvd-sidebar-menu
  .tvd-menu-item.is-submenu-open
  > a {
  background: #f0f8f2;
  color: #15732f;
}

:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
  .tvdelm-menu-icon,
:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out) li > a > img,
:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
  li
  > a
  > svg:first-child,
:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
  li
  > a
  > i:first-child {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
  color: #15732f;
}

:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
  .has-dropdown
  > a::after,
:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
  .menu-item-has-children
  > a::after {
  content: "\203A";
  margin-left: auto;
  color: #66756b;
  font-size: 22px;
  line-height: 1;
}

:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out) li > .sub-menu {
  position: absolute;
  top: 0;
  left: calc(100% - 1px);
  min-width: 260px;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 35, 25, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(8px, 0, 0);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  z-index: 10011;
}

:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
  .tvd-menu-dropdown {
  top: 0;
  left: calc(100% - 1px) !important;
  min-width: 260px;
  padding: 10px 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 35, 25, 0.14);
  transform: translate3d(8px, 0, 0);
}

:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
  li.tvd-test-dropdown
  > .sub-menu,
:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
  li:hover
  > .sub-menu,
:is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
  li.is-submenu-open
  > .sub-menu {
  left: calc(100% - 1px) !important;
  max-height: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

:is(.tvd-header-navigation__overlay, .menuzheader-dung__overlay),
:is(.tvd-header-navigation__close, .menuzheader-dung__close) {
  display: none;
}

body.tvd-vertical-menu-open {
  overflow-x: hidden;
}

@media (max-width: 849px) {
  :is(.tvd-header-navigation, .menuzheader-dung) {
    position: static;
  }

  :is(.tvd-header-navigation__trigger, .menuzheader-dung__opener) {
    width: min(100vw - 24px, 320px);
    border-radius: 8px;
  }

  :is(.tvd-header-navigation__overlay, .menuzheader-dung__overlay) {
    position: fixed;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      visibility 0.22s ease;
    z-index: 10000;
  }

  :is(.tvd-header-navigation, .menuzheader-dung).is-open
    > :is(.tvd-header-navigation__overlay, .menuzheader-dung__overlay) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  :is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out) {
    position: fixed;
    top: 0;
    left: 0;
    width: min(92vw, 360px);
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 58px 0 16px;
    border-radius: 0 10px 10px 0;
    overflow: auto;
    transform: translate3d(-104%, 0, 0);
  }

  :is(.tvd-header-navigation, .menuzheader-dung).is-open
    > :is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out),
  :is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)--open {
    transform: translate3d(0, 0, 0);
  }

  :is(.tvd-header-navigation__close, .menuzheader-dung__close) {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f3f6f4;
    color: #24352a;
    cursor: pointer;
  }

  :is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out) li > .sub-menu,
  :is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
    .tvd-menu-dropdown {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    padding: 0 0 0 18px;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }

  :is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
    li.is-submenu-open
    > .sub-menu,
  :is(.tvd-header-navigation__panel, .menuzheader-dung__fly-out)
    .tvd-menu-item.is-submenu-open
    > .tvd-menu-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}
