:root {
  color-scheme: light;
  --bg: #fbf7ef;
  --card: #fffdf8;
  --text: #171717;
  --muted: #77736c;
  --line: rgba(44, 30, 18, 0.12);
  --orange: #e85f0c;
  --orange-2: #f78216;
  --olive: #59611b;
  --cream: #f2e7d7;
  --shadow: 0 18px 44px rgba(60, 42, 22, 0.13);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 16% 10%, rgba(232, 95, 12, 0.08), transparent 16rem),
    radial-gradient(circle at 90% 22%, rgba(89, 97, 27, 0.08), transparent 15rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
}

.mobile-app {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 16px calc(28px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), transparent 340px),
    var(--bg);
  overflow-x: hidden;
}

.app-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 12px;
  min-height: 74px;
}

.app-header .brand {
  grid-column: 2;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text);
}

.icon-button svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.8;
}

.brand {
  display: grid;
  justify-items: center;
  color: var(--text);
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-logo {
  display: block;
  width: min(150px, 48vw);
  height: auto;
  object-fit: contain;
}

.brand span {
  display: grid;
  place-items: center;
  height: 24px;
  color: var(--orange);
}

.brand span svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
  stroke-width: 1.7;
}

.brand strong {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 0.94;
}

.brand small {
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 0;
}

.quick-action {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 46px;
  padding: 6px 4px;
  border: 1px solid rgba(44, 30, 18, 0.09);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.74);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(60, 42, 22, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.quick-action:active {
  transform: translateY(1px) scale(0.98);
}

.quick-action svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.25;
}

.quick-action span:last-child {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action-share svg {
  color: var(--orange);
}

.quick-action-whatsapp svg {
  color: #118c4f;
}

.quick-action-map svg {
  color: #3367d6;
}

.quick-brand-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #515bd4);
  color: #fff;
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0;
}

.quick-action.is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

.floating-cart span {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.category-strip {
  display: grid;
  grid-auto-columns: 92px;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scrollbar-width: none;
}

.subcategory-strip {
  display: grid;
  grid-auto-columns: 88px;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding: 0 2px 16px;
  scrollbar-width: none;
}

.subcategory-strip::-webkit-scrollbar {
  display: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #4d4a45;
  text-decoration: none;
}

.category-card img {
  width: 74px;
  height: 74px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 8px 22px rgba(60, 42, 22, 0.1);
}

.category-card img[src^="Logo/"],
.subcategory-card img[src^="Logo/"] {
  padding: 9px;
  object-fit: contain;
}

.category-card span {
  display: -webkit-box;
  width: 100%;
  min-height: 36px;
  max-height: 36px;
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.16;
  text-align: center;
  word-break: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-card.is-active {
  color: var(--orange);
  font-weight: 800;
}

.category-card.is-active img {
  border-color: var(--orange);
  box-shadow: 0 10px 24px rgba(232, 95, 12, 0.16);
}

.category-card.is-active::after {
  width: 32px;
  height: 3px;
  margin-top: -1px;
  border-radius: 999px;
  background: var(--orange);
  content: "";
}

.subcategory-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  color: #5c5852;
  text-decoration: none;
}

.subcategory-card img {
  width: 64px;
  height: 64px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 7px 18px rgba(60, 42, 22, 0.08);
}

.subcategory-card span {
  display: -webkit-box;
  width: 100%;
  min-height: 42px;
  max-height: 42px;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.16;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.subcategory-card.is-active {
  color: var(--orange);
  font-weight: 800;
}

.subcategory-card.is-active img {
  border-color: var(--orange);
  box-shadow: 0 8px 18px rgba(232, 95, 12, 0.14);
}

.subcategory-card.is-active::after {
  width: 24px;
  height: 2px;
  margin-top: -2px;
  border-radius: 999px;
  background: var(--orange);
  content: "";
}

.menu-notice {
  margin: 0 0 14px;
  padding: 13px 15px;
  border: 1px solid rgba(232, 95, 12, 0.2);
  border-radius: 16px;
  background: rgba(232, 95, 12, 0.07);
  color: #5b321b;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 0 0 9px;
}

.section-head h1 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.section-head h1 svg {
  width: 15px;
  height: 15px;
  color: var(--orange);
  fill: currentColor;
}

.hero-slider {
  position: relative;
  min-height: 214px;
  overflow: hidden;
  border-radius: 18px;
  background: #090909;
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.hero-track {
  display: flex;
  height: 214px;
  will-change: transform;
  transition: transform 360ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-track.is-dragging {
  transition: none;
}

.hero-card {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  overflow: hidden;
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.42));
}

.top-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-height: 28px;
  padding: 6px 11px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  color: var(--orange-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  min-height: 214px;
  max-width: 54%;
  padding: 14px 16px;
  color: #fff;
}

.hero-content h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  color: #fff;
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
}

.hero-content p {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  line-height: 1.34;
}

.hero-content strong {
  margin-bottom: 10px;
  color: var(--orange-2);
  font-size: 1rem;
}

.orange-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  font-weight: 900;
}

.orange-button svg {
  width: 17px;
}

.orange-button:disabled,
.add-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  filter: grayscale(1);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 10px 0 14px;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #bbb5ad;
}

.slider-dots .is-active {
  background: var(--orange);
}

.dish-list {
  display: grid;
  gap: 11px;
}

.dish-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 8px;
  border: 1px solid rgba(44, 30, 18, 0.07);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 12px 32px rgba(60, 42, 22, 0.08);
}

.dish-card img {
  width: 84px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
}

.dish-card img[src^="Logo/"],
.product-dialog > img[src^="Logo/"] {
  padding: 10px;
  background: #fff;
  object-fit: contain;
}

.card-image-button {
  display: block;
  width: 84px;
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  overflow: hidden;
}

.dish-card h3 {
  margin: 0 0 5px;
  font-size: 0.98rem;
}

.dish-card p {
  display: -webkit-box;
  margin: 0 0 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dish-card strong {
  color: var(--orange);
}

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

.add-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(60, 42, 22, 0.13);
}

.add-button svg {
  width: 19px;
}

.promo-card {
  margin: 22px 0 6px;
  padding: 16px;
  border: 1px solid rgba(234, 93, 20, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, #fff8ec 0%, #fff3df 100%);
  box-shadow: 0 12px 30px rgba(60, 38, 20, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(118px, 0.86fr);
  gap: 14px;
  align-items: center;
  overflow: hidden;
}

.promo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.promo-eyebrow {
  margin: 0 0 7px;
  color: #e95a14;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.promo-line {
  width: 32px;
  height: 3px;
  border-radius: 99px;
  background: #e95a14;
  margin-bottom: 10px;
}

.promo-title {
  margin: 0;
  color: #171717;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: -0.25px;
}

.promo-button {
  margin-top: 14px;
  width: fit-content;
  min-height: 38px;
  padding: 0 15px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff781f, #e9510f);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 22px rgba(233, 90, 20, 0.26);
}

.promo-button svg {
  width: 17px;
  height: 17px;
}

.promo-image-wrap {
  height: 132px;
  border-radius: 18px;
  overflow: hidden;
  background: #eee;
}

.promo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floating-cart {
  position: fixed;
  right: max(22px, calc((100vw - 430px) / 2 + 22px));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 12;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  box-shadow: 0 16px 34px rgba(232, 95, 12, 0.3);
}

.floating-cart svg {
  width: 26px;
}

.floating-cart span {
  top: 5px;
  right: 5px;
  border: 2px solid var(--orange-2);
}

.floating-cart.is-bumping {
  animation: cart-bump 420ms cubic-bezier(0.2, 0.9, 0.3, 1.35);
}

.cart-toast {
  position: fixed;
  bottom: calc(88px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: min(calc(100% - 32px), 398px);
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(23, 23, 23, 0.96);
  color: #fff;
  box-shadow: 0 18px 44px rgba(23, 23, 23, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px) scale(0.96);
  backdrop-filter: blur(16px);
}

.cart-toast.is-visible {
  animation: cart-toast-pop 2.35s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.cart-toast-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
}

.cart-toast-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 3;
}

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

.cart-toast-copy strong,
.cart-toast-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-toast-copy strong {
  font-size: 0.94rem;
}

.cart-toast-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
}

@keyframes cart-bump {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.16) rotate(-7deg); }
  72% { transform: scale(0.96) rotate(3deg); }
}

@keyframes cart-toast-pop {
  0% { opacity: 0; transform: translate(-50%, 18px) scale(0.96); }
  10%, 82% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, 8px) scale(0.98); }
}

.order-panel {
  position: fixed;
  right: max(12px, calc((100vw - 430px) / 2 + 12px));
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: max(12px, calc((100vw - 430px) / 2 + 12px));
  z-index: 13;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  gap: 9px;
  max-height: min(66vh, 540px);
  padding: 14px;
  border: 1px solid rgba(232, 95, 12, 0.18);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 2px;
}

.order-head > div {
  display: grid;
  gap: 2px;
}

.order-panel span {
  color: var(--muted);
  font-size: 0.72rem;
}

.order-panel strong {
  color: var(--text);
  font-size: 0.98rem;
}

.order-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(44, 30, 18, 0.06);
  color: var(--text);
}

.order-items {
  display: grid;
  gap: 7px;
  min-height: 0;
  max-height: 138px;
  overflow: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
}

.order-note {
  display: grid;
  gap: 5px;
}

.order-note span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.order-note textarea {
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
}

.order-note textarea {
  height: 46px;
  max-height: 46px;
  resize: none;
}

.order-note textarea::placeholder {
  color: #9a938a;
}

.order-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 16px;
  background: rgba(242, 231, 215, 0.58);
}

.order-item img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.order-item div:nth-child(2) {
  display: grid;
  min-width: 0;
}

.order-item strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-item span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 27px 21px 27px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.qty-control button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 0;
  background: transparent;
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 900;
}

.qty-control b {
  text-align: center;
  font-size: 0.82rem;
}

.order-actions {
  display: grid;
  grid-template-columns: 0.72fr 1fr 1fr;
  gap: 8px;
}

.clear-order {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.order-panel a,
.local-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.local-order-button {
  border: 0;
  background: linear-gradient(135deg, #171717, #3d342d);
}

.delivery-order-button.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.local-order-button:disabled {
  opacity: 0.48;
}

.local-order-button svg,
.delivery-order-button svg {
  width: 17px;
  height: 17px;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(20, 12, 4, 0.48);
}

.review-dialog,
.qr-dialog {
  position: relative;
  width: min(100%, 430px);
  max-height: 90vh;
  overflow: auto;
  border-radius: 24px 24px 12px 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.review-body,
.qr-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.review-body > span,
.qr-body > span {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-body h2,
.qr-body h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.04;
}

.review-items {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.review-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(242, 231, 215, 0.58);
}

.review-item > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 900;
}

.review-item div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.review-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-item small,
.review-meta p,
.qr-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.review-item b {
  color: var(--orange);
  font-size: 0.86rem;
  white-space: nowrap;
}

.review-meta {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px dashed rgba(232, 95, 12, 0.26);
  border-radius: 16px;
  background: #fff8ec;
}

.review-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px 0;
  border-top: 1px solid var(--line);
}

.review-total span {
  color: var(--muted);
  font-weight: 800;
}

.review-total strong {
  color: var(--text);
  font-size: 1.32rem;
}

.qr-body {
  justify-items: center;
  text-align: center;
}

.qr-box {
  display: grid;
  place-items: center;
  width: 276px;
  max-width: 100%;
  min-height: 276px;
  padding: 16px;
  border: 1px solid rgba(232, 95, 12, 0.2);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(60, 42, 22, 0.1);
}

.qr-node,
.qr-node img,
.qr-node canvas,
.qr-box canvas,
.qr-box img {
  width: 240px;
  height: 240px;
}

.qr-fallback {
  max-height: 240px;
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  background: #fff8ec;
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: left;
  white-space: pre-wrap;
}

.product-dialog {
  position: relative;
  width: min(100%, 430px);
  max-height: 90vh;
  overflow: auto;
  border-radius: 20px 20px 12px 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.product-dialog > img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.dialog-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.dialog-body > span {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.dialog-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.dialog-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.05;
}

.dialog-title strong {
  color: var(--orange);
  white-space: nowrap;
}

.dialog-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.dialog-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.dialog-option {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.dialog-option span {
  font-size: 0.78rem;
  font-weight: 800;
}

.dialog-option strong {
  color: var(--orange);
  font-size: 0.9rem;
}

.dialog-option.is-selected {
  border-color: var(--orange);
  background: rgba(232, 95, 12, 0.08);
  box-shadow: 0 8px 20px rgba(232, 95, 12, 0.12);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  font-weight: 900;
}

[hidden] {
  display: none !important;
}

.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 10px;
  background: rgba(20, 12, 4, 0.5);
}

body.admin-mode {
  background: var(--bg);
}

body.admin-mode .mobile-app,
body.admin-mode .order-panel,
body.admin-mode .dialog-backdrop {
  display: none !important;
}

body.admin-mode .admin-panel {
  position: relative;
  inset: auto;
  min-height: 100vh;
  padding: 16px;
  background:
    radial-gradient(circle at 16% 10%, rgba(232, 95, 12, 0.08), transparent 16rem),
    var(--bg);
}

body.admin-mode .admin-shell {
  width: min(100%, 920px);
  max-height: none;
  min-height: calc(100vh - 32px);
}

.admin-shell {
  width: min(100%, 860px);
  max-height: 94dvh;
  overflow: auto;
  padding: 16px;
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: var(--shadow);
  font-size: 14px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-header span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-header h2 {
  margin: 2px 0 0;
  font-size: 1.8rem;
  line-height: 1;
}

.admin-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(44, 30, 18, 0.06);
}

.admin-business {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: #fff8ec;
  border: 1px solid rgba(234, 93, 20, 0.12);
}

.admin-business summary {
  grid-column: 1 / -1;
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
  list-style: none;
}

.admin-business summary::-webkit-details-marker {
  display: none;
}

.admin-business summary::after {
  content: "Editar";
  float: right;
  color: var(--orange);
  font-size: 0.78rem;
}

.admin-business[open] summary::after {
  content: "Cerrar";
}

.admin-editor h3 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.95rem;
}

.admin-business label,
.admin-editor label {
  display: grid;
  gap: 6px;
  color: #615b53;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
}

.admin-business input,
.admin-editor input,
.admin-editor select,
.admin-editor textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.admin-business-save {
  align-self: end;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  font-weight: 900;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 10px;
  padding: 0 2px;
}

.admin-toolbar div {
  display: grid;
  gap: 2px;
}

.admin-toolbar span {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-toolbar button {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  font-weight: 900;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
}

.admin-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 58vh;
  overflow: auto;
  padding-right: 2px;
}

.admin-product-button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(44, 30, 18, 0.08);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.admin-product-button.is-active {
  border-color: rgba(232, 95, 12, 0.4);
  background: #fff4e8;
}

.admin-product-button img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.admin-product-button strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-button span {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(44, 30, 18, 0.08);
  border-radius: 18px;
  background: #fff;
}

.admin-preview {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff8ec;
}

.admin-preview img {
  width: 72px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
}

.admin-preview div {
  display: grid;
  gap: 3px;
}

.admin-preview span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-preview strong {
  font-size: 1.05rem;
}

.visibility-toggle {
  min-height: 42px;
  border: 1px solid rgba(232, 95, 12, 0.24);
  border-radius: 999px;
  background: #fff7ef;
  color: var(--orange);
  font-weight: 950;
}

.visibility-toggle.is-show {
  border-color: rgba(47, 143, 91, 0.24);
  background: #f0fff7;
  color: var(--green);
}

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

.admin-more {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}

.admin-more summary {
  cursor: pointer;
  color: var(--orange);
  font-weight: 900;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
}

.admin-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 850;
}

.admin-actions .admin-save {
  border: 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
}

.admin-section {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(44, 30, 18, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

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

.admin-section-head h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-section-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-section-action {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  font-weight: 900;
}

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

.admin-reco-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(232, 95, 12, 0.18);
  border-radius: 18px;
  background: #fff8ec;
  overflow: hidden;
}

.admin-reco-card img {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  object-fit: cover;
}

.admin-reco-card div:not(.admin-card-actions) {
  min-width: 0;
}

.admin-reco-card span,
.admin-reco-card small {
  display: block;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-reco-card strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-reco-card small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
  text-transform: none;
}

.admin-family-list {
  display: grid;
  grid-auto-columns: 82px;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.admin-family-card {
  display: grid;
  justify-items: center;
  width: 82px;
  padding: 7px 5px;
  border: 1px solid transparent;
  border-radius: 17px;
  background: transparent;
}

.admin-family-card.is-active {
  border-color: rgba(232, 95, 12, 0.3);
  background: #fff3e4;
}

.admin-family-button {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 82px;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.admin-family-card .admin-family-button {
  width: 100%;
  padding: 0;
}

.admin-family-button img {
  width: 50px;
  height: 50px;
  border: 3px solid #fff;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}

.admin-family-button.is-active {
  border-color: rgba(232, 95, 12, 0.3);
  background: #fff3e4;
  color: var(--orange);
}

.admin-family-card.is-active .admin-family-button {
  color: var(--orange);
}

.admin-family-button.is-active img {
  box-shadow: 0 0 0 2px var(--orange);
}

.admin-family-card.is-active img {
  box-shadow: 0 0 0 2px var(--orange);
}

.admin-submenu-panel {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(232, 95, 12, 0.14);
  border-radius: 18px;
  background: #fff8ec;
}

.admin-submenu-empty {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.admin-submenu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-submenu-head div {
  display: grid;
  gap: 2px;
}

.admin-submenu-head strong {
  color: var(--text);
  font-size: 0.95rem;
}

.admin-submenu-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.admin-submenu-head button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  font-weight: 900;
}

.admin-submenu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-submenu-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 10px 4px 5px;
  border: 1px solid rgba(44, 30, 18, 0.08);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-submenu-chip img {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
}

.admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.admin-product-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(44, 30, 18, 0.08);
  border-radius: 18px;
  background: #fff;
}

.admin-product-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.admin-product-main img,
.admin-product-button > img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
}

.admin-product-main strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-main span span {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-product-button.is-hidden-product {
  border-style: dashed;
  background: #f6f1e8;
  opacity: 0.78;
}

.admin-product-button.is-hidden-product .admin-product-main img {
  filter: grayscale(1);
}

.admin-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.admin-reco-card .admin-card-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 2px;
}

.admin-card-actions button {
  min-width: 32px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
  font-size: 0.78rem;
  white-space: nowrap;
}

.admin-card-actions button:last-child {
  border-color: rgba(232, 95, 12, 0.24);
  color: var(--orange);
}

.admin-card-actions .visibility-action {
  border-color: rgba(159, 69, 25, 0.2);
  color: #9f4519;
}

.admin-card-actions .visibility-action.is-show {
  border-color: rgba(47, 143, 91, 0.25);
  color: var(--green);
}

.admin-reset-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.admin-reset-row button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 850;
}

.edit-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(20, 12, 4, 0.42);
}

.edit-shell {
  width: min(100%, 620px);
  max-height: 92dvh;
  overflow: auto;
  display: grid;
  gap: 9px;
  padding: 14px;
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.edit-header {
  position: sticky;
  top: -16px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -14px -14px 0;
  padding: 12px 14px;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(14px);
}

.edit-header span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.edit-header h2 {
  margin: 2px 0 0;
  font-size: 1.18rem;
  line-height: 1.08;
}

.edit-shell label {
  display: grid;
  gap: 4px;
  color: #615b53;
  font-size: 0.7rem;
  font-weight: 850;
}

.edit-shell input,
.edit-shell select,
.edit-shell textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.edit-shell textarea {
  min-height: 58px;
}

.edit-shell .admin-preview {
  grid-template-columns: 54px 1fr;
  padding: 8px;
}

.edit-shell .admin-preview img {
  width: 54px;
  height: 48px;
  border-radius: 12px;
}

.edit-shell .admin-preview strong {
  font-size: 0.98rem;
}

.admin-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.edit-shell textarea {
  resize: vertical;
}

.file-picker {
  display: grid;
  gap: 6px;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-picker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px dashed rgba(232, 95, 12, 0.34);
  border-radius: 12px;
  background: #fff8ec;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
}

.compact-file span {
  min-height: 36px;
  font-size: 0.82rem;
}

.submenu-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(232, 95, 12, 0.16);
  border-radius: 18px;
  background: #fff8ec;
}

.submenu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.submenu-head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.submenu-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.submenu-head button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  font-weight: 900;
}

.submenu-list {
  display: grid;
  gap: 9px;
}

.submenu-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(44, 30, 18, 0.08);
  border-radius: 16px;
  background: #fff;
}

.submenu-item img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
}

.submenu-item > div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8px;
  min-width: 0;
}

.submenu-item input[readonly] {
  color: var(--muted);
  background: #f6f2eb;
}

.submenu-item button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 850;
}

.submenu-item button:disabled {
  opacity: 0.45;
}

.edit-actions {
  position: sticky;
  bottom: -14px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8px;
  margin: 2px -14px -14px;
  padding: 9px 14px 12px;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(14px);
}

.edit-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
}

.edit-actions .admin-save {
  border: 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
}

@media (max-width: 560px) {
  .admin-panel {
    align-items: end;
    padding: 0;
  }

  body.admin-mode .admin-panel {
    align-items: stretch;
    padding: 0;
  }

  .admin-shell {
    width: 100%;
    max-height: 96dvh;
    padding: 14px;
    border-radius: 28px 28px 0 0;
  }

  body.admin-mode .admin-shell {
    max-height: none;
    min-height: 100vh;
    border-radius: 0;
  }

  .admin-header {
    position: sticky;
    top: -14px;
    z-index: 2;
    margin: -14px -14px 12px;
    padding: 14px;
    border-radius: 28px 28px 0 0;
    background: rgba(255, 253, 248, 0.96);
    backdrop-filter: blur(14px);
  }

  .admin-header h2 {
    font-size: 1.45rem;
  }

  .admin-close {
    width: 42px;
    height: 42px;
  }

  .admin-business,
  .admin-two,
  .admin-actions {
    grid-template-columns: 1fr;
  }

  .admin-business {
    padding: 12px;
    gap: 9px;
  }

  .admin-business-save {
    width: 100%;
  }

  .admin-business label,
  .admin-editor label {
    gap: 5px;
  }

  .admin-toolbar {
    align-items: end;
  }

  .admin-section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .admin-section-action {
    width: 100%;
  }

  .admin-workspace {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-list {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-columns: initial;
    grid-auto-flow: row;
    max-height: none;
    overflow: visible;
    padding: 2px 2px 8px;
    scroll-snap-type: none;
  }

  .admin-product-button {
    scroll-snap-align: start;
  }

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

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

  .admin-card-actions {
    justify-content: flex-end;
  }

  .admin-reco-card .admin-card-actions {
    justify-content: space-between;
  }

  .admin-reco-card .admin-card-actions button:last-child {
    flex: 1;
  }

  .admin-submenu-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .admin-submenu-head button {
    width: 100%;
  }

  .edit-panel {
    align-items: end;
    padding: 0;
  }

  .edit-shell {
    width: 100%;
    max-height: 88dvh;
    border-radius: 26px 26px 0 0;
  }

  .edit-header {
    padding-block: 10px;
  }

  .edit-header h2 {
    font-size: 1.1rem;
  }

  .submenu-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .submenu-head button {
    width: 100%;
  }

  .submenu-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .submenu-item img {
    width: 46px;
    height: 46px;
  }

  .submenu-item > div {
    grid-template-columns: 1fr;
  }

  .submenu-item button {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .admin-editor {
    padding: 12px;
  }

  .admin-preview {
    grid-template-columns: 62px 1fr;
    padding: 8px;
  }

  .admin-preview img {
    width: 62px;
    height: 54px;
  }

  .admin-actions {
    position: sticky;
    bottom: -14px;
    margin: 2px -12px -12px;
    padding: 10px 12px 12px;
    background: rgba(255, 253, 248, 0.96);
    backdrop-filter: blur(14px);
  }

  .admin-actions .admin-save {
    order: -1;
  }
}

@media (max-width: 420px) {
  .admin-compact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .edit-shell {
    gap: 8px;
  }

  .edit-shell input,
  .edit-shell select,
  .edit-shell textarea {
    min-height: 36px;
    font-size: 14px;
  }

  .edit-actions {
    grid-template-columns: 0.75fr 1.25fr;
  }
}

@media (max-width: 360px) {
  .mobile-app {
    padding-inline: 14px;
  }

  .brand-logo {
    width: min(136px, 50vw);
  }

  .category-strip {
    grid-auto-columns: 88px;
    gap: 10px;
  }

  .hero-content {
    max-width: 54%;
  }
}

@media (max-width: 380px) {
  .promo-card {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
    padding: 14px;
  }

  .promo-image-wrap {
    height: 122px;
  }

  .promo-title {
    font-size: 17px;
  }

  .promo-button {
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }
}


/* Variante profesional y compacta para escritorio. */
@media (min-width: 800px) {
  body {
    background: #f7f4ee;
  }

  .mobile-app {
    width: min(100%, 1400px);
    min-height: 100vh;
    padding: 0 28px 40px;
    background: transparent;
    overflow: visible;
  }

  .app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    grid-template-columns: auto 1fr;
    min-height: 72px;
    margin: 0 -28px 16px;
    padding: 8px 28px;
    border-bottom-color: rgba(23, 23, 23, 0.08);
    background: rgba(247, 244, 238, 0.94);
    box-shadow: none;
    backdrop-filter: blur(16px);
  }

  .app-header .brand {
    grid-column: 1;
    justify-self: start;
  }

  .app-header::after {
    justify-self: end;
    color: #817a72;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    content: "CARTA DIGITAL";
  }

  .brand-logo {
    width: 148px;
    max-height: 52px;
  }

  .section-head {
    margin-bottom: 8px;
  }

  .section-head h1 {
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .section-head h1 svg {
    width: 14px;
    height: 14px;
  }

  .hero-slider {
    height: auto;
    min-height: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    touch-action: auto;
  }

  .hero-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    height: auto;
    min-height: 0;
    transform: none !important;
    transition: none;
  }

  .hero-card {
    flex: none;
    min-width: 0;
    height: 194px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: #111;
    box-shadow: 0 10px 26px rgba(36, 28, 20, 0.12);
  }

  .hero-card img {
    object-position: center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.57) 58%, rgba(0, 0, 0, 0.12) 100%),
      linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
  }

  .hero-content {
    min-height: 194px;
    max-width: 76%;
    padding: 16px 18px;
  }

  .hero-content h2 {
    margin-bottom: 5px;
    font-size: clamp(1.12rem, 1.55vw, 1.42rem);
  }

  .hero-content p {
    display: -webkit-box;
    margin-bottom: 6px;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .hero-content strong {
    margin-bottom: 8px;
    font-size: 0.92rem;
  }

  .orange-button {
    min-height: 30px;
    padding: 0 12px;
    gap: 5px;
    font-size: 0.74rem;
    box-shadow: none;
  }

  .orange-button svg {
    width: 14px;
  }

  .orange-button:hover {
    transform: translateY(-1px);
    box-shadow: none;
  }

  .top-pill {
    top: 9px;
    right: 9px;
    min-height: 22px;
    padding: 4px 8px;
    font-size: 0.59rem;
  }

  .slider-dots {
    display: none !important;
  }

  .category-strip {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    grid-auto-columns: initial;
    grid-auto-flow: row;
    gap: 5px;
    overflow: visible;
    margin-top: 14px;
    padding: 7px 8px 10px;
    border: 1px solid rgba(23, 23, 23, 0.07);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
  }

  .category-card {
    gap: 5px;
    padding: 5px 2px 3px;
    border: 0;
    border-radius: 12px;
    transition: background 150ms ease, color 150ms ease;
  }

  .category-card:hover {
    transform: none;
    border-color: transparent;
    background: #fff;
  }

  .category-card img {
    width: 46px;
    height: 46px;
    padding: 3px;
    box-shadow: none;
  }

  .category-card img[src^="Logo/"],
  .subcategory-card img[src^="Logo/"] {
    padding: 6px;
  }

  .category-card span {
    min-height: 25px;
    max-height: 25px;
    font-size: 0.66rem;
    line-height: 1.08;
  }

  .category-card.is-active::after {
    width: 22px;
    height: 2px;
    margin-top: 0;
  }

  .category-card.is-active img {
    box-shadow: none;
  }

  .subcategory-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
    margin: 8px 0 10px;
    padding: 7px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.5);
  }

  .subcategory-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(23, 23, 23, 0.08);
    border-radius: 999px;
    background: #fff;
  }

  .subcategory-card:hover,
  .subcategory-card.is-active {
    transform: none;
    border-color: rgba(232, 95, 12, 0.42);
    background: rgba(232, 95, 12, 0.06);
  }

  .subcategory-card img,
  .subcategory-card.is-active::after {
    display: none;
  }

  .subcategory-card span {
    display: block;
    min-height: 0;
    max-height: none;
    font-size: 0.71rem;
    line-height: 1;
    white-space: nowrap;
  }

  .menu-notice {
    margin-bottom: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
  }

  .dish-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .empty-state {
    grid-column: 1 / -1;
  }

  .dish-card {
    grid-template-columns: 70px minmax(0, 1fr) 30px;
    gap: 9px;
    min-height: 88px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: none;
  }

  .dish-card:hover {
    transform: none;
    border-color: rgba(232, 95, 12, 0.2);
    background: #fff;
    box-shadow: none;
  }

  .dish-card img,
  .card-image-button {
    width: 70px;
    height: 70px;
    border-radius: 10px;
  }

  .dish-card h3 {
    margin-bottom: 3px;
    font-size: 0.82rem;
    line-height: 1.14;
  }

  .dish-card p {
    margin-bottom: 4px;
    font-size: 0.67rem;
    line-height: 1.22;
    -webkit-line-clamp: 1;
  }

  .dish-card strong {
    font-size: 0.82rem;
  }

  .add-button {
    width: 30px;
    height: 30px;
    box-shadow: none;
  }

  .add-button:hover:not(:disabled) {
    transform: none;
  }

  .add-button svg {
    width: 16px;
  }

  .promo-card {
    min-height: 132px;
    margin: 14px 0 4px;
    padding: 14px 18px;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 18px;
    border-radius: 16px;
    box-shadow: none;
  }

  .promo-eyebrow {
    margin-bottom: 4px;
    font-size: 8px;
  }

  .promo-line {
    height: 2px;
    margin-bottom: 6px;
  }

  .promo-title {
    max-width: 520px;
    font-size: 1.18rem;
  }

  .promo-button {
    min-height: 32px;
    margin-top: 8px;
    padding: 0 12px;
    font-size: 0.72rem;
    box-shadow: none;
  }

  .promo-image-wrap {
    height: 104px;
    border-radius: 12px;
  }

  .quick-actions {
    width: min(100%, 560px);
    margin: 12px auto 0;
    gap: 8px;
  }

  .quick-action {
    min-height: 44px;
    border-radius: 12px;
    box-shadow: none;
  }

  .quick-action:hover {
    transform: none;
    background: #fff;
  }

  .quick-action svg,
  .quick-brand-icon {
    width: 17px;
    height: 17px;
  }

  .quick-action span:last-child {
    font-size: 0.62rem;
  }

  .floating-cart {
    right: 24px;
    bottom: 24px;
    width: 54px;
    height: 54px;
  }

  .cart-toast {
    bottom: 24px;
  }

  .order-panel {
    right: 22px;
    bottom: 22px;
    left: auto;
    width: 410px;
    max-height: min(82vh, 650px);
    padding: 15px;
    border-radius: 20px;
  }

  .order-items {
    max-height: 270px;
  }

  .dialog-backdrop {
    place-items: center;
    padding: 24px;
  }

  .product-dialog {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
    width: min(100%, 760px);
    max-height: 80vh;
    overflow: hidden;
    border-radius: 20px;
  }

  .product-dialog > img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
  }

  .dialog-body {
    align-content: center;
    padding: 28px;
    overflow: auto;
  }

  .dialog-title h2 {
    font-size: 1.8rem;
  }

  .review-dialog,
  .qr-dialog {
    width: min(100%, 500px);
    border-radius: 20px;
  }
}

@media (min-width: 800px) and (max-width: 1140px) {
  .dish-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-card {
    height: 184px;
  }

  .hero-content {
    min-height: 184px;
    max-width: 82%;
    padding: 14px;
  }

  .hero-content p {
    -webkit-line-clamp: 1;
  }
}
