:root {
  --color-bg: #faf7f3;
  --color-card: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-accent: #8b5e3c;
  --color-whatsapp: #25d366;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Heebo', 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

.hero {
  padding: 28px 20px 24px;
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--color-bg));
}
.hero-logo {
  display: block;
  width: 110px;
  height: 110px;
  margin: 0 auto 12px;
  object-fit: contain;
}
.hero h1 { margin: 0 0 8px; font-size: 1.6rem; }
.hero p { margin: 0; color: var(--color-muted); }

.filters {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 16px 0;
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 10;
}
.brand-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
}
.brand-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  background: var(--color-card);
  border: 1px solid #e3dccf;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}
.chip.active { background: var(--color-accent); color: white; border-color: var(--color-accent); }

.filter-row {
  display: flex;
  gap: 8px;
  margin: 8px 0 12px;
}
.filter-row #search { flex: 1; margin: 0; }
.filter-row #sort {
  flex: 0 0 auto;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 1px solid #e3dccf;
  border-radius: var(--radius);
  background: var(--color-card);
  cursor: pointer;
}
@media (max-width: 520px) {
  .filter-row { flex-direction: column; }
  .filter-row #sort { width: 100%; }
}

#search {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #e3dccf;
  border-radius: var(--radius);
  background: var(--color-card);
}

.catalog {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 16px 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) { .catalog { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .catalog { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.product-card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  cursor: pointer;
  transition: transform 0.1s;
}
.product-card:hover { transform: translateY(-2px); }
.product-card img { width: 100%; height: 140px; object-fit: contain; }
.product-card .name { font-size: 0.95rem; margin: 8px 0 4px; min-height: 2.6em; }
.product-card .price { font-weight: bold; font-size: 1.1rem; color: var(--color-accent); }

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 100;
}
@media (min-width: 720px) { .modal-backdrop { align-items: center; } }
.modal {
  background: var(--color-card);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 20px;
  position: relative;
}
@media (min-width: 720px) { .modal { border-radius: var(--radius); } }
.modal-close {
  position: absolute; top: 8px; left: 8px;
  background: none; border: none; font-size: 1.5rem; cursor: pointer;
  width: 36px; height: 36px;
}
.modal img { width: 100%; max-height: 180px; object-fit: contain; }
.modal h2 { margin: 8px 0 4px; font-size: 1.15rem; }
.modal .price { font-weight: bold; font-size: 1.2rem; color: var(--color-accent); margin-bottom: 16px; }

.modal label { display: block; margin: 12px 0 4px; font-size: 0.9rem; color: var(--color-muted); }
.modal input[type=number] {
  width: 100%; padding: 10px; font-size: 1rem; border: 1px solid #e3dccf; border-radius: 8px;
}
.meals-buttons { display: flex; gap: 8px; }
.meals-buttons button {
  flex: 1; padding: 10px; font-size: 1rem; border: 1px solid #e3dccf; background: var(--color-card);
  border-radius: 8px; cursor: pointer;
}
.meals-buttons button.active { background: var(--color-accent); color: white; border-color: var(--color-accent); }

.results {
  background: var(--color-bg);
  border-radius: 8px; padding: 12px; margin: 16px 0;
  white-space: pre-line;
  font-size: 0.95rem;
}
.results.empty { color: var(--color-muted); font-style: italic; }

.no-chart-note {
  background: #fff8e6;
  border-right: 4px solid #e0b342;
  padding: 10px 12px;
  margin: 14px 0 0;
  font-size: 0.9rem;
  border-radius: 6px;
  color: #4a3a00;
}

.brand-link {
  display: block;
  margin: 12px 0 4px;
  padding: 12px;
  background: var(--color-bg);
  border: 1px solid #e3dccf;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
}
.brand-link:hover { background: #f0ead9; }

.whatsapp-cta {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--color-whatsapp);
  color: white;
  font-size: 1.05rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.whatsapp-cta[aria-disabled=true] { background: #b9b9b9; cursor: not-allowed; }

.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: var(--color-whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.floating-whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}
.floating-whatsapp svg {
  width: 30px;
  height: 30px;
}
@media (max-width: 520px) {
  .floating-whatsapp {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
  .floating-whatsapp svg { width: 28px; height: 28px; }
}

.site-footer {
  background: #2b2017;
  color: #f0e8dc;
  margin-top: 48px;
  padding: 32px 16px 16px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
}
.footer-col h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #f8e6c8;
  font-weight: 600;
}
.footer-col p { margin: 4px 0; font-size: 0.95rem; }
.footer-col a {
  color: #f0e8dc;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}
.footer-col a:hover { border-bottom-color: #f8e6c8; }
.footer-logo {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
  object-fit: contain;
}
.footer-tagline {
  margin: 12px 0 0;
  color: #d6c8b0;
  font-size: 0.95rem;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid #4a3a2a;
  text-align: center;
  font-size: 0.85rem;
  color: #a08e74;
}
