:root {
  color-scheme: light;
  --green: #0f3d2e;
  --green-2: #1c5a44;
  --ink: #0f2a20;
  --muted: #4a5a50;
  --cream: #fffdf5;
  --sand: #f3efd9;
  --yellow: #ffd23f;
  --orange: #ff8a3d;
  --mint: #9be3b5;
  --line: #d9d3b8;
  --radius: 20px;
  --display: Unbounded, system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--yellow); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.btn--accent { background: var(--yellow); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Light scale on hover for every clickable button. */
.btn, .btn-add, .filter, .line__qty button {
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:not([disabled]):hover, .btn-add:hover, .filter:hover, .line__qty button:hover { transform: scale(1.05); }
.btn:not([disabled]):active, .btn-add:active, .filter:active, .line__qty button:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn-add, .filter, .line__qty button { transition: none; }
  .btn:hover, .btn-add:hover, .filter:hover, .line__qty button:hover,
  .btn:active, .btn-add:active, .filter:active, .line__qty button:active { transform: none; }
}

/* Header */
.topbar { background: var(--green); color: var(--cream); }
.topbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 22px; text-decoration: none; flex-grow: 1; }
.logo__dot { color: var(--yellow); }
.nav { display: flex; gap: 18px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a:hover, .topbar__phone:hover { color: var(--yellow); }
.topbar__phone { font-weight: 700; text-decoration: none; color: var(--yellow); }

/* Hero */
.hero { background: var(--green); color: var(--cream); }
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; align-items: center; padding-top: 32px; padding-bottom: 56px; }
.hero h1 { margin: 0 0 16px; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; }
.hero p { margin: 0 0 18px; font-size: 18px; color: #cfe3d8; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--green-2); font-weight: 600; font-size: 14px; }
.chip--accent { background: var(--yellow); color: var(--ink); }
.hero__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; margin: 0; height: 150px; border-radius: var(--radius); overflow: hidden; background: var(--green-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 14px; }

/* Sections */
.section { padding-top: 40px; padding-bottom: 40px; }
.section__head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.h1, .h2 { margin: 0 0 20px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4vw, 40px); line-height: 1.1; }
.section__head .h1 { margin: 0; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; flex: 0 1 280px; margin-left: auto; }
.search input { border: 0; outline: none; background: transparent; font: inherit; min-width: 0; width: 100%; }
.search:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 720px) { .search { flex: 1 1 100%; margin-left: 0; } }
.empty { margin: 16px 0 0; }
.filter { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.filter.is-active { background: var(--yellow); border-color: var(--yellow); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.card[hidden] { display: none; }
.card__photo { width: 100%; height: 180px; object-fit: contain; border-radius: 14px; background: #fff; }
.card__title { margin: 0; font-size: 17px; font-weight: 700; }
.card__desc { margin: 0; font-size: 14px; color: var(--muted); }
.card__row { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.price { font-family: var(--display); font-weight: 800; font-size: 22px; flex-grow: 1; }
.price__unit { font-family: var(--body); font-size: 13px; font-weight: 500; }
.price--na { font-family: var(--body); font-size: 14px; color: var(--muted); }
.btn-add { width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--green); color: var(--yellow); font-size: 24px; font-weight: 800; cursor: pointer; }
.btn-add.is-added { background: var(--yellow); color: var(--ink); }

.promo { background: var(--yellow); border-radius: 24px; padding: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.promo__title { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 24px; }
.promo p { margin: 0; }

/* Checkout */
.checkout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.checkout__items, .checkout > .grid { flex: 999 1 520px; min-width: 0; }
.checkout__form { flex: 1 1 300px; position: sticky; top: 16px; }
.panel { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.total { font-family: var(--display); font-size: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field input, .field textarea { min-height: 48px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; font: inherit; font-weight: 400; background: #fff; }
.field--inline { margin-top: auto; }
.field--inline input { max-width: 140px; }
.opt-prices { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
.line { display: flex; align-items: center; gap: 12px; padding: 12px; border: 2px solid var(--ink); border-radius: 16px; background: #fff; margin-bottom: 10px; }
.line__name { flex-grow: 1; font-weight: 700; }
.line__qty { display: flex; align-items: center; gap: 6px; }
.line__qty button { width: 44px; height: 44px; border-radius: 10px; border: 0; background: var(--sand); font-size: 20px; font-weight: 800; cursor: pointer; }
.line__qty span { min-width: 32px; text-align: center; font-weight: 700; }
.line__sum { min-width: 90px; text-align: right; font-weight: 700; }
.form-msg { margin: 0; font-weight: 600; }
.form-msg.is-error { color: #b42318; }
.form-msg.is-ok { color: #067647; }

.footer { background: var(--green); color: #cfe3d8; margin-top: 40px; }
.footer__row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; font-size: 14px; }

/* Shown when the owner switches off online orders in the admin. */
.notice { background: var(--orange); color: var(--ink); font-weight: 600; padding: 12px 0; }
.notice a { font-weight: 800; }
.closed { display: flex; flex-direction: column; gap: 12px; }
.closed p { margin: 0; font-weight: 600; }

/* Floating "go to cart" button, shown while the cart has items. */
.cart-fab { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 800; text-decoration: none; box-shadow: 0 6px 20px rgba(15, 42, 32, .25); transition: transform .15s ease; }
.cart-fab[hidden] { display: none; }
.cart-fab:hover { transform: scale(1.05); }
.cart-fab__count { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--yellow); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .cart-fab { transition: none; } .cart-fab:hover { transform: none; } }
