:root {
  --wood-dark: #1f120c;
  --wood-mid: #3d2418;
  --ember: #c43b2d;
  --ember-light: #e85d4c;
  --cream: #fff6e8;
  --cream-dim: #f0e3d4;
  --ink: #1a1210;
  --muted: #6b5348;
  --card: rgba(255, 248, 236, 0.94);
  --card-border: rgba(90, 56, 40, 0.18);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--wood-dark);
  position: relative;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(232, 93, 76, 0.22), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(139, 69, 19, 0.15), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(60, 30, 20, 0.4), transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.04) 3px,
      rgba(0, 0, 0, 0.04) 6px
    ),
    linear-gradient(168deg, #2a1810 0%, #1a0f0a 35%, #25160f 70%, #1a100c 100%);
}

.site-header {
  background: linear-gradient(180deg, rgba(45, 24, 16, 0.98) 0%, rgba(30, 16, 10, 0.96) 100%);
  border-bottom: 3px solid var(--ember);
  box-shadow: var(--shadow);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand__mark {
  font-size: 2.25rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.brand__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.brand__tagline {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--cream-dim);
  opacity: 0.9;
}

.header-contact {
  font-size: 0.9rem;
  color: var(--cream-dim);
}

.header-contact a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
}

.header-contact a:hover {
  text-decoration: underline;
  color: var(--ember-light);
}

.header-contact .dot {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
  align-items: start;
}

.layout__main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.panel__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--wood-mid);
}

.panel__lead {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.menu-section {
  margin-bottom: 1.5rem;
}

.menu-section:last-child {
  margin-bottom: 0;
}

.menu-section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ember);
  border-bottom: 2px dashed rgba(196, 59, 45, 0.25);
  padding-bottom: 0.35rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.card {
  background: #fffefb;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(61, 36, 24, 0.12);
}

.card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #e8ddd4, #d4c4b8);
  overflow: hidden;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 0.75rem 0.85rem 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.card__desc {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
  flex: 1;
}

.card__price {
  margin: 0.25rem 0 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--wood-mid);
}

.card button,
.btn-primary {
  font-family: var(--font-body);
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  background: linear-gradient(180deg, var(--ember-light) 0%, var(--ember) 100%);
  color: #fff;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(196, 59, 45, 0.35);
}

.card button:hover,
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

.card button:active,
.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

button:disabled,
.btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  filter: grayscale(0.2);
}

.cart-list > div {
  background: #fffefb;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.55rem;
}

.cart-list > div:last-child {
  margin-bottom: 0;
}

.cart-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--wood-mid);
}

.cart-list .qty-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.cart-list button[data-action] {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1;
  margin-top: 0;
  background: var(--wood-mid);
  box-shadow: none;
}

.total {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1rem 0 0.75rem;
  color: var(--wood-mid);
}

.field-label {
  display: block;
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--wood-mid);
}

.text-input {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #fffefb;
  color: var(--ink);
  padding: 0.6rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.text-input:focus {
  outline: 2px solid rgba(196, 59, 45, 0.35);
  border-color: var(--ember);
}

.text-input--textarea {
  resize: vertical;
  min-height: 3.2rem;
  line-height: 1.4;
}

.field-label__optional {
  font-weight: 500;
  color: rgba(90, 56, 40, 0.65);
}

.btn-primary {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.checkout-inline {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(90, 56, 40, 0.35);
}

.panel__title--small {
  font-size: 1.18rem;
  margin-bottom: 0.55rem;
}

.status-line {
  margin-bottom: 0.85rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--wood-mid);
  min-height: 1.35em;
}

.contact-strip {
  background: linear-gradient(90deg, rgba(30, 16, 10, 0.97), rgba(45, 28, 18, 0.98));
  border-top: 2px solid rgba(196, 59, 45, 0.45);
  color: var(--cream-dim);
  padding: 1.5rem 1.25rem;
}

.contact-strip__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem 2rem;
  font-size: 0.9rem;
}

.contact-strip strong {
  display: block;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.contact-strip p {
  margin: 0;
  line-height: 1.45;
}

.contact-strip a {
  color: var(--ember-light);
  text-decoration: none;
}

.contact-strip a:hover {
  text-decoration: underline;
}

.muted {
  opacity: 0.65;
  font-size: 0.82em;
}

.site-footer {
  text-align: center;
  padding: 1rem 1.25rem 1.75rem;
  font-size: 0.8rem;
  color: rgba(255, 246, 232, 0.45);
}

#guest-chat {
  scroll-margin-top: 5.5rem;
}

.panel--chat {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.chat-messages {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  background: #fffefb;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.chat-messages__empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  padding: 1rem 0.5rem;
}

.chat-bubble {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #fffefb 0%, #f5ebe0 100%);
  border: 1px solid rgba(90, 56, 40, 0.12);
}

.chat-bubble__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  margin-bottom: 0.2rem;
}

.chat-bubble__nick {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ember);
}

.chat-bubble__time {
  font-size: 0.72rem;
  color: var(--muted);
}

.chat-bubble__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-form__textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.chat-form__status {
  margin: 0.5rem 0 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wood-mid);
}

.chat-form__status--error {
  color: #9b2c2c;
}

.chat-form__submit {
  margin-top: 0.65rem;
}

.demo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(90deg, #2d4a3e, #1e3a32);
  border-bottom: 2px solid #4ade80;
  color: #d1fae5;
  font-size: 0.85rem;
  text-align: center;
}

.demo-banner a {
  color: #86efac;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.demo-banner a:hover {
  text-decoration: underline;
}

.shop-status {
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(45, 74, 62, 0.92);
  color: #d1fae5;
  border-bottom: 1px solid rgba(74, 222, 128, 0.35);
}

.shop-status--closed {
  background: rgba(90, 56, 40, 0.95);
  color: #ffe8d6;
  border-bottom-color: rgba(232, 93, 76, 0.45);
}

.checkout-page .checkout-layout {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.checkout-panel {
  margin-top: 0.5rem;
}

.checkout-summary {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--card-border);
}

.checkout-summary__name,
.checkout-summary__notes {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}

.checkout-summary__items {
  margin: 0.5rem 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

.checkout-summary__items li {
  margin-bottom: 0.2rem;
}

.checkout-summary__total {
  margin: 0.65rem 0 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.checkout-dropin {
  min-height: 120px;
}

.checkout-success {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(45, 74, 62, 0.12);
  border: 1px solid rgba(45, 74, 62, 0.25);
  font-weight: 600;
  line-height: 1.5;
}

.checkout-success a {
  color: var(--ember);
}

.checkout-help {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: rgba(196, 59, 45, 0.08);
  border: 1px solid rgba(196, 59, 45, 0.28);
  font-size: 0.9rem;
  line-height: 1.45;
}

.checkout-help__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--wood-mid);
}

.checkout-help__origins {
  margin: 0.5rem 0;
  padding-left: 1.1rem;
}

.checkout-help__origins code,
.checkout-help__code {
  font-size: 0.86rem;
  word-break: break-all;
}

.checkout-help__note {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .panel--cart {
    order: -1;
  }
}
