/* EDigital Ordering — brand tokens + app chrome */
:root {
  --navy: #0b1f3b;
  --navy-deep: #071526;
  --turquoise: #00c6b7;
  --turquoise-deep: #00a89c;
  --blue: #0084d6;
  --yellow: #ffc107;
  --yellow-deep: #e6ac00;
  --fog: #f4f6fb;
  --ink: #0b1f3b;
  --espresso: #071526;
  --panel: #123056;
  --panel-2: #16385f;
  --line: rgba(0, 198, 183, 0.18);
  --sand: rgba(244, 246, 251, 0.78);
  --foam: #f4f6fb;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-ink: rgba(11, 31, 59, 0.65);
  --amber: #00c6b7;
  --amber-deep: #00a89c;
  --mint: #00c6b7;
  --cta: #ffc107;
  --danger: #e57373;
  --font: "Poppins", "Segoe UI", sans-serif;
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(7, 21, 38, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--foam);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(0, 198, 183, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(0, 132, 214, 0.16), transparent 50%),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 55%, #123056 100%);
  background-attachment: fixed;
}

a {
  color: var(--turquoise);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(1560px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.85rem 0.35rem 2rem;
  max-width: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: rise 0.6s ease both;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

a.btn-back {
  text-decoration: none;
  white-space: nowrap;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

a.brand-lockup:hover .brand-name {
  color: var(--turquoise);
}

a.brand-lockup:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 4px;
  border-radius: 12px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 198, 183, 0.35);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0.75;
  margin-top: 0.2rem;
}

.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nav-pills a {
  color: var(--foam);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.nav-pills a:hover,
.nav-pills a.active {
  border-color: rgba(0, 198, 183, 0.55);
  background: rgba(0, 198, 183, 0.12);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: min(72vh, 640px);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
  animation: rise 0.7s ease 0.05s both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 88% 18%, rgba(24, 184, 176, 0.32), transparent 55%),
    radial-gradient(ellipse 50% 45% at 8% 85%, rgba(14, 127, 154, 0.22), transparent 50%),
    linear-gradient(120deg, rgba(7, 16, 24, 0.94) 0%, rgba(12, 26, 36, 0.82) 55%, rgba(10, 40, 52, 0.65) 100%);
  z-index: -1;
}

.hero-copy {
  max-width: 34rem;
  padding: clamp(2rem, 6vw, 4.5rem);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 0.8rem;
}

.hero p {
  margin: 0 0 1.5rem;
  color: var(--sand);
  font-size: 1.05rem;
  max-width: 28rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(255, 193, 7, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--foam);
  border: 1px solid var(--line);
}

.btn-danger {
  background: rgba(217, 123, 108, 0.18);
  color: #ffd4cd;
  border: 1px solid rgba(217, 123, 108, 0.35);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.panel {
  background: linear-gradient(180deg, rgba(18, 48, 86, 0.92), rgba(11, 31, 59, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  animation: rise 0.55s ease both;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.panel + .panel,
.stack > * + * {
  margin-top: 1rem;
}

.grid-2 {
  display: grid;
  gap: 1rem;
  min-width: 0;
  width: 100%;
}

@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr);
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1.4fr) minmax(380px, 1fr);
  }
}

.cart-aside {
  position: sticky;
  top: 1rem;
}

.cart-total {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
}

.cart-receipt {
  margin: 0.75rem 0 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.28rem;
}

.cart-receipt__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.cart-receipt__row span:last-child {
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  font-weight: 600;
}

.cart-receipt__row--total {
  margin-top: 0.2rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 1rem;
  color: var(--foam);
  font-weight: 600;
}

.cart-receipt__row--total span:last-child {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--amber);
}

.pay-stub h2 {
  margin-bottom: 0.45rem;
}

.pay-stub__lead {
  margin: 0 0 0.75rem;
  color: var(--sand);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pay-stub__help {
  margin: 0 0 1rem;
  color: rgba(244, 246, 251, 0.82);
  font-size: 0.88rem;
  line-height: 1.45;
}

.pay-stub__steps {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: rgba(244, 246, 251, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
}

.pay-stub__steps li + li {
  margin-top: 0.35rem;
}

.pay-stub__meta {
  margin: 0.75rem 0 0;
  min-height: 1.25rem;
  word-break: break-word;
}

.pay-success {
  margin-top: 0.85rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 198, 183, 0.35);
  background: rgba(0, 198, 183, 0.1);
}

.pay-success__title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--foam);
}

.pay-success__body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.order-track h2 {
  margin: 0 0 0.35rem;
}

.order-track__summary {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.order-track__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.order-track__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.86rem;
}

.order-track__item strong {
  font-weight: 600;
}

.order-track__item span {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.order-track__item.is-hot {
  border-color: rgba(0, 198, 183, 0.4);
  background: rgba(0, 198, 183, 0.08);
}

.order-track__item.is-hot span {
  color: var(--turquoise);
}

.order-track__item.is-done {
  opacity: 0.72;
}

.order-track__item.is-done span {
  color: var(--mint);
}

.btn-block {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  margin-top: 0.55rem;
}

.btn-block:first-of-type {
  margin-top: 0;
}

h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.muted {
  color: rgba(246, 239, 228, 0.65);
  font-size: 0.92rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--foam);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.menu-list,
.cart-list,
.queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.menu-cats {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.35rem 0 0.85rem;
  margin-bottom: 0.25rem;
  max-width: 100%;
  min-width: 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.menu-cats::-webkit-scrollbar {
  height: 4px;
}

.menu-cat-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--foam);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-cat-chip.is-active {
  background: var(--turquoise);
  color: var(--navy);
  border-color: transparent;
}

.menu-grid {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  max-width: 100%;
}

.menu-cat-title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  min-width: 0;
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  color: #12202a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  min-height: 108px;
}

.product-card__img {
  width: 100%;
  height: 100%;
  min-height: 108px;
  object-fit: cover;
  background: #d7dee4;
}

.product-card__ph {
  width: 100%;
  min-height: 108px;
  display: grid;
  place-items: center;
  background: #d7dee4;
  color: #5b6b76;
  font-size: 0.7rem;
  text-align: center;
  padding: 0.35rem;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.55rem 0.6rem 0.5rem;
  min-width: 0;
}

.product-card__name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.product-card__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: auto;
}

.product-card__body .price {
  color: #1a2a34;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-add {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
  line-height: 1;
  align-self: flex-end;
}

.menu-cat {
  margin: 0.85rem 0 0.1rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  list-style: none;
}

.menu-item,
.cart-item,
.queue-item {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.menu-item header,
.cart-item header,
.queue-item header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

/* Carrito compacto (guía EP1): más líneas en el mismo panel */
.cart-list {
  display: grid;
  gap: 0.4rem;
}

.cart-item {
  gap: 0.2rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
}

.cart-item header {
  gap: 0.5rem;
  align-items: flex-start;
}

.cart-item header strong {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.cart-item header .price {
  font-size: 0.86rem;
  font-weight: 600;
  flex-shrink: 0;
}

.cart-item__row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-item__qty-btn {
  appearance: none;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--foam);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.cart-item__qty-btn:hover {
  border-color: rgba(0, 198, 183, 0.45);
  background: rgba(0, 198, 183, 0.12);
}

.cart-item__qty {
  min-width: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--foam);
}

.cart-item__remove {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 0 0 0.35rem;
  margin: 0;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e57373;
  cursor: pointer;
}

.cart-item__remove:hover {
  text-decoration: underline;
}

.price {
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--sand);
}

.badge.ok {
  border-color: rgba(143, 191, 163, 0.45);
  color: var(--mint);
}

.badge.warn {
  border-color: rgba(255, 193, 7, 0.5);
  color: var(--yellow);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: min(360px, calc(100% - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 40;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  border-color: rgba(217, 123, 108, 0.5);
}

.note-box {
  border-left: 3px solid var(--turquoise);
  padding: 0.65rem 0.85rem;
  background: rgba(0, 198, 183, 0.08);
  border-radius: 0 12px 12px 0;
  color: var(--sand);
  font-size: 0.9rem;
}

.hub-links {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
  animation: rise 0.7s ease 0.15s both;
}

@media (min-width: 720px) {
  .hub-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hub-card {
  display: block;
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(42, 32, 24, 0.85);
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s;
  min-height: 8.5rem;
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 198, 183, 0.45);
}

.hub-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

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

@keyframes slow-zoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

/* —— Product detail sheet —— */
.product-card {
  cursor: pointer;
}

.product-card:focus-visible {
  outline: 2px solid var(--turquoise, #00c6b7);
  outline-offset: 2px;
}

.product-detail {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(440px, 100vw);
  width: 100%;
  margin: auto auto 0;
  color: #12202a;
}

.product-detail::backdrop {
  background: rgba(8, 18, 28, 0.72);
  backdrop-filter: blur(4px);
}

.product-detail__sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 760px);
  overflow: auto;
  border-radius: 20px 20px 0 0;
  background: #f7f9fb;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  animation: rise 0.28s ease;
}

.product-detail__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #12202a;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.product-detail__media {
  position: relative;
  min-height: 240px;
  max-height: 48vh;
  background: #d7dee4;
  overflow: hidden;
}

.product-detail__media-frame {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 48vh;
}

.product-detail__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 48vh;
  object-fit: cover;
}

.product-detail__media .product-card__ph {
  width: 100%;
  min-height: 240px;
  font-size: 0.85rem;
}

.product-detail__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #12202a;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  padding: 0 0 0.1rem;
}

.product-detail__nav[hidden] {
  display: none !important;
}

.product-detail__nav--prev {
  left: 0.65rem;
}

.product-detail__nav--next {
  right: 0.65rem;
}

.product-detail__nav:active {
  transform: translateY(-50%) scale(0.96);
}

.product-detail__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.25rem;
}

.product-detail__cat {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-detail__content h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0f1b24;
}

.product-detail__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-detail__title-row h2 {
  flex: 1;
}

.product-detail__price {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  white-space: nowrap;
}

.product-detail__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #3a4a55;
}

.product-detail__desc.is-empty {
  display: none;
}

.product-detail__section h3 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b6b76;
}

.product-detail__options {
  display: grid;
  gap: 0.4rem;
}

.product-detail__choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #d5dde4;
  background: #fff;
  cursor: pointer;
}

.product-detail__choice:has(input:checked) {
  border-color: #00c6b7;
  box-shadow: inset 0 0 0 1px #00c6b7;
}

.product-detail__choice input {
  accent-color: #0b3a4a;
}

.product-detail__choice span {
  font-size: 0.88rem;
  font-weight: 500;
}

.product-detail__mod {
  margin-bottom: 0.75rem;
}

.product-detail__mod-title {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.product-detail__footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8ee;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(247, 249, 251, 0.75), #f7f9fb 35%);
}

.product-detail__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: #e8eef2;
}

.product-detail__qty button {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #12202a;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.product-detail__qty span {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.product-detail__add {
  flex: 1;
  justify-content: center;
}

@media (min-width: 720px) {
  .product-detail {
    margin: auto;
    max-width: 520px;
  }

  .product-detail__sheet {
    border-radius: 20px;
    max-height: min(88vh, 860px);
  }

  .product-detail__media,
  .product-detail__media-frame,
  .product-detail__media img,
  .product-detail__media .product-card__ph {
    min-height: 280px;
    max-height: 320px;
  }
}

/* —— Pedido rápido V1 public chrome —— */
.customer-shell .harness-only[hidden],
.harness-only[hidden] {
  display: none !important;
}

body.is-harness .harness-only {
  display: revert;
}

body.is-harness .harness-panel {
  display: block;
  margin: 1rem 0 2rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.18);
}

.menu-heading h2 {
  margin-bottom: 0.2rem;
}

.cart-hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
}

.identity-sheet {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(420px, 94vw);
  margin: auto;
}

.identity-sheet::backdrop {
  background: rgba(8, 18, 28, 0.72);
  backdrop-filter: blur(4px);
}

.identity-sheet__card {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 18px;
  background: #f7f9fb;
  color: #12202a;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.identity-sheet__card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.identity-sheet__table {
  margin: 0;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .customer-layout {
    display: flex;
    flex-direction: column;
  }

  .cart-aside {
    order: 2;
    position: sticky;
    bottom: 0;
    z-index: 5;
  }

  .cart-panel {
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.28);
  }
}

/* —— Ops roles: Station / Waiter / Admin —— */
.ops-page .brand-tag {
  letter-spacing: 0.04em;
}

.ops-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
}

.ops-toolbar .field {
  margin: 0;
  min-width: min(220px, 100%);
}

.ops-columns {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .ops-columns {
    grid-template-columns: 1fr 1.2fr;
  }
}

.ops-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

.ops-section-title h2 {
  margin: 0;
  font-size: 1.05rem;
}

.ops-empty {
  margin: 0;
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.queue-item.is-ready {
  border-color: rgba(0, 198, 183, 0.45);
  background: rgba(0, 198, 183, 0.08);
}

.queue-item.is-ack {
  border-color: rgba(255, 193, 7, 0.4);
  background: rgba(255, 193, 7, 0.07);
}

.queue-item.is-picked {
  border-color: rgba(0, 132, 214, 0.4);
  background: rgba(0, 132, 214, 0.08);
}

.queue-item .ops-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.badge.ready {
  border-color: rgba(0, 198, 183, 0.5);
  color: var(--mint);
}

.badge.crit {
  border-color: rgba(229, 115, 115, 0.55);
  color: #ffb4b4;
}

.alert-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.alert-item {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
}

.alert-item.critical {
  border-color: rgba(229, 115, 115, 0.5);
  background: rgba(229, 115, 115, 0.08);
}

.alert-item.warning {
  border-color: rgba(255, 193, 7, 0.45);
  background: rgba(255, 193, 7, 0.07);
}

.monitor-orders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.monitor-card {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.55rem;
}

.monitor-card header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.monitor-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.monitor-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--sand);
}

.monitor-acks {
  font-size: 0.8rem;
  color: var(--muted);
}

.line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.ops-legend {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.harness-panel[hidden],
.harness-only[hidden] {
  display: none !important;
}

body.is-harness .harness-panel,
body.is-harness .harness-only {
  display: block;
}
