body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #ffffff;
  color: #111111;
}

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top) + 16px) 16px max(40px, env(safe-area-inset-bottom) + 40px);
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  color: #86b6ff;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.topbar--spread {
  justify-content: space-between;
}

.topbar--sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  padding-top: max(12px, env(safe-area-inset-top) + 12px);
  padding-bottom: 12px;
  margin-top: -12px;
  transition: box-shadow 0.3s ease;
}

.topbar.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-btn,
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}

.icon-btn.cart,
.icon-btn--cart {
  position: relative;
}

.badge,
.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff8c3a;
  color: #111111;
  font-weight: 700;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
}

.search {
  flex: 1;
  position: relative;
}

.search input {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: #f1f5f9;
  color: #111111;
  padding: 0 42px 0 44px;
  font-size: 14px;
  outline: none;
}

.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

@media (max-width: 520px) {
  .container {
    padding: max(12px, env(safe-area-inset-top) + 12px) 12px max(32px, env(safe-area-inset-bottom) + 32px);
  }

  .topbar {
    margin-bottom: 12px;
  }

  .topbar .back-btn,
  .topbar .icon-btn {
    width: 38px;
    height: 38px;
  }

  .topbar .search input {
    height: 38px;
    font-size: 13px;
  }
}
