:root {
  --ink: #23281f;
  --paper: #f6f4ec;
  --paper-dim: #eae6d8;
  --sage: #7c8c68;
  --sage-dark: #5c6b4c;
  --moss: #3f4f3a;
  --resin: #a9782f;
  --clay: #8b4a3a;
  --line: #dcd7c4;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 84px; /* space for sticky tray */
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--ink);
  color: var(--paper);
  padding: 18px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.2px;
}

.brand-location {
  margin: 1px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #a9c08e;
}

.brand-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: #c9c2b2;
}

.header-note {
  font-size: 13px;
  color: #c9c2b2;
  margin: 0;
}

.intro-text {
  padding: 16px 20px 0;
  margin: 0;
  font-size: 14.5px;
  color: #4a453b;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding-top: 28px;
  align-items: start;
}

@media (max-width: 720px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
}

/* Category rail */
.category-rail {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (max-width: 720px) {
  .category-rail {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }
}

.cat-btn {
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #6b6455;
  padding: 8px 10px;
  cursor: pointer;
  border-left: 2px solid transparent;
  white-space: nowrap;
}

.cat-btn:hover { color: var(--ink); }

.cat-btn.active {
  color: var(--ink);
  border-left-color: var(--sage-dark);
  background: var(--paper-dim);
}

@media (max-width: 720px) {
  .cat-btn.active { border-left: none; border-bottom: 2px solid var(--sage-dark); border-radius: 0; }
}

/* Menu */
.menu-group { margin-bottom: 30px; }

.menu-group-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 4px;
}

.menu-group-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0 0 10px;
}

.item-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.item-photo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 3px;
  background: var(--paper-dim);
}

.item-photo-empty {
  border: 1px dashed var(--line);
}

.item-main { min-width: 0; flex: 1; }

.item-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 3px;
}

.item-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--sage-dark);
  margin: 0 0 4px;
}

.item-meta .dot { margin: 0 6px; opacity: 0.5; }

.item-desc {
  font-size: 13.5px;
  color: #6b6455;
  margin: 0 0 10px;
  max-width: 62ch;
}

.item-action { display: flex; }

.item-row.unavailable { opacity: 0.5; }

.unavailable-tag {
  font-size: 12px;
  color: var(--clay);
  font-weight: 500;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.stepper button {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--paper-dim);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.stepper button:hover { background: var(--line); }

.stepper .qty-input {
  width: 40px;
  height: 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  /* remove native spinner arrows so our own +/- buttons are the only controls */
  -moz-appearance: textfield;
}

.stepper .qty-input::-webkit-outer-spin-button,
.stepper .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper .qty-input:focus {
  outline: none;
  background: #fff;
}

.add-btn {
  border: 1px solid var(--sage-dark);
  background: none;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.add-btn:hover { background: var(--sage-dark); color: var(--paper); }

/* Size chips (flower: 1g / 3.5g / 7g / 14g / 28g) */
.size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  background: var(--paper-dim);
  border-radius: 3px;
  padding: 7px 12px;
  cursor: pointer;
  font-family: var(--font-body);
}

.size-chip:hover { border-color: var(--sage-dark); }

.size-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--sage-dark);
  background: #e2e8d8;
  border-radius: 3px;
  padding: 5px 5px 5px 12px;
}

.size-cell .size-label,
.size-cell .size-price {
  white-space: nowrap;
}

.size-cell .stepper {
  border-color: var(--sage-dark);
  background: #fff;
}

.size-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.size-price {
  font-size: 12px;
  color: var(--sage-dark);
  font-weight: 500;
}

/* Order tray */
.tray {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 20;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
}

.tray-summary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--sage-dark);
  border: none;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  padding: 16px 20px;
  cursor: pointer;
}

.tray-summary:hover { background: #6b7d5c; }

.tray-summary-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tray-icon { font-size: 18px; }

#trayCount { color: var(--paper); }

.tray-toggle {
  font-weight: 700;
  color: var(--paper);
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  padding: 5px 10px;
}

.tray-body {
  display: none;
  overflow-y: auto;
  padding: 0 20px 24px;
  border-top: 1px solid #3a352c;
}

.tray.open .tray-body { display: block; }
.tray.open { max-height: 90vh; }

.tray-list {
  list-style: none;
  margin: 14px 0;
  padding: 0;
}

.tray-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid #3a352c;
}

.tray-empty { color: #9a927e; font-size: 14px; padding: 10px 0; }

.tray-item-remove {
  background: none;
  border: none;
  color: #9a927e;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
}

/* Form */
.order-form {
  border-top: 1px solid #3a352c;
  padding-top: 18px;
  margin-top: 6px;
}

.form-heading {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 12px;
}

.order-form label {
  display: block;
  font-size: 13px;
  color: #c9c2b2;
  margin-bottom: 12px;
}

.optional { color: #7a7360; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-form input,
.order-form textarea {
  width: 100%;
  margin-top: 6px;
  background: #2a251e;
  border: 1px solid #443e33;
  color: var(--paper);
  border-radius: 3px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: 2px solid var(--sage-dark);
  outline-offset: 1px;
}

/* Store info fields (read-only, mixed in with the customer fields above) —
   styled the same but slightly muted and non-interactive, since this is
   fixed store data rather than something the customer fills in. */
.order-form input[readonly],
.order-form textarea[readonly] {
  color: #a39c8a;
  cursor: default;
}

.order-form input[readonly]:focus,
.order-form textarea[readonly]:focus {
  outline: none;
}

.submit-btn {
  width: 100%;
  background: var(--sage-dark);
  color: var(--ink);
  border: none;
  font-weight: 600;
  font-size: 15px;
  padding: 13px;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 4px;
}

.submit-btn:hover { background: #718061; }
.submit-btn:disabled { opacity: 0.6; cursor: default; }

.form-fine {
  font-size: 12px;
  color: #9a927e;
  margin: 10px 0 0;
}

.form-status {
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0 0;
  min-height: 18px;
}

.form-status.success { color: #8fbf7f; }
.form-status.error { color: #d98f7f; }

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}
