/* REBRAND CREATIVE START */
:root {
  --cocoa-950: #1c100a;
  --cocoa-900: #2a1810;
  --cocoa-700: #4e2f1b;
  --brand: #6b3f22;
  --brand-deep: #4e2f1b;
  --gold: #c69a52;
  --gold-soft: #e2c07d;
  --cream: #f3e7d5;
  --cream-soft: #efe0ca;
  --paper: #fffaf1;
  --ink: #2a1810;
  --muted: #795f4d;
  --line: #dfcdb4;
  --success: #4f6e3d;
  --danger: #a33a2f;
  --shadow: 0 22px 60px rgba(42, 24, 16, 0.13);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --display: "Playfair Display", Georgia, serif;
  --ui: "Karla", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(100% 70% at 100% 0, rgba(198, 154, 82, 0.12), transparent 60%),
    var(--cream);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(198, 154, 82, 0.75);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.08;
}

p {
  line-height: 1.55;
}

main {
  min-height: 100vh;
}

.menu-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 48px 20px 110px;
}

.menu-intro {
  max-width: 760px;
  padding: 34px 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: var(--gold);
  content: "";
}

.menu-intro h1 {
  max-width: 760px;
  margin: 18px 0 12px;
  color: var(--cocoa-950);
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  letter-spacing: -0.045em;
}

.menu-intro p {
  max-width: 460px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1.12rem;
}

.store-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.7);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.store-status.is-open {
  color: var(--success);
}

.store-status.is-closed {
  color: var(--danger);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.menu-section {
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 10px 0 0;
  color: var(--cocoa-950);
  font-size: clamp(2rem, 5vw, 3.7rem);
  letter-spacing: -0.04em;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 28px 0;
  padding: 2px 0 8px;
  scrollbar-width: thin;
}

.category-tab {
  min-height: 46px;
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out), transform 140ms ease-out;
}

.category-tab:hover,
.category-tab.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fffaf1;
}

.category-tab:active,
.btn:active,
.icon-button:active,
.mode-choice:active,
.option-choice:active {
  transform: scale(0.97);
}

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

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(223, 205, 180, 0.9);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.88);
  box-shadow: 0 10px 28px rgba(42, 24, 16, 0.05);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--cream-soft);
}

.product-image-empty {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 900;
}

.product-card-body {
  display: flex;
  min-height: 220px;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.product-category {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 12px 0 8px;
  font-size: 1.65rem;
}

.product-card p {
  margin-bottom: 22px;
  color: var(--muted);
}

.product-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-card-foot strong,
.cart-summary strong,
.summary-items strong {
  color: var(--brand);
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 140ms ease-out, background 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.btn.primary {
  background: var(--brand);
  color: #fffaf1;
  box-shadow: 0 10px 20px rgba(78, 47, 27, 0.18);
}

.btn.primary:hover {
  background: var(--brand-deep);
}

.btn.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--brand);
}

.btn.secondary:hover {
  background: var(--cream-soft);
}

.btn.danger {
  background: var(--danger);
  color: white;
}

.btn.compact {
  min-height: 42px;
  padding: 9px 13px;
}

.btn.wide {
  width: 100%;
}

.cart-fab {
  position: fixed;
  z-index: 10;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 20px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: white;
  box-shadow: 0 16px 36px rgba(42, 24, 16, 0.25);
  font-weight: 800;
}

.cart-fab strong {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--cocoa-950);
}

.menu-view .category-fab {
  position: fixed;
  z-index: 10;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.92);
  color: var(--brand);
  box-shadow: 0 12px 28px rgba(42, 24, 16, 0.14);
  font-size: 0.82rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.menu-view .category-fab:hover {
  border-color: var(--brand);
  background: var(--cream-soft);
}

.overlay-layer {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(28, 16, 10, 0.58);
  animation: overlay-in 180ms ease-out both;
}

.cart-drawer,
.choice-modal {
  width: min(580px, 100%);
  max-height: min(760px, calc(100dvh - 36px));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(28, 16, 10, 0.25);
  animation: modal-in 220ms var(--ease-out) both;
}

.cart-drawer {
  width: min(520px, 100%);
  margin-left: auto;
  padding: 24px;
}

.choice-modal {
  position: relative;
  padding: 30px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.drawer-head,
.wa-head,
.dashboard-head,
.editor-subhead,
.product-card-foot,
.cart-line,
.cart-summary,
.modal-actions,
.admin-product-row,
.dashboard-head-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.drawer-head h2,
.choice-modal h2 {
  margin: 8px 0 0;
  font-size: 2.1rem;
}

.icon-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: transparent;
  color: var(--brand);
  font-size: 1.5rem;
  transition: transform 140ms ease-out, background 180ms var(--ease-out);
}

.icon-button:hover {
  background: var(--cream-soft);
}

.icon-button.small {
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
}

.cart-lines {
  display: grid;
  gap: 12px;
  margin: 28px 0 18px;
}

.cart-line {
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-line strong,
.cart-line small {
  display: block;
}

.cart-line small {
  max-width: 270px;
  margin-top: 4px;
  color: var(--muted);
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cart-line-copy {
  min-width: 0;
}

.cart-line-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-line-edit {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
}

.cart-line-edit:hover {
  border-color: var(--brand);
  background: var(--cream-soft);
}

.cart-summary {
  margin: 18px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}

.modal-product-head {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
  padding-right: 28px;
}

.modal-product-image {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 18px;
  background: var(--cream-soft);
}

.modal-product-head h2 {
  font-size: 2rem;
}

.modal-product-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.option-groups {
  display: grid;
  gap: 20px;
  margin: 28px 0;
}

.option-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.option-group legend {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 800;
}

.option-group legend small {
  color: var(--brand);
  font-size: 0.8rem;
}

.option-choices,
.mode-choices {
  display: grid;
  gap: 8px;
}

.option-choice,
.mode-choice {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: transform 140ms ease-out, border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}

.option-choice small,
.mode-choice small {
  color: var(--muted);
}

.option-choice.is-active,
.mode-choice:hover {
  border-color: var(--brand);
  background: var(--cream-soft);
}

.mode-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 10px;
}

.mode-choice {
  min-height: 110px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.mode-choice strong {
  font-family: var(--display);
  font-size: 1.35rem;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.field > span {
  font-size: 0.9rem;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
}

.textarea {
  resize: vertical;
}

.modal-actions {
  margin-top: 20px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.form-error {
  margin: 12px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.order-modal > p {
  color: var(--muted);
}

.order-summary {
  margin: 22px 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--cream-soft);
}

.summary-mode {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.summary-mode span,
.summary-items span {
  color: var(--muted);
  font-size: 0.9rem;
}

.summary-items {
  display: grid;
  gap: 9px;
  padding: 14px 0 0;
}

.summary-items > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.confirmation-page,
.login-page {
  width: min(620px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18vh 0 80px;
  text-align: center;
}

.confirmation-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-size: 2.3rem;
}

.confirmation-page h1,
.login-page h1 {
  margin: 18px 0;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
}

.confirmation-page p,
.login-page > p {
  color: var(--muted);
}

.login-page {
  padding-top: 15vh;
  text-align: left;
}

.login-page .eyebrow,
.login-page h1 {
  display: flex;
  justify-content: center;
  text-align: center;
}

.login-page > p {
  max-width: 430px;
  margin: 0 auto 26px;
  text-align: center;
}

.check-line {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 700;
}

.check-line input,
.switch input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}

.login-page .btn {
  margin-top: 20px;
}

.dashboard-shell {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 26px 24px 70px;
}

.dashboard-head {
  align-items: flex-start;
  padding: 14px 0 28px;
  border-bottom: 1px solid var(--line);
}

.dashboard-head h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.dashboard-head-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  padding-top: 28px;
}

.dashboard-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.dashboard-nav-item {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  text-align: left;
}

.dashboard-nav-item.is-active,
.dashboard-nav-item:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fffaf1;
}

.dashboard-section {
  min-width: 0;
}

.dashboard-section-heading {
  margin-bottom: 20px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 241, 0.9);
  box-shadow: 0 8px 26px rgba(42, 24, 16, 0.05);
}

.store-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.3fr);
  gap: 24px;
  margin-bottom: 20px;
  padding: 22px;
}

.store-control h3 {
  margin: 8px 0;
  font-size: 1.5rem;
}

.store-control p {
  margin-bottom: 0;
  color: var(--muted);
}

.store-control-fields {
  display: grid;
  gap: 12px;
}

.time-fields,
.two-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 20px;
}

.product-editor,
.product-list-panel,
.whatsapp-card {
  min-width: 0;
  padding: 22px;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.editor-subhead {
  align-items: center;
  margin-top: 8px;
}

.editor-subhead h4 {
  margin: 0;
  font-size: 1.25rem;
}

.option-editor-list {
  display: grid;
  gap: 12px;
}

.draft-group {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(239, 224, 202, 0.45);
}

.short-field {
  max-width: 220px;
}

.draft-options {
  display: grid;
  gap: 8px;
}

.draft-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 38px;
  gap: 8px;
  align-items: center;
}

.editor-actions,
.category-create {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

.admin-product-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.admin-product-row {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffdf8;
}

.admin-product-row.is-disabled {
  opacity: 0.58;
}

.admin-product-image {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  background: var(--cream-soft);
}

.admin-product-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.admin-product-copy strong,
.admin-product-copy span,
.admin-product-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-copy span {
  color: var(--brand);
  font-weight: 800;
}

.admin-product-copy small {
  color: var(--muted);
}

.switch {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch span {
  position: relative;
  display: block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--line);
  transition: background 180ms var(--ease-out);
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  content: "";
  transition: transform 180ms var(--ease-out);
}

.switch input:checked + span {
  background: var(--success);
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.whatsapp-card {
  max-width: 760px;
}

.wa-head {
  align-items: flex-start;
  margin-bottom: 22px;
}

.wa-head h3 {
  margin: 0 0 6px;
  font-size: 1.7rem;
}

.wa-head p {
  margin-bottom: 0;
}

.wa-number {
  padding: 14px;
  border-radius: 13px;
  background: var(--cream-soft);
}

.whatsapp-card code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--cream-soft);
  color: var(--brand);
  font-weight: 800;
}

.wa-qr {
  display: block;
  width: min(280px, 100%);
  margin: 18px auto;
  border: 10px solid white;
  border-radius: 15px;
}

.recipient-list {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.recipient-list h4 {
  margin-bottom: 12px;
}

.recipient-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin: 0 6px 6px 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--cream-soft);
  color: var(--brand);
  font-weight: 800;
}

.muted,
.empty-state {
  color: var(--muted);
}

.empty-state {
  padding: 24px 0;
  text-align: center;
}

.error-page {
  width: min(600px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 20vh;
  text-align: center;
}

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

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-layout,
  .product-admin-grid,
  .store-control {
    grid-template-columns: 1fr;
  }

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

  .dashboard-nav-item {
    text-align: center;
  }
}

@media (max-width: 620px) {
  .menu-page,
  .dashboard-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .menu-intro {
    padding-top: 20px;
    padding-bottom: 38px;
  }

  .menu-intro h1 {
    font-size: clamp(2.6rem, 14vw, 4.3rem);
  }

  .product-grid,
  .mode-choices,
  .two-fields,
  .time-fields {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .dashboard-head,
  .dashboard-head-actions,
  .wa-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-head-actions {
    width: 100%;
    align-items: stretch;
  }

  .dashboard-head-actions .btn,
  .dashboard-head-actions .store-status {
    width: 100%;
    justify-content: center;
  }

  .choice-modal,
  .cart-drawer {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .modal-product-head {
    grid-template-columns: 1fr;
  }

  .modal-product-image {
    width: 100%;
    height: 170px;
  }

  .modal-actions,
  .editor-actions,
  .category-create {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-actions .btn,
  .editor-actions .btn,
  .category-create .btn {
    width: 100%;
  }

  .draft-option {
    grid-template-columns: minmax(0, 1fr) 90px 38px;
  }

  .admin-product-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .admin-product-copy {
    min-width: calc(100% - 80px);
  }

  .admin-product-row .btn {
    width: 100%;
    margin-left: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
/* REBRAND CREATIVE END */

/* Client menu: source-like horizontal cards and animated product wizard. */
.menu-view .menu-page-lead {
  max-width: 38rem;
  margin: 0 0 1.2rem;
  color: var(--muted);
  line-height: 1.5;
}

.menu-view .category-shelf {
  display: grid;
  gap: 0.8rem;
}

.menu-view .category-row {
  display: grid;
  grid-template-columns: clamp(6.25rem, 18vw, 8rem) minmax(0, 1fr) auto;
  min-height: 8rem;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.05rem 0.35rem 1.05rem 0.35rem;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 0.7rem 1.6rem rgba(73, 31, 23, 0.07);
  transition: transform 150ms var(--ease-out), box-shadow 180ms ease, border-color 180ms ease;
}

.menu-view .category-row:hover {
  border-color: var(--gold);
  box-shadow: 0 1rem 2rem rgba(73, 31, 23, 0.12);
  transform: translateY(-2px);
}

.menu-view .category-row-image {
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: var(--cream-soft);
}

.menu-view .category-row-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms var(--ease-out);
}

.menu-view .category-row:hover .category-row-image img {
  transform: scale(1.04);
}

.menu-view .category-row-fallback {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--brand);
  font-family: var(--display);
  font-size: 2.5rem;
}

.menu-view .category-row-copy {
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: 1rem 1.2rem;
}

.menu-view .category-row-copy strong {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.menu-view .category-row-copy small,
.menu-view .category-row-count {
  color: var(--muted);
  font-size: 0.82rem;
}

.menu-view .category-row-count {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem;
  white-space: nowrap;
}

.menu-view .category-row-count span {
  color: var(--brand);
  font-size: 1.2rem;
}

.menu-view .category-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin: 1rem 0;
  padding: 0.15rem 0 0.35rem;
  scrollbar-width: thin;
}

.menu-view .category-nav-item {
  display: inline-flex;
  min-height: 2.75rem;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.7);
  color: var(--muted);
  font-weight: 800;
  transition: transform 150ms var(--ease-out), color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.menu-view .category-nav-item:hover,
.menu-view .category-nav-item.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fffaf1;
  transform: translateY(-1px);
}

.menu-view .category-nav-item small {
  color: var(--gold-soft);
  font-size: 0.72rem;
}

.menu-view .product-grid.menu-products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.menu-view .client-product-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 1rem 0.35rem 1rem 0.35rem;
  background: var(--paper);
}

.menu-view .product-card-open {
  display: grid;
  grid-template-columns: minmax(8rem, 35%) minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  min-width: 0;
  align-items: center;
  padding: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.menu-view .product-card-open:hover .product-card-image {
  transform: scale(1.045);
}

.menu-view .client-product-media {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border-radius: 0.75rem 0.25rem 0.75rem 0.25rem;
  background: var(--cream-soft);
}

.menu-view .product-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms var(--ease-out);
}

.menu-view .product-card-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 0.45rem;
}

.menu-view .product-card-title {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 900;
  line-height: 1.02;
}

.menu-view .product-card-description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.menu-view .product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.8rem 1rem 1rem;
  border-top: 1px solid rgba(223, 205, 180, 0.7);
}

.menu-view .product-card-footer .price {
  color: var(--brand);
  font-size: 1rem;
  font-weight: 900;
}

.menu-view .product-add {
  min-height: 2.65rem;
  padding-inline: 0.8rem;
}

.menu-view .product-modal {
  width: min(40rem, calc(100% - 1rem));
  max-height: min(94dvh, 50rem);
  padding: clamp(0.8rem, 2.5vw, 1.2rem);
  border-radius: 1.1rem 0.35rem 1.1rem 0.35rem;
}

.menu-view .modal-product-head {
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 0;
  padding-right: 1.5rem;
}

.menu-view .modal-product-image-wrap {
  display: grid;
  overflow: hidden;
  border-radius: 0.65rem 0.25rem 0.65rem 0.25rem;
  background: var(--cream-soft);
}

.menu-view .modal-product-image {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
}

.menu-view .modal-product-price {
  color: var(--brand);
}

.menu-view .modal-product-head h2 {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
}

.menu-view .modal-product-head p {
  font-size: 0.88rem;
  line-height: 1.35;
}

.menu-view .product-stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--step-count), minmax(0, 1fr));
  gap: 0.2rem;
  margin: 0.85rem 0 0.75rem;
}

.menu-view .product-stepper-track {
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  left: 1.4rem;
  height: 2px;
  background: var(--line);
}

.menu-view .product-stepper-progress {
  display: block;
  width: calc(var(--step-progress) * 100%);
  height: 100%;
  background: var(--gold);
  transition: width 240ms var(--ease-out);
}

.menu-view .product-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
}

.menu-view .product-step-dot {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 900;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms var(--ease-out);
}

.menu-view .product-step-label {
  max-width: 7rem;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-view .product-step.active,
.menu-view .product-step.complete {
  color: var(--brand);
}

.menu-view .product-step.active .product-step-dot,
.menu-view .product-step.complete .product-step-dot {
  border-color: var(--brand);
  background: var(--brand);
  color: #fffaf1;
  transform: scale(1.05);
}

.menu-view .product-step-panel {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 250, 241, 0.72);
}

.menu-view .product-step-panel[data-step-direction="forward"] {
  animation: product-step-forward 240ms var(--ease-out) both;
}

.menu-view .product-step-panel[data-step-direction="back"] {
  animation: product-step-back 240ms var(--ease-out) both;
}

.menu-view .product-step-panel[data-step-direction="steady"] {
  animation: none;
}

.menu-view .product-step-panel-head,
.menu-view .product-step-group-head,
.menu-view .product-modal-footer,
.menu-view .product-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.menu-view .product-step-panel-head {
  align-items: flex-start;
  margin-bottom: 0.7rem;
}

.menu-view .product-step-kicker,
.menu-view .product-step-status,
.menu-view .product-step-group-head small,
.menu-view .product-total small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.menu-view .product-step-panel h3 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.2rem, 4vw, 1.7rem);
}

.menu-view .product-step-status.is-complete {
  color: var(--success);
}

.menu-view .wizard-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.menu-view .wizard-option {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fffdf8;
  cursor: pointer;
  transition: transform 150ms var(--ease-out), border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.menu-view .wizard-option:hover {
  transform: translateY(-1px);
}

.menu-view .wizard-option.is-active {
  border-color: var(--brand);
  background: var(--cream-soft);
  box-shadow: 0 0 0 3px rgba(107, 63, 34, 0.1);
}

.menu-view .wizard-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.menu-view .wizard-option input {
  accent-color: var(--brand);
}

.menu-view .wizard-option-copy {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.menu-view .wizard-option-copy b {
  overflow-wrap: anywhere;
}

.menu-view .wizard-option-copy small {
  color: var(--muted);
}

.menu-view .product-step-actions {
  margin-top: 0.7rem;
}

.menu-view .product-step-actions .btn {
  min-height: 2.35rem;
  padding: 0.5rem 0.75rem;
}

.menu-view .product-step-actions > div {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.menu-view .product-note-step .field {
  margin-bottom: 0.8rem;
}

.menu-view .product-note-none-choice {
  min-height: 2.8rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: transparent;
  color: var(--brand);
  font-weight: 800;
}

.menu-view .product-note-none-choice.active {
  border-color: var(--brand);
  background: var(--cream-soft);
}

.menu-view .product-final-details {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.menu-view .quantity-field {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.menu-view .quantity-stepper {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.2rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream-soft);
  color: var(--ink);
}

.menu-view .quantity-stepper strong {
  min-width: 1.5rem;
  text-align: center;
}

.menu-view .quantity-button {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 900;
}

.menu-view .quantity-button:hover {
  background: var(--paper);
}

.menu-view .product-total {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
}

.menu-view .product-total strong {
  color: var(--brand);
  font-size: 1.35rem;
}

@keyframes product-step-forward {
  from { opacity: 0; transform: translateX(1.4rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes product-step-back {
  from { opacity: 0; transform: translateX(-1.4rem); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 700px) {
  .menu-view .product-grid.menu-products {
    grid-template-columns: 1fr;
  }

  .menu-view .product-card-open {
    grid-template-columns: 7.35rem minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .menu-view .category-row {
    grid-template-columns: 5.75rem minmax(0, 1fr) auto;
    min-height: 6.25rem;
  }

  .menu-view .category-row-copy {
    padding: 0.85rem;
  }

  .menu-view .category-row-copy strong {
    font-size: 1.15rem;
  }

  .menu-view .category-row-count {
    padding: 0.75rem;
    font-size: 0.72rem;
  }

  .menu-view .product-card-open {
    grid-template-columns: 6.6rem minmax(0, 1fr);
    gap: 0.8rem;
  }

  .menu-view .wizard-option-grid {
    grid-template-columns: 1fr;
  }

  .menu-view .product-step-label {
    max-width: 4.8rem;
    font-size: 0.66rem;
  }

  .menu-view .product-stepper-track {
    right: 0.8rem;
    left: 0.8rem;
  }

  .menu-view .modal-product-head {
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 0.65rem;
    padding-right: 1rem;
  }

  .menu-view .modal-product-image,
  .menu-view .modal-product-image-wrap {
    width: 5.25rem;
    height: 5.25rem;
  }

  .menu-view .product-modal {
    width: calc(100% - 0.75rem);
    max-height: calc(100dvh - 0.75rem);
    padding: 0.7rem;
  }

  .menu-view .product-step-label {
    max-width: 4.3rem;
    font-size: 0.62rem;
  }

  .menu-view .product-step-panel {
    padding: 0.65rem;
  }

  .menu-view .product-step-panel-head {
    gap: 0.45rem;
  }

  .menu-view .product-step-status {
    font-size: 0.68rem;
    text-align: right;
  }

  .menu-view .cart-line {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .menu-view .cart-line-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 0.35rem;
  }
}
