:root {
  --bg: #f3f6f4;
  --ink: #10231a;
  --mute: #4b6156;
  --line: #d5dfd9;
  --card: #fff;
  --accent: #0f7b4f;
  --tint: #ddebe3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1511;
    --ink: #e8f1ec;
    --mute: #9db3a6;
    --line: #27382f;
    --card: #14211a;
    --tint: #1d3328;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.4;
  padding-bottom: 96px;
}
button,
input {
  font-family: inherit;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.head {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 20px;
}
.head .wrap {
  display: flex;
  gap: 14px;
  align-items: center;
}
.logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}
.sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--mute);
}
.tools {
  padding-top: 16px;
}
.search {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 0 16px;
  font-size: 15px;
}
.chips {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.chip {
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
.card {
  background: var(--card);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(16, 35, 26, 0.06);
}
.card.out {
  opacity: 0.7;
}
.thumb {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.name {
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.price {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
  margin-top: 2px;
}
.out .price {
  color: var(--mute);
}
.btn {
  margin-top: auto;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  margin-top: 8px;
}
.btn[aria-disabled="true"] {
  background: var(--line);
  color: var(--mute);
  cursor: default;
}
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 12px 20px 14px;
}
.bar .wrap {
  padding: 0;
}
.chat {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
}
.mark {
  text-align: center;
  font-size: 12px;
  color: var(--mute);
  margin-top: 8px;
}
.mark a {
  color: inherit;
}
.msg {
  text-align: center;
  color: var(--mute);
  padding: 48px 20px;
}
.msg h2 {
  color: var(--ink);
  margin: 0 0 6px;
  font-size: 20px;
}
.skel {
  height: 116px;
  border-radius: 18px;
  background: var(--card);
  opacity: 0.6;
}
@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .head .logo {
    width: 72px;
    height: 72px;
    font-size: 26px;
    border-radius: 22px;
  }
  h1 {
    font-size: 28px;
  }
  .tools {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .search {
    flex: 1;
    min-width: 260px;
  }
  .chips {
    margin-top: 0;
  }
}
@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
