/* Mobile-first. Palette: coconut green + warm tones. No dependencies. */
:root {
  --green: #2F6B4F;
  --green-dark: #24533D;
  --cream: #FAF7F0;
  --ink: #22303C;
  --grey: #5A6B76;
  --border: #E3DED2;
  --wa: #25D366;
  --wa-dark: #1DA851;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 48px 20px 40px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-bottom: 8px;
}
.hero h1 { font-size: 1.9rem; line-height: 1.2; margin-bottom: 8px; }
.hero-sub { font-size: 1rem; opacity: 0.92; margin-bottom: 22px; }

/* ---------- Sections ---------- */
main { max-width: 900px; margin: 0 auto; padding: 0 16px; }
section { padding: 36px 0; }
section + section { border-top: 1px solid var(--border); }
h2 { color: var(--green); font-size: 1.4rem; margin-bottom: 12px; }
.price-note { color: var(--grey); font-size: 0.9rem; margin-bottom: 18px; }

/* ---------- Catalog ---------- */
.category { color: var(--green); font-size: 1.05rem; margin: 18px 0 4px; }
.category-external { color: #8A5A2B; }
.external-notice {
  font-size: 0.85rem; color: #8A5A2B; background: #FBF2E4;
  border: 1px solid #EAD9BC; border-radius: 6px;
  padding: 6px 10px; margin-bottom: 10px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card picture { display: block; aspect-ratio: 3 / 4; background: #EFEAE0; }
.card picture.no-photo {
  background: linear-gradient(150deg, #EAF3EE, #D6E7DE);
  position: relative;
}
.card picture.no-photo::after {
  content: "🥥";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 2rem; opacity: 0.6;
}
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h4 { font-size: 1rem; }
.container-type { font-size: 0.8rem; color: var(--grey); }
.price { font-size: 1.15rem; font-weight: 700; color: var(--green); }
.description { font-size: 0.82rem; color: var(--grey); flex: 1; }
.card.soldout picture { filter: grayscale(1); opacity: 0.6; }

.external-badge {
  align-self: flex-start; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 1px; color: #8A5A2B; background: #FBF2E4;
  border: 1px solid #EAD9BC; border-radius: 4px; padding: 2px 6px;
}
.soldout-badge {
  align-self: flex-start; font-size: 0.8rem; font-weight: 600;
  color: var(--grey); background: #EEE; border-radius: 4px; padding: 3px 8px;
  margin-top: 4px;
}

/* ---------- WhatsApp button ---------- */
.wa-btn {
  display: inline-block;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 14px;
  border-radius: 8px;
  text-align: center;
  margin-top: 6px;
  transition: background 0.15s;
}
.wa-btn:hover { background: var(--wa-dark); }
.wa-btn-large { font-size: 1.05rem; padding: 13px 26px; }

/* ---------- Story & FAQ ---------- */
#story p { margin-bottom: 12px; max-width: 65ch; }
#faq details {
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 8px; padding: 12px 14px;
}
#faq summary { font-weight: 600; cursor: pointer; color: var(--green-dark); }
#faq details p { margin-top: 8px; color: var(--ink); }

/* ---------- Loading & error ---------- */
.loading { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.skeleton-card {
  border-radius: 10px; aspect-ratio: 3 / 5;
  background: linear-gradient(100deg, #EDE8DD 30%, #F5F1E8 50%, #EDE8DD 70%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.load-error {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 24px; text-align: center; color: var(--grey);
}
.load-error .wa-btn { margin-top: 12px; }

/* ---------- Footer ---------- */
footer {
  margin-top: 30px;
  background: var(--green-dark);
  color: #fff;
  text-align: center;
  padding: 28px 16px;
  font-size: 0.9rem;
}
footer .wa-btn { margin-top: 10px; }

@media (min-width: 700px) {
  .hero h1 { font-size: 2.4rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
