:root {
  --bg: #f6f1ea;
  --panel: #fffaf4;
  --text: #2a1f18;
  --muted: #6e5b4f;
  --line: #eadfce;
  --accent: #6a3b1f;
  --accent-2: #9a6b46;
  --shadow: 0 10px 30px rgba(73, 43, 24, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, #f9f5ef 0%, var(--bg) 100%);
  color: var(--text);
}
.app {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 16px 120px;
}
.hero, .card, .cart-panel, .chip {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero {
  background: var(--panel);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.eyebrow { color: var(--accent-2); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
h1 { margin: 8px 0; font-size: 28px; line-height: 1.1; }
p { margin: 0; color: var(--muted); }
.filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 0;
}
.chip, .primary, .ghost, .cart-pill {
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.chip.active, .primary, .cart-pill {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.card {
  background: rgba(255,255,255,.8);
  border-radius: 20px;
  overflow: hidden;
}
.card-body { padding: 18px; }
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2e7da;
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 10px;
  font-weight: 700;
}
.badge.original { background: #efe4d3; color: #6a3b1f; }
.badge.vertuo { background: #e6dccf; color: #5a321a; }
.badge.machine { background: #ddd6ce; color: #3f2b20; }
.badge.accessory { background: #f1ebe4; color: #7d5b45; }
.title { margin: 0 0 8px; font-size: 19px; }
.desc { min-height: 66px; font-size: 14px; }
.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.meta-left {
  display: grid;
  gap: 4px;
}
.price { font-weight: 700; }
.in-cart {
  font-size: 12px;
  color: var(--muted);
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}
.card-qty {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}
.cart-panel {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: var(--panel);
  border-radius: 24px;
  padding: 18px;
  max-height: 72vh;
  overflow: auto;
}
.cart-header, .cart-item, .cart-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.cart-items { display: grid; gap: 10px; margin: 14px 0; }
.cart-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.qty-btn {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}
.checkout-note {
  margin: 14px 0 18px;
  width: 100%;
}
.field-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.comment-box {
  width: 100%;
  min-height: 88px;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
  background: #fff;
  color: var(--text);
}
.stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.cart-total {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.actions-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  clear: both;
}
.actions-row > * {
  width: 100%;
  min-height: 48px;
}
.link-btn {
  text-decoration: none;
  text-align: center;
  display: block;
}
.hidden { display: none; }
@media (min-width: 641px) {
  .actions-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .hero { flex-direction: column; }
  h1 { font-size: 24px; }
  .meta { flex-direction: column; align-items: stretch; }
  .cart-panel {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 16px;
    border-radius: 20px;
  }
  .cart-header,
  .cart-footer,
  .actions-row {
    align-items: stretch;
  }
}
lign-items: stretch;
  }
}
