:root {
  --bg: #f6f1e8;
  --cream: #fbf7f0;
  --ink: #2a241c;
  --muted: #6b6258;
  --forest: #2f4a3c;
  --forest-deep: #1c3128;
  --leaf: #4a7c59;
  --terracotta: #b4583c;
  --gold: #c4a36a;
  --line: #e0d6c6;
  --white: #fffdf8;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --shadow: 0 18px 40px rgba(42, 36, 28, 0.12);
  --header-h: 76px;
  --banner-h: 36px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--banner-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); }
a:hover { color: var(--forest-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 560; letter-spacing: -0.02em; line-height: 1.15; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--forest);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 300;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

/* Demo banner */
.demo-banner {
  margin: 0;
  background: #e8c56b;
  color: #2a241c;
  text-align: center;
  font-weight: 650;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  min-height: var(--banner-h);
}
.demo-banner a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--forest-deep) 94%, black);
  color: var(--cream);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.brand .mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  color: var(--gold);
}
.brand strong { display: block; font-family: var(--display); font-size: 1.15rem; font-weight: 560; }
.brand em { display: block; font-style: normal; font-size: 0.75rem; color: color-mix(in srgb, var(--cream) 70%, var(--gold)); letter-spacing: 0.06em; text-transform: uppercase; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}
.nav a, .nav button.linkish {
  color: var(--cream);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0.3rem 0;
  cursor: pointer;
}
.nav a:hover, .nav button.linkish:hover { color: var(--gold); }
.nav .btn, .header-actions .btn { margin-left: 0.2rem; }

.header-actions { display: flex; align-items: center; gap: 0.55rem; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  color: var(--cream);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--terracotta);
  color: #fff;
  border: 0;
  padding: 0.65rem 1.15rem;
  text-decoration: none;
  cursor: pointer;
  border-radius: 3px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.btn:hover { background: color-mix(in srgb, var(--terracotta) 85%, black); color: #fff; }
.btn-lg { padding: 0.85rem 1.35rem; font-size: 1.05rem; }
.btn-ghost, .btn-outline {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
}
.btn-ghost:hover, .btn-outline:hover { background: var(--forest); color: #fff; }
.btn-light { background: var(--cream); color: var(--forest-deep); }
.btn-light:hover { background: #fff; color: var(--forest-deep); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.icon-btn {
  background: none;
  border: 1px solid var(--line);
  width: 2rem;
  height: 2rem;
  border-radius: 3px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.icon-btn:hover { border-color: var(--forest); }
.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 1.15rem;
  height: 1.15rem;
  border-radius: 99px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--forest-deep);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,49,40,0.15) 20%, rgba(28,49,40,0.72) 100%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.4rem;
}
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.7rem;
}
.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.15rem, 5.2vw, 3.7rem);
  max-width: 16ch;
  font-weight: 560;
}
.hero .lede {
  max-width: 38rem;
  font-size: 1.12rem;
  color: color-mix(in srgb, #fff 88%, var(--gold));
  margin: 0 0 1.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Specials */
.specials {
  background: var(--forest-deep);
  color: var(--cream);
}
.specials-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  min-height: 340px;
}
.specials-grid img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.specials-copy { padding: 3rem 2.4rem; display: flex; flex-direction: column; justify-content: center; }
.specials-copy h2 { margin: 0 0 0.7rem; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.specials-copy p { margin: 0 0 1.2rem; color: color-mix(in srgb, var(--cream) 88%, white); }

/* Shop */
.section { padding: 4.2rem 0; }
.section h2 { font-size: clamp(1.85rem, 3vw, 2.45rem); margin: 0 0 0.4rem; }
.section-intro { color: var(--muted); max-width: 40rem; margin: 0 0 1.6rem; }

.shop-controls {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.search-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.search-row input[type="search"] {
  flex: 1 1 240px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.7rem 0.9rem;
  border-radius: 3px;
}
.search-row input:focus, select:focus, textarea:focus, input:focus {
  outline: 2px solid var(--leaf);
  outline-offset: 1px;
}
.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.32rem 0.75rem;
  border-radius: 99px;
  cursor: pointer;
  font-size: 0.92rem;
}
.pill[aria-pressed="true"], .pill.is-on {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd4c6;
  cursor: pointer;
  border: 0;
  padding: 0;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card-photo:hover img { transform: scale(1.04); }
.card-body { padding: 0.95rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.2rem; }
.botanical { margin: 0; font-size: 0.86rem; font-style: italic; color: var(--muted); }
.meta { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-top: 0.2rem; }
.price { font-weight: 700; font-size: 1.1rem; }
.size { color: var(--muted); font-size: 0.9rem; }
.card-actions { display: flex; gap: 0.45rem; align-items: center; margin-top: 0.55rem; }
.qty-step { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty-step button { width: 1.85rem; height: 1.85rem; border: 0; background: var(--cream); cursor: pointer; }
.qty-step span { min-width: 1.6rem; text-align: center; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 2px;
}
.badge-in { background: #dce9df; color: #1e4a2f; }
.badge-low { background: #f3e2c4; color: #7a4b12; }
.badge-out { background: #ead9d4; color: #7a2e22; }

.empty-cat { grid-column: 1 / -1; padding: 2rem; text-align: center; color: var(--muted); background: var(--cream); border: 1px dashed var(--line); }

/* Reviews */
.reviews { background: var(--cream); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.review {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.3rem 1.2rem;
}
.stars { color: var(--terracotta); letter-spacing: 0.08em; margin: 0 0 0.5rem; font-size: 0.95rem; }
.review p { margin: 0 0 0.8rem; }
.review footer { color: var(--muted); font-size: 0.9rem; }

/* Visit / contact */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; }
.today { font-weight: 700; }
.about-photo { aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.visit-copy h2 { margin-top: 0; }

/* Footer */
.site-footer {
  background: var(--forest-deep);
  color: color-mix(in srgb, var(--cream) 88%, white);
  padding: 2.4rem 0 2rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--gold); }
.site-footer .wrap { display: grid; gap: 0.5rem; }
.fine-print { color: color-mix(in srgb, var(--cream) 65%, transparent); font-size: 0.86rem; }

/* Cart drawer + modals */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 49, 40, 0.45);
  z-index: 120;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.drawer, .modal {
  position: fixed;
  z-index: 130;
  background: var(--white);
  box-shadow: var(--shadow);
}
.drawer {
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.drawer-head, .modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.drawer-body { padding: 1rem 1.1rem 2rem; overflow: auto; flex: 1; }
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-line img { width: 64px; height: 64px; object-fit: cover; }
.cart-line h4 { margin: 0; font-size: 1rem; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; margin: 1rem 0; font-size: 1.15rem; }
.form-grid { display: grid; gap: 0.7rem; }
.form-grid label, .field { display: grid; gap: 0.25rem; font-size: 0.92rem; font-weight: 650; }
.form-grid input, .form-grid select, .form-grid textarea, .field input, .field select, .field textarea {
  font-weight: 400;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 0.55rem 0.7rem;
  border-radius: 3px;
}
.form-error { color: #8a2a1c; font-size: 0.9rem; margin: 0; }
.form-ok { background: #dce9df; color: #1e4a2f; padding: 0.8rem 1rem; margin: 0 0 1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }

.modal {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, calc(100% - 1.5rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
}
.modal-photo { aspect-ratio: 16 / 10; overflow: hidden; background: #ddd4c6; }
.modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 1.1rem 1.2rem 1.4rem; }
.close-x {
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  color: var(--ink);
}

/* Owner */
.owner-app { display: none; padding: 1.5rem 0 4rem; }
body.is-owner .public-app { display: none; }
body.is-owner .owner-app { display: block; }
body.is-owner { background: #efe8db; }

.owner-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 1.2rem;
}
.owner-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.alert-strip {
  background: #f3e2c4;
  border: 1px solid #e0c48a;
  padding: 0.85rem 1rem;
  margin-bottom: 1.1rem;
}
.alert-strip h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.alert-strip ul { margin: 0; padding-left: 1.1rem; }

.table-wrap { overflow: auto; background: var(--white); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.data th, table.data td { padding: 0.55rem 0.7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { background: var(--cream); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
table.data tr:hover td { background: color-mix(in srgb, var(--cream) 70%, white); }
table.data img { width: 44px; height: 44px; object-fit: cover; }
.qty-cell { display: flex; align-items: center; gap: 0.3rem; }
.row-actions { display: flex; gap: 0.3rem; flex-wrap: wrap; }

.report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-bottom: 1.2rem; }
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1rem;
}
.stat b { display: block; font-family: var(--display); font-size: 1.7rem; }
.stat span { color: var(--muted); font-size: 0.85rem; }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 900px) {
  .catalog, .review-grid, .visit-grid, .specials-grid, .report-grid { grid-template-columns: 1fr 1fr; }
  .specials-grid { grid-template-columns: 1fr; }
  .specials-grid img { min-height: 220px; max-height: 280px; }
  .visit-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--forest-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 1rem;
    gap: 0.2rem;
    border-bottom: 1px solid var(--gold);
  }
  .nav.is-open { display: flex; }
  .header-inner { position: relative; }
  .catalog, .review-grid { grid-template-columns: 1fr; }
  .hero { min-height: 72vh; }
  .two-col { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}
