:root {
  --bg: #f8f1e6;
  --surface: rgba(255, 253, 249, 0.9);
  --surface-strong: rgba(255, 252, 247, 0.96);
  --ink: #1f1b16;
  --muted: #6f655b;
  --line: rgba(62, 44, 26, 0.12);
  --accent: #d95d39;
  --accent-strong: #b94726;
  --accent-soft: rgba(217, 93, 57, 0.12);
  --shadow: 0 14px 32px rgba(62, 44, 26, 0.08);
  --shadow-strong: 0 18px 36px rgba(62, 32, 12, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font: "Avenir Next", "Montserrat", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 205, 135, 0.34), transparent 34%),
    radial-gradient(circle at bottom right, rgba(217, 93, 57, 0.08), transparent 28%),
    linear-gradient(180deg, #fcf6ec 0%, #f5ecdf 100%);
  color: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite;
}

body::before {
  width: 220px;
  height: 220px;
  top: 8%;
  right: -80px;
  background: rgba(217, 93, 57, 0.08);
}

body::after {
  width: 280px;
  height: 280px;
  left: -120px;
  bottom: 10%;
  background: rgba(255, 205, 135, 0.16);
  animation-delay: -7s;
}

body.cart-open {
  overflow: hidden;
}

body.categories-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 18px 16px 72px;
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 249, 241, 0.92), rgba(255, 243, 226, 0.9));
  border: 1px solid rgba(217, 93, 57, 0.14);
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  animation: rise-in 0.7s ease-out both;
  display: grid;
  gap: 12px;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(62, 44, 26, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(62, 44, 26, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.menu-button:hover,
.menu-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(62, 44, 26, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.menu-button.is-open {
  background: rgba(217, 93, 57, 0.12);
  box-shadow: 0 18px 30px rgba(217, 93, 57, 0.16);
}

.menu-button__bars {
  display: inline-grid;
  gap: 4px;
}

.menu-button__bars span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button.is-open .menu-button__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-button.is-open .menu-button__bars span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open .menu-button__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.menu-button__label {
  font-size: 14px;
  font-weight: 700;
}

.menu-button--section {
  flex: 0 0 auto;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -42px -72px auto;
  width: 138px;
  height: 138px;
  border-radius: 999px;
  background: rgba(217, 93, 57, 0.05);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-lockup__mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f1b16, #3c2a1d);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 12px 24px rgba(31, 27, 22, 0.16);
}

.brand-lockup__mark span {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8be70, #d95d39);
}

.brand-lockup__mark span:first-child {
  width: 18px;
  height: 18px;
  top: 8px;
  left: 8px;
}

.brand-lockup__mark span:last-child {
  width: 12px;
  height: 12px;
  right: 8px;
  bottom: 8px;
}

.brand-lockup__copy {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.brand-lockup__grand,
.brand-lockup__food {
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-lockup__grand {
  color: var(--ink);
}

.brand-lockup__food {
  color: var(--accent-strong);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.search--hero {
  width: 100%;
  border: 1px solid rgba(62, 44, 26, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0 14px;
  min-height: 52px;
  box-shadow: 0 12px 22px rgba(62, 44, 26, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.search--hero:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(62, 44, 26, 0.08);
  border-color: rgba(217, 93, 57, 0.24);
  background: rgba(255, 255, 255, 0.94);
}

.search__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
}

.search__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.search__input {
  width: 100%;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  font-size: 15px;
  outline: none;
  color: var(--ink);
  transition: color 0.2s ease;
}

.search__input:focus {
  transform: none;
  box-shadow: none;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 12px;
}

.section-head__lead {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.section-head__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
}

.section-head__meta {
  color: var(--muted);
  font-size: 13px;
}

.quick-actions {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.quick-card,
.sidebar-panel {
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid rgba(62, 44, 26, 0.1);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 10px 22px rgba(62, 44, 26, 0.05);
  backdrop-filter: blur(6px);
}

.quick-card {
  animation: rise-in 0.5s ease both;
  padding: 11px 12px;
  box-shadow: 0 8px 18px rgba(62, 44, 26, 0.05);
}

.quick-card__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(217, 93, 57, 0.1);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quick-card h3,
.sidebar-panel__head h2 {
  margin: 10px 0 6px;
  font-size: 16px;
}

.quick-card__meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 12px;
}

.quick-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}

.quick-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(62, 44, 26, 0.06);
  color: var(--ink);
  font-size: 11px;
}

.catalog-layout {
  display: block;
}

.catalog-sidebar {
  display: none;
}

.sidebar-panel {
  position: sticky;
  top: 16px;
}

.sidebar-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.drawer__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer__actions .panel-toggle--icon {
  display: none;
}

.panel-toggle {
  border: 1px solid rgba(62, 44, 26, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.panel-toggle:hover,
.panel-toggle:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 8px 16px rgba(62, 44, 26, 0.06);
}

.panel-toggle--icon {
  width: 36px;
  min-width: 36px;
  padding: 0;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.sidebar-peek {
  position: static;
  width: auto;
  border: 1px solid rgba(62, 44, 26, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(62, 44, 26, 0.05);
  transition: box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.sidebar-peek:hover,
.sidebar-peek:focus-visible {
  box-shadow: 0 12px 22px rgba(62, 44, 26, 0.08);
  border-color: rgba(217, 93, 57, 0.18);
}

.sidebar-peek__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(217, 93, 57, 0.08);
  color: var(--accent-strong);
  font-size: 14px;
  line-height: 1;
}

.sidebar-peek__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ink);
}

.sidebar-peek__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(217, 93, 57, 0.1);
  color: var(--accent-strong);
  font-size: 12px;
}

.categories-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 10px;
  margin-bottom: 6px;
  scrollbar-width: none;
}

.categories-rail::-webkit-scrollbar {
  display: none;
}

.categories-list--desktop {
  max-height: calc(100vh - 150px);
}

.catalog-cart-column {
  position: relative;
}

.ghost-button,
.secondary-button {
  border: none;
  border-radius: 999px;
  min-height: 44px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(62, 44, 26, 0.06);
}

.ghost-button:hover,
.ghost-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-2px);
}

.secondary-button {
  background: rgba(217, 93, 57, 0.11);
  color: var(--accent-strong);
}

.customer-hint {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(217, 93, 57, 0.08);
  color: var(--accent-strong);
  line-height: 1.4;
  font-size: 13px;
}

.categories__rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  animation: rise-in 0.8s ease-out both;
  animation-delay: 0.08s;
}

.categories__rail::-webkit-scrollbar {
  display: none;
}

.side-drawer {
  position: fixed;
  inset: 0;
  z-index: 45;
}

.side-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 27, 22, 0.3);
  backdrop-filter: blur(6px);
  animation: fade-in 0.22s ease both;
}

.side-drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(360px, calc(100vw - 24px));
  background: rgba(255, 250, 242, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 48px rgba(43, 29, 15, 0.18);
  padding: 20px 16px 24px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.side-drawer__panel--left {
  left: 0;
  border-radius: 0 28px 28px 0;
  animation: drawer-left 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.side-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.side-drawer__header h2 {
  margin: 8px 0 0;
}

.categories-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.category-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  border: 1px solid rgba(62, 44, 26, 0.1);
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  border-radius: 14px;
  padding: 10px 12px;
  min-height: 42px;
  cursor: pointer;
  font-size: 14px;
  transition: box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.category-row:hover,
.category-row:focus-visible {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(62, 44, 26, 0.06);
}

.category-row.is-active {
  color: var(--accent-strong);
  background: rgba(217, 93, 57, 0.08);
  border-color: rgba(217, 93, 57, 0.22);
  box-shadow: inset 0 0 0 1px rgba(217, 93, 57, 0.08);
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  padding: 12px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.chip:hover,
.chip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(217, 93, 57, 0.26);
  box-shadow: 0 10px 20px rgba(62, 44, 26, 0.08);
}

.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 14px 28px rgba(217, 93, 57, 0.22);
}

.catalog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  animation: rise-in 0.9s ease-out both;
  animation-delay: 0.14s;
}

.card {
  display: grid;
  gap: 10px;
  background: rgba(255, 254, 251, 0.88);
  border: 1px solid rgba(62, 44, 26, 0.1);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(55, 35, 15, 0.05);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
  animation: card-in 0.45s ease both;
  animation-delay: calc(var(--card-index, 0) * 0.045s);
}

.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(217, 93, 57, 0.16);
  box-shadow: var(--shadow-strong);
  background: rgba(255, 252, 246, 0.98);
}

.card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card__category {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card__title {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.18;
}

.card__description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.card__price {
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(62, 44, 26, 0.06);
}

.card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.primary-button,
.submit-button {
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  padding: 12px 16px;
  min-height: 42px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    filter 0.18s ease;
  box-shadow: 0 10px 22px rgba(217, 93, 57, 0.18);
}

.primary-button:hover,
.primary-button:focus-visible,
.submit-button:hover,
.submit-button:focus-visible {
  transform: translateY(-2px);
  background: var(--accent-strong);
  box-shadow: 0 18px 30px rgba(217, 93, 57, 0.28);
}

.primary-button:active,
.submit-button:active {
  transform: translateY(1px);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(62, 44, 26, 0.06);
  border-radius: 999px;
  padding: 4px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.qty-control:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(62, 44, 26, 0.08);
  background: rgba(255, 248, 243, 0.96);
}

.qty-control button,
.icon-button {
  border: none;
  background: white;
  color: var(--ink);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.qty-control button:hover,
.qty-control button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 10px 18px rgba(62, 44, 26, 0.12);
  background: #fff5ef;
}

.qty-control__value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.qty-control__input {
  width: 40px;
  min-width: 40px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  padding: 0 2px;
  transition: background 0.18s ease, box-shadow 0.18s ease;
  appearance: textfield;
  -moz-appearance: textfield;
}

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

.qty-control__input:focus {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(217, 93, 57, 0.16);
}

.cart-fab {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(135deg, #25170f, #40281b);
  color: white;
  padding: 16px 18px;
  box-shadow: 0 18px 35px rgba(26, 16, 9, 0.35);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    background 0.2s ease;
  animation: cart-float 2.8s ease-in-out infinite;
}

.cart-fab__copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.cart-fab__label {
  font-size: 17px;
  font-weight: 800;
}

.cart-fab__hint {
  font-size: 12px;
  color: rgba(255, 242, 236, 0.78);
  transition: color 0.2s ease, transform 0.2s ease;
}

.cart-fab__count {
  min-width: 52px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 16px;
  font-weight: 800;
}

.cart-fab:hover,
.cart-fab:focus-visible {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 22px 40px rgba(26, 16, 9, 0.42);
  filter: brightness(1.06);
}

.cart-fab:hover .cart-fab__hint,
.cart-fab:focus-visible .cart-fab__hint,
.cart-fab.is-open .cart-fab__hint {
  color: #fff;
  transform: translateX(2px);
}

.cart-fab.is-open,
.cart-fab:active {
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    0 0 0 4px rgba(255, 212, 185, 0.16),
    0 28px 44px rgba(26, 16, 9, 0.48);
  background: linear-gradient(135deg, #48291a, #7a3b22);
}

.cart-fab::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 30px;
  border: 1px solid rgba(255, 240, 231, 0.16);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-fab:hover::after,
.cart-fab.is-open::after {
  opacity: 1;
  transform: scale(1);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 27, 22, 0.35);
  backdrop-filter: blur(6px);
  animation: fade-in 0.22s ease both;
}

.drawer__panel {
  position: absolute;
  inset: auto 0 0;
  max-height: 90vh;
  overflow: auto;
  overflow-x: hidden;
  background: var(--surface-strong);
  border-radius: 28px 28px 0 0;
  padding: 16px 16px 24px;
  box-shadow: 0 -16px 34px rgba(43, 29, 15, 0.12);
  animation: drawer-up 0.3s cubic-bezier(0.2, 0.9, 0.2, 1) both;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.drawer__title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.drawer__title-row h2 {
  margin: 0;
}

.drawer__header h2 {
  margin: 0;
}

.checkout-form h3 {
  margin: 8px 0 0;
}

.drawer__count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(62, 44, 26, 0.06);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.cart-stage,
.checkout-stage {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(62, 44, 26, 0.08);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 22px rgba(43, 29, 15, 0.05);
}

.cart-stage {
  min-height: 0;
  position: relative;
}

.cart-stage.is-clear-prompt-open > :not(.cart-clear-prompt) {
  opacity: 0.22;
  filter: blur(2px);
  transform: scale(0.995);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}

.checkout-stage {
  margin-top: 14px;
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.92), rgba(255, 255, 255, 0.74));
}

.cart-stage__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "badge action"
    "meta action";
  align-items: center;
  gap: 8px;
}

.cart-stage__head > div:first-child {
  grid-area: badge;
  min-width: 0;
}

.checkout-stage__head {
  display: grid;
  gap: 6px;
}

.cart-stage__head h3,
.checkout-stage__head h3 {
  margin: 0;
  font-size: 17px;
}

.cart-stage__meta,
.checkout-stage__head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cart-stage__meta {
  grid-area: meta;
  min-width: 0;
}

.icon-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(62, 44, 26, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  grid-area: action;
  align-self: start;
}

.icon-action-button:hover,
.icon-action-button:focus-visible {
  transform: translateY(-1px);
  color: var(--accent-strong);
  border-color: rgba(217, 93, 57, 0.2);
  box-shadow: 0 10px 18px rgba(62, 44, 26, 0.07);
}

.icon-action-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cart-clear-prompt {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.88);
  backdrop-filter: blur(10px);
  animation: fade-in 0.18s ease both;
  pointer-events: auto;
}

.cart-clear-prompt__dialog {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: min(100%, 320px);
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 247, 243, 0.98);
  border: 1px solid rgba(217, 93, 57, 0.12);
  box-shadow: 0 18px 36px rgba(43, 29, 15, 0.12);
}

.cart-clear-prompt__dialog p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.cart-clear-prompt__actions {
  display: flex;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.cart-clear-prompt__actions .secondary-button,
.cart-clear-prompt__actions .primary-button {
  flex: 1;
  min-width: 122px;
}

.cart-stage__content {
  display: grid;
  gap: 6px;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
}

.cart-stage__footer {
  position: sticky;
  bottom: 0;
  padding-top: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 252, 247, 0.98) 34%);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 4px 2px;
  color: var(--muted);
  font-size: 13px;
}

.cart-total strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cart-stage__button {
  width: 100%;
  min-height: 54px;
  box-shadow: 0 16px 28px rgba(217, 93, 57, 0.24);
}

.cart-items {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(62, 44, 26, 0.08);
  border-radius: 14px;
  padding: 9px 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cart-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(62, 44, 26, 0.07);
}

.cart-item__content {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.cart-item__name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cart-item__category {
  color: var(--muted);
  font-size: 10px;
}

.cart-item__price {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  min-width: 0;
}

.cart-item .qty-control {
  gap: 4px;
  padding: 3px;
}

.cart-item .qty-control button {
  width: 30px;
  height: 30px;
  font-size: 16px;
}

.cart-item .qty-control__input {
  width: 32px;
  min-width: 32px;
  height: 30px;
  font-size: 15px;
}

.cart-empty,
.catalog__empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.checkout-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 12px;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  background: white;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.field input {
  min-height: 56px;
}

.field textarea {
  resize: none;
  overflow-y: hidden;
  min-height: 104px;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(217, 93, 57, 0.45);
  box-shadow: 0 0 0 4px rgba(217, 93, 57, 0.1);
  background: #fffdf9;
  transform: translateY(-1px);
}

.choice-group {
  display: flex;
  gap: 8px;
}

.choice-group--stacked {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-pill {
  flex: 1;
  position: relative;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
}

.choice-pill span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.choice-pill:hover span,
.choice-pill:focus-within span {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(62, 44, 26, 0.05);
}

.choice-pill input:checked + span {
  background: rgba(217, 93, 57, 0.1);
  border-color: rgba(217, 93, 57, 0.22);
  color: var(--accent-strong);
}

.message {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.message--error {
  background: rgba(187, 54, 54, 0.12);
  color: #8a1d1d;
}

.message--success {
  background: rgba(33, 155, 98, 0.14);
  color: #196845;
}

.panel-bump {
  animation: panel-bump 0.42s ease;
}

.cart-fab--bump {
  animation: cart-bump 0.36s ease;
}

.hidden {
  display: none !important;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes panel-bump {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 -20px 40px rgba(43, 29, 15, 0.18);
  }
  50% {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 -26px 50px rgba(43, 29, 15, 0.24);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 -20px 40px rgba(43, 29, 15, 0.18);
  }
}

@keyframes cart-bump {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes drawer-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawer-left {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cart-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(10px, -18px, 0);
  }
}

@media (min-width: 720px) {
  .app-shell {
    padding-top: 22px;
  }

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

  .drawer__panel {
    inset: 18px 18px 18px auto;
    width: min(430px, calc(100vw - 36px));
    border-radius: 28px;
  }

  .cart-fab {
    left: auto;
    right: 24px;
    width: 340px;
  }
}

@media (min-width: 1080px) {
  .app-shell {
    width: min(100%, 1460px);
    padding: 24px 28px 40px;
  }

  .hero {
    grid-template-columns: auto minmax(320px, 520px);
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
  }

  .catalog-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 336px;
    gap: 18px;
    align-items: start;
    margin-top: 14px;
  }

  .catalog-layout.is-categories-collapsed {
    grid-template-columns: 0 minmax(0, 1fr) 336px;
  }

  .catalog-layout.is-cart-collapsed {
    grid-template-columns: 210px minmax(0, 1fr) 0;
  }

  .catalog-layout.is-categories-collapsed.is-cart-collapsed {
    grid-template-columns: 0 minmax(0, 1fr) 0;
  }

  .catalog-sidebar {
    display: block;
    min-width: 0;
    overflow: hidden;
  }

  .catalog-sidebar.is-collapsed .sidebar-panel {
    display: none;
  }

  .catalog-sidebar.is-collapsed,
  .catalog-layout.is-cart-collapsed .catalog-cart-column {
    width: 0;
    overflow: hidden;
  }

  .catalog-main {
    min-width: 0;
  }

  .catalog-cart-column {
    min-width: 0;
  }

  .section-head {
    margin: 0 0 14px;
  }

  .section-head__lead {
    gap: 12px;
  }

  .section-head__actions {
    gap: 10px;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .ghost-button {
    display: none;
  }

  .categories-rail {
    display: none;
  }

  .catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .card {
    min-height: 0;
    align-content: start;
    padding: 15px;
  }

  .card__title {
    font-size: 19px;
  }

  .drawer {
    position: relative;
    inset: auto;
    z-index: 1;
  }

  .drawer.hidden {
    display: block !important;
  }

  .drawer.is-desktop-collapsed {
    display: none !important;
  }

  .drawer__backdrop {
    display: none;
  }

  .drawer__panel {
    position: sticky;
    inset: auto;
    top: 16px;
    max-height: calc(100vh - 32px);
    width: auto;
    border-radius: 24px;
    padding: 16px 16px 20px;
    box-shadow: 0 14px 28px rgba(43, 29, 15, 0.1);
    animation: rise-in 0.42s ease both;
  }

  .cart-stage__content {
    max-height: min(56vh, 620px);
    overflow: auto;
    padding-right: 2px;
  }

  .drawer__header .icon-button {
    display: none;
  }

  .drawer__actions .panel-toggle--icon {
    display: inline-flex;
  }

  .cart-fab {
    display: none !important;
  }
}

@media (min-width: 1280px) {
  .brand-lockup__grand,
  .brand-lockup__food {
    font-size: 40px;
  }

  .catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
