:root {
  --cream: #F7F1E3;
  --cream-dark: #EDE4D0;
  --green: #2F5D3A;
  --green-deep: #1F3F28;
  --green-mid: #3D7A4A;
  --wood: #6B4F2A;
  --wood-light: #8B6A3E;
  --ink: #2A2118;
  --muted: #4A433A;
  --danger: #8B2E2E;
  --ok: #2F5D3A;
  --shadow: 0 8px 24px rgba(42, 33, 24, 0.12);
  --radius: 16px;
  --font-display: "Georgia", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --text-min: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-min);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-deep); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #fff; padding: 0.5rem 1rem; z-index: 100;
  font-size: 1rem;
}
.skip-link:focus { left: 0; }

/* Top bar stays branded green; cream text only here */
.site-header {
  background: linear-gradient(180deg, var(--green-deep), var(--green));
  color: var(--cream);
  padding: 1rem 1.25rem 1.1rem;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  justify-content: space-between;
  max-width: min(1100px, 100%);
}
.brand {
  display: flex; align-items: center; gap: 0.85rem; text-decoration: none;
  color: var(--cream);
}
.brand:hover, .brand:focus { color: #fff; }
.brand img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 50%; border: 3px solid var(--cream-dark);
  background: var(--cream);
  flex-shrink: 0;
}
.brand-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin: 0; letter-spacing: 0.02em;
  color: var(--cream);
}
.brand-text p {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  color: #F0E8D4;
}

.nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  max-width: 100%;
}
.nav a {
  color: var(--cream); text-decoration: none;
  padding: 0.6rem 0.95rem; border-radius: 999px;
  border: 1px solid rgba(247,241,227,0.45);
  font-weight: 600; font-size: 1rem;
}
.nav a:hover, .nav a:focus { background: rgba(247,241,227,0.18); color: #fff; }

/* Hero: warm ivory panel — explicit high-contrast colors (not inherited green) */
.hero-band {
  background: var(--cream);
  padding: 1.5rem 1.25rem 0.5rem;
  max-width: 100%;
}
.hero {
  max-width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.35rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  background: #FFFdf6;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.hero-copy { min-width: 0; color: var(--ink); }
.hero h2,
.hero .hero-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  color: var(--green-deep) !important;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.hero p,
.hero .hero-copy p {
  margin: 0 0 1.1rem;
  color: var(--ink) !important;
  font-size: 1.125rem;
  line-height: 1.55;
}
.hero a:not(.btn) {
  color: var(--green-deep);
  text-decoration: underline;
}
.hero a:not(.btn):hover {
  color: var(--green);
}
.hero .btn-primary {
  background: var(--green);
  color: var(--cream);
  box-shadow: 0 4px 0 var(--green-deep);
}
.hero .btn-secondary {
  background: var(--cream);
  color: var(--green-deep);
  border: 2px solid var(--wood);
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .logo-hero { margin: 0 auto; }
  .hero .btn-row { justify-content: center; }
}
.logo-hero {
  width: min(340px, 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 4px solid var(--wood-light);
  background: #fff;
  justify-self: center;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: 100%; }

.btn {
  appearance: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font: inherit; font-weight: 700; font-size: 1.0625rem;
  padding: 0.9rem 1.35rem; border-radius: 999px;
  text-decoration: none; transition: transform 0.1s ease, box-shadow 0.1s ease;
  max-width: 100%;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green); color: var(--cream);
  box-shadow: 0 4px 0 var(--green-deep);
}
.btn-primary:hover { background: var(--green-mid); color: #fff; }
.btn-secondary {
  background: var(--cream-dark); color: var(--wood);
  border: 2px solid var(--wood-light);
}
.btn-secondary:hover { background: #e6dcc4; color: var(--ink); }
.btn-large { padding: 1.05rem 1.55rem; font-size: 1.125rem; min-height: 54px; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 0 #5c1c1c; }
.btn-wood { background: var(--wood); color: var(--cream); box-shadow: 0 4px 0 #4a361c; }

.section {
  max-width: min(1100px, 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}
.section h2 {
  font-family: var(--font-display);
  color: var(--green-deep);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.35rem;
  border-bottom: 3px solid var(--wood-light);
  display: inline-block; padding-bottom: 0.2rem;
  max-width: 100%;
}
.section .lede {
  color: var(--muted);
  margin: 0.5rem 0 1.25rem;
  font-size: 1.0625rem;
}

.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem;
  max-width: 100%;
}
.filter-chip {
  border: 2px solid var(--green); background: transparent; color: var(--green);
  border-radius: 999px; padding: 0.55rem 1rem; font-weight: 700; cursor: pointer;
  font-size: 1rem;
}
.filter-chip.active, .filter-chip:hover {
  background: var(--green); color: var(--cream);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.1rem;
  max-width: 100%;
}
.card {
  background: #fffef9;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.7rem;
  min-width: 0;
  max-width: 100%;
}
.card.unavailable { opacity: 0.72; }
.card-svg { width: 72px; height: 72px; margin: 0 auto; }
.card h3 {
  font-family: var(--font-display); margin: 0; color: var(--green-deep);
  text-align: center; font-size: 1.25rem;
}
.card .desc {
  color: var(--muted);
  font-size: 1rem;
  text-align: center; margin: 0; flex: 1;
}
.price-list {
  list-style: none; padding: 0; margin: 0;
  text-align: center; font-weight: 700; color: var(--wood);
  font-size: 1.0625rem;
}
.badge {
  align-self: center; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; background: var(--cream-dark); color: var(--wood);
  padding: 0.25rem 0.6rem; border-radius: 999px;
}
.badge.seasonal { background: #f0e0c0; }
.badge.off { background: #e8d5d5; color: var(--danger); }

.add-form {
  display: grid; gap: 0.5rem; margin-top: 0.35rem;
  max-width: 100%;
}
.add-form select, .add-form input[type="number"] {
  width: 100%; max-width: 100%;
  padding: 0.7rem 0.75rem; border-radius: 10px;
  border: 2px solid var(--cream-dark);
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  min-height: 48px;
}
.add-form label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.story-box, .info-box {
  background: #fffef9;
  border-left: 6px solid var(--wood);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  white-space: pre-wrap;
  font-size: 1.0625rem;
  color: var(--ink);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.info-list { margin: 0; padding-left: 1.2rem; color: var(--ink); font-size: 1.0625rem; }
.info-list li { margin-bottom: 0.55rem; }

.cart-panel, .order-panel {
  background: #fffef9;
  border: 2px solid var(--wood-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.cart-panel h3 {
  font-family: var(--font-display);
  color: var(--green-deep);
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}
.cart-empty { color: var(--muted); font-style: italic; font-size: 1rem; }
.cart-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 0.75rem;
  padding: 0.75rem 0; border-bottom: 1px dashed var(--cream-dark);
  font-size: 1rem;
}
.cart-item button {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  background: transparent; border: none; color: var(--danger);
  font-weight: 800; cursor: pointer; font-size: 1rem;
  min-height: 44px; padding: 0.35rem 0.5rem;
}
.totals { margin-top: 0.75rem; font-size: 1.125rem; }
.totals strong { color: var(--green-deep); }

.form-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 100%;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
label.field {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-weight: 700; font-size: 1rem; color: var(--ink);
  min-width: 0;
}
label.field span.hint {
  font-weight: 500; color: var(--muted); font-size: 0.9375rem;
}
input, select, textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 0.85rem;
  border-radius: 10px;
  border: 2px solid var(--cream-dark);
  background: #fff;
  color: var(--ink);
  width: 100%;
  max-width: 100%;
  min-height: 48px;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(47,93,58,0.35); border-color: var(--green);
}
textarea { min-height: 96px; resize: vertical; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.65rem; max-width: 100%; }
.radio-pill {
  border: 2px solid var(--green); border-radius: 999px; padding: 0.65rem 1rem;
  cursor: pointer; font-weight: 700; background: #fff;
  font-size: 1rem; color: var(--ink);
}
.radio-pill input { margin-right: 0.35rem; width: auto; min-height: 0; }
.radio-pill:has(input:checked) { background: var(--green); color: var(--cream); }

.notice {
  background: #eef5ef; border: 2px solid var(--green-mid);
  border-radius: 12px; padding: 0.95rem 1.05rem;
  color: var(--green-deep);
  margin: 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
}
.privacy {
  font-size: 1rem; color: var(--muted); margin-top: 0.5rem;
}
.alert {
  padding: 0.9rem 1rem; border-radius: 12px; margin: 0.75rem 0; font-weight: 600;
  font-size: 1rem;
}
.alert-error { background: #f8e8e8; color: var(--danger); border: 2px solid #e0b4b4; }
.alert-ok { background: #e8f3ea; color: var(--ok); border: 2px solid #b7d4bd; }

.site-footer {
  margin-top: 2rem; background: var(--green-deep); color: var(--cream);
  padding: 1.5rem 1.25rem; text-align: center;
}
.site-footer p { margin: 0.25rem 0; color: #F0E8D4; font-size: 1rem; }
.site-footer strong { color: var(--cream); }

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

fieldset { min-width: 0; max-width: 100%; }

.payment-instructions {
  background: #fff8e8;
  border: 3px solid var(--wood);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-top: 0.5rem;
  max-width: 100%;
}
.payment-instructions h3 {
  font-family: var(--font-display);
  color: var(--green-deep);
  margin: 0 0 0.65rem;
  font-size: 1.3rem;
}
.payment-wait {
  background: #f8e8e8;
  border: 2px solid var(--danger);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--danger);
  font-size: 1.0625rem;
  margin: 0 0 0.85rem;
}
.payment-handles {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 1.0625rem;
  color: var(--ink);
}
.payment-handles li { margin-bottom: 0.45rem; }
.payment-handles .handle {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--green-deep);
  background: var(--cream);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--cream-dark);
}

/* Add-to-cart feedback + floating "View cart" button (no auto-scroll) */
.btn.is-added { background: var(--green-mid); color: #fff; }
.site-footer { padding-bottom: calc(1.5rem + 72px); }
#order { scroll-margin-top: 0.5rem; }
.cart-fab {
  position: fixed; z-index: 50;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 52px; padding: 0.8rem 1.2rem;
  border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 1.0625rem;
  background: var(--wood); color: var(--cream);
  border: 2px solid var(--cream);
  box-shadow: 0 4px 0 #4a361c, var(--shadow);
}
.cart-fab:hover, .cart-fab:focus-visible { background: var(--wood-light); color: #fff; }
.cart-fab:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.cart-fab.has-items { background: var(--green); box-shadow: 0 4px 0 var(--green-deep), var(--shadow); }
.cart-fab.has-items:hover { background: var(--green-mid); }
.cart-toast {
  position: fixed; z-index: 51; left: 50%;
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 76px);
  transform: translateX(-50%);
  background: var(--green-deep); color: var(--cream);
  padding: 0.6rem 1.1rem; border-radius: 999px;
  font-weight: 700; box-shadow: var(--shadow);
  opacity: 0; transition: opacity 0.2s ease;
  pointer-events: none; max-width: calc(100% - 2rem); text-align: center;
}
.cart-toast.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .cart-toast { transition: none; }
}
