* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: linear-gradient(160deg, #f5f7ff 0%, #edf7ff 48%, #f6f2ff 100%);
  color: #1f2430;
}

.app {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 16px 140px;
}

.card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(40, 60, 120, 0.08);
}

.hero {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-mask h1 {
  margin: 0;
  font-size: 24px;
}

.hero-mask p {
  margin: 6px 0 0;
  font-size: 14px;
}

.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 2px;
}

.cat-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.7);
  color: #5b6276;
  cursor: pointer;
  white-space: nowrap;
}

.cat-btn.active {
  color: #fff;
  background: linear-gradient(130deg, #6a8dff 0%, #8d66ff 100%);
}

.products,
.orders {
  display: grid;
  gap: 12px;
}

.product {
  display: flex;
  gap: 12px;
  padding: 10px;
}

.product img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.product h3 {
  margin: 0;
  font-size: 17px;
}

.desc {
  margin: 6px 0;
  color: #80879b;
  font-size: 13px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  color: #ff4f4f;
  font-weight: 700;
}

.origin {
  margin-left: 6px;
  color: #a3a9bc;
  text-decoration: line-through;
  font-size: 12px;
}

.add-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #1f2430;
  color: #fff;
  cursor: pointer;
}

.bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 74px;
  width: min(488px, calc(100% - 32px));
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
}

.btn-primary {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(130deg, #6a8dff 0%, #8d66ff 100%);
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
}

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  width: min(488px, calc(100% - 32px));
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.tab-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 0;
  background: transparent;
  cursor: pointer;
  color: #6f7487;
}

.tab-btn.active {
  color: #1f2430;
  font-weight: 600;
  background: #eef2ff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.order {
  padding: 12px;
}

.muted {
  color: #8d94a9;
  font-size: 13px;
}

.profile {
  margin-top: 8px;
  text-align: center;
  padding: 22px;
}

.avatar {
  margin: 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  color: #fff;
  background: linear-gradient(135deg, #5e7dff 0%, #8f60ff 100%);
}

.empty {
  text-align: center;
  color: #8f95a8;
  margin-top: 80px;
}
