:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
  -webkit-tap-highlight-color: transparent;
  padding-bottom: var(--safe-bottom);
}

.pwa-install-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + var(--safe-bottom));
  z-index: 9998;
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 20px;
  background: rgba(7, 10, 18, .94);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
  backdrop-filter: blur(16px);
}

.pwa-install-banner.show {
  display: flex;
}

.pwa-install-title {
  font-weight: 950;
  letter-spacing: -.03em;
}

.pwa-install-text {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.pwa-install-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pwa-ios-hint {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + var(--safe-bottom));
  z-index: 9998;
  display: none;
  padding: 14px;
  border-radius: 20px;
  background: rgba(7, 10, 18, .94);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
  backdrop-filter: blur(16px);
}

.pwa-ios-hint.show {
  display: block;
}

.pwa-close {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
}

.mobile-quickbar {
  display: none;
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 20px, 1180px);
  }

  .topbar {
    position: sticky;
    top: 0;
    padding-top: var(--safe-top);
  }

  .topbar-inner {
    min-height: 64px;
    padding: 10px 0;
  }

  .logo {
    font-size: 21px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .page {
    padding-top: 18px;
  }

  .card.pad {
    padding: 16px;
  }

  .nav a,
  .nav button,
  .btn {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 13px;
  }

  input, select, textarea {
    min-height: 46px;
    font-size: 16px;
  }

  h1 {
    letter-spacing: -.055em;
  }

  .cart {
    position: static;
  }

  .pwa-install-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .pwa-install-actions {
    width: 100%;
  }

  .pwa-install-actions .btn {
    flex: 1;
  }
}

