:root {
  --ink: #17203a;
  --muted: #5b6478;
  --accent: #1a5fd7;
  --accent-dark: #134aab;
  --wa: #1faa55;
  --wa-dark: #168543;
  --card: #ffffff;
  --bg: #f5f7fb;
  --line: #e4e9f2;
  --strike: #9aa3b5;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; display: block; }
.brand-sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.wa-header-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: 999px;
}
.wa-header-btn:hover { background: var(--wa-dark); }

.hero { padding: 36px 0 8px; }
.hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; }
.hero p { color: var(--muted); margin-top: 6px; max-width: 560px; }

.toolbar { margin: 24px 0 8px; }
#search {
  width: 100%; padding: 12px 16px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-family: inherit;
}
#search:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid {
  display: grid; gap: 16px; margin: 16px 0 8px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
}
.card-img {
  width: 100%; aspect-ratio: 1/1; object-fit: contain;
  background: #fff; padding: 18px; cursor: pointer;
}
.card-body { padding: 4px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-name { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.card-cat { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; margin-top: 2px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.price { font-size: 19px; font-weight: 800; }
.mrp { font-size: 13px; color: var(--strike); text-decoration: line-through; }
.off { font-size: 12px; color: #0a8a3f; font-weight: 700; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn {
  flex: 1; text-align: center; font-size: 13px; font-weight: 700;
  padding: 10px 8px; border-radius: 10px; text-decoration: none; cursor: pointer;
  border: none; font-family: inherit;
}
.btn-details { background: #eef2fa; color: var(--ink); }
.btn-details:hover { background: #e1e8f5; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }

.details { display: none; border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.card.open .details { display: block; }
.details p { font-size: 13px; color: var(--muted); }
.details ul { margin: 8px 0 0 18px; font-size: 13px; color: var(--ink); }
.details .thumbs { display: flex; gap: 8px; margin-top: 10px; }
.details .thumbs img {
  width: 64px; height: 64px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: #fff;
  cursor: pointer;
}

.count { color: var(--muted); font-size: 13px; margin: 8px 0 32px; }

.site-footer {
  background: var(--card); border-top: 1px solid var(--line);
  padding: 32px 0 48px; margin-top: 16px;
}
.site-footer h3 { font-size: 16px; margin-bottom: 10px; }
.site-footer ol { margin-left: 20px; font-size: 14px; }
.site-footer li { margin-bottom: 4px; }
.muted { color: var(--muted); font-size: 13px; margin-top: 12px; }
.small { font-size: 12px; }

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 4px 10px 12px; }
  .card-actions { flex-direction: column; }
}
