/* App-style Bottom Navigation */

@media (max-width: 767px),
(min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  #gstore-bottom-nav {
    position: fixed;
    bottom: 8px;
    left: 20px;
    right: 20px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    z-index: 100005;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    outline-style: solid;
    outline-color: #707ada38;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }

  #gstore-bottom-nav.bottom-nav-hidden {
    transform: translateY(200%);
    opacity: 0;
    pointer-events: none;
  }

  #gstore-bottom-nav.compact {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    left: 20px;
    right: auto;
  }

  #gstore-bottom-nav.compact.right-side {
    left: auto;
    right: 20px;
  }

  /* Keep the compact close button above side-menu backdrop */
  body.gstore-side-menu-open #gstore-bottom-nav.compact.right-side {
    z-index: 100220;
  }

  body.gstore-side-menu-open #gstore-bottom-nav.compact.right-side .nav-close {
    position: relative;
    z-index: 100221;
  }

  body.gstore-cart-click-guard #gstore-bottom-nav [data-action="cart"] {
    pointer-events: none;
  }

  #gstore-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    box-shadow: none !important;
    border: none;
    color: #888;
    font-size: 0.55rem;
    gap: 3px;
    cursor: pointer;
    transition: transform 0.1s ease, color 0.3s ease;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    line-height: 1;
    position: relative;
    touch-action: manipulation;
    z-index: 2;
  }

  #gstore-bottom-nav .nav-close {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
  }

  #gstore-bottom-nav.compact .nav-item {
    display: none;
  }

  #gstore-bottom-nav.compact .nav-close {
    display: flex;
  }

  #gstore-bottom-nav .nav-item:active {
    transform: scale(0.92);
  }

  #gstore-bottom-nav .nav-item.tap-anim {
    animation: gstore-nav-tap 220ms cubic-bezier(.2, .8, .2, 1);
  }

  @keyframes gstore-nav-tap {
    0% {
      transform: scale(1);
    }

    45% {
      transform: scale(0.9);
    }

    100% {
      transform: scale(1);
    }
  }

  #gstore-bottom-nav .nav-item.active {
    color: #007bff;
  }

  #gstore-bottom-nav .nav-item.active .nav-icon-svg,
  #gstore-bottom-nav .nav-item.active svg {
    transform: translateY(0);
  }

  #gstore-bottom-nav .nav-item>span:not(.nav-cart-badge) {
    font-weight: 500;
    font-family: 'TBC Contractica CAPS', 'TBC Contractica', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    text-transform: uppercase;
    letter-spacing: .2px;
    line-height: 1;
    position: relative;
    top: 4px;
    opacity: .6;
    transform: translateY(0);
    transition: transform .28s ease, opacity .28s ease, color .28s ease;
    white-space: nowrap;
  }

  #gstore-bottom-nav .nav-item.active>span:not(.nav-cart-badge) {
    opacity: 1;
    transform: translateY(-2px);
  }

  #gstore-bottom-nav .nav-item img,
  #gstore-bottom-nav .nav-item .nav-icon-svg {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  }

  #gstore-bottom-nav .nav-item svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
  }

  #gstore-bottom-nav .nav-cart-badge {
    position: absolute;
    top: -8px;
    left: calc(50% + 9px);
    background-color: #e60023;
    color: white;
    font-family: monospace;
    font-size: 9px;
    font-weight: 700 !important;
    width: 16px;
    height: 16px;
    min-width: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 3px;
    border: 1px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 100;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    transform: scale(.8);
    transition: transform .2s ease, opacity .2s ease;
  }

  #gstore-bottom-nav .nav-item.has-count .nav-cart-badge {
    opacity: 1;
    transform: scale(1);
  }

  #gstore-bottom-nav .nav-bento-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    overflow: hidden;
  }

  #gstore-bottom-nav .nav-bento-group {
    transform-origin: center;
    transition: transform 0.3s ease-out;
  }

  #gstore-bottom-nav .nav-item.active .nav-bento-group {
    transform: rotate(45deg);
  }

  #gstore-bottom-nav .nav-bento-dot {
    transition: transform 0.3s ease-out, opacity 0.3s ease;
  }

  #gstore-bottom-nav .nav-item.active .dot-1,
  #gstore-bottom-nav .nav-item.active .dot-3,
  #gstore-bottom-nav .nav-item.active .dot-7,
  #gstore-bottom-nav .nav-item.active .dot-9 {
    opacity: 0;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  #gstore-bottom-nav {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  #gstore-bottom-nav {
    display: none !important;
  }
}