/* Shared fixed navigation for every Disco route. */
.mobile-app-bottom-nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.modal-open .mobile-app-bottom-nav {
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 760px) {
  .mobile-app-bottom-nav {
    position: fixed !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    -webkit-transform: translate3d(-50%, 0, 0) !important;
    transform: translate3d(-50%, 0, 0) !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    width: calc(100% - 32px) !important;
    max-width: 370px !important;
    height: 72px !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
    border: 0 !important;
    border-radius: 99px !important;
    background: rgba(255, 255, 255, .98) !important;
    -webkit-backdrop-filter: blur(8px) saturate(115%) !important;
    backdrop-filter: blur(8px) saturate(115%) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .06) !important;
    font-family: Gilroy-Bold, sans-serif !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
  }

  .mobile-app-bottom-nav .m-nav-tab {
    position: relative !important;
    display: flex !important;
    flex: 1 1 0 !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 3px !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 58px !important;
    padding: 0 !important;
    border-radius: 99px !important;
    background: transparent !important;
    color: #62596d !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: background .18s, transform .18s, color .18s !important;
  }

  .mobile-app-bottom-nav .m-nav-tab span {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-family: Gilroy-Bold, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -.01em !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .mobile-app-bottom-nav .m-nav-tab.active {
    border-radius: 99px !important;
    background: linear-gradient(145deg, #ffffffed, #e7daf2bf) !important;
    box-shadow: inset 0 1px 1px #fff, 0 3px 10px #3e1c6410 !important;
    color: var(--c, #57228c) !important;
  }

  .mobile-app-bottom-nav .m-nav-tab.active span,
  .mobile-app-bottom-nav .m-nav-tab.active .m-nav-svg {
    color: var(--c, #57228c) !important;
  }

  .mobile-app-bottom-nav .m-nav-tab:active {
    transform: scale(.96) !important;
    background: #e6d8f0 !important;
  }

  .mobile-app-bottom-nav .m-nav-svg {
    display: block !important;
    flex: 0 0 23px !important;
    width: 23px !important;
    height: 23px !important;
    color: inherit !important;
    transition: transform .2s ease, color .2s ease !important;
  }

  .mobile-app-bottom-nav .m-nav-tab.active .m-nav-svg {
    transform: translateY(-1px) scale(1.05) !important;
  }

  .mobile-app-bottom-nav .m-nav-icon-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
  }

  .mobile-app-bottom-nav .m-nav-badge {
    position: absolute !important;
    top: -5px !important;
    right: -11px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    border: 2px solid #fff !important;
    border-radius: 20px !important;
    background: var(--c, #5b1fa8) !important;
    color: #fff !important;
    box-sizing: border-box !important;
    font-family: Gilroy-Bold, sans-serif !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  .mobile-app-bottom-nav .m-nav-badge.hidden,
  .mobile-app-bottom-nav .m-nav-badge:empty,
  .mobile-app-bottom-nav .m-nav-badge[data-count="0"] {
    display: none !important;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  @media (max-width: 760px) {
    .mobile-app-bottom-nav { background: #f5f0f9 !important; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-app-bottom-nav,
  .mobile-app-bottom-nav * {
    transition-duration: .01ms !important;
  }
}

/* ==============================================================================
   UNIVERSAL DISCO SHIMMER LOADING SYSTEM (ALL DISCO PAGES)
   ============================================================================== */
@keyframes discoShimmerWave {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.disco-shimmer,
.disco-skeleton,
.skeleton-card,
.ph.disco-shimmer,
.ph.loading,
#g .ph.disco-shimmer,
#g .ph.loading,
#productsGrid .ph.disco-shimmer,
#productsGrid .ph.loading,
.sd.disco-shimmer,
.sd.loading,
.th button.disco-shimmer,
.th button.loading,
.stage-card.disco-shimmer,
.stage-card.loading,
.char-cutout.disco-shimmer,
.char-cutout.loading,
.poster-slide.disco-shimmer,
.poster-slide.loading,
.hero-poster-slideshow.loading,
.checkout-item-thumb.disco-shimmer,
.checkout-item-thumb.loading,
.it img.disco-shimmer,
.it img.loading,
.it-thumb-wrap.disco-shimmer,
.it-thumb-wrap.loading,
.account-item-thumb.disco-shimmer,
.account-item-thumb.loading,
.cart-loading-skeleton-thumb,
.cart-loading-skeleton-line,
.category-pill-skeleton,
.skeleton-line,
.skeleton-add,
.who.disco-shimmer,
.who.loading {
  background: linear-gradient(
    90deg,
    #f4eef8 0%,
    #e5d6f1 35%,
    #faf5fd 50%,
    #e5d6f1 65%,
    #f4eef8 100%
  ) !important;
  background-size: 250% 100% !important;
  animation: discoShimmerWave 1.4s ease-in-out infinite !important;
}

/* While images are loading inside shimmering containers, hide raw image until fully decoded */
.disco-shimmer img:not(.loaded),
.loading img:not(.loaded),
img.disco-shimmer:not(.loaded),
img.loading:not(.loaded),
.ph:not(.img-loaded) img,
.sd:not(.img-loaded) img,
.char-cutout:not(.img-loaded) img,
.th button:not(.img-loaded) img,
.poster-slide:not(.img-loaded) img,
.it-thumb-wrap:not(.img-loaded) img,
.it img:not(.loaded),
.checkout-item-thumb:not(.loaded),
.account-item-thumb:not(.loaded) {
  opacity: 0 !important;
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* Once image is loaded, reveal smoothly */
img.loaded,
.img-loaded img,
.ph.img-loaded img,
.sd.img-loaded img,
.char-cutout.img-loaded img,
.poster-slide.img-loaded img,
.th button.img-loaded img,
.it-thumb-wrap.img-loaded img,
.it img.loaded,
.checkout-item-thumb.loaded,
.account-item-thumb.loaded,
.who.img-loaded img {
  opacity: 1 !important;
}

/* Stop shimmering on loaded containers */
.img-loaded,
.sd.img-loaded,
.char-cutout.img-loaded,
.poster-slide.img-loaded,
.hero-poster-slideshow.img-loaded,
.th button.img-loaded,
.it-thumb-wrap.img-loaded,
.checkout-item-thumb.loaded,
.account-item-thumb.loaded,
.who.img-loaded,
img.loaded {
  animation: none !important;
}

.ph.img-loaded {
  background: rgba(255, 255, 255, 0.62) !important;
  animation: none !important;
}
.sd.img-loaded {
  background: #fbf9f5 !important;
  animation: none !important;
}
.th button.img-loaded {
  background: #F8F4EC !important;
  animation: none !important;
}
.char-cutout.img-loaded {
  background: transparent !important;
  animation: none !important;
}
.poster-slide.img-loaded {
  background: transparent !important;
  animation: none !important;
}
