/* Mobile "app" layout: bottom tab bar and app-like chrome on phones */
.mobile-tabbar { display: none; }

@media (max-width: 767px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e6ece8;
    box-shadow: 0 -4px 18px rgba(10, 61, 34, .08);
  }
  .mobile-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #5f7066;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-tabbar__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 30px;
    border-radius: 16px;
    font-size: 18px;
    transition: background-color .2s, color .2s;
  }
  .mobile-tabbar a.is-active { color: var(--brand-green); }
  .mobile-tabbar a.is-active .mobile-tabbar__icon { background: #dcefe2; }
  .mobile-tabbar a:active .mobile-tabbar__icon { background: #eaf3ed; }
  .mobile-tabbar__badge {
    position: absolute;
    top: -2px;
    right: 8px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: #d93025;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
  }
  .mobile-tabbar__badge[hidden] { display: none; }

  /* The bar already has cart / account / shop, so drop the duplicates */
  .md-fab,
  .scroll-to-top,
  .main-header .outer-box .shop-now,
  .main-header .outer-box .account-btn,
  .main-header .outer-box .cart-btn { display: none !important; }

  .md-snackbar { bottom: calc(84px + env(safe-area-inset-bottom)); }

  /* App-style top bar and content */
  .main-header .header-upper { box-shadow: 0 1px 0 #e6ece8; }
  .ks-section { padding-top: 24px; }
  .ks-card { border-radius: 18px; }
  .shop-section { padding-top: 24px; }
  .main-footer { padding-bottom: 8px; }
}
