/* ==========================================================================
   SISIMO — Mobile Bottom Navigation Bar (Design & Style of Home Page)
   Modern, clean, editorial children's fashion dock with safe-area support
   ========================================================================== */

.mobile-bottom-nav {
  display: none;
}

@media only screen and (max-width: 767px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-bottom-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid #EDEDED;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    padding-top: 8px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-bottom-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 8px;
  }

  .mobile-bottom-nav .bottom-nav-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 2px 2px;
    color: #71717A;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  .mobile-bottom-nav .bottom-nav-item:active {
    transform: scale(0.92);
  }

  .mobile-bottom-nav .icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  }

  .mobile-bottom-nav .icon-wrapper svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.2s ease;
  }

  .mobile-bottom-nav .icon-wrapper i {
    font-size: 19px;
    line-height: 1;
  }

  .mobile-bottom-nav .nav-label {
    display: block;
    font-size: 10.5px;
    line-height: 1.2;
    font-weight: 600;
    margin-top: 3px;
    letter-spacing: 0.01em;
    color: inherit;
    transition: color 0.2s ease, font-weight 0.2s ease;
    white-space: nowrap;
  }

  /* Micro active indicator dot */
  .mobile-bottom-nav .active-dot {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--theme-color, #111111);
    margin-top: 3px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Active State (Matches Home Page theme) */
  .mobile-bottom-nav .bottom-nav-item.active {
    color: var(--theme-color, #111111);
  }

  .mobile-bottom-nav .bottom-nav-item.active .icon-wrapper {
    transform: translateY(-2px);
    color: var(--theme-color, #111111);
  }

  .mobile-bottom-nav .bottom-nav-item.active .icon-wrapper svg {
    stroke-width: 2.2;
  }

  .mobile-bottom-nav .bottom-nav-item.active .nav-label {
    color: var(--theme-color, #111111);
    font-weight: 700;
  }

  .mobile-bottom-nav .bottom-nav-item.active .active-dot {
    opacity: 1;
    transform: scale(1);
  }

  /* Badge indicator for cart (Matches SISIMO green header badge) */
  .mobile-bottom-nav .nav-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #A8D5A2;
    color: #1A2E1A;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    height: 16px;
    min-width: 16px;
    padding: 0 4px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  /* Adjust scroll to top button position on mobile */
  .scroll-to-top {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
