:root { --ink: #232747; --muted: #535c78; --line: #dedfed; --green: #3e42a2; }
body { background: #f6f5fb; }
header { background: #25264b; }
.brand { display: flex; align-items: center; }
.brand span { flex: none; }
header a { flex: none; }
.notice { margin: 17px 0 24px; }
.heading h1 { font-size: clamp(27px, 4vw, 42px); }
.stats { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 18px 0; }
.stat { min-width: 0; border-color: var(--line); border-radius: 14px; overflow-wrap: anywhere; }
.stat small { display: block; line-height: 1.3; }
.stat strong { font-size: clamp(16px, 2.2vw, 25px); line-height: 1.2; margin-top: 7px; }
#statsPopular { font-size: 16px; }
.tabs { margin: 0 0 14px; gap: 6px; }
.tab { min-height: 44px; padding: 8px 12px; }
.panel { border-radius: 16px; }
.panel-title { background: #faf9fe; }
.product-search { display: block; margin: 12px 20px 0; }
.product-search input { width: min(420px, 100%); min-height: 44px; }
.product-search span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.list .item .info { min-width: 0; }
.dialog { max-height: calc(100dvh - 32px); overscroll-behavior: contain; }
body:has(.modal:not([hidden])) { overflow: hidden; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 11px 12px; }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: 4px 4px 8px; }
  .tab { flex: none; white-space: nowrap; font-size: 14px; }
}
@media (max-width: 600px) {
  .bar { align-items: center; }
  .brand { font-size: 14px; }
  header a { font-size: 12px; }
  .panel-title, .list { padding-inline: 12px; }
  .product-search { margin-inline: 12px; }
  .item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
  .item .thumb { width: 52px; height: 52px; }
  .item .actions { grid-column: 2; margin-left: 0; }
  .voucher-form input { min-width: 0; }
}
