/* Non-product mobile navigation. Loaded only by the new footer branch. */
.htv2-mobile-nav,
.htv2-mobile-backdrop,
.htv2-mobile-sheet {
  display: none !important;
}

.htv2-mobile-backdrop[hidden],
.htv2-mobile-sheet[hidden] {
  display: none !important;
}

@media (max-width: 991px) {
  body.htv2-mobile-enabled {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }

  @supports selector(body:has(.htv2-mobile-nav)) {
    body:has(.htv2-mobile-nav) {
      padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    }
  }

  body.htv2-mobile-sheet-open {
    overflow: hidden;
  }

  .htv2-mobile-nav {
    position: fixed !important;
    inset: auto 0 0 !important;
    z-index: 1000000;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: 1fr;
    align-items: end;
    width: 100%;
    max-width: 100%;
    height: calc(72px + env(safe-area-inset-bottom, 0px));
    margin: 0 !important;
    padding: 0 max(4px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px)) !important;
    border: 0;
    border-top: 1px solid #e3e8f0;
    border-radius: 0;
    background: #fff !important;
    box-shadow: 0 -4px 16px rgba(19, 40, 107, 0.08);
    overflow: visible !important;
    pointer-events: auto;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    text-align: center;
    box-sizing: border-box;
  }

  html.mm-opened .htv2-mobile-nav {
    visibility: hidden;
    pointer-events: none;
  }

  .htv2-mobile-nav > .htv2-mobile-item {
    position: relative;
    grid-row: 1;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    width: 100% !important;
    min-width: 0;
    min-height: 48px;
    height: 56px;
    max-height: none;
    margin: 0 !important;
    padding: 0 2px !important;
    border: 0 !important;
    border-radius: 8px;
    background: transparent !important;
    box-shadow: none;
    color: #4a5568 !important;
    font: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
    text-align: center;
    text-decoration: none !important;
    text-transform: none;
    cursor: pointer;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    overflow: visible;
  }

  .htv2-mobile-nav > .htv2-mobile-home {
    grid-column: 1;
  }

  .htv2-mobile-nav > .htv2-mobile-category,
  .htv2-mobile-nav > .htv2-mobile-item.navbar-m {
    grid-column: 2;
  }

  .htv2-mobile-nav > .htv2-mobile-contact {
    grid-column: 3;
    color: #c94f17 !important;
    font-weight: 700;
  }

  .htv2-mobile-nav > .htv2-mobile-map {
    grid-column: 4;
  }

  .htv2-mobile-nav > .htv2-mobile-cart {
    grid-column: 5;
  }

  .htv2-mobile-nav > .htv2-mobile-item.is-active {
    color: #13286b !important;
    font-weight: 700;
  }

  .htv2-mobile-nav > .htv2-mobile-item > span:not(.htv2-mobile-badge):not(.htv2-mobile-contact-circle) {
    display: block;
    max-width: 100%;
    color: inherit !important;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
  }

  .htv2-mobile-nav > .htv2-mobile-item svg,
  .htv2-mobile-sheet .htv2-mobile-action svg {
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    max-width: 22px;
    margin: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: inherit !important;
    pointer-events: none;
  }

  .htv2-mobile-nav svg *,
  .htv2-mobile-nav .htv2-mobile-badge * {
    color: inherit !important;
  }

  .htv2-mobile-nav .htv2-mobile-contact-circle {
    display: flex;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-top: -24px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #c94f17;
    box-shadow: 0 4px 12px rgba(201, 79, 23, 0.35);
    color: #fff !important;
    box-sizing: border-box;
  }

  .htv2-mobile-nav .htv2-mobile-contact-circle svg {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    max-width: 24px;
  }

  .htv2-mobile-nav .htv2-mobile-cart > .htv2-mobile-badge.sl-cart {
    position: absolute;
    top: 10px;
    right: calc(50% - 24px);
    left: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    width: auto;
    max-width: calc(100% - 8px);
    height: 18px;
    margin: 0;
    padding: 0 4px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #c8281c !important;
    box-shadow: none;
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    white-space: nowrap;
    box-sizing: border-box;
    pointer-events: none;
  }

  .htv2-mobile-backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: block !important;
    background: rgba(19, 40, 107, 0.35);
    touch-action: none;
  }

  .htv2-mobile-sheet:not([hidden]) {
    position: fixed;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    z-index: 1000003;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    width: auto;
    max-width: 440px;
    max-height: calc(100vh - 120px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 120px - env(safe-area-inset-bottom, 0px));
    margin: 0 auto;
    padding: 16px;
    border: 1px solid #e3e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(19, 40, 107, 0.25);
    color: #13286b;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .htv2-mobile-sheet .htv2-mobile-sheet-heading {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }

  .htv2-mobile-sheet .htv2-mobile-sheet-heading h2 {
    min-width: 0;
    margin: 0;
    color: #13286b;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    overflow-wrap: anywhere;
  }

  .htv2-mobile-sheet .htv2-mobile-close {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #f3f5f9;
    color: #13286b;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  .htv2-mobile-sheet .htv2-mobile-action {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    text-align: left;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  .htv2-mobile-sheet .htv2-mobile-call {
    background: #c94f17;
    color: #fff;
  }

  .htv2-mobile-sheet .htv2-mobile-zalo {
    background: #0f6fb0;
    color: #fff;
  }

  .htv2-mobile-sheet .htv2-mobile-messenger {
    border-color: #0f6fb0;
    background: #fff;
    color: #0f6fb0;
  }

  .htv2-mobile-nav > .htv2-mobile-item:focus-visible,
  .htv2-mobile-sheet .htv2-mobile-close:focus-visible,
  .htv2-mobile-sheet .htv2-mobile-action:focus-visible {
    outline: 3px solid #13286b !important;
    outline-offset: 3px;
  }

  .htv2-mobile-nav > .htv2-mobile-item:active {
    background: #f3f5f9 !important;
  }

  .htv2-mobile-sheet .htv2-mobile-action:hover {
    box-shadow: 0 0 0 2px #d5dce8;
  }
}

@media (min-width: 992px) {
  .htv2-mobile-nav,
  .htv2-mobile-backdrop:not([hidden]),
  .htv2-mobile-sheet:not([hidden]) {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .htv2-mobile-nav,
  .htv2-mobile-nav *,
  .htv2-mobile-backdrop,
  .htv2-mobile-sheet,
  .htv2-mobile-sheet * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
