:root {
  --green: #8cc63f;        /* logo green */
  --green-ink: #3f7a1c;    /* readable green for text/buttons */
  --green-dark: #2f5e14;
  --brown: #7a5134;
  --sand: #c9a57b;
  --cream: #fbf8f2;
  --paper: #ffffff;
  --ink: #2e2a24;
  --muted: #6f675c;
  --line: #e9e1d4;
  --wa: #1f9e55;
  --danger: #b3261e;
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer;
  font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap;
  background: var(--green-ink); color: #fff; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: #f3ede3; }
.btn.wa { background: var(--wa); }
.btn.wa:hover { background: #17824a; }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px #efc9c6; }
.btn.danger:hover { background: #fbeeed; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ── Header / hero ── */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.brand span { font: 600 24px/1 var(--serif); letter-spacing: .01em; }

.hero {
  position: relative; min-height: 440px; display: flex; align-items: flex-end;
  background: #d9d3c6 url("../assets/hero.jpg") center 35% / cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(40,28,18,.55)); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 40px; padding-top: 40px; }
.hero-card {
  background: var(--green); color: #fff; padding: 26px 30px; border-radius: 6px;
  max-width: 560px; box-shadow: 0 10px 30px rgba(0,0,0,.18); border-bottom: 5px solid #1f3d14;
}
.hero-card h1 { margin: 0; font: 600 clamp(38px, 6vw, 60px)/1 var(--serif); }
.hero-card p { margin: 10px 0 0; font-size: 15px; opacity: .95; }

.offerings { background: var(--brown); color: #fff; }
.offerings ul {
  list-style: none; margin: 0 auto; padding: 14px 16px; max-width: 1160px;
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; font-size: 14px;
}
.offerings li::before { content: "✦"; color: var(--sand); margin-right: 8px; }

/* ── Filter bar ── */
.filters {
  position: sticky; top: 0; z-index: 20; background: rgba(251,248,242,.94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.filters .wrap { display: flex; gap: 12px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 7px 14px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.search {
  width: 220px; flex: none; border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: 8px 14px; font-size: 14px;
}
.search:focus, .chip:focus-visible, .btn:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 2px; }

/* ── Collections ── */
main { padding: 12px 0 120px; }
.collection { padding-top: 44px; scroll-margin-top: 70px; }
.collection-head { text-align: center; margin-bottom: 26px; }
.collection-head h2 { margin: 0; font: 600 clamp(22px, 3.2vw, 32px)/1.2 var(--serif); letter-spacing: .28em; text-transform: uppercase; }
.collection-head p { margin: 4px 0 0; font: italic 400 clamp(18px, 2.4vw, 24px)/1.3 var(--serif); color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(60,40,20,.06), 0 6px 18px rgba(60,40,20,.05);
}
.card-img { aspect-ratio: 1 / 1; background: #f1ece3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-img .noimg { width: 100%; height: 100%; display: grid; place-items: center; font: italic 22px var(--serif); color: var(--sand); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.price { margin: 0; font-weight: 600; color: var(--green-ink); font-size: 16px; }
.price span { font-weight: 400; font-size: 13px; color: var(--muted); }
.details { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.card-actions { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; align-items: center; }
.card-actions .btn { flex: 1; }
.stepper { flex: 1; display: flex; align-items: center; justify-content: space-between; background: #eef6e6; border-radius: 999px; padding: 3px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.stepper output { font-weight: 600; font-size: 14px; }
.icon-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #e8f6ee; color: var(--wa); text-decoration: none; }
.icon-btn svg { width: 20px; height: 20px; }

.empty { text-align: center; padding: 80px 16px; color: var(--muted); }
.notice { background: #fff6dd; border: 1px solid #f0dfa6; color: #6b5310; font-size: 13px; text-align: center; padding: 8px 16px; }

/* ── Enquiry bar ── */
.enquiry {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30;
  width: min(640px, calc(100% - 32px)); background: var(--ink); color: #fff; border-radius: 999px;
  padding: 8px 8px 8px 22px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.enquiry[hidden] { display: none; }
.enquiry .summary { flex: 1; font-size: 14px; line-height: 1.3; }
.enquiry .summary small { display: block; opacity: .7; font-size: 12px; }
.enquiry .clear { background: none; border: 0; color: #fff; opacity: .7; cursor: pointer; font-size: 13px; text-decoration: underline; }

/* ── Footer ── */
body > footer { background: var(--ink); color: #eee7dc; padding: 40px 0; font-size: 14px; }
body > footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; }
body > footer a { color: #fff; text-decoration: none; }
body > footer .contact { display: flex; flex-wrap: wrap; gap: 10px 28px; }
body > footer .fine { opacity: .6; font-size: 12px; }

@media (max-width: 640px) {
  .hero { min-height: 360px; }
  .hero-card { padding: 20px; }
  .filters .wrap { flex-direction: column; align-items: stretch; gap: 10px; }
  .search { width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card h3 { font-size: 14px; }
  .details { font-size: 12px; }
  .card-actions .btn { padding: 8px 10px; font-size: 13px; }
  .icon-btn { width: 36px; height: 36px; }
  .topbar .print-btn .label { display: none; }
  .offerings ul { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; font-size: 13px; scrollbar-width: none; }
  .offerings li { white-space: nowrap; }
  .enquiry { border-radius: 16px; padding: 8px 8px 8px 16px; gap: 8px; }
  .enquiry .summary { font-size: 13px; }
  .enquiry .summary small { display: none; }
  .enquiry .btn { padding: 10px 14px; }
}

/* ── Print = PDF catalogue ── */
@media print {
  .topbar .btn, .filters, .enquiry, .card-actions, .notice, .offerings { display: none !important; }
  body { background: #fff; font-size: 11px; }
  .hero { min-height: 0; background: none; }
  .hero::after { display: none; }
  .hero-card { box-shadow: none; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .card { box-shadow: none; border: 1px solid var(--line); break-inside: avoid; }
  .collection { break-before: page; padding-top: 0; }
  main { padding-bottom: 0; }
  footer { background: none; color: var(--ink); }
  footer a { color: var(--ink); }
}
