/* Mobile Bottom Bar — Modern style */
.footer-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  #scrollUp {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 12px);
  }

  .footer-mobile {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    pointer-events: none;
  }

  .footer-mobile__nav {
    pointer-events: auto;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08), 0 -2px 8px rgba(0, 0, 0, 0.04);
    margin: 0 8px;
    margin-bottom: 0;
    overflow: hidden;
  }

  .footer-mobile__menu {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 64px;
  }

  .footer-mobile__item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

  .footer-mobile__item--cart .footer-mobile__icon {
    position: relative;
  }

  .footer-mobile__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 64px;
    padding: 8px 4px 10px;
    color: #4a5568;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .footer-mobile__link:active {
    transform: scale(0.96);
  }

  .footer-mobile__link:hover,
  .footer-mobile__link:focus {
    color: var(--color-brand, #2563eb);
    outline: none;
  }

  .footer-mobile__link.active {
    color: var(--color-brand, #2563eb);
  }

  .footer-mobile__link.active .footer-mobile__icon svg {
    stroke: var(--color-brand, #2563eb);
  }

  .footer-mobile__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .footer-mobile__icon svg {
    width: 100%;
    height: 100%;
    stroke: #4a5568;
    transition: stroke 0.2s ease;
  }

  .footer-mobile__link:hover .footer-mobile__icon svg,
  .footer-mobile__link:focus .footer-mobile__icon svg,
  .footer-mobile__link.active .footer-mobile__icon svg {
    stroke: var(--color-brand, #2563eb);
  }

  .footer-mobile__icon--cart {
    position: relative;
  }

  .footer-mobile__label {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
  }

  .footer-mobile__badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-brand, #2563eb);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border-radius: 9px;
    border: 2px solid #ffffff;
    box-sizing: border-box;
  }

  .footer-mobile__badge:empty {
    display: none;
  }

  .footer-mobile__safe {
    height: env(safe-area-inset-bottom, 0px);
    background: #ffffff;
  }
}
