:root{
  --brand:#73469B;
  --bg:#FFFFFF;
  --bgSoft:#FAF7FF;
  --text:#121212;
  --muted:#4B4B4B;
  --border:#E9E1F3;
  --chipActive:#F2ECFA;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: var(--bgSoft);
  color: var(--text);
}

.app{
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 14px 90px;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 4px 6px;
}

.brand{display:flex; align-items:center; gap:10px;}
.logoMark{
  width:42px; height:42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #8c64b0);
  box-shadow: var(--shadow);
}
.brandText{display:flex; flex-direction:column; line-height:1.1}
.brandName{font-weight:700; font-size:16px}
.brandSub{font-size:12px; color:var(--muted)}

.langToggle{
  display:flex;
  background: #fff;
  border:1px solid var(--border);
  border-radius: 999px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.langBtn{
  appearance:none;
  border:0;
  background: transparent;
  padding: 10px 12px;
  font-weight:700;
  color: var(--muted);
}
.langBtn.active{
  background: var(--chipActive);
  color: var(--brand);
}

.searchWrap{padding: 8px 2px 14px;}
.search{
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.searchIcon{color:var(--muted); font-weight:700}
.search input{
  width:100%;
  border:0;
  outline:none;
  font-size:15px;
  background:transparent;
  color:var(--text);
}
.clearBtn{
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:16px;
  padding: 6px 8px;
  border-radius: 12px;
}
.clearBtn:active{background: #f3f3f3}
.searchHint{
  padding: 8px 6px 0;
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}

.hero{padding: 4px 0 14px;}
.heroCard{
  background:#fff;
  border:1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 16px;
  box-shadow: var(--shadow);
}
.heroTitle{font-size:22px; font-weight:800; letter-spacing:.2px;}
.heroDesc{margin-top:6px; color:var(--muted); font-size:13px;}
.heroBtns{display:flex; gap:10px; margin-top:14px;}
.btn{
  width:100%;
  height:56px;
  border-radius: 18px;
  font-size:16px;
  font-weight:800;
  border:1px solid transparent;
}
.btnPrimary{background:var(--brand); color:#fff;}
.btnPrimary:active{transform: translateY(1px)}
.btnOutline{background:#fff; border-color: var(--brand); color: var(--brand);}
.btnOutline:active{transform: translateY(1px)}

.content{display:flex; flex-direction:column; gap:14px;}
.panel{
  background:#fff;
  border:1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panelHeader{padding: 16px 16px 8px;}
.panelTitle{margin:0; font-size:20px; font-weight:900;}

.chipsWrap{
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.chips{
  display:flex;
  gap:10px;
  overflow:auto;
  padding: 10px 12px;
  scroll-behavior:smooth;
}
.chip{
  flex:0 0 auto;
  border:1px solid var(--border);
  background:#fff;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight:800;
  font-size:13px;
}
.chip.active{
  background: var(--chipActive);
  border-color: #dfcfee;
  color: var(--brand);
}

.items{padding: 6px 12px 14px;}
.sectionTitle{
  margin: 14px 6px 10px;
  font-size: 14px;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: .2px;
}
.item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--border);
}
.item:last-child{border-bottom:0}
.itemMain{min-width:0}
.itemName{font-weight:900; font-size:16px; line-height:1.25;}
.itemDesc{
  margin-top:4px;
  color: var(--muted);
  font-size:13px;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.itemRight{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.price{
  font-weight:900;
  font-size:16px;
  white-space:nowrap;
}
.thumb{
  width:76px; height:76px;
  border-radius: 14px;
  border:1px solid var(--border);
  object-fit: cover;
  flex: 0 0 auto;
  background: #f5f2f8;
}

.bottomBar{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: min(520px, calc(100% - 20px));
  background:#fff;
  border:1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  display:flex;
  gap:6px;
  padding: 6px;
  z-index: 20;
}
.bottomBtn{
  flex:1;
  border:0;
  background: transparent;
  height:44px;
  border-radius: 999px;
  font-weight:900;
  color: var(--text);
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
}
.bottomBtn:active{background: #f3f3f3}

.footer{
  padding: 10px 4px 0;
  text-align:center;
  color: var(--muted);
  font-size: 12px;
}