:root {
  --bg: #f4efe7;
  --panel: rgba(255, 252, 247, 0.88);
  --panel-strong: #fffaf3;
  --text: #1f1a16;
  --muted: #6f6257;
  --line: rgba(70, 45, 20, 0.12);
  --accent: #b6542d;
  --accent-dark: #8f3e1d;
  --accent-soft: #f0c8a9;
  --success: #275943;
  --warn: #8e5e16;
  --shadow: 0 18px 60px rgba(84, 52, 20, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(182, 84, 45, 0.15), transparent 28%),
    linear-gradient(180deg, #f7f0e5 0%, #efe6da 100%);
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 0;
}

.hero--compact {
  grid-template-columns: 1.4fr 0.8fr;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.eyebrow,
.product-category,
.hero-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.96;
  max-width: 12ch;
}

h2 {
  font-size: 1.7rem;
}

h3 {
  font-size: 1.2rem;
}

.hero-copy,
.list-card__description,
.product-description,
.cart-item__meta,
.hero-card span,
.hero-note,
.order-highlight__meta,
.order-highlight__summary,
.order-meta {
  color: var(--muted);
  line-height: 1.6;
}

.hero-note {
  display: inline-block;
  padding-top: 6px;
}

.hero-card,
.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
}

.hero-copy-block {
  padding-top: 26px;
  padding-bottom: 200px;
}

.hero-visual {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 0 8px 0 0;
}

.hero-visual img {
  display: block;
  width: min(100%, 460px);
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.88;
}

.layout,
.admin-layout {
  display: grid;
  gap: 20px;
}

.layout {
  grid-template-columns: 1.45fr 0.8fr;
  margin-top: -170px;
}

.admin-layout {
  grid-template-columns: 1fr 1fr;
}

.panel {
  padding: 24px;
}

.menu-panel,
.cart-panel {
  position: relative;
  z-index: 1;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill,
.badge,
.stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
}

.filter-pill {
  cursor: pointer;
}

.filter-pill.is-active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.product-grid,
.stack-list,
.cart-items,
.order-highlight {
  display: grid;
  gap: 14px;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card,
.list-card,
.cart-item {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
}

.product-card {
  display: grid;
  gap: 14px;
}

.product-card__top,
.product-card__bottom,
.list-card,
.cart-item,
.cart-item__actions,
.summary > div,
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.list-card {
  align-items: stretch;
}

.list-card__content,
.list-card__aside {
  display: grid;
  gap: 10px;
}

.list-card__aside {
  min-width: 180px;
  justify-items: end;
}

.checkout-form,
.product-form {
  display: grid;
  gap: 14px;
}

.order-highlight {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(182, 84, 45, 0.18);
  border-radius: 24px;
  background: rgba(182, 84, 45, 0.08);
}

.order-highlight__top,
.order-highlight__details,
.order-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.order-highlight__summary {
  margin: 0;
}

.order-highlight__details > div {
  display: grid;
  gap: 4px;
}

.order-meta {
  flex-wrap: wrap;
  font-size: 0.92rem;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.8);
}

textarea {
  resize: vertical;
}

.full-width {
  grid-column: 1 / -1;
}

.checkbox-row {
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
}

.checkbox-row input {
  width: auto;
}

.summary {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(182, 84, 45, 0.08);
}

.summary-total {
  padding-top: 10px;
  border-top: 1px solid rgba(182, 84, 45, 0.12);
}

.primary-button,
.secondary-button,
.ghost-button,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button,
.secondary-link {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
}

.ghost-button {
  background: transparent;
  border-color: var(--line);
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(31, 26, 22, 0.92);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero,
  .hero--compact,
  .layout,
  .admin-layout,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .list-card {
    flex-direction: column;
  }

  .list-card__aside {
    justify-items: start;
  }

  .order-highlight__top,
  .order-highlight__details,
  .order-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy-block {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-visual {
    min-height: 220px;
    padding: 0;
  }

  .layout {
    margin-top: 0;
  }
}
